Servlet not found unless port specified and run thru Tomcat's Man ager; getting a seg fault in the error_log file
Hi, I'm currently running Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris. I can't get this application to find and run the servlet. The file structure for this app is: /usr/local/jak/webapps/ProbLog/WEB-INF/classes /usr/local/jak/webapps/ProbLog/WEB-INF/lib/probserver.jar /usr/local/jak/webapps/ProbLog/probapplet.jar Now the application works just fine when I use the Tomcat Manager to invoke it. I've tried dropping a HelloworldServet under the ROOT but can't get it to run either! Thanks in advance for any help, Dan All related info follows: * Error generated: Clear classloader cache ... completed. I'm in the search applet Before servlet call; tablename=log_user java.lang.Exception at lib.url.URLChoiceList.init(URLChoiceList.java:38) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) list_site=http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?t able=log_userobs=true IO Exception in input stream java.net.SocketException: Unexpected end of file from server Did I get this far? Buffered Read I/O exceptionjava.lang.NullPointerException null java.lang.NullPointerException at lib.url.URLChoiceList.init(URLChoiceList.java:78) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) * Apache access_log: 199.141.41.198 - - [24/Oct/2003:10:04:23 -0600] GET /ProbLog/probapplet .jar HTTP/1.1 304 - 199.141.41.198 - - [24/Oct/2003:10:04:24 -0600] GET /servlet/lib.servle t.getChoices?table=log_userobs=true HTTP/1.1 404 302 * Apache Error_log: [Mon Oct 27 11:58:50 2003] [notice] Apache/1.3.27 (Unix) mod_jk/1.2.1 mod_perl/1.2 7 mod_ssl/2.8.12 OpenSSL/0.9.7 configured -- resuming normal operations [Mon Oct 27 11:58:50 2003] [info] Server built: May 13 2003 11:27:35 [Mon Oct 27 11:58:50 2003] [notice] Accept mutex: fcntl (Default: fcntl) [Mon Oct 27 11:59:05 2003] [notice] child pid 461 exit signal Segmentation Fault ( 11) [Mon Oct 27 11:59:05 2003] [notice] child pid 460 exit signal Segmentation Fault ( 11) * Apache mod_jk_log: [Mon Oct 27 11:59:04 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/servlet/lib.servlet.getChoices' [Mon Oct 27 11:59:04 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_ uri_to_worker, Found a context match ajp13 - /servlet/ [Mon Oct 27 11:59:04 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Mon Oct 27 11:59:04 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker * Workers.properties: worker.list=ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 ** httpd.conf: ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only support ed on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile) ; # you will save yourself a lot of trouble. # ServerRoot /usr/local/apache # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the VirtualHost # directive. # Listen 80 Listen 8080 Listen 8100 # Tomcat listens on 8081 LoadModule jk_module libexec/mod_jk.so # The mod_jk.conf file is autogenerated by tomcat each time it is starte d and # therefore very current on the configuration. (Not using it currently) # Include /usr/local/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf # Reconstruction of the complete module list from all available modules # (static and shared ones) to achieve correct module execution order. # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO] # ClearModuleList # AddModule mod_env.c # AddModule mod_log_config.c # AddModule mod_mime.c # AddModule mod_negotiation.c # AddModule mod_status.c # AddModule mod_include.c # AddModule mod_autoindex.c # AddModule mod_dir.c # AddModule mod_cgi.c # AddModule
Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris
Hi, I'm having a similar problem and can't seem to get past it. I'm currently running Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris. I've been thru the archives and I've seen a number of similar problems to mine but they haven't solved my problem. I've got the examples working as well as my own but only if I'm using the port number I've assigned with the connector 8081. Without the port number (ie. http://localhost:8081/test.helloworld.class) this fails to find the servlet, with it, it works like a champ. Also, I'm wondering why the workers.properties file specifies port 8009. Finally, it seems were really trying to get it all to work on port 80, hence the dropping of the port number 8081. Forgive my confusion as this is my first time with tomcat, apache, mod_jk. Thanks in advance for any help, Dan All related info follows: * Error generated: Clear classloader cache ... completed. I'm in the search applet Before servlet call; tablename=log_user java.lang.Exception at lib.url.URLChoiceList.init(URLChoiceList.java:37) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) list_site=http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?t able=log_userobs=true IO Exception in input stream java.io.FileNotFoundException: http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?table=log_u serobs=true Did I get this far? Buffered Read I/O exceptionjava.lang.NullPointerException null java.lang.NullPointerException at lib.url.URLChoiceList.init(URLChoiceList.java:77) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) * Apache access_log: 199.141.41.198 - - [24/Oct/2003:10:04:23 -0600] GET /ProbLog/probapplet .jar HTTP/1.1 304 - 199.141.41.198 - - [24/Oct/2003:10:04:24 -0600] GET /servlet/lib.servle t.getChoices?table=log_userobs=true HTTP/1.1 404 302 * Apache Error_log: [Fri Oct 24 10:04:24 2003] [error] [client 199.141.41.198] File does not exist: /usr/local/jakarta-tomcat-4.1.24/webapps/ProbLog/servlet/lib.servlet.getChoi ces * Apache mod_jk_log: [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/ProbLog/probapplet.jar' [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_wor ker_map_t::map_uri_to_worker [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (477)]: Attempting to m ap URI '/servlet/lib.servlet.getChoices' [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match * Workers.properties: worker.list=ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 ** httpd.conf: ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only support ed on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile) ; # you will save yourself a lot of trouble. # ServerRoot /usr/local/apache # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the VirtualHost # directive. # Listen 80 Listen 8080 Listen 8100 # Tomcat listens on 8081 LoadModule jk_module libexec/mod_jk.so # The mod_jk.conf file is autogenerated by tomcat each time it is starte d and # therefore very current on the configuration. (Not using it currently) # Include /usr/local/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf # Reconstruction of the complete module list from all available modules # (static and shared ones) to achieve correct module execution order. # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO] # ClearModuleList # AddModule mod_env.c # AddModule mod_log_config.c # AddModule mod_mime.c
RE: Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris
Yes they arewith the directories corresponding to the package names within classes! -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 10:46 AM To: Tomcat Users List Subject: Re: Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris Port 8009 should be the port that Apache tries to talk to modjk, or is it mod_jk talks to Tomcat on that port. I don't recall but you get the idea. Is your class in this location?: $TOMCAT_HOME/webapps/yourapp/WEB-INF/classes/ Oscar On Fri, 24 Oct 2003, Kengott, Dan wrote: Hi, I'm having a similar problem and can't seem to get past it. I'm currently running Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris. I've been thru the archives and I've seen a number of similar problems to mine but they haven't solved my problem. I've got the examples working as well as my own but only if I'm using the port number I've assigned with the connector 8081. Without the port number (ie. http://localhost:8081/test.helloworld.class) this fails to find the servlet, with it, it works like a champ. Also, I'm wondering why the workers.properties file specifies port 8009. Finally, it seems were really trying to get it all to work on port 80, hence the dropping of the port number 8081. Forgive my confusion as this is my first time with tomcat, apache, mod_jk. Thanks in advance for any help, Dan All related info follows: * Error generated: Clear classloader cache ... completed. I'm in the search applet Before servlet call; tablename=log_user java.lang.Exception at lib.url.URLChoiceList.init(URLChoiceList.java:37) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) list_site=http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?t able=log_userobs=true IO Exception in input stream java.io.FileNotFoundException: http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?table=log_u serobs=true Did I get this far? Buffered Read I/O exceptionjava.lang.NullPointerException null java.lang.NullPointerException at lib.url.URLChoiceList.init(URLChoiceList.java:77) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) * Apache access_log: 199.141.41.198 - - [24/Oct/2003:10:04:23 -0600] GET /ProbLog/probapplet .jar HTTP/1.1 304 - 199.141.41.198 - - [24/Oct/2003:10:04:24 -0600] GET /servlet/lib.servle t.getChoices?table=log_userobs=true HTTP/1.1 404 302 * Apache Error_log: [Fri Oct 24 10:04:24 2003] [error] [client 199.141.41.198] File does not exist: /usr/local/jakarta-tomcat-4.1.24/webapps/ProbLog/servlet/lib.servlet.g etChoi ces * Apache mod_jk_log: [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/ProbLog/probapplet.jar' [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_wor ker_map_t::map_uri_to_worker [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (477)]: Attempting to m ap URI '/servlet/lib.servlet.getChoices' [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match * Workers.properties: worker.list=ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 ** httpd.conf: ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only support ed on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile) ; # you will save yourself a lot of trouble. # ServerRoot /usr/local/apache # Listen: Allows you to bind Apache to specific IP addresses and/or # ports
RE: Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris
I've tried examples/servlets and examples/jsp both work fine as long as the port number is specified. -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 11:11 AM To: Tomcat Users List Subject: RE: Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris Have you tried just a simple jsp page for starters? I like to do that in case there's some class loading issues. Then you might be able to nail it down to a mod_jk issue, or a class loading issue. Oscar On Fri, 24 Oct 2003, Kengott, Dan wrote: Yes they arewith the directories corresponding to the package names within classes! -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 10:46 AM To: Tomcat Users List Subject: Re: Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris Port 8009 should be the port that Apache tries to talk to modjk, or is it mod_jk talks to Tomcat on that port. I don't recall but you get the idea. Is your class in this location?: $TOMCAT_HOME/webapps/yourapp/WEB-INF/classes/ Oscar On Fri, 24 Oct 2003, Kengott, Dan wrote: Hi, I'm having a similar problem and can't seem to get past it. I'm currently running Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris. I've been thru the archives and I've seen a number of similar problems to mine but they haven't solved my problem. I've got the examples working as well as my own but only if I'm using the port number I've assigned with the connector 8081. Without the port number (ie. http://localhost:8081/test.helloworld.class) this fails to find the servlet, with it, it works like a champ. Also, I'm wondering why the workers.properties file specifies port 8009. Finally, it seems were really trying to get it all to work on port 80, hence the dropping of the port number 8081. Forgive my confusion as this is my first time with tomcat, apache, mod_jk. Thanks in advance for any help, Dan All related info follows: * Error generated: Clear classloader cache ... completed. I'm in the search applet Before servlet call; tablename=log_user java.lang.Exception at lib.url.URLChoiceList.init(URLChoiceList.java:37) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) list_site=http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getCho ices?t able=log_userobs=true IO Exception in input stream java.io.FileNotFoundException: http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?table =log_u serobs=true Did I get this far? Buffered Read I/O exceptionjava.lang.NullPointerException null java.lang.NullPointerException at lib.url.URLChoiceList.init(URLChoiceList.java:77) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) * Apache access_log: 199.141.41.198 - - [24/Oct/2003:10:04:23 -0600] GET /ProbLog/probapplet .jar HTTP/1.1 304 - 199.141.41.198 - - [24/Oct/2003:10:04:24 -0600] GET /servlet/lib.servle t.getChoices?table=log_userobs=true HTTP/1.1 404 302 * Apache Error_log: [Fri Oct 24 10:04:24 2003] [error] [client 199.141.41.198] File does not exist: /usr/local/jakarta-tomcat-4.1.24/webapps/ProbLog/servlet/lib.servlet .g etChoi ces * Apache mod_jk_log: [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/ProbLog/probapplet.jar' [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_wor ker_map_t::map_uri_to_worker [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (477)]: Attempting to m ap URI '/servlet/lib.servlet.getChoices' [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match * Workers.properties: worker.list=ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 ** httpd.conf: ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent