I usually put my html and jsp files in CATALINA_HOME/webaps/XXX I said XXX to represent the context you are planning to use. I would hope your use of examples is just an example, because I would think it might conflict with the "distribution examples"
Best Wishes At 07:45 PM 12/21/2002 -0500, you wrote: >Hi all :) > >So this is where I stand. I added all appropriate (I think) JkMount >statements, in my httpd.conf file instead of using the mod_jk.conf. My >situation: http://localhost works, >http://localhost:8080/examples/servlets/index.html works, >http://localhost/examples/servlets.index.html does NOT work. When I try to >attempt any Tomcat pages without the :8080 it hangs indefinitely. > >I am getting pretty desperate, so I am seriously considering opting for >mod_webapp, but I would prefer to get this working... On Tomcat startup no >problems. On Apache startup, it shows mod_jk is configured. After >attempting to access some pages I checked the logs and the only errors seems >to occur in the mod_jk.log file (I attached a WordPad doc of the errors). > >I'm starting to wonder if the following might be my problem. Stupid >question, but are my static pages supposed to be in my webapps folder in my >$CATALINA_HOME directory??? If so, then the last thing Justin mentioned to >add into my httpd.conf file would now make sense: > > # Static files in the examples webapp are served by apache > JkAutoAlias /var/tomcat4/webapps/dev.jscs-inc.com > >I omitted this, because I am serving my static pages from the /var/www/html/ >directory (that is my document root in my httpd.conf file), and didn't >understand what this directive meant. Could it be that this is my problem? > >Also, I notice that the worker listens on port 8009. Although my server has >a public IP address, it is accessed through a firewall. Therefor I needed >to open ports 80, 8080, etc on my firewall in order for the pages to be >viewed. Do I need to open port 8009? > >Thanks in advance! "Calling all cars" ;) >Denise > >-----Original Message----- >From: Bill Barker [mailto:[EMAIL PROTECTED]] >Sent: Saturday, December 21, 2002 1:53 AM >To: [EMAIL PROTECTED] >Subject: Re: Configuring mod_jk - Again! > > >The 'LoadModule' directive must occur only once, and at top-level (e.g. >outside of any VirtualHost directive). The same goes for JkWorkersFile, and >JkLogFile (and related). > >"Denise Mangano" <[EMAIL PROTECTED]> wrote in message >5D83C44941AFD4118B6F0002B302984F4385BB@EXCHANGE_SERVER">news:5D83C44941AFD4118B6F0002B302984F4385BB@EXCHANGE_SERVER... >> Silly question - does the LoadModule statement stay grouped with the >JkMoutn >> directives, or does that have to be placed with the other LoadModule >> directives... >> >> Thanks... (Thanks for piecing that together - I am going to give that >> a whirl)... >> >> Denise Mangano >> Help Desk Analyst >> Complus Data Innovations, Inc. >> >> >> -----Original Message----- >> From: Justin L. Spies [mailto:[EMAIL PROTECTED]] >> Sent: Friday, December 20, 2002 5:11 PM >> To: 'Tomcat Users List' >> Subject: RE: Configuring mod_jk - Again! >> >> >> Denise, >> Let me see if this helps you... >> >> In httpd.conf, try (I've cut up your example from below): >> >> LoadModule jk_module modules/mod_jk.so >> JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties >> JkLogFile /usr/local/tomcat/logs/mod_jk.log >> JkLogLevel info >> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " >> JkRequestLogFormat "%w %r %s %T" >> >> >> # Send servlet for context /examples to worker named worker1 >> JkMount /servlet/* ajp13 >> JkMount /examples/jsp/*.jsp ajp13 >> JkMount /examples/servlet/* ajp13 >> >> # Send JSPs for context /examples to worker named worker1 >> JkMount /*.jsp ajp13 >> JkMount /admin/* ajp13 >> JkMount /manager/* ajp13 >> >> # Static files in the examples webapp are served by apache >> JkAutoAlias /var/tomcat4/webapps/dev.jscs-inc.com >> >> # This will fix the missing images for you... >> Alias /examples /var/tomcat4/webapps/dev.mydomain.com/examples >> Alias /tomcat-docs >> /var/tomcat4/webapps/dev.mydomain.com/tomcat-docs >> >> # The following line prohibits users from directly access WEB-INF >> <Location /examples/WEB-INF/> >> AllowOverride None >> deny from all >> </Location> >> >> >> >> Sincerely, >> Pantek Incorporated >> Justin L. Spies >> >> URI: http://www.pantek.com >> Ph 440.519.1802 >> Fax 440.248.5274 >> Cell 440.336.3317 >> >> >> >> -----Original Message----- >> From: Denise Mangano [mailto:[EMAIL PROTECTED]] >> Sent: Friday, December 20, 2002 5:03 PM >> To: 'Tomcat Users List' >> Subject: RE: Configuring mod_jk - Again! >> >> >> Ok, now I added the JkMount /examples/* worker1 and nothing works. >> Everything hangs indefinitely. I had all this placed at the end of my >> httpd.conf file so it would apply to all virtual hosts. I'm completely >> at >> a loss, and quite frustrated actually : ( At this point I do not care >> if the examples work, I just want to get my app that was working >> before back up... >> >> What on earth could possibly be going wrong? >> >> Denise Mangano >> Help Desk Analyst >> Complus Data Innovations, Inc. >> >> >> -----Original Message----- >> From: Milt Epstein [mailto:[EMAIL PROTECTED]] >> Sent: Friday, December 20, 2002 3:56 PM >> To: Tomcat Users List >> Subject: RE: Configuring mod_jk - Again! >> >> >> On Fri, 20 Dec 2002, Denise Mangano wrote: >> >> > Well I tried it. And I added additional JkMount statements: >> > >> > LoadModule jk_module modules/mod_jk.so >> > JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties >> > JkLogFile /usr/local/tomcat/logs/mod_jk.log >> > JkLogLevel info >> > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %r >> > %s %T" JkMount /*.jsp worker1 >> > JkMount /tomcat-docs/*.jsp worker1 >> > JkMount /admin/j_security_check worker1 >> > JkMount /admin/*.do worker1 >> > JkMount /admin/*.jsp worker1 >> > JkMount /webdav/*.jsp worker1 >> > JkMount /examples/jsp/security/protected/j_security_check worker1 >> > JkMount /examples/snoop worker1 JkMount /examples/servlet/* worker1 >> > JkMount /examples/CompressionTest worker1 JkMount /examples/*.jsp >> > worker1 JkMount /examples/servletToJsp worker1 >> > JkMount /examples/SendMailServlet worker1 >> > JkMount /manager/html/* worker1 >> > JkMount /manager/* worker1 >> > JkMount /manager/*.jsp worker1 >> > >> > For workers.properties I first tried: >> > worker.list=worker1 >> > worker.worker1.type=ajp13 >> > worker.worker1.host=localhost >> > worker.worker1.port=8009 >> > >> > >> > Now when I go to http://localhost/index.jsp it displays the tomcat >> > home page, but the images are missing (looks like the path is not >> > right)... >> >> You don't really give enough information to tell what's going on with >this, >> but sometimes there are problems with images that are unrelated to >> other problems (e.g. the other problems you're having here). These >> have to do with where your images are (e.g. under the webapp, or under >> some images directory off the Apache DocumentRoot), and how you >> reference them (e.g. relatively or absolutely). >> >> >> > Also, I can't get to any other page. For example. I try going to >> > http://localhost/examples/servlets/ and I get a HTTP 404 Page not >> > found error. Any further suggestions? >> >> You have nothing, that is, no JkMount directive, that would forward >> that >URL >> to tomcat. (BTW, that's often the first step in figuring out the >> problem with a page, especially if it's a 404, seeing whether it's >> Tomcat or >Apache >> that's returning the 404. You can do that by looking at the returned >> page or seeing what's in the logs.) I think you need something like: >> >> JkMount /examples/* worker1 >> >> Also, this will allow you to get rid of several of the JkMount >> directives you've shown above. >> >> >> > I tried changing workers.properties to: >> > worker.list=worker1 >> > worker.worker1.type=ajp13 worker.worker1.host=www.mydomainname.com >> > worker.worker1.port=8009 >> > >> > But the same situation... Thanks though - this is definitely a >> > start! >> > >> > Denise Mangano >> > Help Desk Analyst >> > Complus Data Innovations, Inc. >> > >> > >> > -----Original Message----- >> > From: Iran Marcius [mailto:[EMAIL PROTECTED]] >> > Sent: Friday, December 20, 2002 1:18 PM >> > To: 'Tomcat Users List' >> > Subject: RES: Configuring mod_jk - Again! >> > >> > >> > So lets go! >> > >> > In my case, I put this configurarions in server, I mean, outside any >> > Apache directive. You can put it, for example, right bellow "Listen" >> > apache directive (coincidentally where we find the first DSO >> > directives, just a detail). >> > >> > That "worker1" is na arbitrary name I picked for my worker (see >> > workers.properties file). You can change it if you want, but the >> > names >> >> > must be concise in httpd.conf and workers.properties. >> > >> > About the ROOT directory, AFAIK, its just a mapping to tell apache >> > what must be forwarded to tomcat, so, in the example I sent you >> > (JkMount /test worker1, JkMount /test/* worker1), if you type >> > http://<host>/test or http://<host>/test/<anything>, apache will >> > forward the request to tomcat. >> > >> > Hope it helps. >> > >> > iran >> > >> > -----Mensagem original----- >> > De: Denise Mangano [mailto:[EMAIL PROTECTED]] >> > Enviada em: sexta-feira, 20 de dezembro de 2002 15:59 >> > Para: 'Tomcat Users List' >> > Assunto: RE: Configuring mod_jk - Again! >> > >> > >> > At this point I am willing to try anything - I am getting >> > desperate... >> > >> > Where in the httpd.conf file would that information go? Also what >> > is worker1? Should the last two JkMount statements point to my ROOT >> > directory? >> > >> > Thanks. >> > >> > Denise Mangano >> > >> > >> > >> > -----Original Message----- >> > From: Iran Marcius [mailto:[EMAIL PROTECTED]] >> > Sent: Friday, December 20, 2002 11:30 AM >> > To: 'Tomcat Users List' >> > Subject: RES: Configuring mod_jk - Again! >> > >> > >> > Hi Denise. I successfully integrated apache 2.0.43 and tomcat 4.1.16 >> > with a simplistic configuration. >> > >> > httpd.conf >> > ---------- >> > LoadModule jk_module modules/mod_jk-2.0.43.so >> > JkWorkersFile conf/workers.properties >> > JkLogFile logs/mod_jk.log >> > JkLogLevel info >> > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %r >> > %s %T" JkMount /test worker1 >> > JkMount /test/* worker1 >> > >> > in workers.properties >> > --------------------- >> > worker.list=worker1 >> > worker.worker1.type=ajp13 >> > worker.worker1.host=localhost >> > worker.worker1.port=8009 >> > >> > ...and nothing more. It worked for me. >> > >> > About the static mappings you did, I read it from the manual: >> > >> > Caution: If Apache is configured to serve static pages for a web >> > application it bypasses any security contraints you may have >> > configured in your web application web.xml config file. >> > >> > That discouraged me to map static pages. >> > >> > Hope it help. >> > >> > iran >> [ ... ] >> >> Milt Epstein >> Research Programmer >> Integration and Software Engineering (ISE) >> Campus Information Technologies and Educational Services (CITES) >University >> of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] >> >> >> -- >> To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: >> <mailto:[EMAIL PROTECTED]> >> >> -- >> To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: >> <mailto:[EMAIL PROTECTED]> >> >> >> >> -- >> To unsubscribe, e-mail: >> <mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: >> <mailto:[EMAIL PROTECTED]> > > > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>