On Wed, 26 Jun 2002, David Bishop wrote: > Didn't help. I should point out that I've used tomcat 3.2 for about > a year, so I'm *somewhat* familiar with how it works. It's just the > new mod_webapp stuff (vs. mod-jk.conf) that's confusing me/not > working correctly. Is there *nothing* that I should have to do, > besides that snippet from my server.xml, to "deploy" a web-app, so > as to make it available through mod_webapp? > [ ... ] > > > it's log: > > > > > > Mon Jun 24 18:23:54 2002] [error] Re-Trying to deploy connections > > > [Mon Jun 24 18:23:54 2002] [error] Connection "webappConn" cannot connect > > > [Mon Jun 24 18:23:54 2002] [error] Cannot open connection "webappConn" > > > [Mon Jun 24 18:23:54 2002] [error] Web-application not yet deployed
Note the error here, it's saying it can't connect (to the Tomcat side of the connector). [ ... ] > > > > of the server-noexamples.xml.config, with very few modifications. The > > > > following is in my httpd.conf: > > > > WebAppConnection webappConn warp pedh12.micron.com:8009 > > > > WebAppDeploy examples webappConn /examples These lines tell Apache what to do with Tomcat requests, i.e. what should be forwarded to Tomcat and where to find Tomcat. I notice you're telling it to find the Tomcat side of the connector at pedh12.micron.com:8009 -- is that really what you want? Is Tomcat running on a different machine than apache? Usually you have "localhost" as the host, which indicates (to Apache) that Tomcat is running on the same machine. That's one thing to look at. And if you really do have Tomcat running on that other machine, you need to check that it's up and running OK. (Oh, BTW, can you get me some memory cheap? :-) > > > > The following is the only section that I have made changes to in the > > > > server.xml: > > > > <Service name="Tomcat-Apache"> > > > > <Connector > > > > className="org.apache.catalina.connector.warp.WarpConnector" > > > > port="8008" minProcessors="5" maxProcessors="75" Here's something else to look at. This tells Tomcat where to run its side of the connector. You have the port set to 8008. But above you listed 8009. They must be the same. > > > > enableLookups="true" > > > > acceptCount="10" debug="0"/> > > > > <Engine className="org.apache.catalina.connector.warp.WarpEngine" > > > > name="Apache" defaultHost="pedh12.micron.com" debug="0" > > > > appBase="webapps"> > > > > <Logger className="org.apache.catalina.logger.FileLogger" > > > > prefix="apache_log." suffix=".txt" > > > > timestamp="true"/> > > > > <Realm className="org.apache.catalina.realm.MemoryRealm" /> > > > > <Host name="localhost" debug="0" appBase="webapps" > > > > unpackWARs="true"> > > > > <Context path="/examples" > > > > docBase="webapps/examples" > > > > crossContext="false" > > > > debug="0" > > > > reloadable="false" > > > > > </Context> > > > > </Host> > > > > </Engine> > > > > </Service> > > > > > > > > That bit is the only part that is "black magic" to me. I have *no* > > > > idea if I'm supposed to be putting the host and context tags as > > > > children to the Tomcat-Apache service tag. Basically, I guessed and > > > > added things until it started. And, it works in standalone mode (i.e., > > > > pedh12:8080/examples works). However, when I try to goto > > > > pedh12/examples, well, examples returns "no such directory, etc", while > > > > /examples/ returns the > > > > "Web-application not yet deployed, 404" message. Whew. That took a > > > > while > > > > > > > > :-) Any ideas? This is starting to get painful.... > > > > > > > > Thanks, and have a great day! Milt Epstein Research Programmer Systems and Technology Services (STS) 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]>
