7 Replies Latest reply on Jul 21, 2011 1:12 PM by Scott Marlow

    depoying ear-file fails

    Carmen Teich Newbie

      Hello,

       

      I want to deploy my ear-File in JBoss AS 7.

      But it always failed.

       

      Here is the stacktrace, where you can find two main-errors:

       

      09:52:05,437 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "edesk4postgres.ear"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "ejb2beans.jar"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "kv_anbindungextension.jar"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "officestylesheetextension.jar"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "emwextension.jar"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "jamon.war"

      09:52:06,273 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "fbmsextension.jar"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting deployment of "sessions.sar"

      09:52:06,273 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "proxyservlet.war"

      09:52:06,273 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "ecmextension.jar"

      09:52:06,273 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "beans.jar"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "biwextension.jar"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Starting deployment of "xcom-util.jar"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) Starting deployment of "bdbextension.jar"

      09:52:06,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "xcomextension.jar"

      09:52:06,303 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.subunit."edesk4postgres.ear"."sessions.sar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."edesk4postgres.ear"."sessions.sar".PARSE: Failed to process phase PARSE of subdeployment "sessions.sar" of deployment "edesk4postgres.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          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) [:1.6.0_25]

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

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

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse service xml ["/content/edesk4postgres.ear/sessions.sar/META-INF/jboss-service.xml"]

          at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:94)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          ... 5 more

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[8,4]

      Message: Unexpected content of type 'element start' named '{urn:jboss:service:7.0}attribute'

          at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.unexpectedContent(JBossServiceXmlDescriptorParser.java:557)

          at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.parseAttribute(JBossServiceXmlDescriptorParser.java:298)

          at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.parseMBean(JBossServiceXmlDescriptorParser.java:214)

          at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:146)

          at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:44)

          at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)

          at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)

          at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:87)

          ... 6 more

       

      09:52:06,309 INFO  [org.jboss.jpa] (MSC service thread 1-6) read persistence.xml for edeskBdbExtension

      09:52:06,312 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry slf4j-api-1.6.1.jar in "/content/edesk4postgres.ear/kv_anbindungextension.jar"  does not point to a valid jar for a Class-Path reference.

      09:52:06,313 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."edesk4postgres.ear"."ecmextension.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."edesk4postgres.ear"."ecmextension.jar".PARSE: Failed to process phase PARSE of subdeployment "ecmextension.jar" of deployment "edesk4postgres.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          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) [:1.6.0_25]

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

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

      Caused by: java.lang.IllegalArgumentException: Can't find a deployment unit named ../beans.jar#edesk at subdeployment "ecmextension.jar" of deployment "edesk4postgres.ear"

          at org.jboss.as.jpa.container.PersistenceUnitSearch.getPersistenceUnit(PersistenceUnitSearch.java:181)

          at org.jboss.as.jpa.container.PersistenceUnitSearch.resolvePersistenceUnitSupplier(PersistenceUnitSearch.java:56)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.getPersistenceUnit(JPAAnnotationParseProcessor.java:317)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.getBindingSource(JPAAnnotationParseProcessor.java:253)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processField(JPAAnnotationParseProcessor.java:151)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processPersistenceAnnotations(JPAAnnotationParseProcessor.java:118)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.deploy(JPAAnnotationParseProcessor.java:90)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          ... 5 more

       

      09:52:06,314 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.subunit."edesk4postgres.ear"."kv_anbindungextension.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."edesk4postgres.ear"."kv_anbindungextension.jar".PARSE: Failed to process phase PARSE of subdeployment "kv_anbindungextension.jar" of deployment "edesk4postgres.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          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) [:1.6.0_25]

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

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

      Caused by: java.lang.IllegalArgumentException: Can't find a deployment unit named ../beans.jar#edesk at subdeployment "kv_anbindungextension.jar" of deployment "edesk4postgres.ear"

          at org.jboss.as.jpa.container.PersistenceUnitSearch.getPersistenceUnit(PersistenceUnitSearch.java:181)

          at org.jboss.as.jpa.container.PersistenceUnitSearch.resolvePersistenceUnitSupplier(PersistenceUnitSearch.java:56)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.getPersistenceUnit(JPAAnnotationParseProcessor.java:317)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.getBindingSource(JPAAnnotationParseProcessor.java:253)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processField(JPAAnnotationParseProcessor.java:151)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processPersistenceAnnotations(JPAAnnotationParseProcessor.java:118)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.deploy(JPAAnnotationParseProcessor.java:90)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          ... 5 more

       

      09:52:06,316 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.subunit."edesk4postgres.ear"."fbmsextension.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."edesk4postgres.ear"."fbmsextension.jar".PARSE: Failed to process phase PARSE of subdeployment "fbmsextension.jar" of deployment "edesk4postgres.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          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) [:1.6.0_25]

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

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

      Caused by: java.lang.IllegalArgumentException: Can't find a deployment unit named ../beans.jar#edesk at subdeployment "fbmsextension.jar" of deployment "edesk4postgres.ear"

          at org.jboss.as.jpa.container.PersistenceUnitSearch.getPersistenceUnit(PersistenceUnitSearch.java:181)

          at org.jboss.as.jpa.container.PersistenceUnitSearch.resolvePersistenceUnitSupplier(PersistenceUnitSearch.java:56)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.getPersistenceUnit(JPAAnnotationParseProcessor.java:317)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.getBindingSource(JPAAnnotationParseProcessor.java:253)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processField(JPAAnnotationParseProcessor.java:151)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processPersistenceAnnotations(JPAAnnotationParseProcessor.java:118)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.deploy(JPAAnnotationParseProcessor.java:90)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          ... 5 more

       

      09:52:06,326 INFO  [org.jboss.jpa] (MSC service thread 1-2) read persistence.xml for edesk

      09:52:06,317 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."edesk4postgres.ear"."emwextension.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."edesk4postgres.ear"."emwextension.jar".PARSE: Failed to process phase PARSE of subdeployment "emwextension.jar" of deployment "edesk4postgres.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          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) [:1.6.0_25]

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

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

      Caused by: java.lang.IllegalArgumentException: Can't find a deployment unit named ../beans.jar#edesk at subdeployment "emwextension.jar" of deployment "edesk4postgres.ear"

          at org.jboss.as.jpa.container.PersistenceUnitSearch.getPersistenceUnit(PersistenceUnitSearch.java:181)

          at org.jboss.as.jpa.container.PersistenceUnitSearch.resolvePersistenceUnitSupplier(PersistenceUnitSearch.java:56)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.getPersistenceUnit(JPAAnnotationParseProcessor.java:317)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.getBindingSource(JPAAnnotationParseProcessor.java:253)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processField(JPAAnnotationParseProcessor.java:151)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processPersistenceAnnotations(JPAAnnotationParseProcessor.java:118)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.deploy(JPAAnnotationParseProcessor.java:90)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          ... 5 more

       

      09:52:06,535 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "edesk4postgres.ear" was rolled back with failure message {"Failed services" => {"jboss.deployment.subunit.\"edesk4postgres.ear\".\"sessions.sar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"sessions.sar\".PARSE: Failed to process phase PARSE of subdeployment \"sessions.sar\" of deployment \"edesk4postgres.ear\"","jboss.deployment.subunit.\"edesk4postgres.ear\".\"ecmextension.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"ecmextension.jar\".PARSE: Failed to process phase PARSE of subdeployment \"ecmextension.jar\" of deployment \"edesk4postgres.ear\"","jboss.deployment.subunit.\"edesk4postgres.ear\".\"kv_anbindungextension.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"kv_anbindungextension.jar\".PARSE: Failed to process phase PARSE of subdeployment \"kv_anbindungextension.jar\" of deployment \"edesk4postgres.ear\"","jboss.deployment.subunit.\"edesk4postgres.ear\".\"fbmsextension.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"fbmsextension.jar\".PARSE: Failed to process phase PARSE of subdeployment \"fbmsextension.jar\" of deployment \"edesk4postgres.ear\"","jboss.deployment.subunit.\"edesk4postgres.ear\".\"emwextension.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"emwextension.jar\".PARSE: Failed to process phase PARSE of subdeployment \"emwextension.jar\" of deployment \"edesk4postgres.ear\""}}

      09:52:06,554 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment officestylesheetextension.jar in 18ms

      09:52:06,554 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment xcomextension.jar in 18ms

      09:52:06,555 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment beans.jar in 19ms

      09:52:06,556 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment bdbextension.jar in 20ms

      09:52:06,556 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment sessions.sar in 21ms

      09:52:06,557 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment ejb2beans.jar in 21ms

      09:52:06,557 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment emwextension.jar in 22ms

      09:52:06,558 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment biwextension.jar in 22ms

      09:52:06,560 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment ecmextension.jar in 24ms

      09:52:06,560 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment fbmsextension.jar in 24ms

      09:52:06,561 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment xcom-util.jar in 25ms

      09:52:06,561 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment kv_anbindungextension.jar in 25ms

      09:52:06,560 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment proxyservlet.war in 24ms

      09:52:06,564 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Stopped deployment jamon.war in 28ms

      09:52:06,576 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment edesk4postgres.ear in 41ms

      09:52:06,578 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.subunit.\"edesk4postgres.ear\".\"sessions.sar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"sessions.sar\".PARSE: Failed to process phase PARSE of subdeployment \"sessions.sar\" of deployment \"edesk4postgres.ear\"","jboss.deployment.subunit.\"edesk4postgres.ear\".\"ecmextension.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"ecmextension.jar\".PARSE: Failed to process phase PARSE of subdeployment \"ecmextension.jar\" of deployment \"edesk4postgres.ear\"","jboss.deployment.subunit.\"edesk4postgres.ear\".\"kv_anbindungextension.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"kv_anbindungextension.jar\".PARSE: Failed to process phase PARSE of subdeployment \"kv_anbindungextension.jar\" of deployment \"edesk4postgres.ear\"","jboss.deployment.subunit.\"edesk4postgres.ear\".\"fbmsextension.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"fbmsextension.jar\".PARSE: Failed to process phase PARSE of subdeployment \"fbmsextension.jar\" of deployment \"edesk4postgres.ear\"","jboss.deployment.subunit.\"edesk4postgres.ear\".\"emwextension.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"edesk4postgres.ear\".\"emwextension.jar\".PARSE: Failed to process phase PARSE of subdeployment \"emwextension.jar\" of deployment \"edesk4postgres.ear\""}}}}

       

       

      The jboss-service.xml of session.sar is like this: (1st error)

       

      <?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="de.xcom.edesk.jboss.ClientSessionService" name="eDesk:service=ClientSessions" xmbean-dd="">

              <xmbean>

                  <description>

                      This MBean holds  information for all client sessions.

                  </description>

                  <class>de.xcom.edesk.jboss.ClientSessionService</class>

                  <constructor>

                      <description>The no-arg constructor</description>

                      <name>de.xcom.edesk.jboss.ClientSessionService</name>

                  </constructor>

       

                  <attribute name="Version" access="read-only" getMethod="getVersion">

                      <description>Version of MBean</description>

                      <name>Version</name>

                      <type>java.lang.String</type>

                  </attribute>

       

                  <attribute name="Size" access="read-only" getMethod="getSize">

                      <description>Number of active sessions</description>

                      <name>Size</name>

                      <type>java.lang.Integer</type>

                  </attribute>

       

                  <attribute name="Info" access="read-only" getMethod="getInfo">

                      <description>Session details</description>

                      <name>Info</name>

                      <type>java.lang.String</type>

                  </attribute>

       

                  <attribute name="Timeout" access="read-write" getMethod="getCacheTimeout" setMethod="setCacheTimeout">

                      <description>Session timeout in seconds</description>

                      <name>Timeout</name>

                      <type>java.lang.Long</type>

                  </attribute>

                 

                  <operation>

                      <description>List all sessions.</description>

                      <name>listSessions</name>

                      <return-type>java.util.Collection</return-type>

                  </operation>

                  <operation>

                      <description>Starts a session.</description>

                      <name>startSession</name>

                      <parameter>

                          <description>Login name</description>

                          <name>loginName</name>

                          <type>java.lang.String</type>

                      </parameter>

                      <parameter>

                          <description>User ID</description>

                          <name>userId</name>

                          <type>java.lang.Long</type>

                      </parameter>

                      <return-type>java.lang.String</return-type>

                  </operation>

                  <operation>

                      <description>Ping a session.</description>

                      <name>pingSession</name>

                      <parameter>

                          <description>Session Id</description>

                          <name>sessionId</name>

                          <type>java.lang.String</type>

                      </parameter>

                      <return-type>void</return-type>

                  </operation>

                  <operation>

                      <description>Stop a session.</description>

                      <name>stopSession</name>

                      <parameter>

                          <description>Session Id</description>

                          <name>sessionId</name>

                          <type>java.lang.String</type>

                      </parameter>

                      <return-type>void</return-type>

                  </operation>

                  <operation>

                      <description>Get a session.</description>

                      <name>getSession</name>

                      <parameter>

                          <description>Session Id</description>

                          <name>sessionId</name>

                          <type>java.lang.String</type>

                      </parameter>

                      <return-type>de.xcom.edesk.jboss.ClientSession</return-type>

                  </operation>

                  <operation>

                      <description>Touch a session.</description>

                      <name>touchSession</name>

                      <parameter>

                          <description>Session Id</description>

                          <name>sessionId</name>

                          <type>java.lang.String</type>

                      </parameter>

                      <return-type>void</return-type>

                  </operation>

                  <operation>

                      <description>Starts the service.</description>

                      <name>start</name>

                      <return-type>void</return-type>

                  </operation>

                  <operation>

                      <description>Stops the service.</description>

                      <name>stop</name>

                      <return-type>void</return-type>

                  </operation>

                  <operation>

                      <description>Creates the service.</description>

                      <name>create</name>

                      <return-type>void</return-type>

                  </operation>

                  <operation>

                      <description>Destroys the service.</description>

                      <name>destroy</name>

                      <return-type>void</return-type>

                  </operation>

                 

              </xmbean>

          </mbean>

      </server>

       

      About the 2nd error I dont know.

       

      Please tell me what is wrong and what I have to do!!!!!

        • 1. Re: depoying ear-file fails
          jaikiran pai Master

          The jboss-service.xml of session.sar is like this: (1st error)

           

          <?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="de.xcom.edesk.jboss.ClientSessionService" name="eDesk:service=ClientSessions" xmbean-dd="">

                  <xmbean>

          The jboss-service_7_0.xsd http://www.jboss.org/schema/jbossas/jboss-service_7_0.xsd does not allow "xmbean" within the mbean. So that will have to be fixed in your jboss-service.xml

          • 2. Re: depoying ear-file fails
            jaikiran pai Master

            09:52:06,312 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry slf4j-api-1.6.1.jar in "/content/edesk4postgres.ear/kv_anbindungextension.jar"  does not point to a valid jar for a Class-Path reference.

             

            This one says that the kv_anbindungextension.jar has a Class-Path entry in META-INF/MANIFEST.MF which points to an incorrect slf4j-api-1.6.1.jar. You can either ignore that WARN message or fix the MANIFEST.MF to point to the correct file/location within the deployment.

            • 3. Re: depoying ear-file fails
              jaikiran pai Master

              Caused by: java.lang.IllegalArgumentException: Can't find a deployment unit named ../beans.jar#edesk at subdeployment "fbmsextension.jar" of deployment "edesk4postgres.ear"

              As for these errors, please post the code which has reference to @PersistenceContext and/or @PersistenceUnit.  Where exactly is the beans.jar located within the .ear and where is the fbmsextension.jar (and other jars) within the .ear. Overall, please post the output of:

               

              jar -tf edesk4postgres.ear

              • 4. Re: depoying ear-file fails
                Carmen Teich Newbie

                first error:

                I removed the xmbean out of the jboss-service.xml but I still have an error:

                 

                13:29:47,801 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."edesk4postgres.ear"."sessions.sar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."edesk4postgres.ear"."sessions.sar".PARSE: Failed to process phase PARSE of subdeployment "sessions.sar" of deployment "edesk4postgres.ear"

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

                    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) [:1.6.0_25]

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

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

                Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse service xml ["/content/edesk4postgres.ear/sessions.sar/META-INF/jboss-service.xml"]

                    at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:94)

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

                    ... 5 more

                Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[5,7]

                Message: Unexpected content of type 'element start' named '{urn:jboss:service:7.0}mbean'

                    at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.unexpectedContent(JBossServiceXmlDescriptorParser.java:557)

                    at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.parseMBean(JBossServiceXmlDescriptorParser.java:176)

                    at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:146)

                    at org.jboss.as.service.descriptor.JBossServiceXmlDescriptorParser.readElement(JBossServiceXmlDescriptorParser.java:44)

                    at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)

                    at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)

                    at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:87)

                • 5. Re: depoying ear-file fails
                  Carmen Teich Newbie

                  second error:

                  Here ist the persitence.xml of the beans.jar which is define <persistence-unit name="edesk">

                   

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

                  <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                               xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">

                      <persistence-unit name="edesk">

                      <!--     

                          <class>de.xcom.xline.kv_anbindung.pojo.ContactPojo</class>

                          <class>de.xcom.xline.kv_anbindung.pojo.LocationPojo</class>

                          <class>de.xcom.xline.kv_anbindung.pojo.OrganizationPojo</class>

                         

                         

                          <class>de.xcom.xline.fbms.navision.ProjectPojo</class>

                         

                         

                          <class>de.xcom.xline.ecm.model.pojos.BusinessTxTypeAdditionalInfoPojo</class>

                       -->   

                          <jta-data-source>java:/EDeskDS</jta-data-source>

                          <properties>

                         

                              <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>

                              <property name="hibernate.hbm2ddl.auto" value="none"/>

                              <property name="hibernate.show_sql" value="false"/>

                              <property name="hibernate.format_sql" value="true"/>

                              <property name="hibernate.use_sql_comments" value="false"/>

                             

                              <!-- Properties for enabling second-level cache -->

                              <property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider"/>

                              <property name="hibernate.cache.provider_configuration_file_resource_path" value="/ehcache.xml"/>

                              <property name="hibernate.cache.region_prefix" value="edesk"/> 

                              <!--  Properties for enabling Compass -->

                              <property name="jboss.entity.manager.factory.jndi.name" value="java:/eDeskEntityManagerFactory"/>

                              <property name="jboss.entity.manager.jndi.name" value="java:/eDeskEntityManager"/>

                          </properties>

                         </persistence-unit>

                  </persistence>

                   

                  when I do jar -tf edesk4postgres.ear I get this:

                   

                  META-INF/

                  META-INF/MANIFEST.MF

                  META-INF/application.xml

                  META-INF/jboss-app.xml

                  bdbextension.jar

                  beans.jar

                  biwextension.jar

                  ecmextension.jar

                  edesk-admin.sar

                  ejb2beans.jar

                  emwextension.jar

                  fbmsextension.jar

                  jobengine.sar

                  kv_anbindungextension.jar

                  officestylesheetextension.jar

                  sessions.sar

                  xcom-smtp.sar

                  xcomextension.jar

                  cryptix-jce-provider.jar

                  xcom-util.jar

                  proxyclient.jar

                  proxyservlet.war

                  jamon.war

                  docsrules_soapclient.jar

                  antlr-runtime-3.1.3.jar

                  drools-api-5.1.0.jar

                  drools-compiler-5.1.0.jar

                  drools-core-5.1.0.jar

                  janino-2.5.15.jar

                  mvel2-2.0.16.jar

                  freemarker.jar

                  axis.jar

                  commons-discovery-0.2.jar

                  jaxrpc.jar

                  saaj.jar

                  wsdl4j-1.5.1.jar

                  httpclient-4.0.3.jar

                  httpcore-4.0.1.jar

                  jackson-core-asl-1.6.1.jar

                  jackson-mapper-asl-1.6.1.jar

                  org.ektorp-1.0.1.jar

                  sqljdbc4.jar

                  • 6. Re: depoying ear-file fails
                    jaikiran pai Master

                    Please also post the code which uses @PersistenceContext and/or @PersistenceUnit annotations.

                    • 7. Re: depoying ear-file fails
                      Scott Marlow Master

                      I noticed that your datasource name should be changed.  Instead of "java:/EDeskDS", maybe try "java:jboss/datasources/EDeskDS".  Change this the same in the datasource definition (in standalone.xml).  Also, don't use ehcache yet with Hibernate 4/AS7 (Infinispan should work fine for 2lc).

                       

                      Some of your properties are not going to work.  I would change to:

                       

                      {quote}

                      <properties>

                                   <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>

                                  <property name="hibernate.hbm2ddl.auto" value="none"/>

                                  <property name="hibernate.show_sql" value="false"/>

                                  <property name="hibernate.format_sql" value="true"/>

                                  <property name="hibernate.use_sql_comments" value="false"/>

                       

                                  <!-- disabled the properties for second-level cache

                                  <property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider"/>

                                  <property name="hibernate.cache.provider_configuration_file_resource_path" value="/ehcache.xml"/>

                                  <property name="hibernate.cache.region_prefix" value="edesk"/> 

                                   -->

                                   <!-- see http://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7 about enabling 2lc

                                           with Infinispan

                                    -->

                                  <!--  Properties for enabling Compass -->

                                  <property name="jboss.entity.manager.factory.jndi.name" value="java:/eDeskEntityManagerFactory"/>

                                  <property name="jboss.entity.manager.jndi.name" value="java:/eDeskEntityManager"/>

                              </properties>

                      {quote}