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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to