tomcat-users mailing list archives

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

thanx man ! i got it running ! i think ur right for the package name !

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





>From: "Filip Hanik" <Filip.Hanik@evant.com>
>Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>Subject: RE: Running the servlet !
>Date: Wed, 12 Feb 2003 17:30:11 -0800
>
>does your HelloWorld.java have
>
>package swapneel.servlets;
>
>as the first statement?
>Filip
>
>-----Original Message-----
>From: Swapneel Dange [mailto:s_dange@hotmail.com]
>Sent: Wednesday, February 12, 2003 5:17 PM
>To: tomcat-user@jakarta.apache.org
>Subject: Running the servlet !
>
>
>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
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
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