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 protected]> > 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 protected]) > > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca > > > > This email sent to [email protected] > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/alexis.tual%40gmail.com > > This email sent to [email protected] > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net > > This email sent to [email protected] -- 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 protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
