On Dec 20, 2008, at 4:33 PM, Chuck Hill wrote:
> Was the current directory the .woa directory? IIRC that is required.
>
> Chuck
>
That did it. I thought that, when I was trying this at an earlier
point, I had gone to the woa directory. But now it is doing the trick.
thanx - ray
>
> On Dec 20, 2008, at 3:36 PM, Ray Kiddy wrote:
>
>>
>> On Dec 20, 2008, at 1:42 PM, Grischa Steffin wrote:
>>
>>> I am not sure if I got your question right:
>>> If you are looking for the generated command line actually
>>> running your App
>>> within Eclipse (actual classpath etc.):
>>>
>>> 1. Launch the application
>>> 2. Open the Debug-View
>>> 3. Right click on either the second or third node of the tree to
>>> open the
>>> context menu (The node listing the path to the jre should do it)
>>> 4. Open the properties (on my machine 'properties' is disabled on
>>> the root
>>> node but enabled below).
>>> (this also works on a terminated application)
>>>
>>> Hope that was your question...
>>>
>>> Best,
>>> Grischa
>>>
>>
>> That actually seemed to get me pretty close. But this is how far I
>> got trying to use the ps output. What I ended up with here , once
>> I put single-quotes around the parentheses on the command-line, was:
>>
>> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/
>> bin/java -Dfile.encoding=UTF-8 -classpath /Users/ray/Documents/
>> workspace/FilingsStatus/build/FilingsStatus.woa/Contents/Resources/
>> Java:/Library/Frameworks/ERExtensions.framework/Resources/Java/
>> ERExtensions.jar:/Library/Frameworks/ERJars.framework/Resources/
>> Java/ERJars.jar:/Library/Frameworks/ERJars.framework/Resources/
>> Java/erxservletadaptor.jar:/Library/Frameworks/ERJars.framework/
>> Resources/Java/erxwo54.jar:/Library/Frameworks/ERJars.framework/
>> Resources/Java/icu4j-3_8_1.jar:/Library/Frameworks/
>> ERJars.framework/Resources/Java/junit.jar:/Library/Frameworks/
>> ERJars.framework/Resources/Java/log4j-1.2.14.jar:/Library/
>> Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar:/
>> Library/Frameworks/ERJars.framework/Resources/Java/slf4j-
>> log4j12-1.5.0.jar:/Library/Frameworks/ERPrototypes.framework/
>> Resources/Java/ERPrototypes.jar:/Library/Frameworks/
>> JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar:/
>> Library/Frameworks/WOOgnl.framework/Resources/Java/ognl-2.6.7.jar:/
>> Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar:/
>> Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar:/
>> Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar:/
>> System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/
>> JavaEOAccess.jar:/System/Library/Frameworks/
>> JavaEOControl.framework/Resources/Java/JavaEOControl.jar:/System/
>> Library/Frameworks/JavaFoundation.framework/Resources/Java/
>> JavaFoundation.jar:/System/Library/Frameworks/
>> JavaJDBCAdaptor.framework/Resources/Java/JavaJDBCAdaptor.jar:/
>> System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/
>> JavaWebObjects.jar:/System/Library/Frameworks/JavaXML.framework/
>> Resources/Java/JavaXML.jar org.ganymede.calaccess.Application -
>> DWOUserDirectory=/Users/ray/Documents/workspace/FilingsStatus/
>> build/FilingsStatus.woa -EOAdaptorDebugEnabled false -
>> NSProjectSearchPath '(..,../..)' -WOAcceptMalformedCookies false -
>> WOAdaptorURL http://127.0.0.1/cgi-bin/WebObjects -
>> WOAdditionalAdaptors '()' -WOAllowRapidTurnaround true -
>> WOAllowsCacheControlHeader true -WOAllowsConcurrentRequestHandling
>> false -WOAutoOpenClientApplication true -WOAutoOpenInBrowser true -
>> WOApplicationBaseURL /WebObjects -WOApplicationClassName
>> org.ganymede.calaccess.Application -WOCachingEnabled false -
>> WOContextClassName WOContext -WODebuggingEnabled true -WOAdaptor
>> WODefaultAdaptor -WODefaultUndoStackLimit 10 -
>> WODirectConnectEnabled true -WODisplayExceptionPages true -WOIDE
>> WOLips -WOFrameworksBaseURL /WebObjects/Frameworks -WOGenerateWSDL
>> true -WOIncludeCommentsInResponse false -WOLifebeatDestinationPort
>> 1085 -WOLifebeatEnabled true -WOLifebeatInterval 30 -
>> WOListenQueueSize 128 -WOMaxHeaders 200 -WOMaxIOBufferSize 8196 -
>> WOMaxSocketIdleTime 180000 -WOMissingResourceSearchEnabled true -
>> WOMonitorEnabled false -WOPort -1 -WOSessionTimeOut 3600 -
>> WOSessionStoreClassName WOServerSessionStore -WOSMTPHost smtp -
>> WOSocketCacheSize 100 -WOSocketMonitorSleepTime 50 -
>> WOWorkerThreadCount 8 -WOWorkerThreadCountMin 16 -
>> WOWorkerThreadCountMax 256
>> + /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/
>> bin/java -Dfile.encoding=UTF-8 -classpath /Users/ray/Documents/
>> workspace/FilingsStatus/build/FilingsStatus.woa/Contents/Resources/
>> Java:/Library/Frameworks/ERExtensions.framework/Resources/Java/
>> ERExtensions.jar:/Library/Frameworks/ERJars.framework/Resources/
>> Java/ERJars.jar:/Library/Frameworks/ERJars.framework/Resources/
>> Java/erxservletadaptor.jar:/Library/Frameworks/ERJars.framework/
>> Resources/Java/erxwo54.jar:/Library/Frameworks/ERJars.framework/
>> Resources/Java/icu4j-3_8_1.jar:/Library/Frameworks/
>> ERJars.framework/Resources/Java/junit.jar:/Library/Frameworks/
>> ERJars.framework/Resources/Java/log4j-1.2.14.jar:/Library/
>> Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar:/
>> Library/Frameworks/ERJars.framework/Resources/Java/slf4j-
>> log4j12-1.5.0.jar:/Library/Frameworks/ERPrototypes.framework/
>> Resources/Java/ERPrototypes.jar:/Library/Frameworks/
>> JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar:/
>> Library/Frameworks/WOOgnl.framework/Resources/Java/ognl-2.6.7.jar:/
>> Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar:/
>> Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar:/
>> Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar:/
>> System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/
>> JavaEOAccess.jar:/System/Library/Frameworks/
>> JavaEOControl.framework/Resources/Java/JavaEOControl.jar:/System/
>> Library/Frameworks/JavaFoundation.framework/Resources/Java/
>> JavaFoundation.jar:/System/Library/Frameworks/
>> JavaJDBCAdaptor.framework/Resources/Java/JavaJDBCAdaptor.jar:/
>> System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/
>> JavaWebObjects.jar:/System/Library/Frameworks/JavaXML.framework/
>> Resources/Java/JavaXML.jar org.ganymede.calaccess.Application -
>> DWOUserDirectory=/Users/ray/Documents/workspace/FilingsStatus/
>> build/FilingsStatus.woa -EOAdaptorDebugEnabled false -
>> NSProjectSearchPath '(..,../..)' -WOAcceptMalformedCookies false -
>> WOAdaptorURL http://127.0.0.1/cgi-bin/WebObjects -
>> WOAdditionalAdaptors '()' -WOAllowRapidTurnaround true -
>> WOAllowsCacheControlHeader true -WOAllowsConcurrentRequestHandling
>> false -WOAutoOpenClientApplication true -WOAutoOpenInBrowser true -
>> WOApplicationBaseURL /WebObjects -WOApplicationClassName
>> org.ganymede.calaccess.Application -WOCachingEnabled false -
>> WOContextClassName WOContext -WODebuggingEnabled true -WOAdaptor
>> WODefaultAdaptor -WODefaultUndoStackLimit 10 -
>> WODirectConnectEnabled true -WODisplayExceptionPages true -WOIDE
>> WOLips -WOFrameworksBaseURL /WebObjects/Frameworks -WOGenerateWSDL
>> true -WOIncludeCommentsInResponse false -WOLifebeatDestinationPort
>> 1085 -WOLifebeatEnabled true -WOLifebeatInterval 30 -
>> WOListenQueueSize 128 -WOMaxHeaders 200 -WOMaxIOBufferSize 8196 -
>> WOMaxSocketIdleTime 180000 -WOMissingResourceSearchEnabled true -
>> WOMonitorEnabled false -WOPort -1 -WOSessionTimeOut 3600 -
>> WOSessionStoreClassName WOServerSessionStore -WOSMTPHost smtp -
>> WOSocketCacheSize 100 -WOSocketMonitorSleepTime 50 -
>> WOWorkerThreadCount 8 -WOWorkerThreadCountMin 16 -
>> WOWorkerThreadCountMax 256
>> [2008-12-20 15:33:42 PST] <main> Initialized :
>> er.extensions.ERXExtensions
>> [2008-12-20 15:33:43 PST] <main> A fatal exception occurred: null
>> [2008-12-20 15:33:43 PST] <main>
>> java.lang.ExceptionInInitializerError
>> at
>> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourc
>> eAsStream(WOResourceManager.java:116)
>> 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)
>> at er.extensions.appserver.ajax.ERXAjaxApplication.<init>
>> (ERXAjaxApplication.java:22)
>> at er.extensions.appserver.ERXApplication.<init>
>> (ERXApplication.java:843)
>> at org.ganymede.calaccess.Application.<init>
>> (Application.java:10)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0
>> (Native Method)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance
>> (NativeConstructorAccessorImpl.java:39)
>> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
>> (DelegatingConstructorAccessorImpl.java:27)
>> at java.lang.reflect.Constructor.newInstance
>> (Constructor.java:494)
>> at java.lang.Class.newInstance0(Class.java:350)
>> at java.lang.Class.newInstance(Class.java:303)
>> at com.webobjects.appserver.WOApplication.main
>> (WOApplication.java:547)
>> at er.extensions.appserver.ERXApplication.main
>> (ERXApplication.java:631)
>> at org.ganymede.calaccess.Application.main(Application.java:7)
>> Caused by: java.lang.IllegalStateException: Main bundle
>> 'Properties' file can't be read. Did you run as a Java
>> Application instead of a WOApplication in WOLips?
>> Please post your deployment configuration in the Wonder mailing list.
>> at er.extensions.appserver.ERXApplication
>> $Loader.bundleDidLoad(ERXApplication.java:544)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke
>> (NativeMethodAccessorImpl.java:39)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
>> (DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at com.webobjects.foundation.NSSelector._safeInvokeMethod
>> (NSSelector.java:122)
>> at com.webobjects.foundation.NSNotificationCenter
>> $_Entry.invokeMethod(NSNotificationCenter.java:588)
>> at
>> com.webobjects.foundation.NSNotificationCenter.postNotification
>> (NSNotificationCenter.java:532)
>> at
>> com.webobjects.foundation.NSNotificationCenter.postNotification
>> (NSNotificationCenter.java:562)
>> at com.webobjects.foundation.NSBundle.postNotification
>> (NSBundle.java:1819)
>> at
>> com.webobjects.foundation.NSBundle.LoadBundlesFromClassPath
>> (NSBundle.java:490)
>> at com.webobjects.foundation.NSBundle.<clinit>
>> (NSBundle.java:2109)
>> ... 16 more
>>
>>
>>>
>>> On Dec 20, 2008, at 3:48 PM, Ray Kiddy wrote:
>>>
>>>>
>>>> If one builds a Wonder Application and (usually) runs with eclipse,
>>>> is there an easy way to get a command-line version of what eclipse
>>>> is launching?
>>>>
>>>> With Xcode, this was easy, because the script inside the woa bundle
>>>> would generate a command and run it and one could swipe that
>>>> command, but there does not seem to be a way to do something
>>>> similar
>>>> with eclipse.
>>>>
>>>> I tried looking at verbose ps output, but and that gave me
>>>> something
>>>> but it was not quite runnable. I tried looking in the log, but
>>>> it is
>>>> such a PITA to get the log to be anything other than really verbose
>>>> and I am not seeing the command invoked in the log entries that I
>>>> can see. Any suggestions?
>>>>
>>>> thanx - ray
>>>>
>>>
>>>
>>
>>
>
> --
> Chuck Hill Senior Consultant / VP Development
>
> 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/products/practical_webobjects
>
>
>
>
>
>
>
This archive was generated by hypermail 2.0.0 : Sat Dec 20 2008 - 19:51:36 EST