Is there a way to configure the action servlet to use specific JAXP
properties to parse struts-config.xml?

For example is there a way to set the following for struts-config parsing:

javax.xml.parsers.DocumentBuilderFactory="com.caucho.xml.parsers.XmlDocument
BuilderFactory"
javax.xml.parsers.SAXParserFactory="com.caucho.xml.parsers.XmlSAXParserFacto
ry"
javax.xml.transform.TransformerFactory="com.caucho.xsl.Xsl"

Any help is greatly appreciated.

Thanks,

--Mike





-----Original Message-----
From: Michael Marrotte [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 7:37 AM
To: Struts Users Mailing List
Subject: Struts and Crimson


I only get the below stack trace when crimson is rolled into the JRE
ext/lib -- the
struts-config.xml file is well formed.  Administrating the JRE is out of my
hands.  Is there a way to tell the container to use it's own XML parser? Any
help is greatly appreciated.

root 20030317 183520.344 ERROR Parse Error at line 13 column -1: Element
"struts-config" does not allow "form-beans" here.
org.xml.sax.SAXParseException: Element "struts-config" does not allow
"form-beans" here.
        at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
        at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:349)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
        at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
        at org.apache.commons.digester.Digester.parse(Digester.java:1543)
        at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
44)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
        at app.ActionServletTtpayAdmin.init(ActionServletTtpayAdmin.java:15)
        at javax.servlet.GenericServlet.init(GenericServlet.java:82)
        at
com.caucho.server.http.Application.createServlet(Application.java:3109)
        at
com.caucho.server.http.Application.loadServlet(Application.java:3060)
        at
com.caucho.server.http.Application.initServlets(Application.java:1921)
        at com.caucho.server.http.Application.init(Application.java:1847)
        at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:837)
        at
com.caucho.server.http.VirtualHost.restartWarDir(VirtualHost.java:744)
        at
com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1215)
        at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
        at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
)
        at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
        at java.lang.Thread.run(Thread.java:479)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to