Thanks to all, i solved this problem creating an ServletContextListener
and executing this before all other listeners of my application and put
my settings in contextInitialized method like this:
public void contextInitialized(ServletContextEvent event) {
try {
maybe your xml does not match the struts2 DTD (defined at top of struts.xml) -
try checking xml in something like XMLSpy for invalid xml as error says.
Date: Wed, 20 Oct 2010 10:34:01 +0900
Subject: Re: Can't deploy on server
From: liying.cn.2...@gmail.com
To: user@struts.apache.org
XML parsers are accessed via factories from Java code. Which concrete
parser will be used is something that will be decided at runtime by the
factory code, which is implemented by the app server. Your app server is
using a concrete implementation by Oracle that is causing the exception.
Thanks for your answers, i try put next code into web.xml file:
!-- xml --
system-property
javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl/
system-property
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl/
!-- xslt --
Are you using OC4J?
These pages may help:
http://forums.oracle.com/forums/thread.jspa?threadID=363566
http://forums.oracle.com/forums/thread.jspa?forumID=46messageID=726074threadID=248962
http://forums.oracle.com/forums/thread.jspa?threadID=367999tstart=0
Thanks for your answers, i try put next code into web.xml file:
!-- xml --
system-property
javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl/
system-property
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl/
!-- xslt --
Is your production environment based on OC4J?
It's look like there is something wrong in your classpath.
It's just a guess, but I'd look at JXTransformerHandler class
(starting from here the
http://www.findjar.com/class/oracle/xml/jaxp/JXTransformerHandler.html)
--
Maurizio Cucchiara
It looks like:
1, Oracle's XML parser is chosen to parse your xml configuration file.
2, And it failed. (Don't know why and don't interest to know)
You can try to delete Oracle's XML parser
and use another one.
See this page:
https://issues.apache.org/activemq/browse/SM-169
for more information.
8 matches
Mail list logo