We are using Jakarta Cactus for in-container testing of our EJBs. Our environment: 

  Jakarta Cactus 13-1.5
  JBoss 3.2.3 
  Ant 1.5.4
  Java 1.4.2

Deploying and starting the shipped EJB test application 
Â$CACUTS_HOME/jakarta-cactus-13-1.5/samples/ejb causes  JBoss to shut down and we 
get the following console output...


6:33,005 INFO  [EARDeployer] Init J2EE application: 
file:/dat/opt/jboss-3.2.3/server/default/deploy/cactus-sample-ejb-cactified.ear
15:56:33,219 INFO  [Engine] StandardHost[localhost]: MAPPING configuration error for 
request URI /cactus-sample-ejb/ServletRedirector
15:56:33,219 INFO  [Engine] StandardHost[localhost]: MAPPING configuration error for 
request URI /cactus-sample-e-ejb/ServletRedirector
.
.
.
15:56:36,290 INFO  [Engine] StandardHost[localhost]: MAPPING configuration error for 
request URI /cactus-sample-ejb/ServletRedirector
15:56:36,430 INFO  [StatelessSessionInstancePool] Started 
jboss.j2ee:jndiName=Converter,plugin=pool,service=EJB
15:56:36,431 INFO  [StatelessSessionContainer] Started 
jboss.j2ee:jndiName=Converter,service=EJB
15:56:36,432 INFO  [EjbModule] Started 
jboss.j2ee:module=cactus-sample-ejb.jar,service=EjbModule
15:56:36,433 INFO  [EJBDeployer] Deployed: 
file:/dat/opt/jboss-3.2.3/server/default/tmp/deploy/tmp64348cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb.jar
15:56:36,799 INFO  [Engine] StandardHost[localhost]: MAPPING configuration error for 
request URI /cactus-sample-ejb/ServletRedirector
15:56:36,799 INFO  [Engine] StandardHost[localhost]: MAPPING configuration error for 
request URI /cactus-sample-ejb/ServletRedirector
15:56:36,823 INFO  [EmbeddedTomcatService] deploy, ctxPath=/cactus-sample-ejb, 
warUrl=file:/dat/opt/jboss-3.2.3/server/default/tmp/deploy/tmp64348cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb-cactified.war/
15:56:39,093 INFO  [Engine] SingleSignOnContextConfig[/cactus-sample-ejb]: Added 
certificates -> request attribute Valve
15:56:39,170 WARN  [EmbeddedTomcatService] Unable to invoke setDelegate on class 
loader:[EMAIL PROTECTED]
15:56:39,171 INFO  [Engine] StandardManager[/cactus-sample-ejb]: Seeding random number 
generator class java.security.SecureRandom
15:56:39,172 INFO  [Engine] StandardManager[/cactus-sample-ejb]: Seeding of random 
number generator has been completed
15:56:39,500 INFO  [Engine] StandardWrapper[/cactus-sample-ejb:default]: Loading 
container servlet default
15:56:39,501 INFO  [Engine] StandardWrapper[/cactus-sample-ejb:invoker]: Loading 
container servlet invoker
15:56:40,095 INFO  [EARDeployer] Started J2EE application: 
file:/dat/opt/jboss-3.2.3/server/default/deploy/cactus-sample-ejb-cactified.ear
15:56:40,096 INFO  [MainDeployer] Deployed package: 
file:/dat/opt/jboss-3.2.3/server/default/deploy/cactus-sample-ejb-cactified.ear
.
.
.

Restarting JBoss works fine and the test ends without any errors. However, 
hotdeploying the cactified ear would be really nice and time saving feature.

Does anybody know how to solve this problem or why cactus triggers a server shutdown?

Cheers
Stefan

Below the ant triggered test output...

ant test
Buildfile: build.xml

init:

compile.java:
    [mkdir] Created dir: /dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/classes/java
    [javac] Compiling 3 source files to 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/classes/java

ejb:
      [jar] Building jar: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/cactus-sample-ejb.jar

ear:
      [ear] Building ear: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/cactus-sample-ejb.ear

compile.cactus:
    [mkdir] Created dir: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/classes/cactus
    [javac] Compiling 1 source file to 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/classes/cactus

test.war:
      [war] Building war: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/cactus-sample-ejb.war
[cactifywar] Analyzing war: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/cactus-sample-ejb.war
[cactifywar] Building war: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/cactus-sample-ejb-cactified.war
      [ear] Building ear: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/cactus-sample-ejb-cactified.ear

test.prepare:
    [mkdir] Created dir: /dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/test-reports
    [mkdir] Created dir: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/test-reports/jboss3x
    [mkdir] Created dir: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/test-reports/orion1x
    [mkdir] Created dir: 
/dat/opt/jakarta-cactus-13-1.5/samples/ejb/target/test-reports/orion2x

test:
   [cactus] -----------------------------------------------------------------
   [cactus] Running tests against JBoss 3.2.3
   [cactus] -----------------------------------------------------------------
   [cactus] Testsuite: org.apache.cactus.sample.ejb.TestConverterEJB
   [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.885 sec

   [cactus] Shutdown message has been posted to the server.
   [cactus] Server shutdown may take a while - check logfiles for completion
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 959ms
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 271ms
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 165ms

BUILD SUCCESSFUL
Total time: 22 seconds
Apache Ant version 1.5.4 compiled on August 12 2003

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826880#3826880";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826880>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to