Re: Maven - <com.webobjects.appserver._private.WOComponentDefinition> No template found for component Main
Re: Maven - <com.webobjects.appserver._private.WOComponentDefinition> No template found for component Main
- Subject: Re: Maven - <com.webobjects.appserver._private.WOComponentDefinition> No template found for component Main
- From: Mark Wardle <email@hidden>
- Date: Mon, 05 Sep 2016 18:38:28 +0100
Hugi,
Thank you. It works!
Mark
> On 4 Sep 2016, at 23:16, Hugi Thordarson <email@hidden> wrote:
>
> You probably need to open the Eclipse .project-file in your project and add:
>
> <nature>org.maven.ide.eclipse.maven2Nature</nature>
>
> …as a project nature (inside the “natures"-tag).
>
> WebObjects uses this identifier to determine if the project is a Maven project, if it isn’t present it will think the bundle is FluffyBunny and looks for resources in wrong places.
>
> The nature identifier was changed in Eclipse a while back (to “org.eclipse.m2e.core.maven2Nature”, which you’ll see listed in your natures) but unfortunately the old name is defined in ERFoundarion.jar, a top secret, closed source jar donated to Wonder by Apple, so fixing this isn’t straightforward.
>
> ——————————
>
> This is probably the third or fourth time this is mentioned. We need to fix this.
>
> But anyway; WO with Maven seriously rocks, once you get going :).
>
> - hugi
>
>
>> On 4. sep. 2016, at 21:26, Mark Wardle <email@hidden> wrote:
>>
>> Dear all,
>>
>> I have successfully used maven with a non-WO application so I was keen to switch and make it easy for me to use some jar-based libraries of my own within WO.
>>
>> I have created an empty maven project using two different archetypes [from http://maven.wocommunity.org/service/local/repositories/snapshots/content/archetype-catalog.xml] using the 2.2-SNAPSHOT version of woapplication-archetype as well as erxapplication-archetype. Both build beautifully from the command-line and run with no problems in direct connect mode it seems.
>>
>> However, running from within eclipse in direct connect mode results in an error <com.webobjects.appserver._private.WOComponentDefinition> No template found for component Main at "file:/Users/mark/Dev/rsdb/projects/rstest-pw/“ from the erxapplication-archetype application. There are no such problems from woapplication-archetype.
>>
>> I added
>>
>> if (isDirectConnectEnabled()) {
>> registerRequestHandler(new JarResourceRequestHandler(), "wr");
>> }
>>
>> to my Application class, with JarResourceRequestHandler code from https://gist.github.com/hprange/1068523 but this did not fix the problem.
>>
>> If I add Project Wonder dependencies to the plain WO app, it runs but I get the error above until I remove them.
>>
>> If there is no problem at the command-line but only with eclipse, and only when using Project Wonder, there must be some misconfiguration on my part within eclipse? Should I upgrade to 3.6? eclipse.org has been down all day but otherwise I would have updated.
>>
>> Any suggestions would be gratefully received!
>>
>> Mark
>>
>> --
>> Dr. Mark Wardle
>> Consultant Neurologist, University Hospital Wales, Cardiff, UK
>> Email: email@hidden or email@hidden Twitter: @mwardle
>> Telephone: 02920745274 (secretary) or facsimile: 02920744166
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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