Announcement Announcement Module
Collapse
No announcement yet.
Parsing error processing resource path /WEB-INF/struts-config.xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Parsing error processing resource path /WEB-INF/struts-config.xml

    Hello All,
    I am getting the following exception with Tomcat5.5. I am using struts and spring combined frame work...
    Does anybody know what would be the problem?


    -Mani



    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'urlMapping' defined in ServletContext resource [/WEB-INF/emplace-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'strutsWrappingController' defined in ServletContext resource [/WEB-INF/emplace-servlet.xml]: Invocation of init method failed; nested exception is javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:534)
    org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 46)
    org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:166)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:243)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:167)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:351)
    org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:689)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:358)
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 32)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:266 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:236)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:211)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11AprProcessor.proces s(Http11AprProcessor.java:831)
    org.apache.coyote.http11.Http11AprProtocol$Http11C onnectionHandler.process(Http11AprProtocol.java:63 9)
    org.apache.tomcat.util.net.AprEndpoint$Worker.run( AprEndpoint.java:1203)
    java.lang.Thread.run(Unknown Source)


    root cause

    javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
    org.apache.struts.action.ActionServlet.handleConfi gException(ActionServlet.java:739)
    org.apache.struts.action.ActionServlet.parseModule ConfigFile(ActionServlet.java:715)
    org.apache.struts.action.ActionServlet.initModuleC onfig(ActionServlet.java:670)
    org.apache.struts.action.ActionServlet.init(Action Servlet.java:329)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:211)
    org.springframework.web.servlet.mvc.ServletWrappin gController.afterPropertiesSet(ServletWrappingCont roller.java:163)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1310)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1279)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:510)
    org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 46)
    org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:166)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:243)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:167)
    org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:826)
    org.springframework.web.servlet.handler.AbstractUr lHandlerMapping.registerHandler(AbstractUrlHandler Mapping.java:278)
    org.springframework.web.servlet.handler.SimpleUrlH andlerMapping.registerHandlers(SimpleUrlHandlerMap ping.java:125)
    org.springframework.web.servlet.handler.SimpleUrlH andlerMapping.initApplicationContext(SimpleUrlHand lerMapping.java:103)
    org.springframework.context.support.ApplicationObj ectSupport.setApplicationContext(ApplicationObject Support.java:73)
    org.springframework.context.support.ApplicationCon textAwareProcessor.postProcessBeforeInitialization (ApplicationContextAwareProcessor.java:72)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyBeanPostProcessors BeforeInitialization(AbstractAutowireCapableBeanFa ctory.java:315)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1275)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:510)
    org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 46)
    org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:166)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:243)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:167)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:351)
    org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:689)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:358)
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 32)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:266 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:236)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:211)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11AprProcessor.proces s(Http11AprProcessor.java:831)
    org.apache.coyote.http11.Http11AprProtocol$Http11C onnectionHandler.process(Http11AprProtocol.java:63 9)
    org.apache.tomcat.util.net.AprEndpoint$Worker.run( AprEndpoint.java:1203)
    java.lang.Thread.run(Unknown Source)

  • #2
    Your stuts-config file is corrupt. Make sure it is correctly formatted - try using the struts-blank config and see if you still get this same exception. You can see in the stack trace that is was caused at handleConfigException().

    Comment


    • #3
      Please, take in account that this very forum is not intended for support, "Web" or "Core container" forums are more appropriate for questions of such type as yours.

      Anyway, you have not provided enough info for adequate analysis of your problem

      Regards,
      Oleksandr

      Comment

      Working...
      X