logging question
I am trying to redirect standard out to a different file for a particular application. I have tried to set up a context.xml file but everything is still being written to catalina.out. server.xml Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true swallowOutput=true / Realm className=org.apache.catalina.realm.JDBCRealm connectionName=xxx connectionPassword=xxx connectionURL=jdbc:mysql://x.x.x.x:3306/xxx driverName=com.mysql.jdbc.Driver userTable=imsuser userNameCol=userid userCredCol=passwordid userRoleTable=imsrole roleNameCol=userrole / Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true swallowOutput=true / /Host /Engine /Service /Server context.xml Context path=/IMS reloadable=true docBase=/u1/Apache/tomcat/webapps/IMS Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=ims_log. suffix=.txt timestamp=true SwallowOutput=true / /Context Thanks in Advance, Scott Pippin
webapps directory disappears
Sometimes when I undeploy an application on Tomcat 5.0.28 the entire webapps directory disappears. Has anyone else had problems with this? Tomcat 5.0.28 AIX 5.2.10 Apache 2.x Thanks, Scott Pippin [EMAIL PROTECTED]
help with context.xml
I am trying to set up a context for an application called IMS. I upload the war file to tomcat and it sticks the application and the .war under webapps. I am trying to set up the Context to redirect the logs to a different log than catalina.out. Inside my webapp I have the following: Context path=/IMS reloadable=true docBase= Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=ims_log. suffix=.txt timestamp=true SwallowOutput=true / /Context Deployed application from context file file:/u1/Apache/tomcat/conf/Catalina/localhost/IMS.xml but the catalina.out file shows: 2004-11-22 16:55:18 StandardContext[/manager]HTMLManager: install: Installing context configuration at 'file:/u1/Apache/tomcat/conf/Catalina/localhost/IMS.xml' from 'jar:file:/u1/Apache/tomcat/webapps/IMS.war!/' 2004-11-22 16:55:22 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost' 2004-11-22 16:55:22 StandardHost[localhost]: Error deploying application at context path null java.lang.IllegalStateException: Context path /IMS is already in use at org.apache.commons.digester.Digester.createSAXException(Digester.java(Inlined Compiled Code)) at org.apache.commons.digester.Digester.createSAXException(Digester.java(Inlined Compiled Code)) at org.apache.commons.digester.Digester.endElement(Digester.java(Compiled Code)) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76) (...) What have I set up wrong?? Thanks in advance, Scott Pippin [EMAIL PROTECTED]
redirect catalina.out
I am trying to redirect catalina.out to an application specific log file. I thought I had it set up but it is still writing to catalina.out. server.xml Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true swallowOutput=true / Realm className=org.apache.catalina.realm.JDBCRealm connectionName=ims connectionPassword=ims connectionURL=jdbc:mysql://x.x.x.x:3306/ims driverName=com.mysql.jdbc.Driver userTable=imsuser userNameCol=userid userCredCol=passwordid userRoleTable=imsrole roleNameCol=userrole / Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true swallowOutput=true / /Host /Engine /Service /Server context.xml ?xml version=1.0 encoding=utf-8 ? Context path=/IMS reloadable=true debug=4 swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger prefix=ims_log. suffix=.txt timestamp=true verbosity=4 / Logger className=org.apache.catalina.logger.SystemErrLogger prefix=ims_err. suffix=.txt timestamp=true verbosity=4 / Logger className=org.apache.catalina.logger.SystemOutLogger prefix=ims_out. suffix=.txt timestamp=true verbosity=4 / /Context Thanks in advance, Scott Pippin [EMAIL PROTECTED]
logging question
I am trying to send the return values/errors for an application to a different stdout file. I set up everything but stdout is being written to catalina.out. server.xml Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0 / Environment name=simpleValue type=java.lang.Integer value=30 / Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved / ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.JDBCRealm connectionName=ims connectionPassword=ims connectionURL=jdbc:mysql://10.131.1.200:3306/ims driverName=com.mysql.jdbc.Driver userTable=imsuser userNameCol=userid userCredCol=passwordid userRoleTable=imsrole roleNameCol=userrole / Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host /Engine /Service /Server context.xml under the application/web-INF directory ?xml version=1.0 encoding=utf-8 ? Context path=/IMS reloadable=true docBase=IMS debug=4 Logger className=org.apache.catalina.logger.FileLogger prefix=ims_log. suffix=.txt timestamp=true verbosity=4 / Logger className=org.apache.catalina.logger.SystemErrLogger prefix=ims_err. suffix=.txt timestamp=true verbosity=4 / Logger className=org.apache.catalina.logger.SystemOutLogger prefix=ims_out. suffix=.txt timestamp=true verbosity=4 / /Context Tomcat 5.0.28/Apache2 Have I missed something? Thanks, Scott Pippin [EMAIL PROTECTED]