0 Replies Latest reply on Jul 20, 2012 8:04 AM by sarahfr

    Deploy web application in Jboss 7 (problem with .sar)

    sarahfr Newbie

      Hi,

      I try to deploy my web application in AS 7 server but I have this error:

       

      13:32:06,948 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "projet_appl.war"

      13:32:07,065 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-14) MSC00001: Failed to start service jboss.deployment.subunit."Projet_MBean.ear"."cameleon.sar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Projet_MBean.ear"."cameleon.sar".INSTALL: Failed to process phase INSTALL of subdeployment "cameleon.sar" of deployment "Projet_MBean.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]

      Caused by: java.lang.IllegalArgumentException: JBAS017220: Class not found

              at org.jboss.as.service.ReflectionUtils.getClass(ReflectionUtils.java:115)

              at org.jboss.as.service.ReflectionUtils.getClassHierarchy(ReflectionUtils.java:122)

              at org.jboss.as.service.ParsedServiceDeploymentProcessor.addServices(ParsedServiceDeploymentProcessor.java:108)

              at org.jboss.as.service.ParsedServiceDeploymentProcessor.deploy(ParsedServiceDeploymentProcessor.java:99)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              ... 5 more

      Caused by: java.lang.ClassNotFoundException: com.cameleon.InterfaceMBean from [Module "deployment.Projet_MBean.ear.cameleon.sar:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

              at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_25]

              at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_25]

              at org.jboss.as.service.ReflectionUtils.getClass(ReflectionUtils.java:113)

              ... 9 more

      PS: here the structure of my web application

       

      Projet_MBean.ear

           -  META-INF : application.xml, jboss-appl.xml, MANIFEST.MF

          -  project_appl.war: WEB-INF, META-INF

          -   cameleon.sar: cameleon.jar, META-INF

                in cameleon.jar I have this:     META-INF and com/camleeon/ClassMBean.class, InterfaceMBean.class

                in META-INF: jboss-service.xml, MANIFEST.MF

                jboss-service.xml:

                                                            

                      <?xml version="1.0" encoding="UTF-8"?>

                             <server>

                                     <mbean code="com.cameleon.InterfaceMBean" name="cameleon:service=InterfaceMBean">

                                             <attribute name="HelloWorld"> hello </attribute>

                                     </mbean>

                               </server>


                           

       

       

      can you help me please?????????

      thanks

      sarahfr