jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Y <stanleytech...@yahoo.com>
Subject RE: Could not copy the JSP redirector (Resource '/org/apache/cactus/server/jspRedirector.jsp' not found)
Date Fri, 13 Aug 2004 16:41:02 GMT
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 <vmassol@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 

Mime
View raw message