3 Replies Latest reply on Feb 28, 2002 10:35 AM by giorgio42

    Unpacked Deployment?

    ckehn

      I have been trying to deploy a fairly simple application that I had running on orionserver. I was wondering if it is possible to deploy with out the use of jar/war/ear files. I tried doing it by extracting my ear file into a folder I created within the deploy folder.

      Example:(sorry for the poor visual)

      deploy
      ....projectfolder
      ........ejbs
      ............META-INF
      ................ejb-jar.xml
      ................jboss.xml
      ............com (etc classes)
      ........jsps
      ............WEB-INF
      ................web.xml
      ................jboss-web.xml
      ................classes (etc classes)
      ............index.html
      ........META-INF - application.xml

      Hope that made sense.

      my application.xml

      <display-name>SAAmort sample</display-name>

      ejbs



      <web-uri>jsps</web-uri>
      <context-root>/entry</context-root>




      Currently I am getting this deployment error:
      [ERROR,J2eeDeployer] Deployment failed
      org.jboss.deployment.J2eeDeploymentException: EJB module: D:\JBoss\jboss\deploy\
      saamort\ejbs is not a directory
      at org.jboss.deployment.LocalDirInstaller.execute(LocalDirInstaller.java
      :134)
      at org.jboss.deployment.InstallerFactory.install(InstallerFactory.java:1
      20)
      at org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.jav
      a:409)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:185)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371) (not the full stacktrace)

      I hope this is enough information. I would appreciate any help. I did find a few previous post but nothing seemed to help. I had better luck when I archived to a ear file but the project requires unpackaged classes. The only thing I seem to have working with it unpackaged is the index.html.

      Thanks in advance,
      Chad

        • 1. Re: Unpacked Deployment?

          The structure should be the same as an ear,
          but the trick is to use directories with archive names
          e.g.
          [pre]
          deploy/
          tomcat-test.ear/
          META-INF/
          application.xml
          tomcat-test.jar/
          META-INF/
          ejb-jar.xml
          jboss.xml
          org/jboss/test/tomcat/ejb/bean/
          StatlessSessionBean.class
          etc.
          [/pre]

          Regards,
          Adrian

          • 2. Re: Unpacked Deployment?
            ckehn

            Worked perfectly.

            Thanks,
            Chad

            • 3. Re: Unpacked Deployment?
              giorgio42

              Is this working with the current
              head revision. I just tried it on Solaris
              and only the first ear directory is
              noticed by the deployer.

              So nothing gets deployed, no tables created etc.

              Deploying the packaged ear works without glitches.

              Unpackaged deployment is very helpful when
              creating the web interface.

              Georg