Need guidance with servlet deployment.
I'm having difficulty deploying/implementing my servlet under Tomcat 3.2.4. Here is the situation. I created a basic servlet to handle SOAP messages called gizmoservlet. I edited the web.xml file in the samples that came with Apache SOAP and placed the servlet in the same directory as rpcrouter and everything works fine and I get the proper error message when going to http://localhost:8080/soap/servlet/gizmoservlet. I was able to test and develop the servlet with no problems. However when I create my own gizmoservlet.war and try to deploy it as its own and not under the SOAP sample all I get on my web browser is a directoy listing of a blank directory at the URL http://localhost:8080/gizmoservlet. What could I be doing wrong? Here is my web.xml file and thanks for any help: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2.2.dtd; web-app servlet servlet-namegizmoservlet/servlet-name display-nameGizmo SOAP Servlet/display-name descriptionno description/description servlet-classGizmoServlet/servlet-class init-param /init-param /servlet servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern /servlet-mapping /web-app -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
-Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
on top of Randy's suggestsion, try to access the URL: http://localhost:8080/gizmoservlet/something.html or http://localhost:8080/servlet/GizmoServlet You get the blank directory listing becuase you have a logical directory set up for /gizmoservlet, but no index.html file to handle requests to the root directory for your webapp. Charlie -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:20 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
-Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. on top of Randy's suggestsion, try to access the URL: http://localhost:8080/gizmoservlet/something.html actually your servlet mapping would need to be /gizmoservlet/* for this URL to work. I misread the mapping when I sent this. Charlie or http://localhost:8080/servlet/GizmoServlet You get the blank directory listing becuase you have a logical directory set up for /gizmoservlet, but no index.html file to handle requests to the root directory for your webapp. Charlie -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:20 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
Oh, I get it now. But I think I'm skating around the issue and not seeing it. I changed the line to url-pattern/gizmoservlet/url-pattern and went to the URL: http://localhost:8080/servlet/gizmoservlet and the reply was page not found. I changed the line to url-pattern/servlet/gizmoservlet/url-pattern and went to the URL: http://localhost:8080/gizmoservlet/servlet/gizmoservlet but I get the following error: (keep in mind this servlet works when I place it in the same directory as rpcrouter) Error: 500 Location: /jsoapservlet/servlet/jsoapservlet Internal Servlet Error: java.lang.NullPointerException at java.lang.ClassLoader.resolveClass0(Native Method) at java.lang.ClassLoader.resolveClass(ClassLoader.java:641) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:518) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:536) -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. on top of Randy's suggestsion, try to access the URL: http://localhost:8080/gizmoservlet/something.html or http://localhost:8080/servlet/GizmoServlet You get the blank directory listing becuase you have a logical directory set up for /gizmoservlet, but no index.html file to handle requests to the root directory for your webapp. Charlie -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:20 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need guidance with servlet deployment.
-Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:49 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Oh, I get it now. But I think I'm skating around the issue and not seeing it. I changed the line to url-pattern/gizmoservlet/url-pattern and went to the URL: http://localhost:8080/servlet/gizmoservlet and the reply was page not found. with this mapping, the url should be : http://localhost:8080/gizmoservlet I changed the line to url-pattern/servlet/gizmoservlet/url-pattern and went to the URL: http://localhost:8080/gizmoservlet/servlet/gizmoservlet but I get the following error: (keep in mind this servlet works when I place it in the same directory as rpcrouter) /servlet is a default mapping for any servlet(see /conf/web.xml) therefore you do not need a servlet mapping containing /servet unless you wish to override this functionality. change(or remove) your url-mapping and try this url: http://localhost:8080/servlet/gizmoservlet Charlie Error: 500 Location: /jsoapservlet/servlet/jsoapservlet Internal Servlet Error: java.lang.NullPointerException at java.lang.ClassLoader.resolveClass0(Native Method) at java.lang.ClassLoader.resolveClass(ClassLoader.java:641) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Adaptiv eClassLoader.java:518) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Adapt iveServletLoader.java:174) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapp er.java:265) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:806) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:501) at java.lang.Thread.run(Thread.java:536) -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. on top of Randy's suggestsion, try to access the URL: http://localhost:8080/gizmoservlet/something.html or http://localhost:8080/servlet/GizmoServlet You get the blank directory listing becuase you have a logical directory set up for /gizmoservlet, but no index.html file to handle requests to the root directory for your webapp. Charlie -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:20 AM To: Tomcat Users List Subject: RE: Need guidance with servlet deployment. Randy, thank you for catching that. I restarted Tomcat after fixing it and it still doesn't work. Nutz. Thank you though. Chris -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:26 AM To: 'Tomcat Users List' Subject: RE: Need guidance with servlet deployment. -Original Message- From: Carver, Christopher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Need guidance with servlet deployment. servlet-mapping servlet-namegizmoservlet/servlet-name url-patterngizmoservlet/url-pattern I'm pretty sure this should be url-pattern/gizmoservlet/url-pattern (Note the preceding /). -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]