0 Replies Latest reply on Dec 29, 2011 5:03 AM by Venkat Karra

    Ear Failed in Jboss  7.0 for mulitiple Wars

    Venkat Karra Newbie

      Hi All,

       

      My project structure is like below

       

      Eoodu-Application
          EarContent
             lib
                  common Jars like hibernate,common utils,log4j.
            META-INF
                   Application.xml


      Eoodu-Admin
         WebContent
                 WEB-INF
                    lib
                          struts-core2.1.8.1.jar,
                          struts-dojo-plugin-2.2.3.1.jar,
                          struts-json-plugin-2.2.3.1.jar

       

      Eoodu-Human   WebContent

                 WEB-INF

                    lib

                          struts-core2.1.8.1.jar,

                          struts-dojo-plugin-2.2.3.1.jar,

                          struts-json-plugin-2.2.3.1.jar

       

      If the web-module is only in the ear it's working fine.but the ear fails more than one web-module.

       

       

       

       

       

      28 Dec 2011 21:41:57,814 - ERROR InterceptorBuilder:27 - Actual exception
      Caught Exception while registering Interceptor class org.apache.struts2.interceptor.debugging.DebuggingInterceptor - interceptor - vfs:/C:/jboss-as-web-7.0.0.Final/bin/content/Eoodu_Application.ear/eoodu-webui-academics.war/WEB-INF/lib/struts2-core-2.1.8.1.jar/struts-default.xml:130:115
      at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(StrutsObjectFactory.java:77)
      at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:59)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:987)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:806)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:819)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:842)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:449)
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:264)
      at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
      at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)
      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
      at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
      at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3245)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3836)
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in public void org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager(org.apache.struts2.views.freemarker.FreemarkerManager).
      at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:144)
      at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(ContainerImpl.java:113)
      at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:90)
      at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:71)
      at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:67)
      at com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:150)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:76)
      at com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:116)
      at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:483)
      at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:523)
      at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:521)
      at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)
      at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:521)
      at com.opensymphony.xwork2.ObjectFactory.injectInternalBeans(ObjectFactory.java:127)
      at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:152)
      at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:139)
      at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(StrutsObjectFactory.java:52)
      ... 22 more
      Caused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in public void org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager(org.apache.struts2.views.freemarker.FreemarkerManager).
      at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(ContainerImpl.java:235)
      at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(ContainerImpl.java:225)
      at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.<init>(ContainerImpl.java:287)
      at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:117)
      at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:114)
      at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:141)
      ... 40 more
      28 Dec 2011 21:41:57,908 - ERROR XmlConfigurationProvider:23 - Unable to find parent packages json-default


      Dependency specification across Multiple Wars in single EAR