We are planning on using Glassfish on a production server but have two problems with deploying war files. We are using Glassfish build 58 rc1 running on Linux kernel 2.6.18-8.el5 / SMP
1. The first time one of our war files is deployed an error occurs when it is launched. On deploying the war file a second time the program launchs successfully. Even stranger is that the third deployment of the same war file results in the error but the fourth deployment gives a successful launch of the program.
2. A war file is deployed and the program run successfully in Glassfish but on stopping and re-starting Glassfish the program no longer runs and an error occurs.
Can anyone explain what needs to be done to ensure reliable deployment of war files?
One of the errors we see is
[#|2007-08-15T07:00:05.781-0400|SEVERE|sun-appserver9.1|org.apache.catalina.startup.ContextConfig|_ThreadID=14;_ThreadName=pool-1-thread-7;_RequestID=4bcd28fc-e7b1-4188-b6f4-93a97fcfd635;|PWC3026: Parse error in default web.xml
java.lang.NoSuchMethodException: No such accessible method: addWatchedResource() on object: com.sun.enterprise.web.WebModule
at com.sun.org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at com.sun.org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at com.sun.org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at com.sun.org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:864)
at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:810)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:949)
at com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:160)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:143)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:6342)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4840)
at com.sun.enterprise.web.WebModule.start(WebModule.java:327)
at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:296)
at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:330)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
[Message sent by forum member 'talman' (talman)]
http://forums.java.net/jive/thread.jspa?messageID=231021