cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dafang Zhang <>
Subject RE: 1.7.3 with JRun 2.3.3 Specific Problem
Date Wed, 10 May 2000 16:12:05 GMT

The following is just FYI...

> New message has been posted in JRun Conference
> Forum:   Servlet Programming
> Thread:  What is the location for servlet context root?
> Author:  Bob Love
> Subject:

> URL:

> Jrun 2.3.3 does not support the ServletContext.getResource() or
ServletContext.getResourceAsStream() methods.  If you need to create a URL
object you can use the class.

> Jrun 3.0 does support both of these methods.

Dafang Zhang

-----Original Message-----
From: Stefano Mazzocchi []
Sent: Wednesday, May 10, 2000 7:42 AM
Subject: Re: 1.7.3 with JRun 2.3.3 Specific Problem

Dafang Zhang wrote:
> JRun 2.3.3 does not support ServletContext.getResource().  Thus, JRun
> users need to modify the to use file-based approach, instead
> resource-based, in order for Cocoon-1.7.3 to correctly read in
> file.  Otherwise, you get "Publishing engine could not
> initialized." message with exception throwed.

Oh gee, you mean that JRun 2.3.3 indicates itself as a 2.1 compatible
Servlet Engine and then doesn't support getResource()?

No comment.

> Should we have a choice somehow, without code change?

It's a pain in the ass to maintain a servlet that is portable across
servlet engines, it's even worse if they "illegally" claim to be
compliant when they aren't.

What are we supposed to do? check if the servlet engine is JRun and
disable that? and what about weblogic, servletexec, websphere,
paperclips and everyone that has servlet hooks?

I'm _really_ frustrated by all this, expecially when we provide Tomcat
that works on every possible web server, it's stable and, more
important, it's free and open source.

Anyway, I'm open to suggestions on how to make this work if people need

> While dealing with this problem, another question is why "Unable to open
> resource: ..." message, which is in the inner catch block, is not show up?

This is a bug and it was recently fixed in the CVS.

Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<>                             Friedrich Nietzsche
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message