You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Antonio Gallardo <ag...@agssa.net> on 2004/04/13 09:31:26 UTC

Tomcat and endorsed libs

Hi:

After the unbundling jars in Xalan:
http://marc.theaimsgroup.com/?t=108068951900001&r=1&w=2

Now we need to include inside the $TOMCAT_HOME/common/endorsed the
following files:

jakarta-bcel-20040329.jar
jakarta-regexp-1.3.jar
xalan-2.6.0.jar
xercesImpl-2.6.2.jar
xml-apis.jar

If not we got a"blank page" as described here:
http://wiki.cocoondev.org/Wiki.jsp?page=EndorsedLibsProblem

We also need to update:
http://cocoon.apache.org/2.1/installing/index.html#Java+1.4+configuration

The test was done using:

Linux Fedora Core 1
Sun J2SDK 1.4.2_04
Tomcat 5.0.19
Cocoon 2.1.5-dev

WTDY?

Best Regards,

Antonio Gallardo.

Re: Tomcat and endorsed libs

Posted by Antonio Gallardo <ag...@agssa.net>.
Joerg Heinicke dijo:
> On 13.04.2004 12:27, Antonio Gallardo wrote:
>
>> I just wanted to alert and see if anyone else had the same problem.
>
> Works for me with Tomcat 4.1.24 and 5.0.18. Did you try a specific page?
> I tried http://127.0.0.1:8080/cocoon-2.1/, clicked from the welcome page
> to http://127.0.0.1:8080/cocoon-2.1/samples/blocks/forms/form1.flow and
> submitted it once.

I tried our own applications that worked fine before. Anyway I will retest
it.

Best Regards,

Antonio Gallardo


Re: Tomcat and endorsed libs

Posted by Joerg Heinicke <jo...@gmx.de>.
On 13.04.2004 12:27, Antonio Gallardo wrote:

> I just wanted to alert and see if anyone else had the same problem.

Works for me with Tomcat 4.1.24 and 5.0.18. Did you try a specific page? 
I tried http://127.0.0.1:8080/cocoon-2.1/, clicked from the welcome page 
to http://127.0.0.1:8080/cocoon-2.1/samples/blocks/forms/form1.flow and 
submitted it once.

Joerg

Re: Tomcat and endorsed libs

Posted by Antonio Gallardo <ag...@agssa.net>.
Leszek Gawron dijo:
> On Tue, Apr 13, 2004 at 04:20:01AM -0600, Antonio Gallardo wrote:
>> Joerg Heinicke dijo:
>> > Antonio Gallardo <agallardo <at> agssa.net> writes:
>> >
>> >> After the unbundling jars in Xalan:
>> >> http://marc.theaimsgroup.com/?t=108068951900001&r=1&w=2
>> >>
>> >> Now we need to include inside the $TOMCAT_HOME/common/endorsed the
>> >> following files:
>> >>
>> >> jakarta-bcel-20040329.jar
>> >> jakarta-regexp-1.3.jar
>> >
>> > Why? Jakarta bcel and regexp are not included in the JDK and can so
>> not be
>> > loaded before the normal classpath entries, what would make the
>> endorsed
>> > dirs
>> > necessary.
>>
>> Not sure why, but looks like once xalan is in endorsed it search for the
>> other libs in the same dir. I tried also restarting tomcat without the
>> jakarta-*.jar and it throws errors.
>>
>> Can you try it?
> I have been already using Jetty with the stripped down xalan and I did not
> have a problem (full Jetty - not the one from CVS)

I just wanted to alert and see if anyone else had the same problem.

In the same tomcat instalation I have 4 cocoon app deployed. Each one has
diferent custom building. Not sure if this can work if I have just one
cocoon app in Tomcat.

BTW, I am not using ParanoidCocoon loader.

Best Regards,

Antonio Gallardo


Re: Tomcat and endorsed libs

Posted by Leszek Gawron <ou...@wlkp.org>.
On Tue, Apr 13, 2004 at 04:20:01AM -0600, Antonio Gallardo wrote:
> Joerg Heinicke dijo:
> > Antonio Gallardo <agallardo <at> agssa.net> writes:
> >
> >> After the unbundling jars in Xalan:
> >> http://marc.theaimsgroup.com/?t=108068951900001&r=1&w=2
> >>
> >> Now we need to include inside the $TOMCAT_HOME/common/endorsed the
> >> following files:
> >>
> >> jakarta-bcel-20040329.jar
> >> jakarta-regexp-1.3.jar
> >
> > Why? Jakarta bcel and regexp are not included in the JDK and can so not be
> > loaded before the normal classpath entries, what would make the endorsed
> > dirs
> > necessary.
> 
> Not sure why, but looks like once xalan is in endorsed it search for the
> other libs in the same dir. I tried also restarting tomcat without the
> jakarta-*.jar and it throws errors.
> 
> Can you try it?
I have been already using Jetty with the stripped down xalan and I did not
have a problem (full Jetty - not the one from CVS)
	lg
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/       ouzo@wlkp.org           _\\()//_
         .'/()\'.     Phone: +48(501)720812     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


Re: Tomcat and endorsed libs

Posted by Antonio Gallardo <ag...@agssa.net>.
Joerg Heinicke dijo:
> Antonio Gallardo <agallardo <at> agssa.net> writes:
>
>> After the unbundling jars in Xalan:
>> http://marc.theaimsgroup.com/?t=108068951900001&r=1&w=2
>>
>> Now we need to include inside the $TOMCAT_HOME/common/endorsed the
>> following files:
>>
>> jakarta-bcel-20040329.jar
>> jakarta-regexp-1.3.jar
>
> Why? Jakarta bcel and regexp are not included in the JDK and can so not be
> loaded before the normal classpath entries, what would make the endorsed
> dirs
> necessary.

Not sure why, but looks like once xalan is in endorsed it search for the
other libs in the same dir. I tried also restarting tomcat without the
jakarta-*.jar and it throws errors.

Can you try it?

Best Regards,

Antonio Gallardo


Re: Tomcat and endorsed libs

Posted by Joerg Heinicke <jo...@gmx.de>.
Antonio Gallardo <agallardo <at> agssa.net> writes:

> After the unbundling jars in Xalan:
> http://marc.theaimsgroup.com/?t=108068951900001&r=1&w=2
> 
> Now we need to include inside the $TOMCAT_HOME/common/endorsed the
> following files:
> 
> jakarta-bcel-20040329.jar
> jakarta-regexp-1.3.jar

Why? Jakarta bcel and regexp are not included in the JDK and can so not be
loaded before the normal classpath entries, what would make the endorsed dirs
necessary.

Joerg