Uploaded image for project: 'PhotArk'
  1. PhotArk
  2. PHOTARK-14

NoSuchMethodError Exception on webapp deployment on tomcat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • PhotArk WebApp
    • Win XP 32 bit SP 3, Apache Tomcat 5.5, Java 1.6.0_18-ea, Mozilla Firefox 3.5.7, Netbeans 6.7, Maven 2.0.9

    Description

      Code built on TRUNK rev 909292

      Exception log:
      INFO: Installing filter...
      Feb 12, 2010 3:12:28 PM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive photark.war
      log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
      log4j:WARN Please initialize the log4j system properly.
      Feb 12, 2010 3:12:28 PM org.apache.tuscany.sca.node.impl.NodeImpl start
      INFO: Starting node: photark domain: tuscany.apache.org
      Feb 12, 2010 3:12:28 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
      INFO: Loading contribution: file:/c:/tomcat55/webapps/photark/
      Feb 12, 2010 3:12:29 PM org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory [] (org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V)
      SEVERE: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
      java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
      at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
      at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$1.run(DefaultValidatingXMLInputFactory.java:214)
      at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$1.run(DefaultValidatingXMLInputFactory.java:1)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.initializeSchemas(DefaultValidatingXMLInputFactory.java:212)
      at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.createXMLStreamReader(DefaultValidatingXMLInputFactory.java:350)
      at org.apache.tuscany.sca.definitions.xml.DefinitionsDocumentProcessor.read(DefinitionsDocumentProcessor.java:115)
      at org.apache.tuscany.sca.definitions.xml.DefinitionsDocumentProcessor.read(DefinitionsDocumentProcessor.java:1)
      at org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensionPoint.java:288)
      at org.apache.tuscany.sca.definitions.xml.DefaultDefinitionsExtensionPoint.getDefinitions(DefaultDefinitionsExtensionPoint.java:110)
      at org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadSystemContribution(DeployerImpl.java:292)
      at org.apache.tuscany.sca.deployment.impl.DeployerImpl.init(DeployerImpl.java:278)
      at org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadContribution(DeployerImpl.java:520)
      at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:295)
      at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:133)
      at org.apache.tuscany.sca.host.webapp.ServletHostHelper.createNode(ServletHostHelper.java:177)
      at org.apache.tuscany.sca.host.webapp.ServletHostHelper.init(ServletHostHelper.java:124)
      at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:63)
      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:3635)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
      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:1149)
      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)
      Feb 12, 2010 3:12:30 PM org.apache.tuscany.sca.host.webapp.TuscanyServletFilter init
      SEVERE: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
      java.lang.IllegalStateException: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
      at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:176)
      at org.apache.tuscany.sca.host.webapp.ServletHostHelper.createNode(ServletHostHelper.java:177)
      at org.apache.tuscany.sca.host.webapp.ServletHostHelper.init(ServletHostHelper.java:124)
      at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:63)
      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:3635)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
      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:1149)
      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: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
      at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
      at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$1.run(DefaultValidatingXMLInputFactory.java:214)
      at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$1.run(DefaultValidatingXMLInputFactory.java:1)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.initializeSchemas(DefaultValidatingXMLInputFactory.java:212)
      at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.createXMLStreamReader(DefaultValidatingXMLInputFactory.java:350)
      at org.apache.tuscany.sca.definitions.xml.DefinitionsDocumentProcessor.read(DefinitionsDocumentProcessor.java:115)
      at org.apache.tuscany.sca.definitions.xml.DefinitionsDocumentProcessor.read(DefinitionsDocumentProcessor.java:1)
      at org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensionPoint.java:288)
      at org.apache.tuscany.sca.definitions.xml.DefaultDefinitionsExtensionPoint.getDefinitions(DefaultDefinitionsExtensionPoint.java:110)
      at org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadSystemContribution(DeployerImpl.java:292)
      at org.apache.tuscany.sca.deployment.impl.DeployerImpl.init(DeployerImpl.java:278)
      at org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadContribution(DeployerImpl.java:520)
      at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:295)
      at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:133)
      ... 30 more
      Feb 12, 2010 3:12:30 PM org.apache.catalina.core.StandardContext start
      SEVERE: Error filterStart
      Feb 12, 2010 3:12:31 PM org.apache.catalina.core.StandardContext start
      SEVERE: Context [/photark] startup failed due to previous errors
      WARN: The method class org.apache.commons.logging.impl.SLF4FLogFactory#release() was invoked.
      WARN: Please see http://www.slf4j.org/codes.html for an explanation.
      Feb 12, 2010 3:12:31 PM org.apache.coyote.http11.Http11BaseProtocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      Feb 12, 2010 3:12:31 PM org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8009
      Feb 12, 2010 3:12:31 PM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/16 config=null
      Feb 12, 2010 3:12:31 PM org.apache.catalina.storeconfig.StoreLoader load
      INFO: Find registry server-registry.xml at classpath resource
      Feb 12, 2010 3:12:31 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 3937 ms

      Attachments

        Activity

          People

            Unassigned Unassigned
            devsoftech Devesh Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: