Re: Not able to configure build path

2008-07-28 Thread Xia, Wen
I tried to delete the the copy in /Library, it still ignores the
System/Library copy.  It ³pretends² to be configured using the
System/Library copy, but the MacOSClassPath.txt still don¹t have the entry:
WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOEx
tensions.jar


On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote:

 Hi Wen,
 
 I had this problem before.  What it seems to be doing is that it looks at
 /Library first then at /System/Library.  So if you delete the copy in
 /Library, it will take the /System/Library copy
 
 ~Mersida
 --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
 From: Xia, Wen [EMAIL PROTECTED]
 Subject: Not able to configure build path
 To: Development WebObjects webobjects-dev@lists.apple.com
 Date: Monday, July 28, 2008, 12:32 PM
 
 For some reason, I can't configure the build path to refer to the
 /System/Library/Frameworks/JavaWOExtensions.framework.  It keeps referring
 to the the /Library/Frameworks/JavaWOExtensions.framework.
 
 The steps I did:
 - Right-click
  on the project name
 - Select Build Path - Configure Build Path
 - Open the Libraries pane
 - Click on WebObjects Frameworks and click Edit...
 - Open the triangle next to Local
 - Locate JavaWOExtensions and uncheck the checkbox
 - Open the triangle next to System
 - Locate JavaWOExtensions and click on the checkbox
 - Click Finish
 - Click OK for the JavaBuildPath dialog
 
 No error was given, but when I'm done, the JavaWOExtensions.jar still
 points
 to the /Library/Frameworks/JavaWOExtensions.framework folder.  Does anyone
 know what might be wrong?  Thank you.
 
 Wen 
 
  ___
 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/muc154%40yahoo.com
 
 This
  email sent to [EMAIL PROTECTED]
 
  
 
  ___
 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/wen.xia%40dof.ca.gov
 
 This email sent to [EMAIL PROTECTED]


 ___
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 [EMAIL PROTECTED]

Re: Not able to configure build path

2008-07-28 Thread Xia, Wen
Thank you, Mersida.  It did reflect in the UI after I restarted Eclipse.
But the final result, the MacOSClassPath.txt still don¹t have the entry:
WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOEx
tensions.jar

Any other ideas?  

On 7/28/08 10:07 AM, Mersida Kurti [EMAIL PROTECTED] wrote:

 You would probably have to close Eclipse in order for the changes to take
 effect.
 
 --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
 From: Xia, Wen [EMAIL PROTECTED]
 Subject: Re: Not able to configure build path
 To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects
 webobjects-dev@lists.apple.com
 Date: Monday, July 28, 2008, 12:49 PM
 
 Re: Not able to configure build path I tried to delete the the copy in
 /Library, it still ignores the System/Library copy.  It ³pretends² to be
 configured using the System/Library copy, but the MacOSClassPath.txt still
 don¹t have the entry:
 WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExt
 ensions.jar
 
 
 On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote:
 
 Hi Wen,
 
 I had this problem before.  What it seems to be doing is that it looks at
 /Library first then at /System/Library.  So if you delete the copy in
 /Library, it will take the /System/Library copy
 
 ~Mersida
 --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
 From: Xia, Wen [EMAIL PROTECTED]
 Subject: Not able to configure build path
 To: Development WebObjects webobjects-dev@lists.apple.com
 Date: Monday, July 28, 2008, 12:32 PM
 
 For some reason, I can't configure the build path to refer to the
 /System/Library/Frameworks/JavaWOExtensions.framework.  It keeps referring
 to the the /Library/Frameworks/JavaWOExtensions.framework.
 
 The steps I did:
 - Right-click
  on the project name
 - Select Build Path - Configure Build Path
 - Open the Libraries pane
 - Click on WebObjects Frameworks and click Edit...
 - Open the triangle next to Local
 - Locate JavaWOExtensions and uncheck the checkbox
 - Open the triangle next to System
 - Locate JavaWOExtensions and click on the checkbox
 - Click Finish
 - Click OK for the JavaBuildPath dialog
 
 No error was given, but when I'm done, the JavaWOExtensions.jar still
 points
 to the /Library/Frameworks/JavaWOExtensions.framework folder.  Does anyone
 know what might be wrong?  Thank you.
 
 Wen 
 
  ___
 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/muc154%40yahoo.com
 
 This
  email sent to [EMAIL PROTECTED]
 
  
 
  ___
 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/wen.xia%40dof.ca.gov
 
 This email sent to [EMAIL PROTECTED]
 
  
 
 


 ___
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 [EMAIL PROTECTED]

Re: Not able to configure build path

2008-07-28 Thread Xia, Wen
Thanks, Mersida.  My application works on development mac, but fails on
deployment.  The problem is it didn¹t build the entry
WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOEx
tensions.jar
to MacOSClassPath.txt even though the javawoextensions.jar is there on UI.

I have no clue why this is happening (maybe a bug?).  The temporary fix is
to manually add the entry every time I install the app.  Any one has any
idea? 


On 7/28/08 11:36 AM, Mersida Kurti [EMAIL PROTECTED] wrote:

 Wen,
 
 I found this, which clarifies things for me:
 
 WOROOT indicates the path whereWebObjects frameworks are installed. On Mac OS
 X, for example,
 WebObjects frameworks are located in the /System/Library/Frameworks directory
 and WOROOT
 is set to /System.
 
 ~Mersida
 
 http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Servl
 ets.pdfaction=1info=16s=e6j17MEmt1a1XOQlWE1LEXINIhM
 
 --- On Mon, 7/28/08, Mersida Kurti [EMAIL PROTECTED] wrote:
 From: Mersida Kurti [EMAIL PROTECTED]
 Subject: Re: Not able to configure build path
 To: Development WebObjects webobjects-dev@lists.apple.com, Xia, Wen
 [EMAIL PROTECTED]
 Date: Monday, July 28, 2008, 2:31 PM
 
 Hi Wen,
 
 I checked my machine and I see the same thing.  I'm able to deploy and run my
 apps fine even though the class path is different.  I don't know what to tell
 you.  I think as long as the buildpath on eclipse is fine and you can see the
 jar file in there you should be fine.
 
 ~mersida
 
 --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
 From: Xia, Wen [EMAIL PROTECTED]
 Subject: Re: Not able to configure build path
 To: Development WebObjects webobjects-dev@lists.apple.com
 Date: Monday, July 28, 2008, 1:32 PM
 
 Re: Not able to configure build path Thank you, Mersida.  It did reflect in
 the UI after I restarted Eclipse.  But the final result, the
 MacOSClassPath.txt still don¹t have the entry:
 WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOEx
 tensions.jar
 
 Any other ideas?
 
 On 7/28/08 10:07 AM, Mersida Kurti [EMAIL PROTECTED] wrote:
 
 You would probably have to close Eclipse in order for the changes to take
 effect.
 
 --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
 From: Xia, Wen [EMAIL PROTECTED]
 Subject: Re: Not able to configure build path
 To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects
 webobjects-dev@lists.apple.com
 Date: Monday, July 28, 2008, 12:49 PM
 
 Re: Not able to configure build path I tried to delete the the copy in
 /Library, it still ignores the System/Library copy.  It ³pretends² to be
 configured using the System/Library copy, but the MacOSClassPath.txt still
 don¹t have the entry:
 WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWO
 Extensions.jar
 
 
 On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote:
 
 Hi Wen,
 
 I had this problem before.  What it seems to be doing is that it looks at
 /Library first then at /System/Library.  So if you delete the copy in
 /Library, it will take the /System/Library copy
 
 ~Mersida
 --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
 From: Xia, Wen [EMAIL PROTECTED]
 Subject: Not able to configure build path
 To: Development WebObjects webobjects-dev@lists.apple.com
 Date: Monday, July 28, 2008, 12:32 PM
 
 For some reason, I can't configure the build path to refer to the
 /System/Library/Frameworks/JavaWOExtensions.framework.  It keeps
 referring
 to the the /Library/Frameworks/JavaWOExtensions.framework.
 
 The steps I did:
 - Right-click
  on the project name
 - Select Build Path - Configure Build Path
 - Open the Libraries pane
 - Click on WebObjects Frameworks and click Edit...
 - Open the triangle next to Local
 - Locate JavaWOExtensions and uncheck the checkbox
 - Open the triangle next to System
 - Locate JavaWOExtensions and click on the checkbox
 - Click Finish
 - Click OK for the JavaBuildPath dialog
 
 No error was given, but when I'm done, the JavaWOExtensions.jar still
 points
 to the /Library/Frameworks/JavaWOExtensions.framework folder.  Does
 anyone
 know what might be wrong?  Thank you.
 
 Wen 
 
  ___
 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/muc154%40yahoo.com
 
 This
  email sent to [EMAIL PROTECTED]
 
  
 
  ___
 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/wen.xia%40dof.ca.go
v
 
 This email sent to [EMAIL PROTECTED]
 
  
 
 
 
  
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev

Re: Not able to configure build path

2008-07-28 Thread Xia, Wen
So we are not alone.  I will also make note of that.  Thanks for your help!


On 7/28/08 3:03 PM, Mersida Kurti [EMAIL PROTECTED] wrote:

 Hi Wen,
 
 Yep, that's what I do everytime I re-deploy that same app, i copy the
 Conents/MacOS/*.txt everytime i have to redeploy the app because the buildpath
 will be wrong everytime.  All you have to do is change the classpath.txt once
 and then when you re-deploy it you have to remember to copy the MacOS/*.txt
 files
 
 Maybe it is a bug that we've gotten used to around the office and don't
 consider it anymore - actuall it is written in our deployment procedure and
 feels so normal to do it everytime.
 
 ~Mersida
 --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
 From: Xia, Wen [EMAIL PROTECTED]
 Subject: Re: Not able to configure build path
 To: Development WebObjects webobjects-dev@lists.apple.com
 Date: Monday, July 28, 2008, 5:58 PM
 
 Re: Not able to configure build path Thanks, Mersida.  My application works
 on development mac, but fails on deployment.  The problem is it didn¹t build
 the entry 
 WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExt
 ensions.jar
 to MacOSClassPath.txt even though the javawoextensions.jar is there on UI.
 
 I have no clue why this is happening (maybe a bug?).  The temporary fix is to
 manually add the entry every time I install the app.  Any one has any idea?
 
 
 On 7/28/08 11:36 AM, Mersida Kurti [EMAIL PROTECTED] wrote:
 
 Wen,
 
 I found this, which clarifies things for me:
 
 WOROOT indicates the path whereWebObjects frameworks are installed. On Mac
 OS X, for example,
 WebObjects frameworks are located in the /System/Library/Frameworks
 directory and WOROOT
 is set to /System.
 
 ~Mersida
 
 http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Ser
 vlets.pdfaction=1info=16s=e6j17MEmt1a1XOQlWE1LEXINIhM
 http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Se
 rvlets.pdfamp;action=1amp;info=16amp;s=e6j17MEmt1a1XOQlWE1LEXINIhM
 
 --- On Mon, 7/28/08, Mersida Kurti [EMAIL PROTECTED] wrote:
 From: Mersida Kurti [EMAIL PROTECTED]
 Subject: Re: Not able to configure build path
 To: Development WebObjects webobjects-dev@lists.apple.com, Xia, Wen
 [EMAIL PROTECTED]
 Date: Monday, July 28, 2008, 2:31 PM
 
 Hi Wen,
 
 I checked my machine and I see the same thing.  I'm able to deploy and run
 my apps fine even though the class path is different.  I don't know what to
 tell you.  I think as long as the buildpath on eclipse is fine and you can
 see the jar file in there you should be fine.
 
 ~mersida
 
 --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
 From: Xia, Wen [EMAIL PROTECTED]
 Subject: Re: Not able to configure build path
 To: Development WebObjects webobjects-dev@lists.apple.com
 Date: Monday, July 28, 2008, 1:32 PM
 
 Re: Not able to configure build path Thank you, Mersida.  It did reflect
 in the UI after I restarted Eclipse.  But the final result, the
 MacOSClassPath.txt still don¹t have the entry:
 WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWO
 Extensions.jar
 
 Any other ideas?
 
 On 7/28/08 10:07 AM, Mersida Kurti [EMAIL PROTECTED] wrote:
 
 You would probably have to close Eclipse in order for the changes to take
 effect.
 
 --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
 From: Xia, Wen [EMAIL PROTECTED]
 Subject: Re: Not able to configure build path
 To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects
 webobjects-dev@lists.apple.com
 Date: Monday, July 28, 2008, 12:49 PM
 
 Re: Not able to configure build path I tried to delete the the copy in
 /Library, it still ignores the System/Library copy.  It ³pretends² to be
 configured using the System/Library copy, but the MacOSClassPath.txt
 still don¹t have the entry:
 WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/Java
 WOExtensions.jar
 
 
 On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote:
 
Hi Wen,

I had this problem before.  What it seems to be doing is that it looks at
/Library first then at /System/Library.  So if you delete the copy in
/Library, it will take the /System/Library copy

~Mersida
--- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote:
From: Xia, Wen [EMAIL PROTECTED]
Subject: Not able to configure build path
To: Development WebObjects webobjects-dev@lists.apple.com
Date: Monday, July 28, 2008, 12:32 PM

For some reason, I can't configure the build path to refer to the
/System/Library/Frameworks/JavaWOExtensions.framework.  It keeps referring
to the the /Library/Frameworks/JavaWOExtensions.framework.

The steps I did:
- Right-click
 on the project name
- Select Build Path - Configure Build Path
- Open the Libraries pane
- Click on WebObjects Frameworks and click Edit...
- Open the triangle next to Local
- Locate JavaWOExtensions and uncheck the checkbox
- Open the triangle next to System
- Locate JavaWOExtensions and click on the checkbox
- Click Finish 
- Click OK for the JavaBuildPath dialog

Re: WOCollapsibleComponentContent is broken on Leopard

2008-07-08 Thread Xia, Wen
It works.  Thanks a lot for your help!


On 7/7/08 5:12 PM, Lachlan Deck [EMAIL PROTECTED] wrote:

 Hi Wen,
 
 On 08/07/2008, at 3:58 AM, Xia, Wen wrote:
 
 Seems like projects with WOCollapsibleComponentContent are broken
 after
 deploying to Leopard server (works on local Leopard).
 Error: java.lang.ClassNotFoundException exception
 Reason:
 java.lang.ClassNotFoundException: Cannot find class or component named
 WOCollapsibleComponentContent in runtime or in a loadable bundle
 
 I checked the component exists in the framework, don¹t understand
 why it
 can¹t find it.  Please help.  Thank you.
 
 Try embedding your frameworks in the application to ensure that your
 runtime environment is the same as development.
 http://wiki.objectstyle.org/confluence/display/WOL/Tutorials
 http://wiki.objectstyle.org/confluence/display/WOL/Embedding+WOFrameworks
 
 with regards,
 --
 
 Lachlan Deck
 
 
 

 ___
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 [EMAIL PROTECTED]


WOCollapsibleComponentContent is broken on Leopard

2008-07-07 Thread Xia, Wen
Seems like projects with WOCollapsibleComponentContent are broken after
deploying to Leopard server (works on local Leopard).
Error: java.lang.ClassNotFoundException exception
Reason:
java.lang.ClassNotFoundException: Cannot find class or component named
WOCollapsibleComponentContent in runtime or in a loadable bundle

I checked the component exists in the framework, don¹t understand why it
can¹t find it.  Please help.  Thank you.

Wen
 ___
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 [EMAIL PROTECTED]

How to use WebServicesAssistant on Leopard

2008-07-02 Thread Xia, Wen
I have a couple direct to web service applications that needs to be deployed
on our new Leopard server.

If I simply copy the deployed .woa bundle from existing server to the new
server, the consumer of the web service (which is written in Applescript)
will fail with error message:
WOSearch got an error: Transport error
WOSearch is the service name.

So I migrated the web service application to WOLips.  Question is: how to
use WebServicesAssistant on Leopard to configure it?  I set
WOAllowRapidTurnaround=true, and D2WWebAssistantEnabled=true when launching
the web service app.  But when I tried to connect to it from web service
assistant, it always failed with message: Connect failed: The server
application was started without rapid turnaround active or with the
Assistant explicitly disable!

Anyone has experience using Web Service Assistant on leopard?  What I need
to do to configure it to run?  Thank you.

Wen

 ___
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 [EMAIL PROTECTED]


WOLips Ant Tools not working

2008-07-01 Thread Xia, Wen
Right click on build.xml, choose ³WOLips Ant Tools² - ³Install², it gives
error:
BUILD FAILED XML parser factory has not been configured correctly: Provider
org.apache.crimson.jaxp.SAXParserFactoryImpl not found
However, the following works:
Right click on build.xml, choose ³Run As² - ³Ant Build², it installs the
app in dist folder.

I don¹t know what is wrong with the XML parser configuration.  Please
advise.  Thank you.
 ___
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 [EMAIL PROTECTED]

Re: WOLips Ant Tools not working

2008-07-01 Thread Xia, Wen
Yes, deleting the crimson.jar and ReportMill7.jar from the
/Library/Java/Extensions eliminates the problem.

Thanks a lot, Guido.


On 7/1/08 10:58 AM, Guido Neitzer [EMAIL PROTECTED] wrote:

 On 01.07.2008, at 10:54, Xia, Wen wrote:
 
 Right click on build.xml, choose ³WOLips Ant Tools² - ³Install², it
 gives error:
 BUILD FAILED XML parser factory has not been configured correctly:
 Provider org.apache.crimson.jaxp.SAXParserFactoryImpl not found
 
 Hmmm. When I remember that correctly, remove all jars from your /
 Library/Java/Extensions. Don't remember whether /Library/WebObjects/
 Extensions is also included in the search. Remove the jars one by one
 to find the conflicting. Start with ReportMill (or similar) ...
 
 cug

 ___
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 [EMAIL PROTECTED]


Re: WOLips Ant Tools not working

2008-07-01 Thread Xia, Wen
Notes taken.  Thank you!!


On 7/1/08 11:57 AM, Guido Neitzer [EMAIL PROTECTED] wrote:

 On 01.07.2008, at 12:49, Xia, Wen wrote:
 
 Yes, deleting the crimson.jar and ReportMill7.jar from the
 /Library/Java/Extensions eliminates the problem.
 
 Thanks a lot, Guido.
 
 Conclusion: put jars you need into a framework (comparable to ERJars)
 and avoid putting them into one of the Extensions folders. Don't know
 whether that works for ReportMill though ...
 
 cug

 ___
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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Xia, Wen
If I just ran the app through command line and paste the URL in the browser,
it will always give The requested application was not found on this server
message.

If I add an instance through the JavaMonitor, and run from there (same URL
basically), it works.

For deployment on non-leopard server, we can always just ran the app through
command line.  Not sure why on Leopard server, we can't do that anymore.
Anyone have the same experience?


On 6/26/08 1:52 PM, Xia, Wen [EMAIL PROTECTED] wrote:

 I tried the command, the host name matches the reverse DNS lookup.
 
 
 On 6/26/08 1:43 PM, Pascal Robert [EMAIL PROTECTED] wrote:
 
 To do a reserve DNS (IP - name) lookup, open Terminal and type :
 
 host 192.168.11.21
 
 And to check forward DNS (name - IP):
 
 host budgetdevxs.dof.finance
 
 On the deployment machine, in Java Monitor - Hosts tab, I got the
 host name
 as budgetdevxs.dof.finance with IP address 192.168.11.21.
 
 When I ran the application from command line on the server with -
 WOHost
 budgetdevxs.dof.finance, the URL for web server connect is:
 http://192.168.11.21/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 
 I pasted the URL in browser and replaced the IP address with the
 host name,
 it still gives the same error message.  I don't know how to check the
 reverse DNS lookup.
 
 
 
 On 6/26/08 1:22 PM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 What host name are you using?  For a dev machine, this should be
 localhost.  For deployment it should be the same as what hostname
 returns.  I think.  It should match the reverse DNS lookup
 
 
 
 
 On Jun 26, 2008, at 1:14 PM, Xia, Wen wrote:
 
 Thank you, Chuck.  I got the host name in wotaskd configuration and
 used it
 as -WOHost when launching the app, but still the same error
 occurred.  I
 wonder what else I should check?
 
 
 On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 
 On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:
 
 Thank you both for your help.
 
 But where is build.properties?
 
 It should be in the top level of your project.
 
 
 In build.xml, it looks for it in my home
 directory, but I can't find it there.  Is it generated/updated
 when I
 compiled the application?
 
 I changed the principal class in the Properties for the project,
 and
 now it
 launches the application without exception:
 [2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
 Welcome to StaffDirectory !
 -- Cleaning Log Files More Than 30 Days Old
 [2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 [2008-6-26 11:33:20 PDT] main null
 [2008-6-26 11:33:19 PDT] main Waiting for requests...
 
 But when I pasted the URL
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in
 my
 browser, it says: The requested application was not found on this
 server.
 
 I wonder what is wrong with it.  Thanks again.
 
 Probably a host naming problem.  The WOHost parameter should match
 what wotaskd is using on that machine.
 
 Chuck
 
 
 
 On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is
 probably
 the root cause.  This variable should have been resolved at the
 time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 cug
 
 ___
 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-vil
l
 ag
 e
 .
 net
 
 This email sent to [EMAIL PROTECTED]
 
 
 
 
 ___
 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/probert%40macti.ca
 
 This email sent to [EMAIL PROTECTED]
 
 
 ---
 Pascal Robert
 
 http://www.macti.ca
 http://www.linkedin.com/in/macti
 
 Skype: MacTICanada
 AIM/iChat : MacTICanada
 
 
  ___
 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/wen.xia%40dof.ca.gov
 
 This email sent to [EMAIL PROTECTED]

 ___
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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Xia, Wen
Yes.


On 6/30/08 9:13 AM, Guido Neitzer [EMAIL PROTECTED] wrote:

 On 30.06.2008, at 09:57, Xia, Wen wrote:
 
 If I just ran the app through command line and paste the URL in the
 browser,
 it will always give The requested application was not found on this
 server
 message.
 
 If I add an instance through the JavaMonitor, and run from there
 (same URL
 basically), it works.
 
 Stupid question: are you using the same command line parameters in
 both start methods? Exactly the same!?
 
 cug

 ___
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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Xia, Wen
The application is launched without exception at all:
[2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
Welcome to StaffDirectory !
-- Cleaning Log Files More Than 30 Days Old
[2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
[2008-6-26 11:33:20 PDT] main null
[2008-6-26 11:33:19 PDT] main Waiting for requests...


On 6/30/08 9:51 AM, Guido Neitzer [EMAIL PROTECTED] wrote:

 Okay, next question: you have the right permissions? What error
 message do you get when trying to start the app from the command line?
 
 cug
 
 On 30.06.2008, at 10:25, Xia, Wen wrote:
 
 Yes.
 
 
 On 6/30/08 9:13 AM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 30.06.2008, at 09:57, Xia, Wen wrote:
 
 If I just ran the app through command line and paste the URL in the
 browser,
 it will always give The requested application was not found on this
 server
 message.
 
 If I add an instance through the JavaMonitor, and run from there
 (same URL
 basically), it works.
 
 Stupid question: are you using the same command line parameters in
 both start methods? Exactly the same!?
 
 cug
 

 ___
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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Xia, Wen
Hi Guido,

Thank you so much for your help.

I tried what you suggested and it worked.

I also tried only adding the -WOPort parameter to the command and the app
runs as well.

Both of the above running app has the same URL as before:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324

What confused me is, should the system automatically assign a port if there
is no port specified?  I thought in the URL:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
54324 is the port assigned.

Wen

On 6/30/08 10:10 AM, Guido Neitzer [EMAIL PROTECTED] wrote:

 On 30.06.2008, at 11:00, Xia, Wen wrote:
 
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 
 There is something wrong with your start script. It seems to not
 specify a listen port. Copy the start parameters from Monitor and run
 the application with the exact same parameters (only get rid of
 NSProjectSearchPath).
 
 Run it as the appserver user: sudo -u appserver ...
 
 cug
 

 ___
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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
Thank you both for your help.

But where is build.properties?  In build.xml, it looks for it in my home
directory, but I can't find it there.  Is it generated/updated when I
compiled the application?

I changed the principal class in the Properties for the project, and now it
launches the application without exception:
[2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
Welcome to StaffDirectory !
-- Cleaning Log Files More Than 30 Days Old
[2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
[2008-6-26 11:33:20 PDT] main null
[2008-6-26 11:33:19 PDT] main Waiting for requests...

But when I pasted the URL
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in my
browser, it says: The requested application was not found on this server.

I wonder what is wrong with it.  Thanks again.

Wen


On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:

 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is probably
 the root cause.  This variable should have been resolved at the time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 cug

 ___
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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
Thank you, Yves.  But doing this does not solve the problem.


On 6/26/08 7:26 AM, Yves Selliez [EMAIL PROTECTED] wrote:

 Hi Wen,
 
 I also encountered a lot of problem deploying my apps on a very new Leopard
 server. Strangely, I had no problem at all with another Leopard server I set
 up just one month ago.
 
 I don¹t know if that may help you, but what is sure is that you should modify
 your woapp with this set of permission :
 
 chown -R appserver:appserveradm yourapp.woa
 chmod -R 755 yourapp.woa
 
 For me the group ³appserverusr² (as written somewhere) did not work, and just
 made that the app just didn¹t start at all.
 
 Hope this helps.
 
 ./yves
 
 --
 Yves Selliez-Vandernotte
 Styrion
 18, rue du 24 Août
 F-59830 BOURGHELLES
 http://www.styrion.eu


 ___
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 [EMAIL PROTECTED]

Re: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
Thank you, Chuck.  I got the host name in wotaskd configuration and used it
as -WOHost when launching the app, but still the same error occurred.  I
wonder what else I should check?


On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:

 
 On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:
 
 Thank you both for your help.
 
 But where is build.properties?
 
 It should be in the top level of your project.
 
 
  In build.xml, it looks for it in my home
 directory, but I can't find it there.  Is it generated/updated when I
 compiled the application?
 
 I changed the principal class in the Properties for the project, and
 now it
 launches the application without exception:
 [2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
 Welcome to StaffDirectory !
 -- Cleaning Log Files More Than 30 Days Old
 [2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 [2008-6-26 11:33:20 PDT] main null
 [2008-6-26 11:33:19 PDT] main Waiting for requests...
 
 But when I pasted the URL
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in my
 browser, it says: The requested application was not found on this
 server.
 
 I wonder what is wrong with it.  Thanks again.
 
 Probably a host naming problem.  The WOHost parameter should match
 what wotaskd is using on that machine.
 
 Chuck
 
 
 
 On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is probably
 the root cause.  This variable should have been resolved at the time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 cug
 
 ___
 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]
 

 ___
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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
On the deployment machine, in Java Monitor - Hosts tab, I got the host name
as budgetdevxs.dof.finance with IP address 192.168.11.21.

When I ran the application from command line on the server with -WOHost
budgetdevxs.dof.finance, the URL for web server connect is:
http://192.168.11.21/cgi-bin/WebObjects/StaffDirectory.woa/-54324

I pasted the URL in browser and replaced the IP address with the host name,
it still gives the same error message.  I don't know how to check the
reverse DNS lookup.



On 6/26/08 1:22 PM, Chuck Hill [EMAIL PROTECTED] wrote:

 What host name are you using?  For a dev machine, this should be
 localhost.  For deployment it should be the same as what hostname
 returns.  I think.  It should match the reverse DNS lookup
 
 
 
 
 On Jun 26, 2008, at 1:14 PM, Xia, Wen wrote:
 
 Thank you, Chuck.  I got the host name in wotaskd configuration and
 used it
 as -WOHost when launching the app, but still the same error
 occurred.  I
 wonder what else I should check?
 
 
 On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 
 On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:
 
 Thank you both for your help.
 
 But where is build.properties?
 
 It should be in the top level of your project.
 
 
 In build.xml, it looks for it in my home
 directory, but I can't find it there.  Is it generated/updated
 when I
 compiled the application?
 
 I changed the principal class in the Properties for the project, and
 now it
 launches the application without exception:
 [2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
 Welcome to StaffDirectory !
 -- Cleaning Log Files More Than 30 Days Old
 [2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 [2008-6-26 11:33:20 PDT] main null
 [2008-6-26 11:33:19 PDT] main Waiting for requests...
 
 But when I pasted the URL
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in
 my
 browser, it says: The requested application was not found on this
 server.
 
 I wonder what is wrong with it.  Thanks again.
 
 Probably a host naming problem.  The WOHost parameter should match
 what wotaskd is using on that machine.
 
 Chuck
 
 
 
 On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is
 probably
 the root cause.  This variable should have been resolved at the
 time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 cug
 
 ___
 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-villag
 e 
 .
 net
 
 This email sent to [EMAIL PROTECTED]
 
 
 

 ___
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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
I tried the command, the host name matches the reverse DNS lookup.


On 6/26/08 1:43 PM, Pascal Robert [EMAIL PROTECTED] wrote:

 To do a reserve DNS (IP - name) lookup, open Terminal and type :
 
 host 192.168.11.21
 
 And to check forward DNS (name - IP):
 
 host budgetdevxs.dof.finance
 
 On the deployment machine, in Java Monitor - Hosts tab, I got the
 host name
 as budgetdevxs.dof.finance with IP address 192.168.11.21.
 
 When I ran the application from command line on the server with -
 WOHost
 budgetdevxs.dof.finance, the URL for web server connect is:
 http://192.168.11.21/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 
 I pasted the URL in browser and replaced the IP address with the
 host name,
 it still gives the same error message.  I don't know how to check the
 reverse DNS lookup.
 
 
 
 On 6/26/08 1:22 PM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 What host name are you using?  For a dev machine, this should be
 localhost.  For deployment it should be the same as what hostname
 returns.  I think.  It should match the reverse DNS lookup
 
 
 
 
 On Jun 26, 2008, at 1:14 PM, Xia, Wen wrote:
 
 Thank you, Chuck.  I got the host name in wotaskd configuration and
 used it
 as -WOHost when launching the app, but still the same error
 occurred.  I
 wonder what else I should check?
 
 
 On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 
 On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:
 
 Thank you both for your help.
 
 But where is build.properties?
 
 It should be in the top level of your project.
 
 
 In build.xml, it looks for it in my home
 directory, but I can't find it there.  Is it generated/updated
 when I
 compiled the application?
 
 I changed the principal class in the Properties for the project,
 and
 now it
 launches the application without exception:
 [2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
 Welcome to StaffDirectory !
 -- Cleaning Log Files More Than 30 Days Old
 [2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 [2008-6-26 11:33:20 PDT] main null
 [2008-6-26 11:33:19 PDT] main Waiting for requests...
 
 But when I pasted the URL
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in
 my
 browser, it says: The requested application was not found on this
 server.
 
 I wonder what is wrong with it.  Thanks again.
 
 Probably a host naming problem.  The WOHost parameter should match
 what wotaskd is using on that machine.
 
 Chuck
 
 
 
 On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is
 probably
 the root cause.  This variable should have been resolved at the
 time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 cug
 
 ___
 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-vill
 ag
 e
 .
 net
 
 This email sent to [EMAIL PROTECTED]
 
 
 
 
 ___
 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/probert%40macti.ca
 
 This email sent to [EMAIL PROTECTED]
 
 
 ---
 Pascal Robert
 
 http://www.macti.ca
 http://www.linkedin.com/in/macti
 
 Skype: MacTICanada
 AIM/iChat : MacTICanada
 

 ___
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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-25 Thread Xia, Wen
Thank you for your reply.  Here is the classpath.txt:
# JVM  == java
# JVMOptions   ==
# JDB  == jdb
# JDBOptions   ==
# ApplicationClass == ${basePackage}.Application

APPROOT\Resources\Java\
APPROOT\Resources\Java\staffdirectory.jar
LOCALROOT\Library\Frameworks\JavaWOExtensions.framework\Resources\Java\JavaW
OExtensions.jar
WOROOT\Library\Frameworks\JavaEOAccess.framework\Resources\Java\javaeoaccess
.jar
WOROOT\Library\Frameworks\JavaEOControl.framework\Resources\Java\javaeocontr
ol.jar
WOROOT\Library\Frameworks\JavaFoundation.framework\Resources\Java\javafounda
tion.jar
WOROOT\Library\Frameworks\JavaJDBCAdaptor.framework\Resources\Java\javajdbca
daptor.jar
WOROOT\Library\Frameworks\JavaWebObjects.framework\Resources\Java\javawebobj
ects.jar
WOROOT\Library\Frameworks\JavaXML.framework\Resources\Java\javaxml.jar

So it's looking for .Application in the {basePackage}?  But I don't have a
{basepackage}, all my source code are in default package.  How to change it?


On 6/25/08 4:44 PM, Guido Neitzer [EMAIL PROTECTED] wrote:

 On 25.06.2008, at 17:37, Wen Xia wrote:
 
 I don't understand why it's looking for .Application class.  The app
 is compiled using java 1.5 and the server is running java 1.5 as
 well.  The application runs well in my Leopard development mac.
 Anyone knows how to fix it?  Please advise.
 
 Check the generated classpath file inside your application.
 
 cug

 ___
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 [EMAIL PROTECTED]


WOWODC 2008

2008-04-21 Thread Xia, Wen
Hi all,

I plan to attend the conference this year.  Do we have the complete menu and
session schedule?

According to the website, it should be available 4/11.

Thanks a lot.
Wen

 ___
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 [EMAIL PROTECTED]


Re: Chapter 11 in Practical WebObjects

2008-01-16 Thread Xia, Wen
Chuck, thanks for your help.

Yes, I added a line to check whether byte_output_stream is null before
instantiate the NSXMLOutputStream. I've also added other checks for null in
the XMLSerializer, but does not find any.

Here is my problem that I've been fighting for a while:
I'm trying to write a web service which returns fields from multiple
enterprise objects. Initially, I did it with Direct to Web Service, and it
turned out very simple.  Since the web service consumer is not a WebObjects
application, I choose to return SOAP struct.

But if I write the web service server without using D2WS, how to return
fields from multiple enterprise objects in SOAP struct? I couldn't find much
resources on the web about this. I started to read your book Chp 11 that
talks about XML and Object Serialization. I wonder if that's the solution
to my problem. But after I downloaded the source code of Chp 11 and putting
it altogether, it still failed with java.lang.ExceptionInInitializerError on
line XMLSerializer.serializeArray(rows). I don't know how to make it work.

Thanks for any ideas.

Wen

On 1/10/08 6:32 PM, Chuck Hill [EMAIL PROTECTED] wrote:

 
 On Jan 10, 2008, at 5:10 PM, Xia, Wen wrote:
 
 When I tried to use the XMLSerializer.java in my project, I keep
 getting the error:
 
 A fatal exception occurred: null
 [2008-01-10 16:56:17 PST] main java.lang.ExceptionInInitializerError
 at XMLSerializer.serializeArray(XMLSerializer.java:24)
 at EbudgetWebService.getBSChapter(EbudgetWebService.java:19)
 at Application.init(Application.java:64)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0
 (Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance
 (NativeConstructorAccessorImpl.java:39)
 
 Line 24 in XMLSerializer.java is:
 NSXMLOutputStream stream = new NSXMLOutputStream(byte_output_stream);
 
 It is a blank line for me.  Have you changed this file?
 
 I'd add some log lines in XMLSerializer to see if you are passing
 null to a constructor someplace.
 
 
 And I¹m calling the method XMLSerializer.serializeArray with the
 following line:
 NSArray rows  = EOUtilities.objectsMatchingValues(ec, bsChapter,
 bindings);
 String rawData = XMLSerializer.serializeArray(rows);
 
 I don¹t know what is wrong.  If anyone use the code successfully,
 please advise.
 
 
 Chuck

 ___
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 [EMAIL PROTECTED]


java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding

2006-12-19 Thread Xia, Wen
We are having this problem at work. Thank you for your advice.
Wen

From: Gamache, Don [EMAIL PROTECTED]
Date: Tue, 19 Dec 2006 07:22:33 -0800
To: WebObjects Dev Apple webobjects-dev@lists.apple.com
Conversation: java.io.UnsupportedEncodingException:
NSMacOSRomanStringEncoding
Subject: java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding


I have a WebObjects web application with about 10 pages running on a Window
machine.  When I first brought up the second page I got this error:
java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding .   When I
restarted the application I got past page 2 OK but the error
java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding came up
again.  I restarted and got past page 3 OK but page 4 now had the same
error.  Restarted and page 4 OK but now page 5 has error.  Does anyone know
why the first time these pages come up they have this error?  Thanks.

Don



 ___
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

Re: java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding

2006-12-19 Thread Xia, Wen
Thank you all for your help. This is what we did which seems to solve the
problem:

Edit the file ...YourApp.woa\Contents\Windows\CLSSPATH.TXT

And change the line
# JVM == java

To read something like (give the explicit path to JVM)
# JVM == c:\jdk1.4.2_04\jre\bin\java.exe

-- Wen


On 12/19/06 9:52 AM, Art Isbell [EMAIL PROTECTED] wrote:

 On Dec 19, 2006, at 6:48 AM, Xia, Wen wrote:
 
 I have a WebObjects web application with about 10 pages running on a Window
 machine.  When I first brought up the second page I got this error:
  java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding .
 
 This exception can be thrown if the Java JRE version is not the multilanguage
 version.  However, it appears that at this time, the only Windows download
 choice since Java 1.4 is the multilanguage version.  If you're running a Java
 version earlier than 1.4, you might have the U.S. English version installed
 which is insufficient.
 
  
 Aloha,
  
 Art
   
 
 
 
  ___
 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/wen.xia%40dof.ca.gov
 
 This email sent to [EMAIL PROTECTED]


 ___
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

EOModeler not bringing any data

2006-08-30 Thread Xia, Wen
Title: EOModeler not bringing any data



Hi all,

Something really weird happens: I use EOModeler to browse data from a view in SQL 2000, and it shows no data. But if queried through DBVisualizer or Enterprise Manager, I can see data. 

Following is the adapter setting, and there is no complaint about it by the EOModeler:
URL - 
jdbc:microsoft:sqlserver://serverName:1433;DatabaseName=PDSDevel;selectMethod=cursor
Driver -
com.microsoft.jdbc.sqlserver.SQLServerDriver

Also, with the same adaptor setting, Im able to retrieve data from other views or tables in the same database. I wonder what might be the problem. Please advise. 

Thanks a lot!
Wen



 ___
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

Re: Direct to Web Services Caching Problem

2006-07-27 Thread Xia, Wen
That's a good document to read. It solves my problem and now it works like a
charm. 

Thank you, Chuck! 


On 7/26/06 5:34 PM, Chuck Hill [EMAIL PROTECTED] wrote:

 
 On Jul 26, 2006, at 5:28 PM, Xia, Wen wrote:
 
 Hi all,
 
 Recently I created a Direct to Web Service application, and used
 WebServiceAssistant to add services and operations. There is
 absolutely no
 coding and it works great until the following problem occurred:
 
 Even though I added -WOCachingEnabled NO for the web service
 instance, it
 still somehow caches the old data.
 
 That setting is not for data caching.  It is for WOComponent template
 caching.
 
 
 Only when the web service instance is
 restarted, it will re-fetch and get the latest information. I
 wonder where
 the data is cached and how to prevent such caching? Do I need to
 write my
 own code to handle it? Any settings or application properties to
 include?
 
 This is my first web service application. Please help me if you
 know how to
 solve it.
 
 Possibly more than you ever wanted to know:
 
 http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
 Caching_and_Freshness
 
 Chuck
 
 --
 Coming in 2006 - an introduction to web applications using WebObjects
 and Xcode http://www.global-village.net/wointro
 
 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


Direct to Web Services Caching Problem

2006-07-26 Thread Xia, Wen
Hi all,

Recently I created a Direct to Web Service application, and used
WebServiceAssistant to add services and operations. There is absolutely no
coding and it works great until the following problem occurred:

Even though I added -WOCachingEnabled NO for the web service instance, it
still somehow caches the old data. Only when the web service instance is
restarted, it will re-fetch and get the latest information. I wonder where
the data is cached and how to prevent such caching? Do I need to write my
own code to handle it? Any settings or application properties to include?

This is my first web service application. Please help me if you know how to
solve it.

Thanks a lot.
Wen 

 ___
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


Connecting to LDAP Directory with EOModeler

2006-05-15 Thread Xia, Wen
Title: Connecting to LDAP Directory with EOModeler



I need to get some data from an LDAP directory. I tried to use the JNDI adaptor to create an EOModel for this data. I was successful in creating the model and browsing the data in EOModeler, but I was unable to use the model in any code to actually do anything useful. I kept getting error:

WorkerThread5 java.lang.NullPointerException
at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(LdapNamingEnumeration.java:110)
at com.sun.jndi.ldap.LdapNamingEnumeration.nextAux(LdapNamingEnumeration.java:244)
at com.sun.jndi.ldap.LdapNamingEnumeration.nextImpl(LdapNamingEnumeration.java:235)

I searched through the apple mailing list and its archive. I found some posts with the same problem, but I did not see a solution to it. From the limited documentation I could find, it looks like a JNDI model should work just like a JDBC model. Is anyone successfully using the JNDI adaptor to fetch LDAP data using EOModel? If so, what is the trick in getting it to work? 

Thank you.





 ___
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