You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by horowitzathome <ge...@nozicka.at> on 2011/08/03 14:37:56 UTC
Class not found exception when installing database driver
(postgres)
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.
Re: Class not found exception when installing database driver
(postgres)
Posted by horowitzathome <ge...@nozicka.at>.
Hello,
okay, I can confirm that now I was able to install the datasource without
any error and was also able to perform a test query in the console. For me
the issue is closed.
Georg
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Class-not-found-exception-when-installing-database-driver-postgres-tp3222140p3229573.html
Sent from the Users mailing list archive at Nabble.com.
Re: Class not found exception when installing database driver (postgres)
Posted by Ivan <xh...@gmail.com>.
Hi, I just tried the latest snapshot, the driver is successfully converted
to OSGi bundle, but it is failed to start due to the invalid version. I
updated the driver properties file to make the artifact id more compatible
with OSGi version format.
http://svn.apache.org/viewvc/geronimo/site/trunk/docs/driver-downloads.properties?view=diff&r1=1154235&r2=1154236&pathrev=1154236,
and it works for me locally.
It might take time to sync the changes to Geronimo web site location
http://geronimo.apache.org/driver-downloads.properties, you might tried it
later or install the driver manually.
2011/8/5 horowitzathome <ge...@nozicka.at>
> Okay, I downloaded
> geronimo-tomcat7-javaee6-3.0-20110805.060355-254-bin.tar.gz and tried it
> out
> with the same scenario as described in my first post, but I still get the
> same error. I don't know, either the fix did not make it to this snapshot
> or
> the fix does not work as expected.
>
> Georg
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Class-not-found-exception-when-installing-database-driver-postgres-tp3222140p3227972.html
> Sent from the Users mailing list archive at Nabble.com.
>
--
Ivan
Re: Class not found exception when installing database driver
(postgres)
Posted by horowitzathome <ge...@nozicka.at>.
Okay, I downloaded
geronimo-tomcat7-javaee6-3.0-20110805.060355-254-bin.tar.gz and tried it out
with the same scenario as described in my first post, but I still get the
same error. I don't know, either the fix did not make it to this snapshot or
the fix does not work as expected.
Georg
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Class-not-found-exception-when-installing-database-driver-postgres-tp3222140p3227972.html
Sent from the Users mailing list archive at Nabble.com.
Re: Class not found exception when installing database driver (postgres)
Posted by Rex Wang <rw...@gmail.com>.
The current snaphot (
https://repository.apache.org/content/groups/snapshots/org/apache/geronimo/assemblies/geronimo-tomcat7-javaee6/3.0-SNAPSHOT/)
is:
geronimo-tomcat7-javaee6-3.0-20110803.200729-253-bin.zip Wed Aug 03
20:36:13 UTC 2011 93192655
And I committed the fix at 04/Aug/11 06:29 (
https://issues.apache.org/jira/browse/GERONIMO-6102)
So, you can wait the next snapshot build or just build one by yourself.
-Rex
2011/8/4 horowitzathome <ge...@nozicka.at>
> Thank you for the quick fix. Do I get you right, that the fix is not in the
> current snapshot version included, i.e. to have a version where this is
> fixed, I have to build the server by my own.
>
> Georg
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Class-not-found-exception-when-installing-database-driver-postgres-tp3222140p3225077.html
> Sent from the Users mailing list archive at Nabble.com.
>
--
Lei Wang (Rex)
rwonly AT apache.org
Re: Class not found exception when installing database driver
(postgres)
Posted by horowitzathome <ge...@nozicka.at>.
Thank you for the quick fix. Do I get you right, that the fix is not in the
current snapshot version included, i.e. to have a version where this is
fixed, I have to build the server by my own.
Georg
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Class-not-found-exception-when-installing-database-driver-postgres-tp3222140p3225077.html
Sent from the Users mailing list archive at Nabble.com.
Re: Class not found exception when installing database driver (postgres)
Posted by Rex Wang <rw...@gmail.com>.
Just fixed this jira At revision: 1153761.
You need build Geronimo trunk to pick up the fix.
-Rex
2011/8/3 Ivan <xh...@gmail.com>
> Open a JIRA https://issues.apache.org/jira/browse/GERONIMO-6102, hope some
> one could help to check it.
>
>
> 2011/8/3 Ivan <xh...@gmail.com>
>
>> 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 <ge...@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
>>
>
>
>
> --
> Ivan
>
--
Lei Wang (Rex)
rwonly AT apache.org
Re: Class not found exception when installing database driver (postgres)
Posted by Ivan <xh...@gmail.com>.
Open a JIRA https://issues.apache.org/jira/browse/GERONIMO-6102, hope some
one could help to check it.
2011/8/3 Ivan <xh...@gmail.com>
> 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 <ge...@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
>
--
Ivan
Re: Class not found exception when installing database driver (postgres)
Posted by Ivan <xh...@gmail.com>.
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 <ge...@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