[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss + Apache Tuscany

jim.tootell do-not-reply at jboss.com
Mon Dec 22 11:39:55 EST 2008

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:


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198049#4198049

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198049

More information about the jboss-user mailing list