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 are....with 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_user&obs=true IO Exception in input stream > > java.io.FileNotFoundException: > > > http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?table > =log_u > > ser&obs=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_user&obs=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, 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 mod_asis.c > > # AddModule mod_imap.c > > # AddModule mod_actions.c > > # AddModule mod_userdir.c > > # AddModule mod_alias.c > > # AddModule mod_access.c > > # AddModule mod_auth.c > > # AddModule mod_so.c > > # AddModule mod_setenvif.c > > # AddModule mod_perl.c > > # AddModule mod_jk.c ***Commented out because it throws a warning that > it's > > already loaded if I try to add it.*** > > > > ServerName localhost > > > > # First, we configure the "default" to be a very restrictive set of > > # > > permissions. # <Directory /> > > Options FollowSymLinks > > AllowOverride None > > </Directory> > > > > # > > # This should be changed to whatever you set DocumentRoot to. # > > <Directory "/usr/local/htdocs/nasis/htdocs"> > > Options FollowSymLinks IncludesNOEXEC MultiViews > > Order allow,deny > > Allow from all > > </Directory> > > > > <VirtualHost *> > > ServerAdmin root > > ServerName localhost > > #DocumentRoot /usr/local/htdocs/nasis/htdocs > > DocumentRoot /usr/local/jakarta-tomcat-4.1.24/webapps/ProbLog > > ScriptAlias /cgi-bin/ "/usr/local/htdocs/nasis/cgi-bin/" > > SetEnv NASISDBNAME nasis52 > > SetEnv NASISROOT /home > > SetEnv INFORMIXDIR /usr/informix > > SetEnv INFORMIXSERVER pand_tcp9 > > SetEnv CATALINA_HOME /usr/local/jakarta-tomcat-4.1.24 > > > > #Alias /examples /usr/local/jakarta-tomcat-4.1.24/webapps/examples > > Alias /ProbLog "/usr/local/jakarta-tomcat-4.1.24/webapps/ProbLog" > > #ScriptAlias /ProbLog/servlet > > "/usr/local/jakarta-tomcat-4.1.24/weba > > pps/ProbLog/WEB-INF/classes" > > > > > > # How to serve servlet requests > > JkMount /ProbLog/*.jsp ajp13 > > JkMount /ProbLog/servlet/* ajp13 > > JkMount /ProbLog/servlets/* ajp13 > > #JkMount /ProbLog/* ajp13 > > JkEnvVar NASISDBNAME nasis52 > > JkEnvVar NASISROOT /home > > JkEnvVar INFORMIXDIR /usr/informix > > JkEnvVar INFORMIXSERVER pand_tcp9 > > JkEnvVar CATALINA_HOME /usr/local/jakarta-tomcat-4.1.24 > > JkEnvVar CATALINA_BASE /usr/local/jakarta-tomcat-4.1.24 > > > > #<Location "/ProbLog/WEB-INF/"> > > #AllowOverride None > > #deny from all > > #</location> > > > > > > <Directory "/usr/local/jakarta-tomcat-4.1.24/webapps/ProbLog"> > > Options FollowSymLinks IncludesNOEXEC ExecCGI > > AllowOverride Options AuthConfig Limit > > Order allow,deny > > Allow from all > > </Directory> > > </VirtualHost> > > > > ********************************************************* > > Web.xml file: > > > > <!-- The servlet mappings for the built in servlets defined above. > > Note > > --> > > <!-- that, by default, the CGI and SSI servlets are *not* mapped. > > You > > --> > > <!-- must uncomment these mappings (or add them to your > > application's own > > --> > > <!-- web.xml deployment descriptor) to enable these services > > --> > > > > <!-- The mapping for the default servlet --> > > <servlet-mapping> > > <servlet-name>default</servlet-name> > > <url-pattern>/</url-pattern> > > </servlet-mapping> > > > > <!-- The mapping for the invoker servlet --> > > > > <servlet-mapping> > > <servlet-name>invoker</servlet-name> > > <url-pattern>/servlet/*</url-pattern> > > </servlet-mapping> > > > > > > <!-- The mapping for the JSP servlet --> > > <servlet-mapping> > > <servlet-name>jsp</servlet-name> > > <url-pattern>*.jsp</url-pattern> > > </servlet-mapping> > > > > > > ********************************************* > > server.xml: (note: only relevant info listed) > > > > <Server port="8005" shutdown="SHUTDOWN" debug="0"> > > <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" > > modJk="/usr/local/apache/libexec/mod_jk.so" > > > > workersConfig="/usr/local/jakarta-tomcat-4.1.24/conf/workers.properties" > > jkWorker="ajp13" > > forwardAll="false" > > noRoot="true"/> > > > > <Service name="Tomcat-Standalone"> > > <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081--> > > <!-- > > <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" > > port="8081" minProcessors="5" maxProcessors="75" > > enableLookups="true" redirectPort="8443" > > acceptCount="100" debug="0" connectionTimeout="20000" > > useURIValidationHack="false" disableUploadTimeout="true" /> > > --> > > > > <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --> > > <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" > > port="8443" minProcessors="3" maxProcessors="75" > > enableLookups="false" > > acceptCount="100" debug="0" scheme="https" secure="true" > > useURIValidationHack="false" disableUploadTimeout="true"> > > <Factory > > className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory" > > clientAuth="false" > > protocol="TLS" > > keystoreFile="conf/.keystore" > > keystorePass="changeit" > > /> > > </Connector> > > > > <!-- Define the top level container in our container hierarchy --> > > <Engine name="Standalone" defaultHost="localhost" debug="0"> > > > > <!-- Define the default virtual host --> > > <Host name="localhost" debug="0" > > appBase="/usr/local/jakarta-tomcat-4.1.24/webapps/" > > unpackWARs="true" autoDeploy="true"> > > > > > > <Listener > > className="org.apache.ajp.tomcat4.config.ApacheConfig"append="true" > > forwardAll="false" > > modJk="/usr/local/apache/libexec/mod_jk.so" > > workersConfig="conf/workers.properties" > > jkWorker="ajp13"/> > > > > <!-- ProblemLog Context (higher debug number = more output) --> > > <Context path="/ProbLog" docBase="ProbLog" debug="5" > > reloadable="true" crossContext="true"> > > <Logger className="org.apache.catalina.logger.FileLogger" > > prefix="localhost_problog_log." suffix=".txt" > > timestamp="true"/> > > <Resource name="jdbc/problog" auth="SERVLET" > > type="javax.sql.DataSource" /> > > <ResourceParams name="jdbc/problog"> > > <parameter> > > <name>username</name> > > <value>nasisro</value> > > </parameter> > > <parameter> > > <name>password</name> > > <value>silver_</value> > > </parameter> > > <parameter> > > <name>driverClassName</name> > > <value>com.informix.jdbc.IfxDriver</value> > > </parameter> > > <parameter> > > <name>url</name> > > > > <value>jdbc:informix-sqli://pandemic:1525/problog:informixserver=pan > > d_ > > tc > > p9</value> > > </parameter> > > </ResourceParams> > > > > </Context> > > > > </Host> > > > > </Engine> > > > > </Service> > > > > </Server> > > > > -------------------------------------------------------------------- > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]