I think what you want to do is add
<class-loader>
<library-loader path="/opt/server/java"/>
</class-loader>
To your resin.xml. At least, that's how I do it in resin-4.0.x
In 4, you can also add all those Java args in the resin.xml file (I think you
can in 3.1, too, but I don't know for sure).
On Mar 19, 2010, at 07:48:27, Aaron Freeman wrote:
> Resin version: resin-pro-3.1.9
>
> I am trying to convert my resin-pro-3.0.23 startup scripts and
> resin.conf file to work with resin-pro-3.1.9. It's close, but there is
> a small error. I am trying to build a start script similar to:
>
> $RESIN_HOME/bin/httpd.sh -verbose \
> -J-server \
> -J-Xmx$JAVA_MX \
> -J-Xms$JAVA_MS \
> -J-verbose:gc \
> -J-XX:MaxGCPauseMillis=5000 \
> -J-XX:GCTimeRatio=19 \
> -J-XX:+PrintGCTimeStamps \
> -J-Djava.security.egd=/dev/urandom \
> -J-cp=/opt/server/java/test.jar \
> -server-root $SERVER_ROOT \
> -Dresin.home=/opt/resin-pro-3.1.9 \
> -conf /opt/server/conf/resin.xml \
> $1
>
> But when I launch it, it fails on this line in the resin.xml:
>
> /opt/server/conf/resin.xml:41: java.lang.ClassNotFoundException:
> com.encryption.
> Password in EnvironmentClassLoader[]
>
> 39: <key-store-type>jks</key-store-type>
> 40: <key-store-file>/opt/server/security/ssl.kdb</key-store-file>
> 41: <password resin:type="com.encryption.Password">abcdefgh</password>
> 42: </jsse-ssl>
> 43: </http>
>
> How do I set my classpath such that Resin can find the
> com.encryption.Password class we have written, which resides in the
> test.jar? I have tried adding -J-cp=... and just setting the CLASSPATH
> environment variable in our start script, but not having any luck. I
> also have this in my resin.xml:
>
> <resin xmlns="http://caucho.com/ns/resin"
> xmlns:resin="http://caucho.com/ns/resin/core">
> <log name="" level="info" path="stdout:"/>
> <cluster id="">
> <library-loader path="/opt/server/java/test.jar"/>
>
> Thanks,
>
> Aaron
>
>
> _______________________________________________
> resin-interest mailing list
> [email protected]
> http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest