Hugi,

Thank you. It works!

Mark
> On 4 Sep 2016, at 23:16, Hugi Thordarson <h...@karlmenn.is> 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 <m...@wardle.org> 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: mark.war...@wales.nhs.uk or m...@wardle.org  Twitter: @mwardle
>> Telephone: 02920745274 (secretary) or facsimile: 02920744166
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to