6 Replies Latest reply on Oct 29, 2006 9:46 AM by Christian Stalp

    EJB-installation-problems

    Christian Stalp Newbie

      Hello out there..
      I try to install the EJB-Classes on my JBoss-Server. For that I got the "jboss-EJB-3.0_RC9-FD.zip"-archive and unziped it. Then I tried to perform the installations-procedure according to the documentation:

      EJB 3.0 Preview RC9 only works with JBoss 4.0.4.GA. An ANT build script has been supplied to patch an existing JBoss 4.0.4.GA distribution.

      * download ANT from apache.org if you don't have it already
      * set a JBOSS_HOME environment variable to point to the directory JBoss is installed in

      $ cd jboss-EJB-3.0_RC9-FD
      $ ant -f install.xml -Djboss.server.config=[server directory you want to patch]

      jboss.server.config defaults to all


      So I typed in:
      ant -f install.xml -Djboss.server.config=default


      and got:

      Buildfile: install.xml

      install:
      [copy] Copying 1 file to /opt/public/jboss-EJB-3.0_RC9-FD/${env.JBOSS_HOME}/client

      BUILD FAILED
      /opt/public/jboss-EJB-3.0_RC9-FD/install.xml:21: Failed to copy /opt/public/jboss-EJB-3.0_RC9-FD/lib/jbossws-client.jar to /opt/public/jboss-EJB-3.0_RC9-FD/${env.JBOSS_HOME}/client/jbossws-client.jar due to /opt/public/jboss-EJB-3.0_RC9-FD/${env.JBOSS_HOME}/client/jbossws-client.jar (No such file or directory)

      Total time: 1 second


      Oh yes I have JBoss Version jboss-4.0.5.GA.
      And it is installed on /opt/local/usr/jboss

      Did I missed something?

      Gruss Christian


        • 1. Re: EJB-installation-problems
          Andrew Dale Newbie

          stupid question, but have you set $JBOSS_HOME ??

          • 2. Re: EJB-installation-problems
            Christian Stalp Newbie

            Oh sorry I didn't mention it. Yes I set JBOSS_HOME

            JBOSS_HOME=/opt/local/usr/jboss/


            Gruss Christian


            • 3. Re: EJB-installation-problems
              Xiang Qinxian Newbie

              try echo $JBOSS_HOME,
              if you get the ant install error before and sure that set this var, so please kick your release vendor'sss,
              because of impossible mission.:)

              Regards

              • 4. Re: EJB-installation-problems
                Christian Stalp Newbie

                 

                jboss@venus:/home/chris$ echo $JBOSS_HOME
                /opt/local/usr/jboss/

                And what should I do now? I don't understand, sorry.

                Gruss Christian


                • 5. Re: EJB-installation-problems
                  Elias Ross Master

                  Do "export JBOSS_HOME" then run the ant script.

                  • 6. Re: EJB-installation-problems
                    Christian Stalp Newbie

                    I allready done this.
                    But I got another solution. And this is pretty weird. I loggid in as /root. Altought I gave with

                    chown -R jboss jboss/
                    the jboss-user the full permissions to its direcory there was allways such an error:

                    jboss@venus:/opt/public/jboss-EJB-3.0_RC9-FD$ ant -f install.xml -Djboss.server.config=default -DJBOSS_HOME='/opt/local/usr/jboss'
                    Buildfile: install.xml

                    install:
                    [delete] Deleting directory /opt/local/usr/jboss/server/default/deploy/jboss-aop.deployer
                    [delete] Deleting directory /opt/local/usr/jboss/server/default/deploy/jbossws14.sar
                    [delete] Deleting: /opt/local/usr/jboss/client/jbossws14-client.jar
                    [copy] Copying 1 file to /opt/local/usr/jboss/client
                    [copy] Copying 1 file to /opt/local/usr/jboss/client
                    [copy] Copying 1 file to /opt/local/usr/jboss/client
                    [copy] Copying 1 file to /opt/local/usr/jboss/server/default/lib
                    [copy] Copying 1 file to /opt/local/usr/jboss/client
                    [copy] Copying 1 file to /opt/local/usr/jboss/server/default/lib
                    [copy] Copying 1 file to /opt/local/usr/jboss/server/default/lib
                    [copy] Copying 1 file to /opt/local/usr/jboss/server/default/lib
                    [copy] Copying 14 files to /opt/local/usr/jboss/server/default/deploy
                    [copy] Copying 1 file to /opt/local/usr/jboss/server/default/deploy

                    BUILD FAILED
                    /opt/public/jboss-EJB-3.0_RC9-FD/install.xml:71: Directory /opt/public/jboss-EJB-3.0_RC9-FD/tmp creation was not successful for an unknown reason

                    Total time: 7 seconds

                    But when I logged on the shell as /root it worked!
                    venus:/opt/public/jboss-EJB-3.0_RC9-FD# ant -f install.xml -Djboss.server.config=default -DJBOSS_HOME='/opt/local/usr/jboss'
                    Buildfile: install.xml

                    install:
                    [delete] Deleting directory /opt/local/usr/jboss/server/default/deploy/jboss-aop-jdk50.deployer
                    [delete] Deleting directory /opt/local/usr/jboss/server/default/deploy/ejb3.deployer
                    [copy] Copying 10 files to /opt/local/usr/jboss/server/default/deploy
                    [mkdir] Created dir: /opt/public/jboss-EJB-3.0_RC9-FD/tmp
                    [unjar] Expanding: /opt/local/usr/jboss/server/default/lib/jboss.jar into /opt/public/jboss-EJB-3.0_RC9-FD/tmp
                    [jar] Building jar: /opt/local/usr/jboss/server/default/lib/jboss.jar
                    [delete] Deleting directory /opt/public/jboss-EJB-3.0_RC9-FD/tmp

                    BUILD SUCCESSFUL
                    Total time: 10 seconds

                    very strange.

                    Gruss Christian