tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Swapneel Dange" <s_da...@hotmail.com>
Subject Running the servlet !
Date Thu, 13 Feb 2003 01:17:04 GMT
Thanx All !

i got my servler compiled but now when i try to see the same SERVLET using 
the following address ---

http://localhost:8080/swapneel/hello

then i get the following errors --

*********************************************************
Error: 500
Location: /swapneel/hello
Internal Servlet Error:

java.lang.NoClassDefFoundError: swapneel/servlets/HelloWorld (wrong name: 
HelloWorld)
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
	at 
org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(DependClassLoader12.java:156)
	at 
org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(DependClassLoader.java:211)
	at 
org.apache.tomcat.util.depend.DependClassLoader12$1.run(DependClassLoader12.java:92)
	at java.security.AccessController.doPrivileged(Native Method)
	at 
org.apache.tomcat.util.depend.DependClassLoader12.loadClass(DependClassLoader12.java:90)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
	at 
org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:343)
	at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:439)
	at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:228)
	at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:472)
	at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
	at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
	at java.lang.Thread.run(Thread.java:536)

*****************************************************

i am having the following hierarchy for the class file ---

webapps
   swapneel
   WEB-INF
     web.xml
     classes
        swapneel
           servlets
              HelloWorld.class
              HelloWorld.java

Is this the way we deploy the FILES or there is some other way to work 
around these things. awaiting reply !

Swapneel Dange
505-642-4126
http://www.cs.nmsu.edu/~sdange


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message