Also, when you have multiple named virtual hosts, what are you supposed to put in workers.properties for worker.worker1.host?
To be clear, each worker is an INSTANCE of Tomcat, right? I can have a single instance of Tomcat serve multiple virtual domains, right? So, which of my multiple virtual hosts should be the one that I specify in worker.worker1.host=www...? Thanks, Lee -----Original Message----- From: Lee Grey [mailto:leegrey@;mindspring.com] Sent: Friday, November 15, 2002 6:45 AM To: [EMAIL PROTECTED] Subject: Apache 2, Tomcat 4, Lee 0 I've fought the good fight all night, but I'm stuck. Here's the first log I got: 2002-11-15 05:55:00 StandardContext[]: Starting 2002-11-15 05:55:00 StandardContext[]: Processing start(), current available=false 2002-11-15 05:55:00 StandardContext[]: Configuring default Resources 2002-11-15 05:55:00 StandardContext[]: Configuring non-privileged default Loader 2002-11-15 05:55:00 StandardContext[]: Configuring default Manager 2002-11-15 05:55:00 StandardContext[]: Processing standard container startup 2002-11-15 05:55:01 WebappLoader[]: Deploying class repositories to work directory /usr/jakarta-tomcat-4.1.12/work/Apache/www.urlinone.com/_ 2002-11-15 05:55:01 WebappLoader[]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/urlinone/WEB-INF/classes 2002-11-15 05:55:01 ContextConfig[]: ContextConfig: Processing START 2002-11-15 05:55:02 StandardContext[]: Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 2002-11-15 05:55:03 StandardContext[]: Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role name tomcat used in an <auth-constraint> without being defined in a <security-role> 2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role name role1 used in an <auth-constraint> without being defined in a <security-role> 2002-11-15 05:55:04 ContextConfig[]: Accumulating TLD resource paths 2002-11-15 05:55:04 ContextConfig[]: Scanning TLD at resource path '/WEB-INF/jsp/debug-taglib.tld' 2002-11-15 05:55:04 ContextConfig[] Exception processing TLD at resource path /WEB-INF/jsp/debug-taglib.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/jsp/debug-taglib.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010 ) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) ----- Root Cause ----- java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/jsp/debug-taglib.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1002 ) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2002-11-15 05:55:04 ContextConfig[]: Pipline Configuration: 2002-11-15 05:55:04 ContextConfig[]: org.apache.catalina.core.StandardContextValve/1.0 2002-11-15 05:55:04 ContextConfig[]: ====================== 2002-11-15 05:55:04 ContextConfig[]: Marking this application unavailable due to previous error(s) 2002-11-15 05:55:04 NamingContextListener[/Apache/www.urlinone.com]: Creating JNDI naming context 2002-11-15 05:55:04 StandardManager[]: Seeding random number generator class java.security.SecureRandom 2002-11-15 05:55:05 StandardManager[]: Seeding of random number generator has been completed 2002-11-15 05:55:05 StandardContext[]: Context startup failed due to previous errors 2002-11-15 05:55:05 StandardContext[]: Stopping 2002-11-15 05:55:05 StandardContext[]: Stopping filters 2002-11-15 05:55:05 StandardContext[]: Processing standard container shutdown 2002-11-15 05:55:05 ContextConfig[]: ContextConfig: Processing STOP 2002-11-15 05:55:05 StandardContext[]: Sending application stop events 2002-11-15 05:55:05 StandardContext[]: Releasing document base 2002-11-15 05:55:05 StandardContext[]: Stopping complete As for the security warnings, tomcat-users.xml contains: <?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager"/> <role rolename="admin"/> <user username="abc" password="def" roles="admin,manager"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="role1" password="tomcat" roles="role1"/> <user username="both" password="tomcat" roles="tomcat,role1"/> </tomcat-users> What do I need to do to get rid of the security warnings on tomcat and role1? The exception above was due to the fact that Tomcat was hunting for /WEB-INF/jsp/debug-taglib.tld because it was listed in web.xml. I commented out the following from web.xml, since I'm not using any tag libraries in this web application: <taglib> <taglib-uri> http://jakarta.apache.org/tomcat/debug-taglib </taglib-uri> <taglib-location> /WEB-INF/jsp/debug-taglib.tld </taglib-location> </taglib> <taglib> <taglib-uri> http://jakarta.apache.org/tomcat/examples-taglib </taglib-uri> <taglib-location> /WEB-INF/jsp/example-taglib.tld </taglib-location> </taglib> After commenting out the above from web.xml and attempting to start Tomcat, I get the following in my log: 2002-11-15 06:16:02 StandardHost[www.urlinone.com]: Removing web application at context path 2002-11-15 06:16:02 StandardHost[www.urlinone.com]: ContainerBase.removeChild: stop: LifecycleException: Container StandardContext[] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3569) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036) at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.ja va:420) at org.apache.catalina.core.StandardHost.remove(StandardHost.java:852) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:919) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:899) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:370) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1221) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1233) at org.apache.catalina.core.StandardService.stop(StandardService.java:554) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2224) at org.apache.catalina.startup.Catalina.start(Catalina.java:541) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) What is a StandardContext, and why is it not being started? Here is my server.xml: <Server port="8005" shutdown="SHUTDOWN" debug="0"> <!-- Define an Apache-Connector Service --> <Service name="Tomcat-Apache"> <Engine name="Apache" defaultHost="www.ebayrelay.com" debug="0"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="apache_log." suffix=".txt" timestamp="true"/> <!-- Access log processes all requests for this virtual host. --> <Connector className="org.apache.tomcat.service.PoolTcpConnector"> <Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/> <Parameter name="port" value="8009"/> </Connector> <Host name="www.urlinone.com" debug="0" appBase="/var/tomcat4/webapps/urlinone" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="" debug="1"/> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="urlinone_log." suffix=".txt" pattern="common" resolveHosts="false"/> </Host> </Engine> </Service> </Server> My web.xml file is the monster that comes with Tomcat's examples web app. There's so much in there that I'm sure I don't need, but I have no idea what I do need. I've written my own servlets, but I think I need some kind of invoker. Yet, I can't get things to work until I include filters, validators, compressionFilters, filters, listeners, etc. I'm not sure how to strip all of this down to the minimal amount of stuff that I need to run my servlets. Is any of this documented? The Tomcat examples are nice, but it would also be nice to have a bare bones template to start with. Any help is greatly appreciated. I've made some progress, but there are subtleties here that I'm still not in touch with. (Sorry for the length of this post.) Thanks, Lee Grey Grey Matter http://www.URLinOne.com ____________________________________________ If you've ever opened more than one browser window at the same time, you need URL in One at http://www.URLinOne.com. There's no software to install, and it's free! -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
