Hi Gavin,

First off, I know Jacques Schmidt about servlet deployment so this may be useless information. :-)

This resource location is very dependent on paths. For a regular WO app, if the current working directory is not the .woa directory, resources will not be found. I expect something similar applies to servlet deployment. Check and see if there is an option for changing the current working directory or things like that.

Chuck

On Sep 26, 2006, at 8:17 AM, Gavin Eadie wrote:

... 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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Reply via email to