Re: [Resin-interest] Classpath Question

2010-03-22 Thread Bill Au
The command line arguments for starting Resin 4.0.x only applied to the
watchdog and NOT the actual resin process itself.  JVM command line
arguments are specified in resin.xml.  For example, in the command above,
$JAVA_MX and $JAVA_MS applies to the watchdog only.  I wouldn't increase the
default 32m max heap size of the watchdog since it does need much memory.

Bill

On Fri, Mar 19, 2010 at 5:53 PM, Aaron Freeman aaron.free...@layerz.comwrote:

 It's working now.  For completeness and to help others moving from 3.0.x
 to 3.1.x or 4.0.x you should change your startup script from this style
 (which relies on a wrapper.pl):

 $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

 To something like this:

 $JAVA_HOME/bin/java \
 -server \
 -Xmx$JAVA_MX \
 -Xms$JAVA_MS \
 -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
 -Djava.security.egd=/dev/urandom \
 -Dresin.home=${RESIN_HOME} \
 -jar ${RESIN_HOME}/lib/resin.jar \
 -conf ${SERVER_ROOT}/conf/resin.xml \
 $*

 And by the way that magically fixed my resin:type problem as well.



 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Classpath Question

2010-03-22 Thread Aaron Freeman
Ah excellent catch.  I just copied those from my 3.0 startup script and 
what you said makes complete sense.  I will revisit each parameter 
carefully.


Thanks,

Aaron


On 3/22/2010 10:20 AM, Bill Au wrote:
The command line arguments for starting Resin 4.0.x only applied to 
the watchdog and NOT the actual resin process itself.  JVM command 
line arguments are specified in resin.xml.  For example, in the 
command above, $JAVA_MX and $JAVA_MS applies to the watchdog only.  I 
wouldn't increase the default 32m max heap size of the watchdog since 
it does need much memory.


Bill

On Fri, Mar 19, 2010 at 5:53 PM, Aaron Freeman 
aaron.free...@layerz.com mailto:aaron.free...@layerz.com wrote:


It's working now.  For completeness and to help others moving from
3.0.x
to 3.1.x or 4.0.x you should change your startup script from this
style
(which relies on a wrapper.pl http://wrapper.pl):

$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

To something like this:

$JAVA_HOME/bin/java \
-server \
-Xmx$JAVA_MX \
-Xms$JAVA_MS \
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
-Djava.security.egd=/dev/urandom \
-Dresin.home=${RESIN_HOME} \
-jar ${RESIN_HOME}/lib/resin.jar \
-conf ${SERVER_ROOT}/conf/resin.xml \
$*

And by the way that magically fixed my resin:type problem as well.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Classpath Question

2010-03-19 Thread Aaron Freeman
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-typejks/key-store-type
40: key-store-file/opt/server/security/ssl.kdb/key-store-file
41: password resin:type=com.encryption.Passwordabcdefgh/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
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Classpath Question

2010-03-19 Thread Rick Mann
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-typejks/key-store-type
 40: key-store-file/opt/server/security/ssl.kdb/key-store-file
 41: password resin:type=com.encryption.Passwordabcdefgh/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
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Classpath Question

2010-03-19 Thread Aaron Freeman
It's working now.  For completeness and to help others moving from 3.0.x 
to 3.1.x or 4.0.x you should change your startup script from this style 
(which relies on a wrapper.pl):

$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

To something like this:

$JAVA_HOME/bin/java \
-server \
-Xmx$JAVA_MX \
-Xms$JAVA_MS \
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
-Djava.security.egd=/dev/urandom \
-Dresin.home=${RESIN_HOME} \
-jar ${RESIN_HOME}/lib/resin.jar \
-conf ${SERVER_ROOT}/conf/resin.xml \
$*

And by the way that magically fixed my resin:type problem as well.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Classpath Question

2010-03-19 Thread Jamison Novak
You may also find this Wiki page useful:

http://wiki.caucho.com/Migrating_from_Resin_3.0_to_Resin_4.0

-Original Message-
From: resin-interest-boun...@caucho.com 
[mailto:resin-interest-boun...@caucho.com] On Behalf Of Aaron Freeman
Sent: Friday, March 19, 2010 4:54 PM
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] Classpath Question

It's working now.  For completeness and to help others moving from 3.0.x 
to 3.1.x or 4.0.x you should change your startup script from this style 
(which relies on a wrapper.pl):

$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

To something like this:

$JAVA_HOME/bin/java \
-server \
-Xmx$JAVA_MX \
-Xms$JAVA_MS \
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
-Djava.security.egd=/dev/urandom \
-Dresin.home=${RESIN_HOME} \
-jar ${RESIN_HOME}/lib/resin.jar \
-conf ${SERVER_ROOT}/conf/resin.xml \
$*

And by the way that magically fixed my resin:type problem as well.



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest