I was able to fix this problem by adding the following line to
JPAEMF.properties:

openjpa.ConnectionDriverName=com.mysql.jdbc.Driver

Unfortunately, I'm still unable to authenticate against LDAP. Maybe
the following JNDI Name is invalid?

java:comp/env/jdbc/rollerdb

Matt

On 10/22/07, Matt Raible <[EMAIL PROTECTED]> wrote:
> I got everything working with Roller default setup. However, I can't
> seem to get security.xml working with LDAP when running on Geronimo.
> I'm able to get same WAR running on Tomcat just fine.
>
> Here's the error I'm seeing in my logs.
>
>  1405: ERROR 2007-10-22 11:38:09,619 GeronimoLog:error - Problem in
> doStop of 
> default/roller/1193074677430/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/lib/roller-business.jar,WebModule=default/roller/1193074677430/war,j2eeType=PersistenceUnit,name=RollerPU
> 1406: <openjpa-1.0.0-r420667:568756 fatal user error>
> org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
> DataSource class name must be specified in the ConnectionDriverName
> property.
> 1407:  at 
> org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:72)
> 1408:  at 
> org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:803)
> 1409:  at 
> org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:568)
> 1410:  at 
> org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1221)
> 1411:  at 
> org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:467)
> 1412:  at 
> org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:392)
> 1413:  at 
> org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:102)
> 1414:  at 
> org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:82)
> 1415:  at 
> org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:857)
> 1416:  at 
> org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:852)
> 1417:  at 
> org.apache.openjpa.kernel.AbstractBrokerFactory.close(AbstractBrokerFactory.java:392)
> 1418:  at 
> org.apache.openjpa.kernel.DelegatingBrokerFactory.close(DelegatingBrokerFactory.java:183)
> 1419:  at 
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:286)
> 1420:  at 
> org.apache.geronimo.persistence.PersistenceUnitGBean.doStop(PersistenceUnitGBean.java:212)
> 1421:  at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance(GBeanInstance.java:1159)
> 1422:  at 
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStop(GBeanInstanceState.java:339)
> 1423:  at 
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstanceState.java:188)
> 1424:  at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.java:561)
> 1425:  at 
> org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:423)
> 1426:  at 
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:491)
> 1427:  at 
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
> 1428:  at 
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
> 1429:  at 
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
> 1430:  at 
> org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
> 1431:  at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> 1432:  at 
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> 1433:  at 
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
> 1434:  at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
> 1435:  at 
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> 1436:  at 
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> 1437:  at 
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> 1438:  at 
> org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$262709f.startConfiguration(<generated>)
> 1439:  at 
> org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
> 1440:  at java.lang.Thread.run(Thread.java:613)
>
> On 10/22/07, Matt Raible <[EMAIL PROTECTED]> wrote:
> > Thanks Peter - that worked.
> >
> > Here's a wiki page I put together for installing Roller 4.0 in Geronimo 
> > 2.0.2.
> >
> > http://cwiki.apache.org/confluence/display/ROLLER/Roller+4.0+on+Geronimo
> >
> > Matt
> >
> > On 10/22/07, Peter Petersson <[EMAIL PROTECTED]> wrote:
> > > Hi Matt
> > >
> > > One way to do it is to put the file in WEB-INF/classes (I think this is
> > > the right place for it someone correct me if I am wrong) in your
> > > roller-weblogger.war file before installation alt. look up the
> > > geronimo/repository/defult/timestamp/roller-weblogger.war/WEB-INF/classes
> > > and put it there after installation and restart the app via the console.
> > > As you have not specified any groupId or version in the moduleId section
> > > of your geronimo-web.xml file the path in the repos shuld start with
> > > default/timestamp
> > > Hope this helps
> > > Peter Petersson
> > >
> > > Matt Raible wrote:
> > > > I'm trying to deploy Roller 4.0 on Geronimo 2.0.2. I can't figure out
> > > > where to put roller-custom.properties in Geronimo's directory
> > > > structure. I've tried /lib, /lib/endorsed and /repository and none of
> > > > them work. Any ideas?
> > > >
> > > > Here's the geronimo-web.xml I'm using in case anyone else wants to try
> > > > this. I had to create MySQLPool in Geronimo's console.
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1";>
> > > >
> > > >     <environment>
> > > >         <moduleId>
> > > >             <artifactId>Roller</artifactId>
> > > >         </moduleId>
> > > >         <dependencies>
> > > >             <dependency>
> > > >                 <groupId>console.dbpool</groupId>
> > > >                 <artifactId>MySQL</artifactId>
> > > >             </dependency>
> > > >             <dependency>
> > > >                 <groupId>org.apache.geronimo.configs</groupId>
> > > >                 <artifactId>javamail</artifactId>
> > > >                 <type>car</type>
> > > >             </dependency>
> > > >         </dependencies>
> > > >     </environment>
> > > >
> > > >     <context-root>/roller</context-root>
> > > >
> > > >     <!-- define a reference name to the db pool-->
> > > >     <resource-ref>
> > > >         <ref-name>jdbc/rollerdb</ref-name>
> > > >         <resource-link>MySQL</resource-link>
> > > >     </resource-ref>
> > > >
> > > >     <resource-ref>
> > > >         <ref-name>mail/Session</ref-name>
> > > >         <!-- Default Geronimo mail session -->
> > > >         <resource-link>mail/MailSession</resource-link>
> > > >     </resource-ref>
> > > > </web-app>
> > > >
> > > > Matt
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > http://raibledesigns.com
> >
>
>
> --
> http://raibledesigns.com
>


-- 
http://raibledesigns.com

Reply via email to