Check the "s" in the datasource package: org.apache.avalon.cornerstone.services.datasource.DataSourceSelector org.apache.avalon.cornerstone.services.datasources.DataSourceSelector
IIRC there are 2 different packages and you probably have to use ComponentManager (not ServiceManager, and you're already right in this point) and DataSourceSelector from the "datasource" package and not "datasources". You will find the correct class in the cornerstone.jar file. IMHO the "cornerstone-datasources-api-1.0.jar" is from the newest avalon release (the one upon james 3.0 is developed against) Stefano > -----Messaggio originale----- > Da: Brian Goodrich [mailto:[EMAIL PROTECTED] > Inviato: lunedì 1 agosto 2005 19.14 > A: James Users List > Oggetto: Re: Data-Source > > I'm using James 2.2 which I downloaded from james.apache.org > > > On Aug 1, 2005, at 11:02 AM, Stefano Bagnara wrote: > > > Are you using James 2.2 or james trunk from subversion? > > > > There is a big difference between the 2 because james changed the > > avalon version so in james 2.2 the componentManager is really a > > ComponentManager while in james trunk componentManager is a > > ServiceManager. > > > > Stefano > > > > > >> -----Messaggio originale----- > >> Da: Brian Goodrich [mailto:[EMAIL PROTECTED] > >> Inviato: lunedì 1 agosto 2005 18.38 > >> A: James Users List > >> Oggetto: Re: Data-Source > >> > >> Okay, I found the ComponentManager, the DataSource and the > >> DataSourceSelector, included the appropriate .jar files into my > >> project and my code compiles just fine. > >> > >> import org.apache.james.Constants; > >> import org.apache.james.util.JDBCUtil; import > >> > org.apache.avalon.cornerstone.services.datasources.DataSourceSelector > >> ; > >> import org.apache.avalon.framework.component.ComponentManager; > >> import org.apache.avalon.excalibur.datasource.DataSourceComponent; > >> > >> But now when I try to fire up the james server using > bin/run.sh I get > >> a long list of errors of which this is the root cause: > >> > >> Component named "spoolmanager" failed to pass through the > >> Initialization stage. (Reason: > >> java.lang.NoClassDefFoundError: org/ > >> apache/avalon/cornerstone/services/datasources/DataSourceSelector). > >> > >> and I believe it's coming from this line of code > >> > >> DataSourceSelector datasources =(DataSourceSelector) > >> componentManager.lookup(DataSourceSelector.ROLE); > >> > >> Is this because I'm using a .jar file that I copied into > my own .jar > >> file and it has dependancy in another .jar file or > something else I > >> missing? > >> > >> Brian Goodrich > >> > >> On Jul 30, 2005, at 5:47 AM, Stefano Bagnara wrote: > >> > >> > >>>> Okay, I found that library under > >>>> > >>>> > >> > org.apache.avalon.cornerstone.services.datasources.DataSourceSelector > >> > >>>> ; > >>>> in the cornerstone-datasources-api-1.0.jar file > >>>> > >>>> Where do I find the ComponentManager lib? Which .jar > file is that > >>>> in? > >>>> > >>>> > >>> > >>> avalon-framework-4.1.3.jar > >>> You can find it in the phoenix folder. > >>> > >>> Stefano > >>> > >>> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
