After all my fumbling around, you probably will find it hard to believe
that I am staring at a Jetty delivered "Welcome to Lenya" screen on
127.0.0.1:8888.
To get Lenya to build and run to this point under Java 1.5 using
Eclipse, I had to do the following things that are not in the Howto
1) Install the cocoon sources in a directory and set
local.build.properties to point to it
I did this in a directory outside Eclipse but I suppose you could
put them inside.
Set the cocoon.src.dir in your local.build.properties to point to
the top of the cocoon source tree.
There are ant taskdefs and probably other things that the build
needs in the cocoon source tree.
2) Set up xalan to override whatever Java 1.5 did to the xalan
functionality.
Download the latest xalan distribution
In your Java 1.5 jdk to which your JAVA_HOME points, create a
subdirectory under lib (I did it both under the jre and the main lib
just to be safe). Copy all the xalan jars into the endorsed subdirectory.
In Eclipse add xalan to the Lenya project classpath for java
compiles/builds.
It took me a bit of thinking to understand that the errors during the
build where really caused by Eclipse's lack of access to the xalan
functionailty required to run the ant tasks.
Since Eclipse does not use the build.bat file, the Ant used to process
the build.xml is Eclipse's ant which in my case is the latest virgin.
There were warnings about depricated functions during the build.
When I start Jetty, there are a lot of warnings saying
- Ignored element 'init-param' as child of 'servlet'.
I am not sure how jetty works and perhaps the xalan issue might come up
again.
I am now going to move on to the Tomcat install. I suspect that I will
have to do the same thing with xalan to make sure that Tomcat has access
to the xalan functionailty.
Thanks for all of the advice over this little trip.
I hope that these ideas can be incorporated into the Wiki for both the
Eclipse install and the command/shell line install under Java 1.5
I hope that someone will look into the deprecated function(it seems to
be just one) and the jetty configuration file errors.
It is hard to have confidence in your own installation if software
issues warnings.
Ron
Gregor J. Rothfuss wrote:
Ron Wheeler wrote:
With Java 1.5 for everything I get this error which looks a bit
easier to fix. What am I missing?
BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
this is due to http://issues.apache.org/bugzilla/show_bug.cgi?id=34191
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]