Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JSP precompilation problem with Tomcat 5.0.26 embedded in JBoss 3.2.5

Reply
Thread Tools

JSP precompilation problem with Tomcat 5.0.26 embedded in JBoss 3.2.5

 
 
skidvd
Guest
Posts: n/a
 
      08-05-2004
Hello:

I am attempting to upgrade from JBoss 3.0.4 to 3.2.5. However,
following the upgrade,
I can no longer seem to precompile my JSPs as I did before. The
following build.xml
extract worked fine in 3.0.4:

<jspc srcdir="${srcDir}" destdir="${jspDir}"
package="${pkgName}" verbose="2"

compilerclasspath="${env.CATALINA_HOME}/jasper-compiler.jar">
<include name="**/*.jsp" />
<classpath>
<pathelement
path="${env.CATALINA_HOME}/servlet-api.jar"/>
<pathelement
path="${env.CATALINA_HOME}/commons-logging.jar"/>
<pathelement
path="${env.CATALINA_HOME}/jasper-compiler.jar"/>
<pathelement
path="${env.CATALINA_HOME}/jasper-runtime.jar"/>
<pathelement
path="${env.XERCES_HOME}/xmlParserAPIs.jar"/>
<pathelement path="${env.XERCES_HOME}/xercesImpl.jar"/>
<pathelement path="${srcDir}/WEB-INF/lib/taglibs.jar"/>
</classpath>
</jspc>


Follwing the 3.2.5 upgrade, this now produces errors such as the
following:

[jasperc] org.apache.jasper.JasperException: Unrecognized option:
-v2.
Use -help for help.

I have also unsuccessfuly tried the apparently new, Tomcat 5
recommended
way of precompiling as follows:

<taskdef classname="org.apache.jasper.JspC" name="jasper2">
<classpath>
<pathelement path="${env.JAVA_HOME}/lib/tools.jar"/>
<fileset dir="${env.CATALINA_HOME}">
<include name="*.jar"/>
</fileset>
<fileset dir="${env.CATALINA_HOME}/">
<include name="servlet*.jar"/>
</fileset>
<fileset dir="${env.CATALINA_HOME}/">
<include name="commons*.jar"/>
</fileset>
<pathelement path="${srcDir}/WEB-INF/lib/taglibs.jar"/>
</classpath>
</taskdef>

<jasper2
validateXml="false"
uriroot="${srcDir}"
webXmlFramgment="${srcDir}/WEB-INF/generated_web.xml"
outputDir="${jspDir}"/>


This produces the following error

java.lang.IncompatibleClassChangeError: Implementing class

What am I missing and/or not doing in the new version? This is a
stock 3.2.5 installation. I'd appreciate any tips on what to investigate or
how I might track this down and resolve it.

Thanks!
 
Reply With Quote
 
 
 
 
Thai DANG
Guest
Posts: n/a
 
      08-06-2004
ask your question in the tomcat-user mailing !

On 5 Aug 2004 08:32:59 -0700
(skidvd) wrote:

> Hello:
>
> I am attempting to upgrade from JBoss 3.0.4 to 3.2.5. However,
> following the upgrade,
> I can no longer seem to precompile my JSPs as I did before. The
> following build.xml
> extract worked fine in 3.0.4:
>
> <jspc srcdir="${srcDir}" destdir="${jspDir}"
> package="${pkgName}" verbose="2"
>
> compilerclasspath="${env.CATALINA_HOME}/jasper-compiler.jar">
> <include name="**/*.jsp" />
> <classpath>
> <pathelement
> path="${env.CATALINA_HOME}/servlet-api.jar"/>
> <pathelement
> path="${env.CATALINA_HOME}/commons-logging.jar"/>
> <pathelement
> path="${env.CATALINA_HOME}/jasper-compiler.jar"/>
> <pathelement
> path="${env.CATALINA_HOME}/jasper-runtime.jar"/>
> <pathelement
> path="${env.XERCES_HOME}/xmlParserAPIs.jar"/>
> <pathelement path="${env.XERCES_HOME}/xercesImpl.jar"/>
> <pathelement path="${srcDir}/WEB-INF/lib/taglibs.jar"/>
> </classpath>
> </jspc>
>
>
> Follwing the 3.2.5 upgrade, this now produces errors such as the
> following:
>
> [jasperc] org.apache.jasper.JasperException: Unrecognized option:
> -v2.
> Use -help for help.
>
> I have also unsuccessfuly tried the apparently new, Tomcat 5
> recommended
> way of precompiling as follows:
>
> <taskdef classname="org.apache.jasper.JspC" name="jasper2">
> <classpath>
> <pathelement path="${env.JAVA_HOME}/lib/tools.jar"/>
> <fileset dir="${env.CATALINA_HOME}">
> <include name="*.jar"/>
> </fileset>
> <fileset dir="${env.CATALINA_HOME}/">
> <include name="servlet*.jar"/>
> </fileset>
> <fileset dir="${env.CATALINA_HOME}/">
> <include name="commons*.jar"/>
> </fileset>
> <pathelement path="${srcDir}/WEB-INF/lib/taglibs.jar"/>
> </classpath>
> </taskdef>
>
> <jasper2
> validateXml="false"
> uriroot="${srcDir}"
> webXmlFramgment="${srcDir}/WEB-INF/generated_web.xml"
> outputDir="${jspDir}"/>
>
>
> This produces the following error
>
> java.lang.IncompatibleClassChangeError: Implementing class
>
> What am I missing and/or not doing in the new version? This is a
> stock 3.2.5 installation. I'd appreciate any tips on what to investigate or
> how I might track this down and resolve it.
>
> Thanks!

 
Reply With Quote
 
 
 
 
skidvd
Guest
Posts: n/a
 
      08-10-2004
Thai:

Thanks for your suggestion. I have posted this same question there
with no response. I'll be happy to dig into this, but right now I
clueless as to where to begin as the "IncompatibleClassChangeError:
Implememting class" does not give me much to work with.

Thanks in advance for any help anyone may be able to provide!
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      08-10-2004
On 10 Aug 2004 07:54:09 -0700, skidvd wrote:

> Thanks for your suggestion. I have posted this same question there
> with no response. I'll be happy to dig into this, but right now I
> clueless as to where to begin as the "IncompatibleClassChangeError:


And it was such that mindprod.com moved across the waters..
And mindprod.com (that move across the waters) did state..
<http://mindprod.com/jgloss/errormessages.html#INCOMPATIBLECLASSCHANGEERROR>

HMPH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
 
Reply With Quote
 
skidvd
Guest
Posts: n/a
 
      08-11-2004
Unfortunately I am still not making any progress with this issue. I
have read and understand the Javadoc for the
IncompatibleClassChangeError. However, I have not yet found anything
that creates any different outcome from my attempts to change items
possible indicated by that Exception.

Perhaps the ANT stack trace and my build.xml filemay help. I'd
cerainly appreaciet any and allhelp as I have been frustrated by this
problem for over a week now with seemingly no progress despite
significant effort.


BUILD FAILED
java.lang.IncompatibleClassChangeError: Implementing class

java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :539)
at
org.apache.tools.ant.loader.AntClassLoader2.define ClassFromData(AntClassLoader2.java:76)
at
org.apache.tools.ant.AntClassLoader.getClassFromSt ream(AntClassLoader.java:1073)
at
org.apache.tools.ant.AntClassLoader.findClassInCom ponents(AntClassLoader.java:1137)
at
org.apache.tools.ant.AntClassLoader.findClass(AntC lassLoader.java:1090)
at
org.apache.tools.ant.AntClassLoader.loadClass(AntC lassLoader.java:960)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
at
java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
org.apache.tools.ant.taskdefs.Definer.addDefinitio n(Definer.java:457)
at
org.apache.tools.ant.taskdefs.Definer.execute(Defi ner.java:183)
at
org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:34 1)
at org.apache.tools.ant.Target.performTasks(Target.ja va:369)
at
org.apache.tools.ant.Project.executeTarget(Project .java:1214)
at
org.apache.tools.ant.Project.executeTargets(Projec t.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:18
at
org.apache.tools.ant.launch.Launcher.run(Launcher. java:196)
at
org.apache.tools.ant.launch.Launcher.main(Launcher .java:55)


Here is the excerpt from my build.xml

<target name="jspc" depends="prepare, compile"
description="prepares JSP source files">

<!-- <echoproperties/> -->
<echo message="About to define JspC task"/>
<taskdef classname="org.apache.jasper.JspC" name="jasper2">
<!--
-->
<classpath id="jspc.classpath">
<pathelement path="${env.JAVA_HOME}/lib/tools.jar"/>
<fileset dir="${env.CATALINA_HOME}">
<include name="jasper-compiler.jar"/>
</fileset>
<pathelement path="${srcDir}/WEB-INF/lib/taglibs.jar"/>
</classpath>
</taskdef>
<echo message="after JspC task defintion"/>

<echo message="About to invoke jasper2"/>
<jasper2
validateXml="false"
uriroot="${srcDir}"
webXmlFramgment="${srcDir}/WEB-INF/generated_web.xml"
outputDir="${jspDir}"/>

</target>

<target name="jspCompile" depends="jspc"
description="compiles JSP source files">
<javac srcdir="${jspDir}" destdir="${srcDir}/WEB-INF/classes"
classpathref="classpath"/>
</target>


I would greatly appreciate any and all help in resolving this
issue as I am at my wits end and out of ideas to try.

Thanks in advance!
 
Reply With Quote
 
rrahimunisa rrahimunisa is offline
Junior Member
Join Date: Dec 2008
Posts: 1
 
      12-12-2008
do you still need help? i figured out a way to precompile jsp. But now i have problems when i change my jsp. tomcat is not precompiling new jsp's.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat 6.0 Post Precompilation issue. Help Needed. Roxy Java 5 12-16-2008 02:56 AM
jsp precompilation using tomcat 6 and ant harryos Java 0 12-01-2008 07:00 AM
[dll - after Obfuscation] Problem: precompilation needed? teo ASP .Net 4 11-10-2006 12:04 AM
JBoss Lomboz Eclipse JSP Parsing Error on jsp:setProperty Dale Java 0 10-01-2004 04:58 PM
Problem with embedded Tomcat and JSP compilation. bcassand Java 4 01-12-2004 12:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57