2 Replies Latest reply on Jan 20, 2015 3:46 PM by gopinath-ponnivalavan

    Struts looking for exploded ear file while migration to jboss 6

    gopinath-ponnivalavan

      We are migrating from Jboss 4.2 to Jboss 6.  While deploying struts looking for classes in exploded ear.  But we have only actual ear in deploy folder.  Any idea

       

       

       

      09:07:50,118 INFO  [BasicTilesContainer] Tiles2 container initialization complete.

      09:07:50,118 INFO  [TilesAccess] Publishing TilesContext for context: org.apache.catalina.core.ApplicationContextFacade

      09:07:50,149 INFO  [XmlConfigurationProvider] Parsing configuration file [struts-default.xml]

      09:07:50,181 INFO  [XmlConfigurationProvider] Parsing configuration file [struts-plugin.xml]

      09:07:50,244 INFO  [XmlConfigurationProvider] Parsing configuration file [struts.xml]

      09:07:50,244 WARN  [Settings] Settings: Could not parse struts.locale setting, substituting default VM locale

      09:07:50,291 INFO  [ResolverUtil] Scanning for classes in [/C:/softwares/jboss/JBossAS-6.1.0/server/project/deploy/project.ear/project.jar/com/parago/project/adminapp/web/] matching criteria: org.apache.struts2.config.ClasspathConfigurationProvider$1@75477c3f

      09:07:50,291 ERROR [ResolverUtil] Could not search jar file 'C:\softwares\jboss\JBossAS-6.1.0\server\project\deploy\project.ear\project.jar\com\parago\project\adminapp\web' for classes matching criteria: org.apache.struts2.config.ClasspathConfigurationProvider$1@75477c3f due to an IOException: java.io.FileNotFoundException: C:\softwares\jboss\JBossAS-6.1.0\server\project\deploy\project.ear\project.jar\com\parago\project\adminapp\web (The system cannot find the path specified)

              at java.io.FileInputStream.open(Native Method) [:1.7.0_25]

              at java.io.FileInputStream.<init>(FileInputStream.java:138) [:1.7.0_25]

              at com.opensymphony.xwork2.util.ResolverUtil.loadImplementationsInJar(ResolverUtil.java:341) [:]

              at com.opensymphony.xwork2.util.ResolverUtil.findInPackage(ResolverUtil.java:288) [:]

              at com.opensymphony.xwork2.util.ResolverUtil.find(ResolverUtil.java:240) [:]

              at org.apache.struts2.config.ClasspathConfigurationProvider.loadPackages(ClasspathConfigurationProvider.java:234) [:]

              at org.apache.struts2.config.ClasspathConfigurationProvider.loadPackages(ClasspathConfigurationProvider.java:402) [:]

              at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152) [:]

              at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) [:]

              at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) [:]

              at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) [:]

              at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) [:]

              at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [:6.1.0.Final]

              at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3246) [:6.1.0.Final]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3843) [:6.1.0.Final]

              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.1.0.Final]

              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.1.0.Final]

              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476) [:6.1.0.Final]

              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.1.0.Final]

              at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.1.0.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_25]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.7.0_25]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_25]

              at java.lang.reflect.Method.invoke(Method.java:606) [:1.7.0_25]

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

        • 1. Re: Struts looking for exploded ear file while migration to jboss 6
          jaysensharma

          Which version of  xwork2 JAR is present in your application?

           

          Older versions of Struts has some incompatibility with VFS  see below link:

           

          https://issues.apache.org/jira/browse/WW-3558

          • 2. Re: Struts looking for exploded ear file while migration to jboss 6
            gopinath-ponnivalavan

            I am using xwork 2.0.4.jar and struts2-2.0.11.   To overcome this error, I am upgrading my struts2-2.3.20 and xwork-core-2.3.20. Let me see how it goes

             

            I added following jars

            antlr-2.7.2.jar

            commons-beanutils-1.8.0.jar

            commons-chain-1.2.jar

            commons-digester-2.0.jar

            commons-fileupload-1.3.1.jar

            commons-lang-2.4.jar

            commons-lang3-3.2.jar

            commons-logging-1.1.3.jar

            commons-logging-api-1.1.jar

            commons-validator-1.3.1.jar

            freemarker-2.3.19.jar

            ognl-3.0.6.jar

            oro-2.0.8.jar

            struts-core-1.3.10.jar

            struts2-codebehind-plugin-2.3.20.jar

            struts2-config-browser-plugin-2.3.20.jar

            struts2-core-2.3.20.jar

            struts2-jasperreports-plugin-2.3.20.jar

            struts2-jfreechart-plugin-2.3.20.jar

            struts2-pell-multipart-plugin-2.3.20.jar

            struts2-sitegraph-plugin-2.3.20.jar

            struts2-sitemesh-plugin-2.3.20.jar

            struts2-struts1-plugin-2.3.20.jar

            struts2-tiles-plugin-2.3.20.jar

            tiles-api-2.0.6.jar

            tiles-core-2.0.6.jar

            tiles-jsp-2.0.6.jar

            xwork-core-2.3.20.jar

             

            But I am getting the same error