Op 30 jul. 2013, om 17:10 heeft Chuck Hill <[email protected]> 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
120000 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
120000 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 <[email protected]> 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 <[email protected]> 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
>>>> [email protected]
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-deploy mailing list ([email protected])
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-deploy/liz%40plsys.co.uk
>>>>
>>>> This email sent to [email protected]
>>>
>>
>> Johan Henselmans
>> [email protected]
>>
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-deploy mailing list ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-deploy/chill%40global-village.net
>>
>> This email sent to [email protected]
>
> --
> 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!
>
>
>
>
>
>
>
>
>
>
>
>
Johan Henselmans
[email protected]
_______________________________________________
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]