Try the specific JVM:

# JVM == /System/Library/Frameworks/JavaVM.framework/Versions/1.7.25/Commands/ 
java 

>>>>> Running the app from the command-line gives java 1.7, but running from 
>>>>> wotaskd gives the following log in 

Suggests that the user it is running under when wotaskd starts it has a 
different default JVM.

Just guessing.


Chuck


On 2013-07-30, at 8:57 AM, Johan Henselmans wrote:

> 
> On 30 jul. 2013, at 17:10, Chuck Hill <ch...@global-village.net> wrote:
> 
>> It is the application you need to do this in, not wotaskd.  wotaskd uses a 
>> script to launch a new JVM for the app so changes to the JVM for wotaskd do 
>> not affect the application.
>> 
>> Chuck
>> 
> 
> Been there, done that:
> 
> ostadeserver:MacOS root# cat MacOSClassPath.txt
> # JVM              == 
> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
> # JVMOptions       == 
> # JDB              == jdb
> # JDBOptions       == 
> # ApplicationClass == nl.netsense.theaterres.Application
> 
> I also add the arg in MacOSXServerClassPath.txt
> 
> log:
> 
> date: Tue Jul 30 17:52:37 CEST 2013
> args: /Library/WebObjects/Applications/theaterres.woa/theaterres -WOHost 
> localhost -WOPort 2009 -WOCachingEnabled YES -WODebuggingEnabled NO -
> WOOutputPath /Library/WebObjects/Logs/theaterresnew-1 -WOAutoOpenInBrowser NO 
> -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebe
> atEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor 
> -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMi
> n 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 
> 3600 -WOApplicationName theaterresnew -WOMonitorEnabled YES -WONoPa
> use YES -Djava.awt.headless=true
> Reading MacOSClassPath.txt ...
> Launching theaterres.woa ...
> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java 
> -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" -DWOLoca
> lRootDirectory="" 
> -DWOUserDirectory="/Library/WebObjects/JavaApplications/wotaskd.woa" 
> -DWOEnvClassPath="" -DWOApplicationClass=nl.netsense.th
> eaterres.Application -DWOPlatform=MacOS -Dcom.webobjects.pid=34753 
> -Djava.awt.headless=true -classpath WOBootstrap.jar com.webobjects._bootstr
> ap.WOBootstrap -WOHost localhost -WOPort 2009 -WOCachingEnabled YES 
> -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/theaterresne
> w-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO 
> -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 
> -WOA
> daptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 
> -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchP
> ath "()" -WOSessionTimeOut 3600 -WOApplicationName theaterresnew 
> -WOMonitorEnabled YES -WONoPause YES -Djava.awt.headless=true
> Loading 
> /Library/WebObjects/Applications/theaterres.woa/Contents/MacOS/MacOSClassPath.txt
> 
> <snip>
> 
>  /Library/WebObjects/Extensions/
> java.lang.UnsupportedClassVersionError: nl/netsense/theaterres/Application : 
> Unsupported major.minor version 51.0
>        at java.lang.ClassLoader.defineClass1(Native Method)
>        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>        at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
> 
> 
> 
> 
>> 
>> On 2013-07-30, at 2:21 AM, Johan Henselmans wrote:
>> 
>>> 
>>> Op 30 jul. 2013, om 10:40 heeft Elizabeth Lynch <l...@plsys.co.uk> het 
>>> volgende geschreven:
>>> 
>>>> Hi Johan
>>>> 
>>>> You could try changing the Java reference in 
>>>> 
>>>> /Library/WebObjects/JavaApplications/wotaskd.woa/Contents/MacOS/MacOSClassPath.txt
>>>> 
>>>> from
>>>> 
>>>> # JVM == java
>>>> 
>>>> to something more like
>>>> 
>>>> # JVM == 
>>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.25//Commands/ 
>>>> java 
>>>> 
>>>> I don't know for sure this is the right solution, but it seems like it 
>>>> would be worth a try.
>>>> 
>>> 
>>> Tried it in 
>>> /Library/WebObjects/JavaApplications/wotaskd.woa/Contents/MacOS/MacOSClassPath.txt
>>>  and MacOSXServerClassPath.txt, and in the app's MacOSClassPath.txt. 
>>> 
>>> I am getting: 
>>> 
>>> Launching theaterres.woa ...
>>> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java 
>>> -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" 
>>> -DWOLocalRootDirectory="" 
>>> -DWOUserDirectory="/Library/WebObjects/JavaApplications/wotaskd.woa" 
>>> -DWOEnvClassPath="" -DWOApplicationClass=nl.netsense.theaterres.Application 
>>> -DWOPlatform=MacOS -Dcom.webobjects.pid=23891 -Djava.awt.headless=true 
>>> -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOHost 
>>> localhost -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO 
>>> -WOOutputPath /Library/WebObjects/Logs/theaterres-1 -WOAutoOpenInBrowser NO 
>>> -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled 
>>> YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor 
>>> -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 
>>> -WOWorkerThreadCountMax 256 -NSProjectSearchPath "()" -WOSessionTimeOut 
>>> 3600 -WOApplicationName theaterres -WOMonitorEnabled YES -WONoPause YES 
>>> -Djava.awt.headless=true
>>> Loading 
>>> /Library/WebObjects/Applications/theaterres.woa/Contents/MacOS/MacOSClassPath.txt
>>> 
>>> Still at the end: 
>>> 
>>> java.lang.UnsupportedClassVersionError: nl/netsense/theaterres/Application 
>>> : Unsupported major.minor version 51.0
>>> 
>>> 
>>> 
>>> 
>>>> Liz
>>>> 
>>>> On 30 Jul 2013, at 07:30, Johan Henselmans <jo...@netsense.nl> wrote:
>>>> 
>>>>> Here's the situation:
>>>>> 
>>>>> I have to use a framework which is java 1.7+
>>>>> I have to use Snow Leopard
>>>>> I have to use WebObjects. 
>>>>> 
>>>>> I got this far:
>>>>> I am compiling on Mac Os 10.8, Eclipse 3.7, have set the Java Parameter 
>>>>> on 1.7, compiles fine, app runs fine in 10.8 from wotaskd.
>>>>> 
>>>>> On Snow Leopard: 
>>>>> I Installed java 1.7.25 on Snow Leopard with Pacifist, it displays in 
>>>>> Java Preferences, and I have set it to be the default JVM in 
>>>>> JavaPreferences:
>>>>> 
>>>>> <PastedGraphic-1.png>
>>>>> 
>>>>> I installed wotaskd and womonitor form Wonder integration in 
>>>>> /Library/WebObjects/JavaApplications (and ERExtensions, AJax and ERJars 
>>>>> framework, because they are not included), 
>>>>> 
>>>>> 
>>>>> 
>>>>> I removed /System/Library/LaunchDaemons/com.apple.wotaskd.plist and 
>>>>> womonitor.plist
>>>>> I added the com.webobjects.wotaskd.plist and the 
>>>>> com.webobjects.womonitor.plist to /Library/LaunchDaemons/
>>>>> 
>>>>> 
>>>>> java -version gives:
>>>>> java version "1.7.0_25"
>>>>> Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
>>>>> Java HotSpot(™) 64-Bit Server VM (build 23.25-b01, mixed mode)
>>>>> 
>>>>> However, starting wotaskd and womonitor log that they are using 1.6:
>>>>> 
>>>>> wotaskd:   
>>>>> java.endorsed.dirs=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed
>>>>> wotaskd:   
>>>>> java.ext.dirs=/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
>>>>> wotaskd:   java.runtime.name=Java(TM) SE Runtime Environment
>>>>> wotaskd:   java.runtime.version=1.6.0_51-b11-456-10M4508
>>>>> wotaskd:   java.specification.name=Java Platform API Specification
>>>>> wotaskd:   java.specification.vendor=Sun Microsystems Inc.
>>>>> wotaskd:   java.specification.version=1.6
>>>>> wotaskd:   java.vendor=Apple Inc.
>>>>> wotaskd:   java.vendor.url=http://www.apple.com/
>>>>> wotaskd:   java.vendor.url.bug=http://bugreport.apple.com/
>>>>> wotaskd:   java.version=1.6.0_51
>>>>> wotaskd:   java.vm.info=mixed mode
>>>>> wotaskd:   java.vm.name=Java HotSpot(TM) 64-Bit Server VM
>>>>> wotaskd:   java.vm.specification.name=Java Virtual Machine Specification
>>>>> wotaskd:   java.vm.specification.vendor=Sun Microsystems Inc.
>>>>> wotaskd:   java.vm.specification.version=1.0
>>>>> wotaskd:   java.vm.vendor=Apple Inc.
>>>>> wotaskd:   java.vm.version=20.51-b01-456
>>>>> 
>>>>> Running the app from the command-line gives java 1.7, but running from 
>>>>> wotaskd gives the following log in 
>>>>> /Library/WebObjects/Logs/SpawnOfWotaskd.log  (after touching 
>>>>> /tmp/logWebObjects):
>>>>> java.lang.UnsupportedClassVersionError: 
>>>>> nl/netsense/theaterres/Application : Unsupported major.minor version 51.0
>>>>>     at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>>>     at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>>>     at 
>>>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>>>>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>>>     at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>>>     at java.security.AccessController.doPrivileged(Native Method)
>>>>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>>     at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
>>>>> 
>>>>> I know that one, it means I am not running java 1.7.
>>>>> 
>>>>> 
>>>>> So question: 
>>>>> -how do I get wotaskd to start apps with java 1.7?
>>>>> 
>>>>> 
>>>>> Johan Henselmans
>>>>> jo...@netsense.nl
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-deploy mailing list      (webobjects-dep...@lists.apple.com)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> https://lists.apple.com/mailman/options/webobjects-deploy/liz%40plsys.co.uk
>>>>> 
>>>>> This email sent to l...@plsys.co.uk
>>>> 
>>> 
>>> Johan Henselmans
>>> jo...@netsense.nl
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-deploy mailing list      (webobjects-dep...@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-deploy/chill%40global-village.net
>>> 
>>> This email sent to ch...@global-village.net
>> 
>> -- 
>> Chuck Hill             
>> Executive Managing Partner, VP Development and Technical Services
>> 
>> 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/gvc/practical_webobjects
>> 
>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
>> Growing Companies in B.C! 
>> 
>> Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of 
>> Canada’s Fastest-Growing Companies by PROFIT Magazine!
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> Vriendelijke Groeten,
> 
> Johan Henselmans
> jo...@netsense.nl
> 
> 
> 

-- 
Chuck Hill             
Executive Managing Partner, VP Development and Technical Services

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/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
Companies in B.C! 

Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of 
Canada’s Fastest-Growing Companies by PROFIT Magazine!













 _______________________________________________
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

Reply via email to