• 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
Re: No template found for component Main at jar:file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No template found for component Main at jar:file


  • Subject: Re: No template found for component Main at jar:file
  • From: Mike Schrag <email@hidden>
  • Date: Sat, 21 Jan 2006 15:28:42 -0500

I don't know that the person who had this problem back in Sep ever responded with the final solution, but things you might check:

1) Check that you in fact have a Main.wo in your Contents/Resources folder
2) Check that your classpath is correct in Contents/MacOS/ MacOSClassPath.txt -- Specifically there should be a APPROOT/ Resources/Java/yourjarfile.jar entry
3) Check that the ApplicationClass (this is the NSPrincipalClass by the way) header is set properly in your Contents/MacOS/ MacOSClassPath.txt


It's particularly weird that it's looking for your template INSIDE the jar (note that the url that it's failing on is a jar: url).

Have your tried just running your app from the commandline and dropping the WO Launcher funny business? Just run the ./FinancialWO inside the .woa folder and it should be easier to work with.

ms

On Jan 21, 2006, at 2:27 PM, Baiss Eric Magnusson wrote:

I have a problem, which I think others have experienced, particularly as posted by Mike Schrag on 28th Sept.; which occurs when I attempt to do a deploy build. I am using the latest XCode. I have poured back and forth between the development settings and the deploy configurations settings but don't see a difference. I really can't believe how bad WOLauncher is!

The NSlog is shown below:
********************************************************
<Thread-0> Creating new lifebeat socket
<Thread-0> Exception sending lifebeat to wotaskd: java.net.ConnectException: Connection refused
<main> Opening application's URL in browser: http://BaissG5.local: 52311/cgi-bin/WebObjects/JavaFoundation.woa
<main> null
<main> Waiting for requests...
<WorkerThread0> <com.webobjects.appserver._private.WOComponentDefinition> No template found for component Main at "jar:file:///Users/baiss/ Installs/WO_installs/FinancialWO.woa/Contents/Resources/Java/ FinancialWO.jar!/".
********************************************************


The jar file <FinancialWO.jar> is of the correct size and is located in the above path. It must be obfuscated as I can't look into it with JavaBrowser.

I don't know why <JavaFoundation.woa> is referenced instead of my application name.
I can find no reference to NSPrincipalClass in any of the Project Settings.
It appears I am running in Direct Connect? as I always do?


----
Baiss Eric Magnusson
Still recovering from a Dec 12th total server crash.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com


This email sent to email@hidden

_______________________________________________ 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: No template found for component Main at jar:file
      • From: Baiss Eric Magnusson <email@hidden>
References: 
 >No template found for component Main at jar:file (From: Baiss Eric Magnusson <email@hidden>)

  • Prev by Date: Re: Couting the objects that would be returned by a fetch specification
  • Next by Date: Re: Couting the objects that would be returned by a fetch specification
  • Previous by thread: No template found for component Main at jar:file
  • Next by thread: Re: No template found for component Main at jar:file
  • Index(es):
    • Date
    • Thread