Hi Vincent,
Thank you very much for your time and kind help! I am
using jboss-3.2.2 and
jakarta-cactus-13-1.6.1/samples/ejb. My config in
build.properties is as following:
#cactus.home.orion1x = c:/Apps/orion-1.6.0
#cactus.home.orion2x = c:/Apps/orion-2.0.2
cactus.home.jboss3x = /home/yao/local/jboss-3.2.2/
It once worked yesterday, but then ran into this
problem. I might have done something silly.
My console output (with pristine version of both jboss
and cactus, and copying jboss-j2ee.jar) is like this:
[EMAIL PROTECTED] ejb]$ cp
~/local/jboss-3.2.2/server/default/lib/jboss-j2ee.jar
../../lib/j2ee-1.3.jar
[EMAIL PROTECTED] ejb]$ ant test
Buildfile: build.xml
init:
compile.java:
[mkdir] Created dir:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/classes/java
[javac] Compiling 3 source files to
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/classes/java
ejb:
[jar] Building jar:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/cactus-sample-ejb.jar
ear:
[ear] Building ear:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/cactus-sample-ejb.ear
compile.cactus:
[mkdir] Created dir:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/classes/cactus
[javac] Compiling 1 source file to
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/classes/cactus
test.war:
[war] Building war:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/cactus-sample-ejb.war
[cactifywar] Analyzing war:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/cactus-sample-ejb.war
[cactifywar] Could not copy the JSP redirector
(Resource
'/org/apache/cactus/server/jspRedirector.jsp' not
found)
[cactifywar] Could not find the AspectJ Runtime JAR
[cactifywar] You need to add the JAR to the classpath
of the task
[cactifywar] Could not find the Cactus Framework JAR
[cactifywar] You need to add the JAR to the classpath
of the task
[cactifywar] Could not find the Commons-HttpClient JAR
[cactifywar] You need to add the JAR to the classpath
of the task
[cactifywar] Building war:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/cactus-sample-ejb-cactified.war
[ear] Building ear:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/cactus-sample-ejb-cactified.ear
test.prepare:
[mkdir] Created dir:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/test-reports
[mkdir] Created dir:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/test-reports/jboss3x
[mkdir] Created dir:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/test-reports/orion1x
[mkdir] Created dir:
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/test-reports/orion2x
test:
[cactus]
-----------------------------------------------------------------
[cactus] Running tests against JBoss 3.2.2
[cactus]
-----------------------------------------------------------------
[cactus] Exception in thread "main"
java.lang.NoClassDefFoundError:
org/apache/cactus/ServletTestCase
[cactus] at
java.lang.ClassLoader.defineClass0(Native Method)
[cactus] at
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
[cactus] at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
[cactus] at
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
[cactus] at
java.net.URLClassLoader.access$100(URLClassLoader.java:55)
[cactus] at
java.net.URLClassLoader$1.run(URLClassLoader.java:194)
[cactus] at
java.security.AccessController.doPrivileged(Native
Method)
[cactus] at
java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[cactus] at
java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[cactus] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[cactus] at
java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[cactus] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[cactus] at java.lang.Class.forName0(Native
Method)
[cactus] at
java.lang.Class.forName(Class.java:141)
[cactus] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:204)
[cactus] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:177)
[cactus] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:519)
[cactus] TEST
org.apache.cactus.sample.ejb.TestConverterEJB FAILED
[cactus] Shutdown message has been posted to the
server.
[cactus] Server shutdown may take a while - check
logfiles for completion
[junitreport] [Fatal Error] :-1:-1: Premature end of
file.
[junitreport] The file
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/test-reports/jboss3x/TEST-org.apache.cactus.sample.ejb.TestConverterEJB.xml
is not a valid XML document. It is possibly corrupted.
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 630ms
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 320ms
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 284ms
BUILD FAILED
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/build.xml:335:
At least one test failed!
Total time: 34 seconds
Thanks,
Stan
--- Vincent Massol <[EMAIL PROTECTED]> wrote:
> Hi Stan,
>
> Normally, you should not make any change at all to
> the samples to make them
> work. Could you please try with a pristine version
> and show us the console
> log so that we can help you?
>
> Thanks
> -Vincent
>
> > -----Original Message-----
> > From: Stan Y [mailto:[EMAIL PROTECTED]
> > Sent: jeudi 12 ao�t 2004 22:30
> > To: [EMAIL PROTECTED]
> > Subject: Could not copy the JSP redirector
> (Resource
> > '/org/apache/cactus/server/jspRedirector.jsp' not
> found)
> >
> > Dear All,
> >
> > I am trying the sample in
> > jakarta-cactus-13-1.6.1/samples/ejb and got
> several
> > errors when compiling and testing. So I made the
> > following change.
> >
> > In added nested <lib dir="lib/" /> and <fileset
> > dir="jsp/" /> in <war ...> of <target
> name="test.war"
> > ...>, where dir lib/ contains aspectjrt-1.1.1.jar,
> > cactus-1.6.1.jar, commons-httpclient-2.0.jar and
> dir
> > jsp/ contains jspRedirector.jsp. But I still get
> the
> > error when doing "ant test.war":
> >
> > test.war:
> > [war] Building war:
> >
>
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/cactus-sample-
> > ejb.war
> > [war] adding directory META-INF/
> > [war] adding entry META-INF/MANIFEST.MF
> > [war] adding directory WEB-INF/
> > [war] adding directory WEB-INF/lib/
> > [war] adding entry
> > WEB-INF/lib/aspectjrt-1.1.1.jar
> > [war] adding entry
> WEB-INF/lib/cactus-1.6.1.jar
> > [war] adding entry
> > WEB-INF/lib/commons-httpclient-2.0.jar
> > [war] adding entry jspRedirector.jsp
> > [war] adding entry WEB-INF/web.xml
> > [cactifywar] Analyzing war:
> >
>
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/target/cactus-sample-
> > ejb.war
> > [cactifywar] Could not copy the JSP redirector
> > (Resource
> > '/org/apache/cactus/server/jspRedirector.jsp' not
> > found)
> > [cactifywar] Merged 0 context-param definitions
> into
> > the descriptor
> > [cactifywar] Merged 0 filter definitions into the
> > descriptor
> > [cactifywar] Merged 0 servlet definitions into the
> > descriptor
> > [cactifywar] The AspectJ Runtime JAR is already
> > present in the WAR
> > [cactifywar] The Cactus Framework JAR is already
> > present in the WAR
> > [cactifywar] The Commons-HttpClient JAR is already
> > present in the WAR
> > ...
> >
> > Seems jspRedirector.jsp can't be found. Did I
> miss
> > something?
> > Thank you!
> > Stan
> >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - Send 10MB messages!
> > http://promotions.yahoo.com/new_mail
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]