[Resin-interest] Need help writing a JUnit test to lookup an EJB

2010-01-05 Thread laredotornado

I'm using Resin 3.0.19 (Java 1.5), JUnit 4.3, and Maven 1.1 as the build tool
(sadly, can't upgrade at this time).  I have an EJB running locally and my
question is, is there a Resin Maven dependency I can download that will
allow me to simulate my container for looking up this EJB?  Obviously, when
writing JUnit tests, I am not running them in the context of my normal Resin
container.

Thanks, - Dave

-- 
View this message in context: 
http://old.nabble.com/Need-help-writing-a-JUnit-test-to-lookup-an-EJB-tp27026632p27026632.html
Sent from the Resin mailing list archive at Nabble.com.



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


[Resin-interest] Why isn't startup output going to resin stdout file?

2010-01-04 Thread laredotornado

Hi,

I'm using Resin 3.0.19 on a Mac 10.5.6.  When I run my startup script, all
my output is sent to the terminal window where it used to go to a stdout
file.  This happened when I changed my resin configuration to run in a
cluster, but the startup script changed very little.  I have included it
below.  Please let me know if you know of additional steps to troubleshoot.

Thanks, - Dave

===Begin startup script ===
#!/bin/ksh

umask 006

export
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/
export RESIN_HOME=/opt/resin/current
export ORACLE_HOME=/opt/oracle
#export ORACLE_HOME=/opt/oracle/instantclient
export DYLD_LIBRARY_PATH=$ORACLE_HOME:$DYLD_LIBRARY_PATH

DATE_TIME=`date +%Y-%m-%d-%H.%M.%S`
LOGS_DIRECTORY=/opt/var/logs/resin/dev-resin

if [[ ! -d $LOGS_DIRECTORY ]]; then
  mkdir -p $LOGS_DIRECTORY
else
  rm -f $LOGS_DIRECTORY/jvm
  rm -f $LOGS_DIRECTORY/stderr
  rm -f $LOGS_DIRECTORY/stdout
fi

$RESIN_HOME/bin/httpd.sh \
  -Djava.awt.headless=true \
  -J-d64 \
  -Xms256m \
  -Xmx512m \
  -XX:PermSize=256m \
  -XX:MaxPermSize=512m \
  -server-root /opt/containers/resin/dev-resin \
  -server dev-resin-1 \
  -conf /opt/containers/resin/dev-resin/conf/resin.conf \
  -J-Djava.library.path=$ORACLE_HOME \
  -stderr $LOGS_DIRECTORY/stderr-$DATE_TIME \
  -stdout $LOGS_DIRECTORY/stdout-$DATE_TIME \
  -jvm-log $LOGS_DIRECTORY/jvm-$DATE_TIME \
start 21  /dev/null

while [[ ! -e /opt/containers/resin/dev-resin/httpd.pid ]] ; do
  sleep 0.5;
done

HTTPD_PID=`cat /opt/containers/resin/dev-resin/httpd.pid`
echo Resin [$HTTPD_PID] Started.
echo `cat /opt/containers/resin/dev-resin/httpd.pid`

ln -s $LOGS_DIRECTORY/jvm-$DATE_TIME $LOGS_DIRECTORY/jvm
ln -s $LOGS_DIRECTORY/stderr-$DATE_TIME $LOGS_DIRECTORY/stderr
ln -s $LOGS_DIRECTORY/stdout-$DATE_TIME $LOGS_DIRECTORY/stdout
End startup script ===

-- 
View this message in context: 
http://old.nabble.com/Why-isn%27t-startup-output-going-to-resin-stdout-file--tp27013941p27013941.html
Sent from the Resin mailing list archive at Nabble.com.



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


[Resin-interest] failed scanning class -- what does it mean?

2009-12-30 Thread laredotornado

Hi,

I'm running Resin 3.0.19 locally on my Mac 10.5.6 (Java 1.5).  Upon starting
my Resin server, I see a lot of errors like this on startup.  Can you
explain what they mean and ways to troubleshoot further?  The errors are
scattered in a range of different applications, but all say failed scanning
class.

Thanks, - Dave

[2009/12/30 15:08:54.722] failed scanning class
myco.feedback.model.EmailForm
[2009/12/30 15:08:54.724] java.lang.IllegalStateException
[2009/12/30 15:08:54.724]   at
com.caucho.bytecode.ByteCodeClassScanner.parseElementValue(ByteCodeClassScanner.java:402)
[2009/12/30 15:08:54.724]   at
com.caucho.bytecode.ByteCodeClassScanner.parseElementValue(ByteCodeClassScanner.java:408)
[2009/12/30 15:08:54.724]   at
com.caucho.bytecode.ByteCodeClassScanner.parseAttribute(ByteCodeClassScanner.java:360)
[2009/12/30 15:08:54.724]   at
com.caucho.bytecode.ByteCodeClassScanner.parseMethod(ByteCodeClassScanner.java:325)
[2009/12/30 15:08:54.724]   at
com.caucho.bytecode.ByteCodeClassScanner.scan(ByteCodeClassScanner.java:112)
[2009/12/30 15:08:54.724]   at
com.caucho.loader.enhancer.EnhancerManager.enhance(EnhancerManager.java:237)
[2009/12/30 15:08:54.724]   at
com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1241)
[2009/12/30 15:08:54.724]   at
com.caucho.loader.DynamicClassLoader.findClass(DynamicClassLoader.java:1155)
[2009/12/30 15:08:54.724]   at
com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1078)
[2009/12/30 15:08:54.724]   at
com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1027)
[2009/12/30 15:08:54.724]   at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
[2009/12/30 15:08:54.724]   at
java.lang.Class.getDeclaredMethods0(Native Method)
[2009/12/30 15:08:54.724]   at
java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
[2009/12/30 15:08:54.724]   at
java.lang.Class.getDeclaredMethods(Class.java:1763)
[2009/12/30 15:08:54.724]   at
com.caucho.bytecode.JClassWrapper.getMethod(JClassWrapper.java:264)
[2009/12/30 15:08:54.724]   at
com.caucho.bytecode.JClassWrapper.getMethod(JClassWrapper.java:254)
[2009/12/30 15:08:54.724]   at
com.caucho.ejb.cfg.EjbBean.setEJBClassWrapper(EjbBean.java)
[2009/12/30 15:08:54.724]   at
com.caucho.ejb.cfg.EjbBean.setEJBClass(EjbBean.java:283)

-- 
View this message in context: 
http://old.nabble.com/failed-scanning-classwhat-does-it-mean--tp26972823p26972823.html
Sent from the Resin mailing list archive at Nabble.com.



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


[Resin-interest] Why is port getting included when request goes to Resin?

2009-12-11 Thread laredotornado

Hi,

I have Apache 2.2 and Resin 3.0.19 running locally on my Mac 10.5.6.  I am
trying to run a cluster of 2 resin instances locally.  However, if I visit a
page like

http://localhost/apps/oit/governor/citizen/assistanceUtility/contactInfo.jsf

and submit the form, the resulting URL looks ilke

http://localhost:8080/apps/oit/governor/citizen/assistanceUtility/requestAssistanceGovOfficeReview.jsf

How can I eliminate the port from being included?  Here is how I'm setting
that clustering in my httpd.conf file ...

VirtualHost *:80
ServerAdmin webmas...@localhost
Proxy balancer://mycluster
BalancerMember http://localhost:8080 loadfactor=1 disablereuse=on
BalancerMember http://localhost:8081 loadfactor=1 disablereuse=on
/Proxy
ProxyPass /apps balancer://mycluster/apps lbmethod=byrequests
/VirtualHost


and here is how I set up one of my resin instances (from resin.conf):

cluster
  srun server-id=a host=127.0.0.1 port=6803/
  srun server-id=b host=127.0.0.1 port=6804/
/cluster
...
  session-config
   session-max8192/session-max
   enable-url-rewritingfalse/enable-url-rewriting
   use-persistent-store/
   always-save-session/
   always-load-session/
  /session-config


Any ideas are appreciated, - Dave
-- 
View this message in context: 
http://old.nabble.com/Why-is-port-getting-included-when-request-goes-to-Resin--tp26748298p26748298.html
Sent from the Resin mailing list archive at Nabble.com.



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