Re: Built WOComponents placed in wrong location
Re: Built WOComponents placed in wrong location
- Subject: Re: Built WOComponents placed in wrong location
- From: Kieran Kelleher <email@hidden>
- Date: Fri, 4 Jan 2008 08:00:29 -0500
the woproject/*.patternset files are used by the ant build process to
determine what resources go where. Have a read of the ant docs
online. If you can grasp the basics of how the ant build.xml file
works and how it uses the patternsets, you will be well on the way to
woa build enlightenment.
http://ant.apache.org/manual/index.html
http://ant.apache.org/manual/CoreTypes/patternset.html
On Jan 4, 2008, at 12:58 AM, Aaron Thompson wrote:
Hi, sorry to ask for help again, I'm still rather new to WO. After
moving some components around in Eclipse/WOLips, I'm getting the
following error upon launch:
(ERXNSLogLog4jBridge.java:44) DEBUG NSLog -
<com.webobjects.appserver._private.WOComponentDefinition> No
template found for component Main at "file:/Users/thompsonaaron/
PROGRAMMING/eclipseworkspace/MyApp/build/MyApp.woa/".
(ERXNSLogLog4jBridge.java:41) WARN NSLog -
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
java.lang.IllegalStateException: Unable to find framework named
"MyApp".
<WorkerThread0> java.lang.IllegalStateException: Unable to find
framework named "MyApp".
at com.webobjects.appserver._private.WOComponentDefinition.<init>
(WOComponentDefinition.java:271)
at
com.webobjects.appserver.WOApplication._componentDefinitionFromClassNa
med(WOApplication.java:2766)
at com.webobjects.appserver.WOApplication._componentDefinition
(WOApplication.java:2870)
at com.webobjects.appserver.WOApplication.pageWithName
(WOApplication.java:2312)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedSession(WOComponentRequestHandler.java:284)
...
I tried moving my Main component into the root directory and
relaunched, then back into the Components directory and relaunched,
all to no avail. After poking around, I found that in the
built .woa, it was placing all the components in
build/MyApp.woa/Contents/Resources/Components
Interesting, I thought all the WOComponents just went in the
Resources folder. So then to further explore the issue, I moved
all the WOComponents to ../Resources, and this made it work
initially. However, it choked again when trying to access a
component within a subfolder with the same error:
(ERXNSLogLog4jBridge.java:44) DEBUG NSLog -
<com.webobjects.appserver._private.WOComponentDefinition> No
template found for component AdminHome at "file:/Users/
thompsonaaron/PROGRAMMING/eclipseworkspace/MyApp/build/MyApp.woa/".
(ERXNSLogLog4jBridge.java:41) WARN NSLog -
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
java.lang.IllegalStateException: Unable to find framework named
"MyApp".
<WorkerThread0> java.lang.IllegalStateException: Unable to find
framework named "MyApp".
at com.webobjects.appserver._private.WOComponentDefinition.<init>
(WOComponentDefinition.java:271)
at
com.webobjects.appserver.WOApplication._componentDefinitionFromClassNa
med(WOApplication.java:2766)
at com.webobjects.appserver.WOApplication._componentDefinition
(WOApplication.java:2870)
at com.webobjects.appserver.WOApplication.pageWithName
(WOApplication.java:2312)
at com.webobjects.appserver.WOComponent.pageWithName
(WOComponent.java:1320)
at org.MyApp.web.Login.doLogin(Login.java:49)
...
Am I doing something stupid here? How does the default WOLips/
Project WOnder App configure where it puts build resources like
WOComponents? And do I need to do something special if I want to
organize my WOComponents into folders?
Much appreciated,
Aaron Thompson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.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