It's not a bug... at least not Orion's ....
CASE 1:
If you are using jdk1.3, you'll know this is a known bug... ResourceBundle
is broken in 1.3. Test the app with jdk1.2.2 and your problems will go away.
CASE 2:
ECS might be using the wrong ClassLoader... Apache code usually misbehaves
in this aspect. I only wish they would take advice... In Tomcat this might
work, since contrary to Orion, Tomcat has no notion of REALLY isolated web
applications.
> -----Original Message-----
> From: Christian Sell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 15, 2000 4:40 AM
> To: Orion-Interest
> Subject: Re: urgent: error accessing jar file
>
>
> Meanwhile, I found a workaround: unpack the .properties file into the
> /WEB-INF/classes directory.
>
> Looks like a bug to me.
>
> -----Original Message-----
> From: Christian Sell <[EMAIL PROTECTED]>
> To: Orion-Interest <[EMAIL PROTECTED]>
> Date: Donnerstag, 15. Juni 2000 07:10
> Subject: urgent: error accessing jar file
>
>
> >Hello,
> >
> >Q1:
> >I have a JSP tag library which uses the ECS library from
> apache. Both my
> tag
> >library and ECS reside as *.jar files in /WEB-INF/lib. When
> my test page is
> >loaded, the initialization code of ECS reads a property file
> from the jar
> >with the following statement:
> >
> >static {
> > try
> >
> >
> > resource = ResourceBundle.getBundle("org.apache.ecs.ecs");
> > }
> > catch(Exception e)
> > {
> > System.err.println("Cannot find org.apache.ecs.ecs.properties.");
> > }
> > }
> >
> >Even though the file org.apache.ecs.ecs.properties is in the
> jar file, the
> >error message is printed out, the resource variable is not
> set, and I get a
> >NullPointerException later on. I have this very same
> configuration running
> >under Tomcat. However, I have seen previous versions of Tomcat having
> >problems accessing implicitly (through placement in
> /WEB-INF/lib) mapped
> jar
> >files via getClassForName() and getResource(). Could it be
> that Orion has a
> >similar problem? If not, why is ECS unable to read the
> properties file from
> >its own jar under Orion?
> >
> >Q2:
> >Do I get any further docs when I buy the product? If not, when is the
> >documentation going to be improved?
> >
> >thanks, Christian Sell
> >
> >
>
>