Re: Regular v Servlet resource manager use
Re: Regular v Servlet resource manager use
- Subject: Re: Regular v Servlet resource manager use
- From: Gavin Eadie <email@hidden>
- Date: Tue, 26 Sep 2006 11:17:24 -0400
... thanks for your suggestion, Kai, however
At 3:06 PM +0300 9/26/06, Kai S. Wong wrote:
In order to be deployment safe (original or servlet), you need to
use *URL* method to access your resources.
Replace your original method inputStreamForResourceNamed to
pathURLForResourceNamed and open the URL stream via openStream().
FOLLOW UP from last message
the problem is that pathURLForResourceNamed("xx", null, null)
doesn't find the Resource either so it returns null. Then I try and
open a stream on null and poof! My catch clause was only for
IOException -- silly me.
... but the original question is now back again.
Is there a different way to use resourceManager in a servlet than
in a regular application. I'm using XCode 2.4, WO 5.2.4, Mac OS X
10.4.7, Java 1.5 (with target and source @ 1.4), and Tomcat 5.5.17.
I'm creating a 'stub' war file - that means all the executable code
is where it would be for a regular application and and the web.xml
file says so -- app.woa lives in /Lib/WO/Apps/, frameworks are in
/Lib/Fwks/, app.war is in Tomcat/webapps
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden