• 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
Properties Exception: Can't find bundle for base name services, locale en_US
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Properties Exception: Can't find bundle for base name services, locale en_US


  • Subject: Properties Exception: Can't find bundle for base name services, locale en_US
  • From: Jeff LaMarche <email@hidden>
  • Date: Wed, 12 Feb 2003 09:38:16 -0500

I have a component that needs to access a web service. I want to store the URL of the web service in a properties file. Whenever I call getProperty, I get an exception:

java.util.MissingResourceException: Can't find bundle for base name services, locale en_US

I've tried two different approaches - first, I put the address into a new plist file on the Application Server called "services.plist":

WBDMigrationServiceURL = http:////localhost:55555//cgi-bin//WebObjects//WBD-II.woa//ws// WBDMigrationService?wsdl

then tried getting the URL with this code:

ResourceBundle properties = ResourceBundle.getBundle("services");
String driver = properties.getString("WBDMigrationServiceURL");

When that didn't work, I tried adding the entry to the "Properties" file that was already in my WO project and tried accessing it like this:

String driver = java.lang.System.getProperty("WBDMigrationServiceURL");

In both cases I'm getting the same exception, but don't know what would be causing it. The "Properties" file appears to be getting read in properly, since it's correctly reading the WOPort value I set.

Anyone have any idea what my problem might be?

Thanks much,
Jeff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: WSMakeStubs code issues
  • Next by Date: unused variable warnings
  • Previous by thread: Overlapping sibling level sub-views ?
  • Next by thread: unused variable warnings
  • Index(es):
    • Date
    • Thread