Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3412

War generated by struts-2-blank-archetype fails to start

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.8.1
    • Fix Version/s: None
    • Component/s: Build Management
    • Labels:
      None
    • Environment:

      Linux Tomcat 5.5.28

      Description

      Managed to create a project with struts-2-blank-archetype despite issue https://issues.apache.org/jira/browse/WW-3366
      Generated a war with mvn package
      Copied war to Tomcat webapps
      Started Tomcat

      EXPECTED: webapp starts
      OBSERVED: webapp fails to start with error:
      Mar 21, 2010 1:38:30 AM org.apache.catalina.core.StandardContext filterStart
      SEVERE: Exception starting filter struts2
      Unable to load configuration. - Class: net.sf.saxon.event.SerializerFactory
      File: SerializerFactory.java
      Method: getReceiver
      Line: 200 - net/sf/saxon/event/SerializerFactory.java:200:-1
      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
      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:221)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3666)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:448)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      Caused by: Unable to load configuration. - Class: net.sf.saxon.event.SerializerFactory
      File: SerializerFactory.java
      Method: getReceiver
      Line: 200 - net/sf/saxon/event/SerializerFactory.java:200:-1
      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
      at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
      ... 29 more
      Caused by: Unable to load jar:file:/var/webapps/waterbits-0.0.1/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml - Class: net.sf.saxon.event.SerializerFactory
      File: SerializerFactory.java
      Method: getReceiver
      Line: 200 - net/sf/saxon/event/SerializerFactory.java:200:-1
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:898)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
      at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
      ... 31 more
      Caused by: Saxon cannot write a DOMResult unless saxon9-dom.jar is on the classpath - Class: net.sf.saxon.event.SerializerFactory
      File: SerializerFactory.java
      Method: getReceiver
      Line: 200 - net/sf/saxon/event/SerializerFactory.java:200:-1
      at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:893)
      ... 35 more
      Caused by: java.lang.UnsupportedOperationException: Saxon cannot write a DOMResult unless saxon9-dom.jar is on the classpath
      at net.sf.saxon.event.SerializerFactory.getReceiver(SerializerFactory.java:200)
      at net.sf.saxon.IdentityTransformerHandler.startDocument(IdentityTransformerHandler.java:97)
      at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.startDocument(DomHelper.java:229)
      at com.opensymphony.xwork2.util.location.LocationAttributes$Pipe.startDocument(LocationAttributes.java:306)
      at com.opensymphony.xwork2.util.DomHelper$StartHandler.startDocument(DomHelper.java:290)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startDocument(AbstractSAXParser.java:284)
      at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startDocument(XMLDTDValidator.java:663)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.startEntity(XMLDocumentScannerImpl.java:588)
      at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.startDocumentParsing(XMLVersionDetector.java:172)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:785)
      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 javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
      at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)
      ... 36 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                bornmw Oleg Mikheev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: