新人求问个小白问题
package leiwenjian;
import
java.io.IOException;
import javax.servlet.GenericServlet;
import
javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public class demo1 extends GenericServlet {
public void service(ServletRequest arg0, ServletResponse arg1)
throws
ServletException,
IOException {
arg1.getOutputStream().write("hello world".getBytes());
}
}
Launcher$AppClassLoader(ClassLoader).defineTransformedClass(String, byte[], int, int, ProtectionDomain,
ClassFormatError, String, boolean) line: 530
Launcher$AppClassLoader(ClassLoader).defineClassCond(String, byte[], int, int, ProtectionDomain, boolean) line: 634
Launcher$AppClassLoader(ClassLoader).defineClass(String, byte[], int, int, ProtectionDomain) line: 615
Launcher$AppClassLoader(SecureClassLoader).defineClass(String, byte[], int, int, CodeSource) line: 141
</welcome-file-list>
<servlet>
<servlet-name>demo1</servlet-name>
<servlet-class>/class1.src/leiwenjian/demo1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>demo1</servlet-name>
<url-pattern> /demo1</url-pattern>
</servlet-mapping>
求帮忙
------解决方案--------------------<servlet-class>leiwenjian.demo1</servlet-class>
------解决方案--------------------<servlet>
<servlet-name>demo1</servlet-name>
<servlet-class>leiwenjian.demo1</servlet-class>
</servlet>