On Mar 9, 2010, at 11:17 AM, Frédéric JECKER wrote: > Yes, > > Everything runs fine in Eclipse, the jars in the Libraries folder are > automatically deployed to the Resources/Java folder and added to the > CLSSPATH.TXT file.
That doesn't mean that Ant is going to do the same thing. You are dealing with two different build systems. The fact that you still see them in Libraries sounds wrong. Once you put them in Libraries and add them to the build path, they should disappear out of there and show up in Referenced Libraries Are the jars in the Libraries directory on the build path? Dave > > FJ > > Le 9 mars 2010 à 17:12, John Huss a écrit : > >> Did you put the jars in your Libraries folder inside your wolips project? >> Did you add the jars to the build path in Eclipse? >> >> John >> >> On Tue, Mar 9, 2010 at 9:51 AM, Frédéric JECKER <[email protected]> wrote: >> Hi, >> >> When deploying an app that embed third party libraries within the >> resources/java directory and references those jars from the CLSSPATH.TXT file >> generated from wolips >> [...] >> APPROOT\Resources\Java\ >> APPROOT\Resources\Java\commons-configuration-1.5.jar >> APPROOT\Resources\Java\commons-io-1.4.jar >> APPROOT\Resources\Java\commons-lang-2.4.jar >> APPROOT\Resources\Java\commons-logging-1.0.4.jar >> APPROOT\Resources\Java\hapi-0.5.1.jar >> APPROOT\Resources\Java\incah.jar >> APPROOT\Resources\Java\log4j-1.2.14.jar >> [...] >> >> I encounter the following error : >> [2010-03-09 16:40:10 CET] <main> java.lang.NoClassDefFoundError: >> com/sun/jdmk/comm/CommunicatorServer >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:141) >> at >> com.webobjects.foundation._NSUtilities._searchForClassInPackages(_NSUtilities.java:374) >> at >> com.webobjects.foundation.NSBundle.searchForClassInBundles(NSBundle.java:1002) >> at >> com.webobjects.foundation.NSBundle.searchAllBundlesForClassWithName(NSBundle.java:986) >> at com.webobjects.foundation.NSBundle.access$300(NSBundle.java:208) >> at >> com.webobjects.foundation.NSBundle$1._searchForClassWithName(NSBundle.java:373) >> at >> com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:344) >> at >> com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:291) >> at >> com.webobjects.eoaccess.EOModel._setEntityForEntityNameClassName(EOModel.java:1246) >> at >> com.webobjects.eoaccess.EOModel._addFakeEntityWithPropertyList(EOModel.java:1284) >> at >> com.webobjects.eoaccess.EOModel._initWithTableOfContentsPropertyListPathURL(EOModel.java:1096) >> at com.webobjects.eoaccess.EOModel.<init>(EOModel.java:806) >> at >> com.webobjects.eoaccess.EOModelGroup.addModelWithPathURL(EOModelGroup.java:498) >> at >> com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:790) >> at >> com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:338) >> at >> com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:370) >> at >> com.symaris.importagent.app.utils.EOConnexionUpdater.updateConnexionPropertiesForAllEOModels(EOConnexionUpdater.java:51) >> at >> com.symaris.importagent.app.Application.bootStrap(Application.java:113) >> at >> com.symaris.importagent.app.Application.<init>(Application.java:130) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:274) >> at java.lang.Class.newInstance0(Class.java:308) >> at java.lang.Class.newInstance(Class.java:261) >> at com.webobjects.appserver.WOApplication.main(WOApplication.java:323) >> at com.symaris.importagent.app.Application.main(Application.java:46) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:324) >> at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71) >> >> But when I place the jars into the extensions directory and remove the lines >> from the CLSSPATH.TXT file everything runs fine. >> Am I missing something ? >> >> Thanks for your help >> >> Regards >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-deploy mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-deploy/johnthuss%40gmail.com >> >> This email sent to [email protected] >> > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-deploy mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-deploy/webobjects%40avendasora.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com This email sent to [email protected]
