1 Reply Latest reply on Apr 19, 2011 8:08 AM by Peter Johnson

    how to combine ejb3 module outside web service ear folder?

    Joseph Hwang Novice

      I try to integrate web service and ejb3 module. My EJB3 module is outside web service .ear folder.

      How can i integrate web service and outside ejb3 module?

      In application.xml of .ear folder, I typed

       

      <?xml version="1.0" encoding="ASCII"?>

      <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">

        <display-name>TotalWebTestEAR</display-name>

        <module>

          <web>

            <web-uri>TotalWebTest.war</web-uri>

            <context-root>TotalWebTest</context-root>

          </web>

        </module>

        <module>

         <ejb>EJBLoginModule.jar</ejb>

        </module>

      </application>

       

      But exception occurs!

       

      org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(TotalWebTestEAR.ear)

      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)

      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)

      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)

      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)

      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)

      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)

      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:344)

      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.RuntimeException: Error determining structure: TotalWebTestEAR.ear

      at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)

      at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)

      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)

      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)

      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)

      ... 16 more

      Caused by: java.lang.RuntimeException: EJBLoginModule.jar module listed in application.xml does not exist within .ear vfsfile:/C:/temp/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1302351288758/deploy/TotalWebTestEAR.ear/

      at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:272)

       

      I need your help!! Thanks in advance.