You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Stan Y <st...@yahoo.com> on 2004/08/12 22:29:31 UTC

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 

RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)

Posted by Stan Y <st...@yahoo.com>.
I hope the following information is helpful for inditifying the
problem.

[yao@tuzi ejb]$ jar -ft target/cactus-sample-ejb.war
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/web.xml
[yao@tuzi ejb]$ jar -ft target/cactus-sample-ejb.jar
META-INF/
META-INF/MANIFEST.MF
org/
org/apache/
org/apache/cactus/
org/apache/cactus/sample/
org/apache/cactus/sample/ejb/
org/apache/cactus/sample/ejb/Converter.class
org/apache/cactus/sample/ejb/ConverterEJB.class
org/apache/cactus/sample/ejb/ConverterHome.class
META-INF/ejb-jar.xml
[yao@tuzi ejb]$ jar -ft target/cactus-sample-ejb.ear
META-INF/
META-INF/MANIFEST.MF
cactus-sample-ejb.jar
META-INF/application.xml


[yao@tuzi ejb]$ more src/webapp/WEB-INF/web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
 
<web-app>
</web-app>
[yao@tuzi ejb]$ more src/webapp/WEB-INF/cactus-web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
 
<web-app>
 
    <!-- Put Cactus specific definitions here. Note that by default
         the <cactifywar> Ant task automatically adds Servlet, Filter
         and JSP redirector definitions and mappings. You only need
         to edit this file if you want to change these defaults or
         add other definitions required for Cactus testing. -->
 
</web-app>

Thanks,
Stan


--- Stan Y <st...@yahoo.com> wrote:

> Hi Vincent,
> 
> Thanks for looking at it.  Actually I did use a
> pristine version of cactus.  To double check, I
> removed both the jboss and cactus tar balls and
> installation dirs this morning.  Then I re-downloaded
> cactus and reinstalled jboss and cactus fresh.  I then
> 
> (0) went to
> /home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb,
> and
> (1) changed one line in build.properties
> "cactus.home.jboss3x = /home/yao/local/jboss-3.2.2/",
> and
> (2) did "cp
> ~/local/jboss-3.2.2/server/default/lib/jboss-j2ee.jar
> ../../lib/j2ee-1.3.jar", and then
> (3) did "ant".
> 
> I got the same output.  And yes, I have the same dir
> structure as you said.
> 
> [yao@tuzi jakarta-cactus-13-1.6.1]$ pwd
> /home/yao/local/jakarta-cactus-13-1.6.1
> [yao@tuzi jakarta-cactus-13-1.6.1]$ ls
> ANNOUNCEMENT.txt  LICENSE.aspectj.html 
> LICENSE.httpunit  LICENSE.servletapi  web
> doc               LICENSE.cactus        LICENSE.log4j 
>    NOTICE.cactus
> lib               LICENSE.httpclient   
> LICENSE.logging   samples
> [yao@tuzi jakarta-cactus-13-1.6.1]$ ls samples/
> ejb  jetty  servlet
> [yao@tuzi jakarta-cactus-13-1.6.1]$ ls lib/
> aspectjrt-1.1.1.jar   commons-httpclient-2.0.jar 
> j2ee-1.3.jar        servletapi-2.3.jar
> cactus-1.6.1.jar      commons-logging-1.0.3.jar  
> junit-3.8.1.jar
> cactus-ant-1.6.1.jar  httpunit-1.5.4.jar         
> nekohtml-0.7.4.jar
> [yao@tuzi jakarta-cactus-13-1.6.1]$ ls web/
> jspRedirector.jsp
> 
> Thanks,
> Stan
> 
> 
> --- Vincent Massol <vm...@pivolis.com> wrote:
> 
> > Stan,
> > 
> > It seems to me that you're not running a full
> > pristine version of the cactus
> > distribution. You need to unzip the distribution zip
> > and only edit the
> > build.properties to tell cactus to use jboss.
> > 
> > If you do this, you should have a directory
> > structure similar to:
> > 
> > jakarta-cactus-13-1.6.1
> >   |_ lib/
> >   |_ samples/ejb
> >   |_ web/
> > [...]
> > 
> > You must keep this structure or the default
> > build.xml build script will not
> > find the lib directory nor the JSP redirector.
> > 
> > Thanks
> > -Vincent
> > 
> > 
> > > -----Original Message-----
> > > From: Stan Y [mailto:stanleytech421@yahoo.com]
> > > Sent: jeudi 12 ao�t 2004 23:57
> > > To: Cactus Users List
> > > Subject: RE: Could not copy the JSP redirector
> > (Resource
> > > '/org/apache/cactus/server/jspRedirector.jsp' not
> > found)
> > > 
> > > 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:
> > > 
> > > [yao@tuzi ejb]$ cp
> > >
> >
> ~/local/jboss-3.2.2/server/default/lib/jboss-j2ee.jar
> > > ../../lib/j2ee-1.3.jar
> > > [yao@tuzi 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-
> 
=== message truncated ===



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

RE: [SOLVED!!] RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Stan,

> -----Original Message-----
> From: Stan Y [mailto:stanleytech421@yahoo.com]
> Sent: samedi 14 août 2004 01:09
> To: Cactus Users List
> Subject: [SOLVED!!] RE: Could not copy the JSP redirector (Resource
> '/org/apache/cactus/server/jspRedirector.jsp' not found)
> 
> I removed the cactus-ant-1.6.1.jar from ${ANT_HOME}/lib, and the sample
> passed through!  The error is gone.
> 
> I think I put the cactus-ant-1.6.1.jar in ${ANT_HOME}/lib, because I
> was trying to use Cactus in Eclipse.  But then when I try the cactus
> samples in the shell command line, the sample brokes, probably due to
> the jar files conflicts in the CP.

Ah, I should have thought about anthome/lib!... It's a common issue...

I'm glad you solved it.

Thanks for telling us
-Vincent

> 
> Thank you for your time helping, Vincent.
> Stan
> 
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> http://mobile.yahoo.com/maildemo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



[SOLVED!!] RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)

Posted by Stan Y <st...@yahoo.com>.
I removed the cactus-ant-1.6.1.jar from ${ANT_HOME}/lib, and the sample
passed through!  The error is gone.

I think I put the cactus-ant-1.6.1.jar in ${ANT_HOME}/lib, because I
was trying to use Cactus in Eclipse.  But then when I try the cactus
samples in the shell command line, the sample brokes, probably due to
the jar files conflicts in the CP.

Thank you for your time helping, Vincent.
Stan




		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)

Posted by Stan Y <st...@yahoo.com>.
I installed another fresh cactus and did the samples/servlet on tomcat
(versus jboss, on which I did the previous experiment).  The result is
similar.  So I guess I must have done something wrong within Cactus but
not in the container.  Here is the output on tomcat.

[yao@tuzi servlet]$ pwd
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet

[yao@tuzi servlet]$ grep tomcat build.properties
#cactus.home.tomcat4x = c:/Apps/jakarta-tomcat-4.1.30
cactus.home.tomcat5x = /home/yao/tmp/jakarta-tomcat-5.0.27/

[yao@tuzi servlet]$ ant
Buildfile: build.xml
 
init:
 
clean:
 
compile.java:
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/classes/java
    [javac] Compiling 7 source files to
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/classes/java
 
war:
      [war] Building war:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/cactus-sample-servlet.war
 
compile.cactus:
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/classes/cactus
    [javac] Compiling 32 source files to
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/classes/cactus
    [javac] Note:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/src/test-cactus/org/apache/cactus/sample/servlet/TestSampleServlet.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
 
test.prepare.logging:
    [touch] Creating
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/logging_client.properties
    [touch] Creating
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/logging_server.properties
 
test.prepare:
[cactifywar] Analyzing war:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/cactus-sample-servlet.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/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/cactus-sample-servlet-cactified.war
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/test-reports
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/test-reports/jboss3x
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/test-reports/orion1x
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/test-reports/orion2x
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/test-reports/resin2x
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/test-reports/resin3x
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/test-reports/tomcat4x
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/test-reports/tomcat5x
    [mkdir] Created dir:
/home/yao/tmp/jakarta-cactus-13-1.6.1/samples/servlet/target/test-reports/weblogic7x
 
test:
   [cactus]
-----------------------------------------------------------------
   [cactus] Running tests against Tomcat 5.0.27
   [cactus]
-----------------------------------------------------------------
   [cactus] Deleting 58 files from /tmp/cactus/tomcat5x
   [cactus] Deleted 21 directories from /tmp/cactus/tomcat5x
...

Thanks,
Stan





		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)

Posted by Stan Y <st...@yahoo.com>.
Just in case there is little difference between this rerun (after
redownload, reinstall fresh) and email I sent originally yesterday, I
am listing the result I got today.

[yao@tuzi ejb]$ pwd
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb
[yao@tuzi ejb]$ ant
Buildfile: build.xml
 
init:
 
clean:
 
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: 628ms
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 269ms
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 161ms
 
BUILD FAILED
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb/build.xml:335: At
least one test failed!
 
Total time: 45 seconds
[yao@tuzi ejb]$

Thanks,
Stan

--- Stan Y <st...@yahoo.com> wrote:

> Hi Vincent,
> 
> Thanks for looking at it.  Actually I did use a
> pristine version of cactus.  To double check, I
> removed both the jboss and cactus tar balls and
> installation dirs this morning.  Then I re-downloaded
> cactus and reinstalled jboss and cactus fresh.  I then
> 
> (0) went to
> /home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb,
> and
> (1) changed one line in build.properties
> "cactus.home.jboss3x = /home/yao/local/jboss-3.2.2/",
> and
> (2) did "cp
> ~/local/jboss-3.2.2/server/default/lib/jboss-j2ee.jar
> ../../lib/j2ee-1.3.jar", and then
> (3) did "ant".
> 
> I got the same output.  And yes, I have the same dir
> structure as you said.
> 
> [yao@tuzi jakarta-cactus-13-1.6.1]$ pwd
> /home/yao/local/jakarta-cactus-13-1.6.1
> [yao@tuzi jakarta-cactus-13-1.6.1]$ ls
> ANNOUNCEMENT.txt  LICENSE.aspectj.html 
> LICENSE.httpunit  LICENSE.servletapi  web
> doc               LICENSE.cactus        LICENSE.log4j 
>    NOTICE.cactus
> lib               LICENSE.httpclient   
> LICENSE.logging   samples
> [yao@tuzi jakarta-cactus-13-1.6.1]$ ls samples/
> ejb  jetty  servlet
> [yao@tuzi jakarta-cactus-13-1.6.1]$ ls lib/
> aspectjrt-1.1.1.jar   commons-httpclient-2.0.jar 
> j2ee-1.3.jar        servletapi-2.3.jar
> cactus-1.6.1.jar      commons-logging-1.0.3.jar  
> junit-3.8.1.jar
> cactus-ant-1.6.1.jar  httpunit-1.5.4.jar         
> nekohtml-0.7.4.jar
> [yao@tuzi jakarta-cactus-13-1.6.1]$ ls web/
> jspRedirector.jsp
> 
> Thanks,
> Stan



		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)

Posted by Stan Y <st...@yahoo.com>.
Hi Vincent,

Thanks for looking at it.  Actually I did use a
pristine version of cactus.  To double check, I
removed both the jboss and cactus tar balls and
installation dirs this morning.  Then I re-downloaded
cactus and reinstalled jboss and cactus fresh.  I then

(0) went to
/home/yao/local/jakarta-cactus-13-1.6.1/samples/ejb,
and
(1) changed one line in build.properties
"cactus.home.jboss3x = /home/yao/local/jboss-3.2.2/",
and
(2) did "cp
~/local/jboss-3.2.2/server/default/lib/jboss-j2ee.jar
../../lib/j2ee-1.3.jar", and then
(3) did "ant".

I got the same output.  And yes, I have the same dir
structure as you said.

[yao@tuzi jakarta-cactus-13-1.6.1]$ pwd
/home/yao/local/jakarta-cactus-13-1.6.1
[yao@tuzi jakarta-cactus-13-1.6.1]$ ls
ANNOUNCEMENT.txt  LICENSE.aspectj.html 
LICENSE.httpunit  LICENSE.servletapi  web
doc               LICENSE.cactus        LICENSE.log4j 
   NOTICE.cactus
lib               LICENSE.httpclient   
LICENSE.logging   samples
[yao@tuzi jakarta-cactus-13-1.6.1]$ ls samples/
ejb  jetty  servlet
[yao@tuzi jakarta-cactus-13-1.6.1]$ ls lib/
aspectjrt-1.1.1.jar   commons-httpclient-2.0.jar 
j2ee-1.3.jar        servletapi-2.3.jar
cactus-1.6.1.jar      commons-logging-1.0.3.jar  
junit-3.8.1.jar
cactus-ant-1.6.1.jar  httpunit-1.5.4.jar         
nekohtml-0.7.4.jar
[yao@tuzi jakarta-cactus-13-1.6.1]$ ls web/
jspRedirector.jsp

Thanks,
Stan


--- Vincent Massol <vm...@pivolis.com> wrote:

> Stan,
> 
> It seems to me that you're not running a full
> pristine version of the cactus
> distribution. You need to unzip the distribution zip
> and only edit the
> build.properties to tell cactus to use jboss.
> 
> If you do this, you should have a directory
> structure similar to:
> 
> jakarta-cactus-13-1.6.1
>   |_ lib/
>   |_ samples/ejb
>   |_ web/
> [...]
> 
> You must keep this structure or the default
> build.xml build script will not
> find the lib directory nor the JSP redirector.
> 
> Thanks
> -Vincent
> 
> 
> > -----Original Message-----
> > From: Stan Y [mailto:stanleytech421@yahoo.com]
> > Sent: jeudi 12 ao�t 2004 23:57
> > To: Cactus Users List
> > Subject: RE: Could not copy the JSP redirector
> (Resource
> > '/org/apache/cactus/server/jspRedirector.jsp' not
> found)
> > 
> > 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:
> > 
> > [yao@tuzi ejb]$ cp
> >
>
~/local/jboss-3.2.2/server/default/lib/jboss-j2ee.jar
> > ../../lib/j2ee-1.3.jar
> > [yao@tuzi 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>(JUnitT
> > estRunner.java:204)
> >    [cactus]     at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitT
> 
=== message truncated ===



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)

Posted by Vincent Massol <vm...@pivolis.com>.
Stan,

It seems to me that you're not running a full pristine version of the cactus
distribution. You need to unzip the distribution zip and only edit the
build.properties to tell cactus to use jboss.

If you do this, you should have a directory structure similar to:

jakarta-cactus-13-1.6.1
  |_ lib/
  |_ samples/ejb
  |_ web/
[...]

You must keep this structure or the default build.xml build script will not
find the lib directory nor the JSP redirector.

Thanks
-Vincent


> -----Original Message-----
> From: Stan Y [mailto:stanleytech421@yahoo.com]
> Sent: jeudi 12 août 2004 23:57
> To: Cactus Users List
> Subject: RE: Could not copy the JSP redirector (Resource
> '/org/apache/cactus/server/jspRedirector.jsp' not found)
> 
> 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:
> 
> [yao@tuzi ejb]$ cp
> ~/local/jboss-3.2.2/server/default/lib/jboss-j2ee.jar
> ../../lib/j2ee-1.3.jar
> [yao@tuzi 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>(JUnitT
> estRunner.java:204)
>    [cactus]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitT
> estRunner.java:177)
>    [cactus]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTes
> tRunner.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 <vm...@pivolis.com> 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:stanleytech421@yahoo.com]
> > > Sent: jeudi 12 ao{t 2004 22:30
> > > To: cactus-user@jakarta.apache.org
> > > 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:
> > cactus-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > cactus-user-help@jakarta.apache.org
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > cactus-user-help@jakarta.apache.org
> >
> >
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)

Posted by Stan Y <st...@yahoo.com>.
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:

[yao@tuzi ejb]$ cp
~/local/jboss-3.2.2/server/default/lib/jboss-j2ee.jar
../../lib/j2ee-1.3.jar
[yao@tuzi 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 <vm...@pivolis.com> 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:stanleytech421@yahoo.com]
> > Sent: jeudi 12 ao�t 2004 22:30
> > To: cactus-user@jakarta.apache.org
> > 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:
> cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> cactus-user-help@jakarta.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> cactus-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)

Posted by Vincent Massol <vm...@pivolis.com>.
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:stanleytech421@yahoo.com]
> Sent: jeudi 12 août 2004 22:30
> To: cactus-user@jakarta.apache.org
> 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: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org