Hi Raymond, The script is the one that in a "normal" WebObjects install would have installed in:
/Library/Application Support/Apple/Developer Tools/WebObjects Support/UnixLaunchClient.sh When you launch the app in Eclipse, WebObjects automatically looks for it in: "build/YourApp.woa/Contents/MacOS/YourApp_Client" and tries to run it if it. (note, that the file name is changed from "UnixLaunchClient.sh" to "YourApp_Client" I have a javaclientbuild.xml file that Eclipse runs whenever the incremental builder runs so it keeps it up-to-date. See: http://wiki.wocommunity.org/display/WO/Java+Client-WebStart+Incremental+Build There are several things about a Java Client web objects application that are different from a standard WebObjects application. #1 is that you are creating *two* applications with one Eclipse project. A server-side application (pretty-much a normal WebObjects application) and a client-side application. They each need different things and the standard build scripts and workflows do not work. ProjectBuilder/Xcode used to take care of all of this for you. Eclipse/WOLips is either indifferent to JC or outright hostile to it. Bundleless Builds, for example, do NOT work with Java Client. You have to turn it off. In the end, I have to agree with John and Philippe; unless you ABSOLUTELY MUST create a Java Client application, don't. Find another way. If you _really_ need to do Java Client, I'll help as I can on the list, but I can't guarantee responsiveness, I'm in Brunei so timezones are not usually my friend, unless you're in Australia, but you don't sound nearly that insane. I put a bunch of stuff up on the Wiki previously, not sure how up-to-date it all is, but you can certainly look there for ideas too: http://wiki.wocommunity.org/display/WO/Java+Client Dave On Feb 25, 2012, at 9:55 PM, Raymond NANEON wrote: > Hi Dave, > > I can I see how your Apple's UnixLaunchScript.sh look like? So why is very > difficult to launch a JavaClient on WebObjects 5.4 ? > > Thanks > > > > > Le 24 févr. 2012 à 21:44, David Avendasora <webobje...@avendasora.com> a > écrit : > >> I just started up one of my Java Client/Server apps that when run in >> production, launches the client through Java WebStart. >> >> When I launch the server-side app in Eclipse then use the >> UnixLaunchClient.sh script to launch the client-side app the client-side >> application launches with no problem and connects to the server-side app and >> works just fine. >> >> However, when I connect to the server-side app through a web browser: >> >> http://Kaiten.local:63994/cgi-bin/WebObjects/KMJavaClient.woa >> >> I get the standard "click here to start Kaiten Manufacturing through >> WebStart." page. When I click on the link which should generate a JNLP file >> and return it to the browser I get this as the HTTP response: >> >> HTTP/1.0 404 Apple WebObjects >> Content-Length: 0 >> x-webobjects-loadaverage: 11 >> >> The URL that the link is trying to load is: >> http://Kaiten.local:63994/cgi-bin/WebObjects/KMJavaClient.woa/eowebstart/com.webobjects.eodistribution._EOWebStartAction/webStart/JavaClient.jnlp >> >> I haven't tried to deploy at all to see if there is a problem once deployed. >> >> Again, if I launch using Apple's UnixLaunchScript.sh which should get copied >> into your App.woa/Contents/MacOS/ directory and get renamed to >> ProjectName_Client. >> >> If that is there when launching the app in Eclipse, then your app should >> automatically launch, without needing the JNLP file. >> >> Dave >> >> On Feb 24, 2012, at 8:16 AM, Raymond NANEON wrote: >> >>> Hi Dave, >>> >>> When I try to load the dynamic JavaClient.jnlp, nothing happens just this >>> exception in log : java.io.FileNotFoundException: >>> /Library/WebServer/Documents/cgi-bin/WebObjects/WebStartJNLPTest.woa/eowebstart/com.webobjects.eodistribution._EOWebStartAction/webStart/JavaClient.jnlp >>> (No such file or directory) >>> >>> Thanks >>> >>> >>> >>> Le 23 févr. 2012 à 23:32, David Avendasora <webobje...@avendasora.com> a >>> écrit : >>> >>>> Hi Raymond, >>>> >>>> It's been a couple years since I did JavaClient stuff, but... >>>> >>>> What happens when you try to simply load " >>>> /cgi-bin/WebObjects/WebStartJNLPTest.woa/eowebstart/com.webobjects.eodistribution._EOWebStartAction/webStart/JavaClient.jnlp" >>>> in your web browser? >>>> >>>> Dave >>>> >>>> On Feb 23, 2012, at 9:46 PM, Raymond NANEON wrote: >>>> >>>>> Hi, >>>>> >>>>> I tried a little JavaClient app but I can't launch the app because the >>>>> JavaClient.jnlp link is broken. >>>>> >>>>> I got this error : >>>>> >>>>> [2012-2-23 14:33:42 CET] <main> Opening application's URL in browser: >>>>> http://imac-cedre.utt.fr:51807/cgi-bin/WebObjects/WebStartJNLPTest.woa >>>>> [2012-2-23 14:33:42 CET] <main> null >>>>> [2012-2-23 14:33:42 CET] <main> Waiting for requests... >>>>> [2012-2-23 14:33:49 CET] <WorkerThread0> >>>>> <com.webobjects.appserver._private.WOStaticResourceRequestHandler> Unable >>>>> to get contents of file for uri. file: >>>>> /Library/WebServer/Documents/cgi-bin/WebObjects/WebStartJNLPTest.woa/eowebstart/com.webobjects.eodistribution._EOWebStartAction/webStart/JavaClient.jnlp; >>>>> uri: >>>>> /cgi-bin/WebObjects/WebStartJNLPTest.woa/eowebstart/com.webobjects.eodistribution._EOWebStartAction/webStart/JavaClient.jnlp >>>>> [2012-2-23 14:33:49 CET] <WorkerThread0> java.io.FileNotFoundException: >>>>> /Library/WebServer/Documents/cgi-bin/WebObjects/WebStartJNLPTest.woa/eowebstart/com.webobjects.eodistribution._EOWebStartAction/webStart/JavaClient.jnlp >>>>> (No such file or directory) >>>>> at java.io.FileInputStream.open(Native Method) >>>>> at java.io.FileInputStream.<init>(FileInputStream.java:120) >>>>> at >>>>> com.webobjects.appserver._private.WOStaticResourceRequestHandler.handleRequest(WOStaticResourceRequestHandler.java:86) >>>>> at >>>>> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) >>>>> at >>>>> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) >>>>> at >>>>> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) >>>>> at java.lang.Thread.run(Thread.java:680) >>>>> >>>>> Main >>>>> >>>>> <html> >>>>> <head> >>>>> <title>Main</title> >>>>> </head> >>>>> <body>Please >>>>> <webobject name = "JavaClientLink"> click here </webobject> >>>>> to start WebStartJNLPTest through WebStart. >>>>> </body> >>>>> </html> >>>>> >>>>> JavaClientLink: WOHyperlink { >>>>> href = javaClientLink; >>>>> } >>>>> >>>>> JavaClient >>>>> >>>>> <body> <webobject name = "JavaClientComponent" /> </body> >>>>> >>>>> JavaClientComponent: WOJavaClientComponent { >>>>> j2seVersion = "1.4+"; >>>>> applicationClassName = >>>>> "com.webobjects.eogeneration.EODynamicApplication"; >>>>> applicationName = "D2JC WebStart Test"; >>>>> applicationDescription = "D2JC WebStart Test"; >>>>> downloadClientClasses = "noDownloadClientClasses"; >>>>> vendor = "TEST"; >>>>> } >>>>> >>>>> Thanks for your Help >>>>> >>>>> Envoyé depuis iCloud >>>>> _______________________________________________ >>>>> 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: >>>>> https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com >>>>> >>>>> This email sent to webobje...@avendasora.com >>>> >>> >> >
_______________________________________________ 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com