Announcement Announcement Module
Collapse
No announcement yet.
tcServer starting with errors.. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • tcServer starting with errors..

    Hello,

    I have created project using dynamic web moudule 3.0 and I am using STS2.6 and tcServer that comes along with it. I have also configured my project to run on this tcServer. When I right click on project and select Run AS ->
    Run on server, my tcServer starts but with the following errors:

    Code:
    java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml setSessionConfig
    	at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:802)
    	at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)
    	at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    	at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1543)
    	at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1694)
    	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1197)
    	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:882)
    	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:317)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5081)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
    	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:633)
    	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:558)
    	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
    	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)
    	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
    	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:379)
    	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:324)
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
    	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
    	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
    24-Nov-2011 14:31:50 org.apache.catalina.startup.ContextConfig parseWebXml
    SEVERE: Parse error in application web.xml file at file://D:\workspace-striderite\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\conf\web.xml
    java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml setSessionConfig
    	at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2687)
    	at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2713)
    	at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    	at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1543)
    	at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1694)
    	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1197)
    	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:882)
    	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:317)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5081)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
    	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:633)
    	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:558)
    	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
    	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)
    	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
    	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:379)
    	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:324)
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
    	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
    	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
    Caused by: java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml setSessionConfig
    	at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:802)
    	at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)
    	at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057)
    	... 48 more

  • #2
    Can you post your application's web.xml please? It looks to me like there's an unexpected element in there that is not being handled gracefully.

    Comment


    • #3
      Hi Andy,
      I changed my server now I have configured external Tomcat6.0 into STS. But now I am getting following error. Any idea on this, I am not getting why it is showing me error on c.tld file. Though standard.jar is in my classpath...


      Code:
      SEVERE: Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld" from JAR file "file:/D:/workspace-striderite/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ims/WEB-INF/lib/standard.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
      	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
      	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
      	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:181)
      	at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:182)
      	at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:386)
      	at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:449)
      	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1396)
      	at org.apache.jasper.compiler.Parser.parse(Parser.java:130)
      	at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
      	at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
      	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
      	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
      	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
      	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
      	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      	at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
      	at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:52)
      	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
      	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
      	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109)
      	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
      	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
      	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
      	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
      	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
      	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      	at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
      	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
      	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      	at java.lang.Thread.run(Unknown Source)

      Comment


      • #4
        That's not an error I've seen before, but a Google for
        Code:
        Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
        would suggest that plenty of other people have. It appears to be a problem with Maven/WTP.

        Comment

        Working...
        X