• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Regular v Servlet resource manager use
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regular v Servlet resource manager use


  • Subject: Re: Regular v Servlet resource manager use
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 26 Sep 2006 09:57:43 -0700

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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Regular v Servlet resource manager use (From: Gavin Eadie <email@hidden>)

  • Prev by Date: Re: addObjectsToBothSide... not really both side
  • Next by Date: Re: Help - Relationships, Bindings, w/Full Text Search
  • Previous by thread: Re: Regular v Servlet resource manager use
  • Next by thread: WebObjects 5.3 and J2SE 5.0
  • Index(es):
    • Date
    • Thread