First, "install" does not use HTTP PUT. You are using "deploy" which does use it. Second, this has always worked for me. Are you sure it is the server.xml that is the invalid xml? What about the web.xml in your context? I'm not saying that there couldn't be a bug in Digester where it write improper xml. I'm just saying I've never had that problem. What version of Tomcat are you using?
Jake
At 02:14 PM 2/19/2003 +0000, you wrote:
Does the install ant task from 'catalina-ant.jar' work for anyone?
When I try to use it works fine until I restart the server -
it seems like the install task uses a HTTP PUT to put the warfile
under work/ then catalina edits its own server.xml so the new
context will survive a reboot.
This is just what I need, but it seems to write invalid xml back to it.
Next time I restart tomcat I get:
java.lang.IllegalAccessException: org/apache/catalina/core/StandardContextValve
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:2
53)
at org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser
.java:459)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractX
MLDocumentParser.java:221)
at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.
java:595)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XML
DocumentFragmentScannerImpl.java:747)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispa
tcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocu
etc, etc.
A diff of my (thankfully backed up) server.xml shows a *lot* of changes -
it's not like I'm doing anything funny in there:
I have a vhost, a JDBCRealm, and that's it.
I suppose I can work around it by copying the warfile to the appBase
and restarting the server, but that's highly clanky. Has anyone had more
luck? I was hoping to use this for remote deployment, so the HTTP PUT
is very useful - am I right in thinking that if the warfile was copied to
appBase (rather than a subdirectory of work), then the auto-deploy
festure would mean you wouldn't need to restart tomcat at all?
Getting rid of the webapp later would be a pain though..
--
Rasputin :: Jack of All Trades - Master of Nuns
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
