0 Replies Latest reply on Jan 13, 2012 7:16 AM by Simon Rajh

    SAR Project problem

    Simon Rajh Newbie

      Hi everyone!

       

      I'm having some trouble (i'm a rookie in jboss) running my SAR project on JBoss 7.0.2. My project contains source code and libraries (JARS) which are included from another project in my IDE (Eclipse). I also have sarcontent/META_INF/jboss-service.xml file and MBean*.

       

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

      <server xmlns="urn:jboss:service:7.0"

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="urn:jboss:service:7.0 jboss-service_7_0.xsd">

          <mbean code="my.package.Data" name="service.server.monitor:service=MyMonitor">

               <attribute name="Frequency">5000</attribute>

          </mbean>

      </server>

       

      *Article: http://middlewaremagic.com/jboss/?p=366

       

      When I'm trying to run this sar project on jboss server it says it couldn't find specific class which is located in one of my JARs. But it is in there. If I create web project and start it from web container it's working properly.Because project is very complex I also tried with simple sar project and my problematical library. It worked well.

       

      Jboss server log:

      2:49:39,486 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "MySAR.sar" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"MySAR.sar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MySAR.sar\".INSTALL: Failed to process phase INSTALL of deployment \"MySAR.sar\""}}

      12:49:39,501 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service status report

        Services which failed to start:

            service jboss.deployment.unit."MySAR.sar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."MySAR.sar".INSTALL: Failed to process phase INSTALL of deployment "MySAR.sar"

       

       

      12:49:39,501 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"MySAR.sar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MySAR.sar\".INSTALL: Failed to process phase INSTALL of deployment \"MySAR.sar\""}}}}

      12:49:39,564 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment MySAR.sar in 70ms

       

       

      Any idea?

       

      P.S.: sorry for my bad english