Re: No template found for component Main at jar:file
Re: No template found for component Main at jar:file
- Subject: Re: No template found for component Main at jar:file
- From: Baiss Eric Magnusson <email@hidden>
- Date: Mon, 23 Jan 2006 19:47:03 -0800
Thanks, Mike.
I'm still unable to get the program to execute correctly, the build
file <.woa> seems fine in every way as I go through your suggestions.
On Jan 21, 2006, at 12:28 PM, Mike Schrag wrote:
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
It is.
2) Check that your classpath is correct in Contents/MacOS/
MacOSClassPath.txt -- Specifically there should be a APPROOT/
Resources/Java/yourjarfile.jar entry
Well, I don't see any problem with the class paths, as Terminal shows:
Launching FinancialWO.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" -
DWOLocalRootDirectory="" -DWOUserDirectory="/Users/baiss/Installs/
WO_installs/FinancialWO.woa" -DWOEnvClassPath="" -
DWOApplicationClass=Application -DWOPlatform=MacOS -
Dcom.webobjects.pid=332 -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap
appRoot is /Users/baiss/Installs/WO_installs/FinancialWO.woa/Contents
Loading /Users/baiss/Installs/WO_installs/FinancialWO.woa/Contents/
MacOS/MacOSClassPath.txt
Generated classpath:
/Users/baiss/Installs/WO_installs/FinancialWO.woa/Contents/
Resources/Java/FinancialWO.jar
.../
From the Project template, BTW I tried editing this directly and the
result was that <jam> failed and I had to throw away the project file.
01A3BF70FFB0C37D11CD2B9D /* Deployment */ = {
isa = PBXBuildStyle;
buildSettings = {
INSTALL_MODE_FLAG = "a-w,a+rX";
INSTALL_PATH_FOR_STYLE = "$(INSTALL_PATH)";
};
};
/* End PBXBuildStyle section */
3) Check that the ApplicationClass (this is the NSPrincipalClass
by the way) header is set properly in your Contents/MacOS/
MacOSClassPath.txt
It's set, like it is in the other 3 successfully deployed WO apps, as
below:
# ApplicationClass == Application
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).
I agree.
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.
Yes, I've tried that, but I went and revisited it, running first the
failing deploy build then the succeeding development build; and in
the <Development> log I see the following additional lines on the
terminal, (I quit XCode so it wouldn't get the resources from the
project).
<main> NSBundle is unable to find "ExtensionsForResources.plist" in
the main bundle. Ignoring optional configuration file.
I believe you always get the above line
<main> Cannot use rapid turnaround. Please start Xcode and open
the project for this application.
<main> Creating LifebeatThread now with: FinancialWO 54891
BaissG5.local/192.168.1.102 1085 30000
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!/".
********************************************************
I don't know why <JavaFoundation.woa> is referenced instead of my
application name.
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:
This email sent to email@hidden