| Check /Library/WebObjects/Configuration/SiteConfig.xml
<SiteConfig type="NSDictionary"> <hostArray type="NSArray"> <element type="NSDictionary"> <type type="NSString">MACOSX</type> <name type="NSString">localhost</name> </element> </hostArray>
On Oct 20, 2005, at 7:02 PM, Greg Hulands wrote: That would explain the no difference in the url generation. But now when I try to connect it says no instance available.
Greg On 21/10/2005, at 11:51 AM, Chuck Hill wrote:
On Oct 20, 2005, at 6:44 PM, Greg Hulands wrote:
Hi, When using context().completeURLWithRequestHandlerKey() when developing locally, it sets the host name to my bonjour name, iBook.local, so that everytime I try and use the completeURLWithRequestHandlerKey method, it puts in iBook.local instead of localhost. I have tried launching with -DWOHost localhost
I'm not sure if that is a typo or not, but there are two forms for this and you can't mix them:
-WOHost localhost -DWOHost=localhost
If you use -D you must use an = sign as this is the Java way of defining values. The first one is the traditional WO way.
Chuck
, but it doesn't seem to change anything. Currently I have in the method that uses completeURLWithRequestHandlerKey 2 lines, one commented out and the other active and I just switch the commented line depending if I am running local or deploying. The problem I have with this current situation is that I can sometimes forget to switch the lines, so when I deploy it returns localhost, instead of the real domain.
I have searched the archives but could not find any resembelance to my problem.
Any helps is greatly appreciated.
Regards, Greg _______________________________________________ Do not post admin requests to the list. They will be ignored. Help/Unsubscribe/Update your Subscription:
--
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]