Update on the issue, I figured out that the WOBootstrap class installs a new URLClassLoader which uses file://paths to the WO runtime jars and launches the final WO App via the new the new classLoader and finally invokes the Application class.
Maybe this is what needs to be done to overcome the problem. On 01.04.12 09:22, Johann Werner wrote:
Hi Helmut, I am no expert in Windows deployment but on the list there were several posts that did point to a problem with application paths containing spaces. You should move your app out of C:\Program Files (x86)\ and check if that resolves your problem. jw Am 31.03.2012 um 22:06 schrieb Helmut Tschemernjak:I am working on a custom JNI launch executable for our WO app. On UNIX it works but on Windows I still have problems. I don't use the WOBootstrap.jar. It looks like the WOResourceManager cannot load the MIME.plist and the WO startup fails. Below are my used properties and the error output. I tried absolute path to the the WO jars and relative path, no success. Our app has also a MIME.plist in Contents/Resources/ Any ideas what property is missing or wrong, thank you for your help. Regards Helmut addOption: -Xms32m addOption: -Xmx256m addOption: -Xrs addOption: -DWOPlatform=HELIOS addOption: -DHELIOSDIR=C:\Program Files (x86)\Helios addOption: -Dcom.webobjects.pid=3180 addOption: -DWORootDirectory="" addOption: -DWOLocalRootDirectory="" addOption: -DWOUserDirectory=C:\Program Files (x86)\Helios\var\run\webshare.woa addOption: -Djava.class.path=Contents\Resources\Java\webshare.jar;..\WebObjects\JavaFoundation.jar;..\WebObjects\JavaWebObjects.jar;..\WebObjects\JavaXML.jar;..\WebObjects\JavaWOExtensions.jar;..\WebObjects\JavaEOControl.jar;..\WebObjects\JavaEOAccess.jar [2012-3-31 21:28:28 MESZ]<main> <WOResourceManager> Unable to locate the "JavaWebObjects" bundle [2012-3-31 21:28:28 MESZ]<main> Unable to initialize WOProperties for reason: Cannot find JavaWebObjects framework ! java.lang.IllegalStateException: Unable to locate the "JavaWebObjects" bundle [2012-3-31 21:28:28 MESZ]<main> A fatal exception occurred:<WOApplication>: Cannot be initialized. [2012-3-31 21:28:28 MESZ]<main> com.webobjects.foundation.NSForwardException [java.lang.IllegalStateException] Unable to locate the "JavaWebObjects" bundle:<WOApplication>: Cannot be initialized. at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:918) at de.helios.webshare.Application.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.webobjects.appserver.WOApplication.main(WOApplication.java:547) at de.helios.webshare.Application.main(Unknown Source) Caused by: java.lang.IllegalStateException: Unable to locate the "JavaWebObjects" bundle at com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:131) at com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317) at com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743) at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:779) ... 9 more My var/run/WebObjects directory includes the following WO runtime jars. The jars are extracted from an 5.4.3 .war file. Again on several UNIX platforms it works fine on Windows I miss something. -rw-r--r-- 1 root wheel 342441 17 Feb 16:08 JavaEOAccess.jar -rw-rw-r-- 1 root wheel 272836 17 Feb 16:08 JavaEOControl.jar -rw-rw-r-- 1 root wheel 699806 17 Feb 16:08 JavaFoundation.jar -rw-rw-r-- 1 root wheel 199189 17 Feb 16:08 JavaWOExtensions.jar -rw-rw-r-- 1 root wheel 825068 17 Feb 16:08 JavaWebObjects.jar -rw-rw-r-- 1 root wheel 6978345 17 Feb 16:08 JavaXML.jar
-- best regards / mit freundlichen Gruessen, Helmut Tschemernjak HELIOS Software GmbH Steinriede 3 30827 Garbsen Phone: +49-5131-709320 Fax: +49-5131-709325 Internet Mail: [email protected] Internet Web: http://www.helios.de _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
