• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WO 5.4.3 custom launch on Windows - help needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Sun, 01 Apr 2012 13:04:23 +0200
  • Organization: HELIOS Software GmbH

good tip Werner,

eliminating the spaces of the path where the WebObjects .jar files are stored is a workaround. So all my launch parameters have been right but the space within the path was resulting into the described WOResourceManager access problem.

I investigated how to overcome this, maybe with the file:///... ... URLS within the "-Djava.class.path=..." So far I have not found any workaround except omitting spaces in the path to the WO runtime libraries. The problem is a little bit that the default application install path on Windows is in "\Program Files\..."

Maybe somebody else has advise how to revise the -Djava.class.path parameter to overcome it.

Regards Helmut



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



_______________________________________________
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

References: 
 >Re: WO 5.4.3 custom launch on Windows - help needed (From: Johann Werner <email@hidden>)

  • Prev by Date: Re: WO 5.4.3 custom launch on Windows - help needed
  • Next by Date: Help needed - on app startup: what happens after Welcome to..
  • Previous by thread: Re: WO 5.4.3 custom launch on Windows - help needed
  • Next by thread: Re: WO 5.4.3 custom launch on Windows - help needed
  • Index(es):
    • Date
    • Thread