If I did not miss anything, the problem is that the postgresql driver is not converted to OSGi bundle in the downloading process. One possible solution now is to download the jar manually, and install it via the install library page.

2011/8/3 horowitzathome <georg.nozicka@nozicka.at>
Hello,
I have the following problem.

When I try to configure a datasource, I get the following exception:

2011-08-03 09:00:06,020 ERROR [GBeanInstanceState] Error while starting;
GBean is now in the FAILED state:
abstractName="console.dbpool/GlassDS/1.0/car?J2EEApplication=null,JCAConnectionFactory=GlassDS,JCAResource=tranql-connector-postgresql-local-1.4,ResourceAdapter=tranql-connector-postgresql-local-1.4,ResourceAdapterModule=console.dbpool/GlassDS/1.0/car,j2eeType=JCAManagedConnectionFactory,name=GlassDS"
*java.lang.NoClassDefFoundError:
org/postgresql/ds/PGConnectionPoolDataSource*
       at
org.tranql.connector.postgresql.PGConnectionPooleMCF.<init>(PGConnectionPooleMCF.java:35)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
       at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
       at java.lang.Class.newInstance0(Class.java:372)
       at java.lang.Class.newInstance(Class.java:325)
       at
org.apache.geronimo.connector.wrapper.outbound.ManagedConnectionFactoryWrapper.<init>(ManagedConnectionFactoryWrapper.java:120)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
       at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
       at
org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:958)
       at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
       at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
       at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:958)
       at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
       at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
       at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
       at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
       at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:462)
       at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
       at
org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
       at java.lang.Thread.run(Thread.java:679)
Deployer operation failed: org/postgresql/ds/PGConnectionPoolDataSource

The steps I have done are:
- Fresh Geromino installation.
- In the admin console select ‘Datasources’ and then ‘Create a new database
pool’ with the ‘Using the Geromino database wizard’.
- Enter ‘Name of Database Pool’, e.g. GlassDS
- Select ‘Database Type’ ‘PostgreSQL Local’
- Click ‘Next’
- Click ‘Download a Driver’
- Select postgresql/postgresql-8.2/508.jdbc3/jar
- Enter DB name, e.g. ‚Glass‘
- Enter User Name
- Enter password (2x)
- Take default for ‚Port Number‘, is ‚5432‘
- Take default for ‘Server Name’, is 127.0.0.1
- Click ‘Deploy’

Now the above listed exception is thrown.

I also checked
GEROMINO_HOME/repository/postgresql/postgresql-8.2/508.jdbc3/postgresql-8.2-508.jdbc3.jar
It exists there and the jar file also contains the class
org/postgresql/ds/PGConnectionPoolDataSource.


Environment:
- Ubuntu 11.04 (64 bit)
- Java: java-1.6.0-openjdk
- Geronimo V3 SNAPSHOT, always Tomcat (I tried it with several versions,
e.g. 20110729, 20110730, 20110803)

Actually I would prefer to take the M1 version, but this version does not
work with Richfcaes, in contrast the snapshot versions work with Richfaces,
but have the described driver load problem.

Any ideas, what can be wrong or what I can do so that Geronimo is able to
load the driver?

Best Regards,
Georg


--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Class-not-found-exception-when-installing-database-driver-postgres-tp3222140p3222140.html
Sent from the Users mailing list archive at Nabble.com.



--
Ivan