Re: WO 5.4.3 custom launch on Windows - help needed
Re: WO 5.4.3 custom launch on Windows - help needed
- Subject: Re: WO 5.4.3 custom launch on Windows - help needed
- From: Helmut Tschemernjak <email@hidden>
- Date: Tue, 03 Apr 2012 22:38:28 +0200
- Organization: HELIOS Software GmbH
an Update on the Windows launch issue with spaces in the pathname. I
changed my JNI launcher to use the WOBootstrap.jar startup, this somehow
overcomes the problem with the spaces in the pathname to the WebObjects
library.
On 02.04.12 05:09, Cheong Hee (Gmail) wrote:
Hi Helmut
Fyi, since day one of WO or YellowBox, th spaces in the path name should
be avoided as number one issue in windows platform. This is a common
issue and I did added into wiki the last time.
Cheers
Cheong Hee
----- Original Message ----- From: "Helmut Tschemernjak" <email@hidden>
To: <email@hidden>
Sent: Monday, April 02, 2012 3:44 AM
Subject: Re: WO 5.4.3 custom launch on Windows - help needed
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@hidden
Internet Web: http://www.helios.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden