struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordi Fernandez <jordi.fernan...@esilog.com>
Subject Re: Can't deploy on server
Date Wed, 20 Oct 2010 09:53:02 GMT
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.

Usually, there is a way to tell the app server which concrete XML parser 
implementation you want to use. In some cases you can specify that you 
want the app server to look first in the WEB-INF/lib of your app before 
trying the app server general classpath. In any case, look at the app 
server docs for the procedure to override how the xml parser is chosen.

On 20/10/2010 0:03, Rodrigo Esteban Cares Guarda wrote:
> Hi,
>
> I'm trying to deploy an aplication writed in struts 2 and work perfect
> in my computer but when i put the generated war on the server this can't
> run and output this messages:
>
> 2010-10-19 18:45:07,228 INFO
> org.apache.tiles.impl.BasicTilesContainer.init:116 - Initializing Tiles2
> container. . .
> 2010-10-19 18:45:07,251 INFO
> org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory:204 - Tiles2 container
initialization complete.
> 2010-10-19 18:45:07,252 INFO
> org.apache.tiles.access.TilesAccess.setContainer:95 - Publishing
> TilesContext for context:
> org.apache.catalina.core.ApplicationContextFacade
> 2010-10-19 18:45:07,318 DEBUG
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.debug:68 - Loading
action configurations from: struts-default.xml
> 2010-10-19 18:45:07,325 DEBUG
> com.opensymphony.xwork2.util.FileManager.debug:68 - Creating revision
> for URL:
> jar:file:/usr/local/jakarta-tomcat-5.0.28/webapps/Mavis2/WEB-INF/lib/struts2-core-2.2.1.jar!/struts-default.xml
>
> XSL-1103: (Fatal Error) DOMResult can not be this kind of node.
> 2010-10-19 18:45:07,347 ERROR
> org.apache.struts2.dispatcher.Dispatcher.error:38 - Dispatcher
> initialization failed
> Unable to load configuration. - Class:
> oracle.xml.jaxp.JXTransformerHandler
> File: JXTransformerHandler.java
> Method: endDocument
> Line: 141 - oracle/xml/jaxp/JXTransformerHandler.java:141:-1
> 	at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
> 	at
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
> 	at
> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
> 	at
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
> 	at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
> 	at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
> 	at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
> 	at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3698)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4349)
> 	at
> org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:991)
> 	at
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1322)
> 	at
> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530)
> 	at
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> 	at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> 	at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> 	at org.apache.tomcat.util.threads.ThreadPool
> $ControlRunnable.run(ThreadPool.java:683)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: Unable to load
> jar:file:/usr/local/jakarta-tomcat-5.0.28/webapps/Mavis2/WEB-INF/lib/struts2-core-2.2.1.jar!/struts-default.xml
- Class: oracle.xml.jaxp.JXTransformerHandler
> File: JXTransformerHandler.java
> Method: endDocument
> Line: 141 - oracle/xml/jaxp/JXTransformerHandler.java:141:-1
> 	at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:909)
> 	at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:154)
> 	at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
> 	at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:179)
> 	at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
> 	... 42 more
> Caused by: XSL-1103: (Fatal Error) DOMResult can not be this kind of
> node. - Class: oracle.xml.jaxp.JXTransformerHandler
> File: JXTransformerHandler.java
> Method: endDocument
> Line: 141 - oracle/xml/jaxp/JXTransformerHandler.java:141:-1
> 	at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
> 	at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:904)
> 	... 46 more
> Caused by: javax.xml.transform.TransformerException: XSL-1103: (Fatal
> Error) DOMResult can not be this kind of node.
> 	at
> oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:141)
> 	at com.opensymphony.xwork2.util.DomHelper
> $DOMBuilder.endDocument(DomHelper.java:233)
> 	at com.opensymphony.xwork2.util.location.LocationAttributes
> $Pipe.endDocument(LocationAttributes.java:312)
> 	at com.opensymphony.xwork2.util.DomHelper
> $StartHandler.endDocument(DomHelper.java:295)
> 	at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown
> Source)
> 	at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
> 	at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
> 	at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentScannerImpl
> $TrailingMiscDispatcher.dispatch(Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at javax.xml.parsers.SAXParser.parse(Unknown Source)
> 	at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)
> 	... 47 more
> 2010-10-19 18:45:07,353 INFO
> org.apache.tiles.access.TilesAccess.setContainer:90 - Removing
> TilesContext for context:
> org.apache.catalina.core.ApplicationContextFacade
>
>
>
>
> Thank's to all.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message