• 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: Need some help with Maven
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need some help with Maven


  • Subject: Re: Need some help with Maven
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 24 Sep 2012 16:23:03 -0700

Does running it with -DNSProjectBundleEnabled=true help?


On 2012-09-24, at 2:28 PM, Alexis Tual wrote:

> forget Maven ;)
> It's been a while, but I had this problem and resolved it thanks to Henrique :
> http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00093.html
>
> "Did you add the build/YourApp.woa/Contents/Resources/Java folder to the classpath in the Run Configuration window?
>
> If not, you have to select the menu Run -> Run Configurations... Select the application configuration in the left pane. Go to the Classpath tab, select User Entries, click in the Advanced button (in the right). Choose Add Folders and select YourApp/build/YourApp.woa/Contents/Resources/Java folder.
>
> Run your application again and check if the problem was solved."
>
>
>
> Now we have bundless build, I'm not sure what you have to do to make it work...
>
> Alexis
>
> 2012/9/25 Pascal Robert <email@hidden>
> And before someone says "forget Maven", if you have seen how many dependancies they have, yes Maven will be useful. This is not a case of 2-3 apps with one or two frameworks.
>
> > I need some help to debug maven issues from inside Eclipse [*a*].
> > I converted some existing (and working) projects, both frameworks and applications.
> >
> > 1- When I run the application, I now (after the switch to maven) need to explicitely set the class to be used as Session and some components [*b*], things that I didn't need before.
> > 2- Then later on, at runtime while navigating the app, It cannot find a model (defined in a framework) for a given class entity (cannot find model associated with entity named: "MyEntity") and fail to fetch.
> >
> > Both of these problems point to the direction of the bundle (NSBundle), the ressource manager (NSResourceManager), or something related (maven build, classpath, .jar resource loading).
> > Any help / clues that help me debug this situation will be greatly appreciated!
> > Any other comments will be seen as at least some very basic interest in maven ;-)
> >
> > *a* -- which mean that I don't know if it's an Eclipse classpath m2eclipse issue since I have not yet tried to deploy and see if the .woa generated from mvn will experience the same problem.
> > *b* --        _NSUtilities.setClassForName(Main.class, Main.class.getSimpleName());
> >               _NSUtilities.setClassForName(Session.class, Session.class.getSimpleName());
> >               _NSUtilities.setClassForName(DirectAction.class, DirectAction.class.getSimpleName());
> >
> > Thanks,
> >
> > --
> > jfv
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects









 _______________________________________________
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: 
 >Need some help with Maven (From: Jean-François Veillette <email@hidden>)
 >Re: Need some help with Maven (From: Pascal Robert <email@hidden>)
 >Re: Need some help with Maven (From: Alexis Tual <email@hidden>)

  • Prev by Date: Re: Need some help with Maven
  • Next by Date: adding new records in database fails
  • Previous by thread: Re: Need some help with Maven
  • Next by thread: Re: Need some help with Maven
  • Index(es):
    • Date
    • Thread