• 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: Built WOComponents placed in wrong location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Built WOComponents placed in wrong location


  • Subject: Re: Built WOComponents placed in wrong location
  • From: Aaron Thompson <email@hidden>
  • Date: Fri, 4 Jan 2008 11:59:11 -0600

Thanks for the enlightenment, that's all I needed! Just had to modify woproject/resources.include.patternset

Aaron Thompson

On Jan 4, 2008, at 7:00 AM, Kieran Kelleher wrote:

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 ._componentDefinitionFromClassNamed(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 ._dispatchWithPreparedSession(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 ._componentDefinitionFromClassNamed(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:
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
References: 
 >Built WOComponents placed in wrong location (From: Aaron Thompson <email@hidden>)
 >Re: Built WOComponents placed in wrong location (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Built WOComponents placed in wrong location
  • Next by Date: HTML and WOD won't load for a component
  • Previous by thread: Re: Built WOComponents placed in wrong location
  • Next by thread: HTML and WOD won't load for a component
  • Index(es):
    • Date
    • Thread