Summary: | JDK 1.5 build fails with NoClassDefFoundError: org/apache/xpath/XPathAPI | ||
---|---|---|---|
Product: | Lenya | Reporter: | Erik Hoogeveen <noodle> |
Component: | Build System | Assignee: | Lenya Developers <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | Keywords: | JDK1.5 |
Priority: | P2 | ||
Version: | Trunk | ||
Target Milestone: | 1.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Bug Depends on: | |||
Bug Blocks: | 32923 | ||
Attachments: |
patch for build.sh to set the classpath including xalan
patch for build.sh to set the classpath including xalan patch for build.bat to set the classpath including xalan patch for build.bat revision 419866 to work with winXP/JDK1.5 |
Description
Erik Hoogeveen
2005-03-26 21:20:55 UTC
lenya currently does not support jdk 1.5 the likely reason is that jdk 1.5 uses a xerces / xalan version that does not have the necessary classes. that's why the lenya build script has xerces in it's classpath, which i recommend you do too. we need to have xalan on our build cp to make this go away. Hi, First of all thanks for the replies. I've did what you've said. I've added all the cocoon and leny jar to the classpath and well with java 1.4 lenya compiles. However when compiling Leny with java 1.5 I now get: BUILD FAILED: /home/noodle/workspace/lenya-1.4.x/src/targets/init-build.xml:73: TransformerException: javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:/home/noodle/workspace/lenya-1.4.x/build/lenya/webapp/sitemap.xmap (No such file or directory) Funny thing is, the sitmap.xmap file does exist. This is still during the prepare-cocoon task. If I shouldn't be bothering you with this, please say so. But I'd like to help in getting this thing going under java 1.5 (In reply to comment #4) > BUILD FAILED: /home/noodle/workspace/lenya-1.4.x/src/targets/init-build.xml:73: > TransformerException: javax.xml.transform.TransformerException: > java.io.FileNotFoundException: > file:/home/noodle/workspace/lenya-1.4.x/build/lenya/webapp/sitemap.xmap (No such > file or directory) this is a seperate issue: http://issues.apache.org/bugzilla/show_bug.cgi?id=33966 (In reply to comment #5) > (In reply to comment #4) > > > BUILD FAILED: /home/noodle/workspace/lenya-1.4.x/src/targets/init-build.xml:73: > > TransformerException: javax.xml.transform.TransformerException: > > java.io.FileNotFoundException: > > file:/home/noodle/workspace/lenya-1.4.x/build/lenya/webapp/sitemap.xmap (No such > > file or directory) > > this is a seperate issue: http://issues.apache.org/bugzilla/show_bug.cgi?id=33966 i was wrong. this was due to an old copy of the XConfToolTask. fixed now. Created attachment 17516 [details]
patch for build.sh to set the classpath including xalan
patch for build.sh to add the endorsed libs from cocoon to the ant classpath
Created attachment 17517 [details]
patch for build.sh to set the classpath including xalan
sorry some typos - should work now
(In reply to comment #8) > patch for build.sh to set the classpath including xalan Why did you comment out adding the endorsed libs to the class path in your second patch? Created attachment 17682 [details]
patch for build.bat to set the classpath including xalan
Analogous patch for build.bat.
Adds endorsed libs from Cocoon for compiling Lenya with Java 1.5.
The value of the COCOON_HOME variable has to be adjusted manually. (I don't
know a good method for a Windows batch file to extract this value from
local.build.properties.)
I activated java 1.5 support for Linux. Since Cocoon is now placed into externals/, we can take advantage of this and use cocoon endorsed libs dir directly. Missing is the support for windows. Somebody can take this job and close the bug? Many thanks in advance. Created attachment 18568 [details] patch for build.bat revision 419866 to work with winXP/JDK1.5 I just adjusted the privious patch to cope with Cocoon under externals\cocoon_2_1_x Committed revision 426442 the patch from Michael Wohlfart (id=18568). Thx Micheal and everyone else who helped solving this issue. |