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 an...@imail.de on 2002/09/30 11:14:18 UTC

newbie question

Hi,
I'm new to cactus, but I would like to set up some testing.
There is a problem to compile the sampleServlet.
I'm want to use tomcat4.1,jakarta-cactus-13-1.4 and jdk 1.4.1.
There is no problem with jdk 1.3.1.

I get the following:
 
Exception Report:


     [echo] 
     [echo] java.home = /home/opt/java_work/j2sdk1.4.1/jre
     [echo] user.home = /home/orth
     [echo] ant.home = /home/opt/java_work/jakarta-ant/1.4.1/bin/..
     [echo] 
     [echo] cactus.framework.jar = ../lib/cactus-1.4.1.jar
     [echo] cactus.ant.jar = ../lib/cactus-ant-1.4.1.jar
     [echo] servlet.jar = ../lib/servletapi-2.3.jar
     [echo] aspectjrt.jar = ../lib/aspectjrt-1.0.5.jar
     [echo] commons.logging.jar = ../lib/commons-logging-1.0.jar
     [echo] commons.httpclient.jar =
../lib/commons-httpclient-2.0alpha1-20020606.jar
     [echo] httpunit.jar = ../lib/httpunit-1.4.1.jar
     [echo] junit.jar = ../lib/junit-3.7.jar
     [echo] 
     [echo] log4j.jar (optional) = ../lib/log4j-1.2.5.jar
     [echo] clover.jar (optional) = ${clover.jar}
     [echo] 
     [echo] test.port = 8080
     [echo] 

check.properties.test:

check.properties.warn:

check.properties:

init:

compile.sample:
    [mkdir] Created dir:
/home/orth/jakarta-cactus/jakarta-cactus-13-1.4.1/sample-servlet/target/classes/sample
    [javac] Compiling 1 source file to
/home/orth/jakarta-cactus/jakarta-cactus-13-1.4.1/sample-servlet/target/classes/sample
    [javac]
/home/orth/jakarta-cactus/jakarta-cactus-13-1.4.1/sample-servlet/src/sample/de/fhworms/ztt/ox/cactus/SessionMapper.java:11:
cannot access java.lang.Object
    [javac] bad class file:
/home/opt/java_work/j2sdk1.4.1/jre/lib/rt.jar(java/lang/Object.class)
    [javac] class file has wrong version 48.0, should be 47.0
    [javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.
    [javac] public static Map mapRequestToSession(HttpServletRequest
request) {
    [javac]                                       ^
    [javac] 1 error

BUILD FAILED

/home/orth/jakarta-cactus/jakarta-cactus-13-1.4.1/sample-servlet/build/build.xml:208:
Compile failed, messages should have been provided.






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: newbie question

Posted by Vincent Massol <vm...@octo.com>.
It should work fine (although I haven't tested it). Are you sure you did
an "ant clean" when you moved from JDK 1.3 to 1.4?

If you still have problems I'll give it a go later in the week.

Thanks
-Vincent

> -----Original Message-----
> From: andreas.orth@imail.de [mailto:andreas.orth@imail.de]
> Sent: 30 September 2002 10:14
> To: cactus-user@jakarta.apache.org
> Subject: newbie question
> 
> Hi,
> I'm new to cactus, but I would like to set up some testing.
> There is a problem to compile the sampleServlet.
> I'm want to use tomcat4.1,jakarta-cactus-13-1.4 and jdk 1.4.1.
> There is no problem with jdk 1.3.1.
> 
> I get the following:
> 
> Exception Report:
> 
> 
>      [echo]
>      [echo] java.home = /home/opt/java_work/j2sdk1.4.1/jre
>      [echo] user.home = /home/orth
>      [echo] ant.home = /home/opt/java_work/jakarta-ant/1.4.1/bin/..
>      [echo]
>      [echo] cactus.framework.jar = ../lib/cactus-1.4.1.jar
>      [echo] cactus.ant.jar = ../lib/cactus-ant-1.4.1.jar
>      [echo] servlet.jar = ../lib/servletapi-2.3.jar
>      [echo] aspectjrt.jar = ../lib/aspectjrt-1.0.5.jar
>      [echo] commons.logging.jar = ../lib/commons-logging-1.0.jar
>      [echo] commons.httpclient.jar =
> ../lib/commons-httpclient-2.0alpha1-20020606.jar
>      [echo] httpunit.jar = ../lib/httpunit-1.4.1.jar
>      [echo] junit.jar = ../lib/junit-3.7.jar
>      [echo]
>      [echo] log4j.jar (optional) = ../lib/log4j-1.2.5.jar
>      [echo] clover.jar (optional) = ${clover.jar}
>      [echo]
>      [echo] test.port = 8080
>      [echo]
> 
> check.properties.test:
> 
> check.properties.warn:
> 
> check.properties:
> 
> init:
> 
> compile.sample:
>     [mkdir] Created dir:
> /home/orth/jakarta-cactus/jakarta-cactus-13-1.4.1/sample-
> servlet/target/classes/sample
>     [javac] Compiling 1 source file to
> /home/orth/jakarta-cactus/jakarta-cactus-13-1.4.1/sample-
> servlet/target/classes/sample
>     [javac]
> /home/orth/jakarta-cactus/jakarta-cactus-13-1.4.1/sample-
> servlet/src/sample/de/fhworms/ztt/ox/cactus/SessionMapper.java:11:
> cannot access java.lang.Object
>     [javac] bad class file:
> /home/opt/java_work/j2sdk1.4.1/jre/lib/rt.jar(java/lang/Object.class)
>     [javac] class file has wrong version 48.0, should be 47.0
>     [javac] Please remove or make sure it appears in the correct
> subdirectory of the classpath.
>     [javac] public static Map mapRequestToSession(HttpServletRequest
> request) {
>     [javac]                                       ^
>     [javac] 1 error
> 
> BUILD FAILED
> 
> /home/orth/jakarta-cactus/jakarta-cactus-13-1.4.1/sample-
> servlet/build/build.xml:208:
> Compile failed, messages should have been provided.
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>