2 Replies Latest reply on Jan 27, 2015 9:52 AM by to to

    How to solve my deployment error in JBoss AS 7 with Struts2?

    to to Newbie

      I'm using JBoss as 7.1.1  and My application uses Struts2.

      I cannot deploy my application with Stack Trace.

      What shuld I do to solve this error ?

       

      Stack Trace is below

       

      04:58:28,772 INFO  [com.opensymphony.xwork2.util.ResolverUtil] (MSC service thread 1-2) Scanning for classes in [/content/WebShogi.war/WEB-INF/classes/user/] matching criteria: org.apache.struts2.config.ClasspathPackageProvider$1@7ef959f2

      04:58:28,798 ERROR [com.opensymphony.xwork2.util.ResolverUtil] (MSC service thread 1-2) Could not search jar file '/content/WebShogi.war/WEB-INF/classes/user'

      for classes matching criteria: org.apache.struts2.config.ClasspathPackageProvider$1@7ef959f2 due to an IOException: c: /content/WebShogi.war/WEB-INF/classes/user (No such file or directory)

              at java.io.FileInputStream.open(Native Method) [rt.jar:1.7.0_71]

              at java.io.FileInputStream.<init>(FileInputStream.java:146) [rt.jar:1.7.0_71]

              at com.opensymphony.xwork2.util.ResolverUtil.loadImplementationsInJar(ResolverUtil.java:413) [xwork-core-2.3.16.3.jar:2.3.16.3]

              at com.opensymphony.xwork2.util.ResolverUtil.findInPackage(ResolverUtil.java:354) [xwork-core-2.3.16.3.jar:2.3.16.3]

              at com.opensymphony.xwork2.util.ResolverUtil.find(ResolverUtil.java:302) [xwork-core-2.3.16.3.jar:2.3.16.3]

              at org.apache.struts2.config.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:300) [struts2-codebehind-plugin-2.3.16.3.jar:2.3.16.3]

              at org.apache.struts2.config.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:543) [struts2-codebehind-plugin-2.3.16.3.jar:2.3.16.3]

              at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:268) [xwork-core-2.3.16.3.jar:2.3.16.3]

              at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) [xwork-core-2.3.16.3.jar:2.3.16.3]

              at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445) [struts2-core-2.3.16.3.jar:2.3.16.3]

              at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489) [struts2-core-2.3.16.3.jar:2.3.16.3]

              at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:193) [struts2-core-2.3.16.3.jar:2.3.16.3]

              at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3865) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

       

       

      04:58:29,061 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /WebShogi

      04:58:29,403 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "WebShogi.war"

        • 2. Re: How to solve my deployment error in JBoss AS 7 with Struts2?
          to to Newbie

          Thank you for the answer.

          I upgrade the version 2.3.16 to 2.3.20 , but same error occured...

           

          06:41:54,649 INFO  [com.opensymphony.xwork2.util.ResolverUtil] (MSC service thread 1-1) Scanning for classes in [/content/WebShogi.war/WEB-INF/classes/user/] matching criteria: org.apache.struts2.config.ClasspathPackageProvider$1@73775808

          06:41:54,665 ERROR [com.opensymphony.xwork2.util.ResolverUtil] (MSC service thread 1-1) Could not search jar file '/content/WebShogi.war/WEB-INF/classes/user' for classes matching criteria: org.apache.struts2.config.ClasspathPackageProvider$1@73775808 due to an IOException: java.io.FileNotFoundException: /content/WebShogi.war/WEB-INF/classes/user (No such file or directory)

            at java.io.FileInputStream.open(Native Method) [rt.jar:1.7.0_71]

            at java.io.FileInputStream.<init>(FileInputStream.java:146) [rt.jar:1.7.0_71]

            at com.opensymphony.xwork2.util.ResolverUtil.loadImplementationsInJar(ResolverUtil.java:413) [xwork-core-2.3.20.jar:2.3.20]

            at com.opensymphony.xwork2.util.ResolverUtil.findInPackage(ResolverUtil.java:354) [xwork-core-2.3.20.jar:2.3.20]

            at com.opensymphony.xwork2.util.ResolverUtil.find(ResolverUtil.java:302) [xwork-core-2.3.20.jar:2.3.20]

            at org.apache.struts2.config.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:300) [struts2-codebehind-plugin-2.3.20.jar:2.3.20]

            at org.apache.struts2.config.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:543) [struts2-codebehind-plugin-2.3.20.jar:2.3.20]

            at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274) [xwork-core-2.3.20.jar:2.3.20]

            at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) [xwork-core-2.3.20.jar:2.3.20]

            at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) [struts2-core-2.3.20.jar:2.3.20]

            at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) [struts2-core-2.3.20.jar:2.3.20]

            at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) [struts2-core-2.3.20.jar:2.3.20]

            at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) [struts2-core-2.3.20.jar:2.3.20]

            at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) [struts2-core-2.3.20.jar:2.3.20]

            at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.13.Final.jar:]

            at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269) [jbossweb-7.0.13.Final.jar:]

            at org.apache.catalina.core.StandardContext.start(StandardContext.java:3865) [jbossweb-7.0.13.Final.jar:]

            at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]

            at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]