Forums » User questions »
JSAGA LFC Adaptor in a J2EE container
Added by Harezlak Daniel almost 14 years ago
Hello,
I would like to use the JSAGA's LFC adaptor (among others) in my Tomcat deployable web application. During first tests I came upon the httpg handler class loading error. I would like to ask what is the 'official' recommendation for dealing with this problem. I noticed that the SRM22DataAdaptor class has a commented out workaround, but this is hardly helpful.
Thanks for any info on the matter.
Daniel
Replies (1)
RE: JSAGA LFC Adaptor in a J2EE container
-
Added by Harezlak Daniel almost 14 years ago
Hello,
After a number of trials I finally managed to deal with the httpg problem. In my Tomcat 7 installation I did the following:
1. I put the cog-url-1.4 jar in a known location (for me it was $CATALINA_HOME/httpg/cog-url-1.4.jar).
2. I changed catalina.sh script so now it contains the following:
# Add on extra jar files to CLASSPATH if [ ! -z "$CLASSPATH" ] ; then CLASSPATH="$CLASSPATH": fi CLASSPATH="$CLASSPATH""$CATALINA_HOME"/bin/bootstrap.jar CLASSPATH="$CLASSPATH":"$CATALINA_HOME/httpg/cog-url-1.4.jar" #<- added line
3. Before starting the Tomcat I export the following:
export JAVA_OPTS="-Djava.protocol.handler.pkgs=org.globus.net.protocol -Dsaga.factory=fr.in2p3.jsaga.impl.SagaFactoryImpl"
Cheers,
Dan