3 Replies Latest reply on Jan 24, 2009 8:11 AM by Adfserew Svvde

    JBoss + Apache Tuscany

    Adfserew Svvde Newbie

      How can I install Apache Tuscany in JBoss?

        • 1. Re: JBoss + Apache Tuscany
          Adfserew Svvde Newbie

           

          "soa2008" wrote:
          How can I install Apache Tuscany in JBoss?

          I've got solution for this question.

          The next question is: how can I deploy SCA-project on JBoss?

          • 2. Re: JBoss + Apache Tuscany
            Jim Tootell Newbie

            We just copy our war files to the deploy directory but we did the following first to "install" Tuscany so that it plays nice with JBoss' JVM.

            ===========================
            3.8. Service Component Architecture Support
            3.8.1. Install Apache Tuscany SCA+SDO

            To install Apache Tuscany SCA (and SDO) support:

            * Add jar files to JBoss component's /lib directory
            o Copy the Tuscany SCA+SDO Support Jars to ESB_HOME/server/default/lib


            3.8.2. Configuring Apache Tuscany

            * Modify JBoss component's start-up script
            o Using an editor of choice, open ESB_HOME/<jboss-component>-/bin/run.sh
            o Append -Djava.protocol.handler.pkgs=org.jboss.net.protocol|sun.net.www.protocol to the JVM arguments variable as follows:

            # Setup JBoss specific properties
            JAVA_OPTS="-Djava.protocol.handler.pkgs=org.jboss.net.protocol|sun.net.www.protocol -Dprogram.name=$PROGNAME $JAVA_OPTS"

            *
            o Save and close run.sh
            o Restart JBoss service if necessary

            The following parameter must be passed to the JVM in which Tuscany will run:

            -Djava.protocol.handler.pkgs=org.jboss.net.protocol|sun.net.www.protocol

            The reason the addition of this parameter is necessary is that during startup Tuscany tries to open a URL that points to a directory. (It is not known why because the data in the opened stream does not appear to be used.) The Sun file protocol handler allows the "opening" of the directory and returns a stream that contains a list of files. However, the JBoss implementation of the file handler does not allow this which results in a thrown exception (Access Denied).

            By specifying the java.protocol.handler.pkg, the protocol handlers can be overridden thereby making the Sun classes handle file protocol requests. Handlers are probed from the end of the list, though, so sun.net.www.protocol must be the end. However, if JBoss does not see it's own package in the list, it will add it to the end thereby making it get discovered first. To avoid this, specify org.jboss.net.protocol before sun.net.www.protocol.
            ===============================

            • 3. Re: JBoss + Apache Tuscany
              Adfserew Svvde Newbie

               

              "jim.tootell" wrote:
              We just copy our war files to the deploy directory but we did the following first to "install" Tuscany so that it plays nice with JBoss' JVM.

              ...



              Thank you for response!

              How can I deploy my SCA-project? I can't create .war file.