Re: Snow Leopard, Java 1.7, WebObjects

2013-07-31 Thread John Huss
# JVM  == /System/Library/Frameworks/JavaVM.framework/Versions/
Current/Commands/java
(which points to java 1.7)

You know the pound sign means this line is commented out, right?


On Wed, Jul 31, 2013 at 12:48 AM, Johan Henselmans jo...@netsense.nlwrote:


 Op 30 jul. 2013, om 19:10 heeft Gavin Eadie ga...@umich.edu het
 volgende geschreven:

  On Jul 30, 2013, at 5:21 AM, Johan Henselmans jo...@netsense.nl wrote:
 
  Unsupported major.minor version 51.0
 
  It means that you compiled your classes under a specific JDK, but then
 try to run them under older version of JDK. So, you can't run classes
 compiled with JDK 6.0 under JDK 5.0. The same with classes compiled under
 JDK 7.0 when you try to run them under JDK 6.0.

 Thanks Gavin, I understood that, I know I am running 1.6 VM.

 The question was why it did not run with a 1.7 VM.
 I added
 # JVM  ==
 /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
 (which points to java 1.7)
 to MacOSClasspath.txt in the MacOS folder, the logging shows that the
 arguments it is using for firing up is indeed
 /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
 and still it is displaying this Unsupported major.minor version.

 I seems that, although wotaskd displays the correct arguments for starting
 up the application, it actually uses a different way to fire up the app.

 If I start up the app from the command-line it runs with java 1.7.

 I am lost.

  ___
  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/johan%40netsense.nl
 
  This email sent to jo...@netsense.nl

 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/johnthuss%40gmail.com

 This email sent to johnth...@gmail.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

Re: Snow Leopard, Java 1.7, WebObjects

2013-07-31 Thread Nathan Hadfield
Actually it's it's still functional even though it's commented out. If it's not 
commented out I believe you get an error.

I set it to /Library/Java/Home/bin/java -- a bit easier to remember and to 
describe to clients.

Nathan

On Jul 31, 2013, at 8:12 AM, John Huss johnth...@gmail.com wrote:

 # JVM  == 
 /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
 (which points to java 1.7)
 
 You know the pound sign means this line is commented out, right?
 
 
 On Wed, Jul 31, 2013 at 12:48 AM, Johan Henselmans jo...@netsense.nl wrote:
 
 Op 30 jul. 2013, om 19:10 heeft Gavin Eadie ga...@umich.edu het volgende 
 geschreven:
 
  On Jul 30, 2013, at 5:21 AM, Johan Henselmans jo...@netsense.nl wrote:
 
  Unsupported major.minor version 51.0
 
  It means that you compiled your classes under a specific JDK, but then try 
  to run them under older version of JDK. So, you can't run classes compiled 
  with JDK 6.0 under JDK 5.0. The same with classes compiled under JDK 7.0 
  when you try to run them under JDK 6.0.
 
 Thanks Gavin, I understood that, I know I am running 1.6 VM.
 
 The question was why it did not run with a 1.7 VM.
 I added
 # JVM  == 
 /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
 (which points to java 1.7)
 to MacOSClasspath.txt in the MacOS folder, the logging shows that the 
 arguments it is using for firing up is indeed
 /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
 and still it is displaying this Unsupported major.minor version.
 
 I seems that, although wotaskd displays the correct arguments for starting up 
 the application, it actually uses a different way to fire up the app.
 
 If I start up the app from the command-line it runs with java 1.7.
 
 I am lost.
 
  ___
  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/johan%40netsense.nl
 
  This email sent to jo...@netsense.nl
 
 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/johnthuss%40gmail.com
 
 This email sent to johnth...@gmail.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/hadfieldn%40gmail.com
 
 This email sent to hadfie...@gmail.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

Re: Snow Leopard, Java 1.7, WebObjects

2013-07-30 Thread Johan Henselmans

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 
 

Re: Snow Leopard, Java 1.7, WebObjects

2013-07-30 Thread Chuck Hill
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 
 

Re: Snow Leopard, Java 1.7, WebObjects

2013-07-30 Thread Johan Henselmans

Op 30 jul. 2013, om 17:10 heeft Chuck Hill ch...@global-village.net het 
volgende geschreven:

 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
 
 


I also noticed this in the system log:
===
Jul 30 17:45:03 ostadeserver com.webobjects.wotaskd[23665]: 2013-07-30 
17:45:03,127 WARN  19.19 MB/14.75 MB [WorkerThread9] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:44) - Application 
'theaterresnew-1' on 127.0.0.1:2009 stopped running at 2013-07-30 15:45:03 
Etc/GMT.
Jul 30 17:45:03 ostadeserver com.webobjects.wotaskd[23665]: The app's current 
state was: STARTING.
Jul 30 17:45:03 ostadeserver com.webobjects.wotaskd[23665]: The app did not 
respond for 63501118983seconds which is greater than the allowed threshold of 
12 seconds (Lifebeat Interval * WOAssumeApplicationIsDeadMultiplier) so it 
is assumed to be dead.
Jul 30 17:45:03 ostadeserver com.webobjects.wotaskd[23665]: The last successful 
communication occurred at: 1-04-25 00:00:00 Etc/GMT. This may be the result of 
a crash or an intentional shutdown from outside of wotaskd
Jul 30 17:53:36 ostadeserver com.webobjects.wotaskd[23665]: 2013-07-30 
17:53:36,582 WARN  20.5 MB/13.44 MB [main] logging.ERXNSLogLog4jBridge 
(ERXNSLogLog4jBridge.java:44) - Application 'theaterresnew-1' on 127.0.0.1:2009 
stopped running at 2013-07-30 15:53:36 Etc/GMT.
Jul 30 17:53:36 ostadeserver com.webobjects.wotaskd[23665]: The app's current 
state was: STARTING.
=


=


 !!
Jul 30 17:53:36 ostadeserver com.webobjects.wotaskd[23665]: The app did not 
respond for 63501119496seconds which is greater than the allowed threshold of 
12 seconds (Lifebeat Interval * WOAssumeApplicationIsDeadMultiplier) so it 
is assumed to be dead.
Jul 30 17:53:36 ostadeserver com.webobjects.wotaskd[23665]: The last successful 
communication occurred at: 1-04-25 00:00:00 Etc/GMT. This may be the result of 
a crash or an intentional shutdown from outside of wotaskd


That is a lot of seconds. I assume this has nothing to do with the java 1.6 or 
1.7 version, but it is odd…


 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 

Re: Snow Leopard, Java 1.7, WebObjects

2013-07-30 Thread Bastian Triller
Did you try this 
http://lists.apple.com/archives/webobjects-dev/2013/Apr/msg00023.html ?
On 30 Jul 2013 17:58, Johan Henselmans jo...@netsense.nl 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