Hello,
I am interested in building custom modules for CPAS so as a prerequisite to that I tried to build CPAS itself from source.
(Let me know if this is not the appropriate place for development-related questions and where the appropriate place is).
I am using IntelliJ IDEA 5.1 on Linux (Fedora Core 3).
I followed all the instructions on the site for building from source, including the instructions specific to IDEA.
When I run the "build" target of the build.xml in modules/, I get some warnings like this:
/home/dante/IdeaProjects/cpas/modules/beehive-tools.xml:151: Warning: taskdef class org.apache.beehive.controls.runtime.packaging.ControlJarTask cannot be found
Then this possibly related error:
/home/dante/IdeaProjects/cpas/modules/beehive-tools.xml:144: Error running apt compiler
[...]
Caused by: java.io.IOException: java.io.IOException: apt: not found
This is a very long stack trace--the complete output of the "ant build" command is attached.
(search for "warning" or "error" to get to the warnings and errors).
I looked through the build files and everything seems fine--the taskdef uses a classpath pointing to a jar that does indeed contain the class mentioned in the warning.
Also, what is that IOException--is ant actually looking for an executable called "apt" to run from the command line?
Any help would be appreciated--I would love to be able to build CPAS from source.
Thanks |
|
marki responded: |
2006-09-25 21:10 |
apt is the annotation-compiler tool that is part of jdk 1.5, and it is an executable
Is it possible that your ant installation is trying to compile using jdk 1.4? CPAS requires jdk1.5 for build and runtime. |
|
dandante responded: |
2006-09-25 22:00 |
Thanks for your response. I am definitely using jdk 1.5. The issue was that JAVA_HOME/bin was not on my path. I put it there and it fixed that problem, when running "ant build" from the command line. I am still experiencing the problem when running this target within IDEA. I restarted IDEA but it still doesn't see my system path. How to fix this?
Anyway, running from the command line I now have a new problem, the build is failing with this message:
BUILD FAILED
/home/dante/IdeaProjects/cpas/modules/build.xml:728: The following error occurred while executing this line:
/home/dante/IdeaProjects/cpas/modules/build.xml:327: The following error occurred while executing this line:
/home/dante/IdeaProjects/cpas/modules/build.xml:594: The following error occurred while executing this line:
/home/dante/IdeaProjects/cpas/modules/build.xml:618: The following error occurred while executing this line:
/home/dante/IdeaProjects/cpas/modules/build.xml:560: The following error occurred while executing this line:
/home/dante/IdeaProjects/cpas/modules/build.xml:447: Class org.apache.jasper.JspC doesn't support the "compilertargetvm" attribute.
Yes, I am using Tomcat 5.5....
Complete output of command line build is attached.
Any ideas? Thanks |
|
|
brendanx responded: |
2006-09-26 08:04 |
You will want to set CATALINA_HOME in your environment before starting IntelliJ. |
|
dandante responded: |
2006-09-26 11:30 |
Thank you. I already did that and it makes no difference. Same with running from the command line--I set CATALINA_HOME and JAVA_HOME and I still get this error:
/home/dante/IdeaProjects/cpas/modules/build.xml:447: Class org.apache.jasper.JspC doesn't support the "compilertargetvm" attribute.
(And in IDEA I still can't get past the first error I posted about, though I have contacted IntelliJ support about that).
Thanks |
|
dandante responded: |
2006-09-26 13:09 |
I got the source to build using "ant build" within IDEA. Thanks for the help! |
|
adam responded: |
2006-12-04 22:04 |
|
|
|
|