cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [PATCH] build.xml fixes
Date Thu, 29 Nov 2001 12:50:10 GMT
Jeff,

Why don't u use the JNDI jar files from http://java.sun.com/products/jndi/#download

Thanks,
dims

--- Jeff Turner <jeff@socialchange.net.au> wrote:
> On Mon, Nov 26, 2001 at 10:27:29AM +0100, Carsten Ziegeler wrote:
> > Hi Jeff,
> > 
> > thanks for your patch - I applied it partially, see below.
> > 
> > Jeff Turner wrote:
> > > 
> > > Hi,
> > > 
> > > The attached patch for build.xml does the following:
> > > 
> > >  - JDK 1.3 and higher includes javax.naming.* in
> > >    ${java.home}/lib/rt.jar, so include this jar in the default
> > >    classpath.
> > This is a very subtle part of cocoon. If you compile cocoon with such
> > a section and but it then into your servlet engine as a war file,
> > it might be that your web application is not running as the rt.jar
> > is not found from cocoon. So the only relyable solution is to put
> > the jndi.jar into your lib directory before building cocoon.
> 
> So I'm a JDK 1.3 user.. my javax.naming classes are in
> ${java.home}/lib/rt.jar. Must I copy rt.jar into the lib/ directory? But
> then it will be copied to my webapp's WEB-INF/lib directory. I *really*
> don't want that, because it will cause all sorts of classloader problems
> (aside from being 13mb).
> 
> So this leaves me confused. How does *anyone* currently build Cocoon
> with JDK 1.3 with JNDI support? The build process ignores $CLASSPATH
> (try adding rt.jar and then building; no difference). It looks to me
> like modifying build.xml is the only way for 1.3 users to compile with
> JNDI support.
> 
> Anyway, I've attached patches for the latest 2.0 and 2.1, which make two
> changes:
>  - add ${java.home}/lib/rt.jar to the default classpath
>  - add URLs indicating where to obtain optional jars
> 
> 
> --Jeff
> 
> > Thanks,
> > Carsten
> > Index: build.xml
> ===================================================================
> RCS file: /home/cvspublic/xml-cocoon2/build.xml,v
> retrieving revision 1.8.2.77
> diff -u -r1.8.2.77 build.xml
> --- build.xml	2001/11/29 11:36:01	1.8.2.77
> +++ build.xml	2001/11/29 11:49:41
> @@ -132,6 +132,7 @@
>      <fileset dir="./lib">
>        <include name="*.jar"/>
>      </fileset>
> +    <pathelement path="${java.home}/lib/rt.jar" />
>    </path>
>  
>    <!-- =================================================================== -->
> @@ -315,7 +316,7 @@
>      <antcall target="op-warning">
>        <param name="thing" value="XT"/>
>        <param name="recovery" 
> -        value="Get the xt package and place the jar in the lib dir"/>
> +        value="Get the xt package from http://www.jclark.com/xml/xt.html and place the
jar in
> the lib dir"/>
>        <param name="message"
>               value="XT is required for the xt transformer."/>
>      </antcall>
> @@ -325,7 +326,7 @@
>      <antcall target="op-warning">
>        <param name="thing" value="PHP"/>
>        <param name="recovery" 
> -        value="Get the PHP servlet and place the jar in the lib dir"/>
> +        value="Get the PHP servlet (phpsrvlt.jar) and place the jar in the lib dir"/>
>        <param name="message"
>               value="PHP is required for the php generator."/>
>      </antcall>
> > Index: build.xml
> ===================================================================
> RCS file: /home/cvspublic/xml-cocoon2/build.xml,v
> retrieving revision 1.114
> diff -u -r1.114 build.xml
> --- build.xml	2001/11/26 14:46:32	1.114
> +++ build.xml	2001/11/29 11:56:02
> @@ -132,6 +132,7 @@
>      <fileset dir="./lib">
>        <include name="*.jar"/>
>      </fileset>
> +    <pathelement path="${java.home}/lib/rt.jar" />
>    </path>
>  
>    <path id="scratchpad.classpath">
> @@ -367,7 +368,7 @@
>      <antcall target="op-warning">
>        <param name="thing" value="JFOR"/>
>        <param name="recovery" 
> -        value="Get the JFOR package and place the jar in the lib dir"/>
> +        value="Get the JFOR package from http://www.jfor.org/ and place the jar in the
lib
> dir"/>
>        <param name="message"
>               value="JFOR is required for the fo2rtf serializer."/>
>      </antcall>
> @@ -377,7 +378,7 @@
>      <antcall target="op-warning">
>        <param name="thing" value="XMLDB"/>
>        <param name="recovery" 
> -        value="Get the xmldb package and place the jar in the lib dir"/>
> +        value="Get the xmldb package from http://www.xmldb.org/xapi/ and place the xmldb-api
> jar in the lib dir"/>
>        <param name="message"
>               value="XMLDB is required for the xmldb and xmldbcollection generator."/>
>      </antcall>
> @@ -387,7 +388,7 @@
>      <antcall target="op-warning">
>        <param name="thing" value="XT"/>
>        <param name="recovery" 
> -        value="Get the xt package and place the jar in the lib dir"/>
> +        value="Get the xt package from http://www.jclark.com/xml/xt.html and place xt.jar
in
> the lib dir"/>
>        <param name="message"
>               value="XT is required for the xt transformer."/>
>      </antcall>
> @@ -397,7 +398,7 @@
>      <antcall target="op-warning">
>        <param name="thing" value="PHP"/>
>        <param name="recovery" 
> -        value="Get the PHP servlet and place the jar in the lib dir"/>
> +        value="Get the PHP servlet (phpsrvlt.jar) and place the jar in the lib dir"/>
>        <param name="message"
>               value="PHP is required for the php generator."/>
>      </antcall>
> 
> > ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


=====
Davanum Srinivas - http://jguru.com/dims/

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message