conf/web.xml gets truncated
bwallis42 Aug 5, 2004 1:38 AMI'm running JBoss 3.2.3 on gentoo linux (kernel 2.6.7, libc 3.3.2) with jdk 1.4.2_05.
When I startup the jboss server it starts OK but then when starts up tomcat (log extract below) it gets a parse error and fails to deploy any of the web apps. The parse error is due to the default web.xml (in conf) being empty. But it was OK before I started jboss. Watching the conf directory you can see it is truncated about 10 seconds after the server starts (about 1/3rd of the startup time).
If I change the protection on the web.xml file so it is not writable then everything starts up OK, no error at all.
My JBoss configuration is not quite out of the box, the server configuration is a little modified for our production environment, but it is pretty close the original.
If I start an out of the box JBoss 3.2.3 system I notice that the web.xml last modified time is changed to the current time so someone is opening the file for write somewhere.
brian wallis...
---------------------------------------
2004-08-05 15:24:22,962 INFO [STDOUT] Apache Tomcat/4.1.29
2004-08-05 15:24:23,287 INFO [org.apache.coyote.http11.Http11Protocol] Initializing Coyote HTTP/1.1 on port 19201
2004-08-05 15:24:23,288 INFO [org.jboss.web.localhost.Engine] CoyoteConnector Coyote can't register jmx for protocol
2004-08-05 15:24:23,487 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on port 19201
2004-08-05 15:24:23,552 INFO [org.jboss.web.localhost.Engine] CoyoteConnector Coyote can't register jmx for protocol
2004-08-05 15:24:23,572 INFO [org.apache.jk.common.ChannelSocket] JK2: ajp13 listening on /0.0.0.0:19210
2004-08-05 15:24:23,578 INFO [org.apache.jk.server.JkMain] Jk running ID=0 time=1/26 config=null
2004-08-05 15:24:23,579 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] OK
2004-08-05 15:24:23,579 INFO [org.jboss.deployment.MainDeployer] Adding deployer: org.jboss.web.tomcat.tc4.EmbeddedTomcatService@bf1f20
2004-08-05 15:24:23,579 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/home/brianw/views/wallis_flatcat/vobs/JavaCommon_src/jboss/configs/
default/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
2004-08-05 15:24:23,720 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/home/brianw/views/wallis_flatcat/vobs/JavaComm
on_src/jboss/configs/default/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
2004-08-05 15:24:24,063 ERROR [org.apache.commons.digester.Digester] Parse Fatal Error at line -1 column -1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.