• 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
Deeper down the rabbit hole (Was: MainBundle.woa?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deeper down the rabbit hole (Was: MainBundle.woa?)


  • Subject: Deeper down the rabbit hole (Was: MainBundle.woa?)
  • From: David LeBer <email@hidden>
  • Date: Sat, 20 Oct 2007 18:00:22 -0400


On 20-Oct-07, at 5:03 PM, David LeBer wrote:


On 20-Oct-07, at 4:53 PM, David LeBer wrote:

I'm deploying a pair of applications that I've successfully deployed before an they are both launching as 'MainBundle.woa'...

This is very weird.

Has anyone seen this before?

OK,

I realize this is a little light on information.

If I run the apps from within eclipse they launch as the app name, ie:

http://10.0.1.5:55555/cgi-bin/WebObjects/FundingAdmin.woa

But if I launch them from the command line on my dev machine or on the deployment machine they launch as MainBundle.woa

http://10.0.1.5:59192/cgi-bin/WebObjects/MainBundle.woa

The same thing seems to happen via monitor on the deployment box, the app is reachable as the AppName.woa but any resources are pointed at MainBundle.woa.

This app was built using last nights build of WOLips on Eclipse 3.3.1

Since I'd recently upgraded from Eclipse 3.2, I figured maybe the build.xml file had changed so I took a look at one created for a new "WOnder Application" and it looked quite a bit different.


Throwing caution to the wind, I replaced one of the projects build.xml files with the new one.

Now, when I try and launch from the command line, it goes as follows:

int:~ root# /Library/WebObjects/Applications/FundingApp.woa/FundingApp
Reading MacOSClassPath.txt ...
Launching FundingApp.woa ...
${jvm} -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" - DWOLocalRootDirectory="" -DWOUserDirectory="/Users/david" - DWOEnvClassPath="" - DWOApplicationClass=com.pimedia.rcmp.funding.app.Application - DWOPlatform=MacOS -Dcom.webobjects.pid=21296 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap - WOFrameworksBaseURL /WebObjects/FundingApp.woa/Contents/Frameworks
/Library/WebObjects/Applications/FundingApp.woa/FundingApp: line 1: exec: -X: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]

The ${jvm} bit is definitely incorrect.

It looks like it is pulling this from the MacOSClassPath.txt, which looks like:

# JVM              == ${jvm}
# JVMOptions       ==
# JDB              == jdb
# JDBOptions       ==
# ApplicationClass == com.pimedia.rcmp.funding.app.Application

I don't know where the JVM option is coming from in Eclipse so I manually change that to:

# JVM              == java

The app launches, but still as MainBundle.woa

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


_______________________________________________ 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
  • Follow-Ups:
    • Re: Deeper down the rabbit hole (Was: MainBundle.woa?)
      • From: Miguel Arroz <email@hidden>
References: 
 >MainBundle.woa? (From: David LeBer <email@hidden>)
 >Re: MainBundle.woa? (From: David LeBer <email@hidden>)

  • Prev by Date: Re: MainBundle.woa?
  • Next by Date: Re: Deeper down the rabbit hole (Was: MainBundle.woa?)
  • Previous by thread: Re: MainBundle.woa?
  • Next by thread: Re: Deeper down the rabbit hole (Was: MainBundle.woa?)
  • Index(es):
    • Date
    • Thread