geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: MySQL and database pool
Date Thu, 30 Oct 2008 19:18:31 GMT
This seems very strange.  Which exact geronimo server did you start  
with?  Have you modified anything in config.xml or installed anything  
for other versions of geronimo servers?

Could you show us var/config/config.xml, and your plan?

thanks
david jencks

On Oct 30, 2008, at 11:33 AM, zielinski.karol wrote:

>
> Hi,
>
> I'm trying to create some databse pool (for MySQL) and what I'm  
> getting is:
>
> Error Deploying: Unable to deploy: newDataBase - see the log for  
> details
>
> and in the log I see:
> 19:12:46,561 ERROR [Deployer] Deployment failed due to
> java.lang.IllegalStateException: More than one element:
> org.apache.geronimo.gbean.runtime.ProxyCollection@e1a8f49
> 	at
> org 
> .apache 
> .geronimo 
> .gbean 
> .SingleElementCollection.getElement(SingleElementCollection.java:52)
> 	at
> org 
> .apache 
> .geronimo 
> .j2ee 
> .deployment 
> .EARConfigBuilder.getEjbConfigBuilder(EARConfigBuilder.java:276)
> 	at
> org 
> .apache 
> .geronimo 
> .j2ee 
> .deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java: 
> 309)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:226)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
> 	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:585)
> 	at
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 	at
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
> 	at
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
> 	at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 239)
> 	at
> org 
> .apache 
> .geronimo 
> .deployment 
> .plugin 
> .local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
> 	at
> org 
> .apache 
> .geronimo 
> .deployment 
> .plugin.local.DistributeCommand.run(DistributeCommand.java:61)
> 	at java.lang.Thread.run(Thread.java:595)
> 19:12:46,564 WARN  [geronimo-commands:start-server] Deployer operation
> failed: java.lang.IllegalStateException: More than one element:
> org.apache.geronimo.gbean.runtime.ProxyCollection@e1a8f49
> 19:12:46,564 WARN  [geronimo-commands:start-server]
> org.apache.geronimo.common.DeploymentException:
> java.lang.IllegalStateException: More than one element:
> org.apache.geronimo.gbean.runtime.ProxyCollection@e1a8f49
> 19:12:46,564 WARN  [geronimo-commands:start-server] 	at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:275)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> java.lang.reflect.Method.invoke(Method.java:585)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 239)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> org 
> .apache 
> .geronimo 
> .deployment 
> .plugin 
> .local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
> 19:12:46,565 WARN  [geronimo-commands:start-server] 	at
> org 
> .apache 
> .geronimo 
> .deployment 
> .plugin.local.DistributeCommand.run(DistributeCommand.java:61)
> 19:12:46,566 WARN  [geronimo-commands:start-server] 	at
> java.lang.Thread.run(Thread.java:595)
> 19:12:46,566 WARN  [geronimo-commands:start-server] Caused by:
> java.lang.IllegalStateException: More than one element:
> org.apache.geronimo.gbean.runtime.ProxyCollection@e1a8f49
> 19:12:46,566 WARN  [geronimo-commands:start-server] 	at
> org 
> .apache 
> .geronimo 
> .gbean 
> .SingleElementCollection.getElement(SingleElementCollection.java:52)
> 19:12:46,566 WARN  [geronimo-commands:start-server] 	at
> org 
> .apache 
> .geronimo 
> .j2ee 
> .deployment 
> .EARConfigBuilder.getEjbConfigBuilder(EARConfigBuilder.java:276)
> 19:12:46,566 WARN  [geronimo-commands:start-server] 	at
> org 
> .apache 
> .geronimo 
> .j2ee 
> .deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java: 
> 309)
> 19:12:46,566 WARN  [geronimo-commands:start-server] 	at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:226)
> 19:12:46,566 WARN  [geronimo-commands:start-server] 	... 12 more
> 19:13:33,186 ERROR [Deployer] Deployment failed due to
> java.lang.IllegalStateException: More than one element:
> org.apache.geronimo.gbean.runtime.ProxyCollection@e1a8f49
> 	at
> org 
> .apache 
> .geronimo 
> .gbean 
> .SingleElementCollection.getElement(SingleElementCollection.java:52)
> 	at
> org 
> .apache 
> .geronimo 
> .j2ee 
> .deployment 
> .EARConfigBuilder.getEjbConfigBuilder(EARConfigBuilder.java:276)
> 	at
> org 
> .apache 
> .geronimo 
> .j2ee 
> .deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java: 
> 309)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:226)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
> 	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:585)
> 	at
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 	at
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
> 	at
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
> 	at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 239)
> 	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java: 
> 342)
> 	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:585)
> 	at
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 	at
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
> 	at
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
> 	at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 239)
> 	at
> org 
> .apache 
> .geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java: 
> 172)
> 	at
> com 
> .sun 
> .jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java: 
> 213)
> 	at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> 	at
> com 
> .sun 
> .jmx 
> .interceptor 
> .DefaultMBeanServerInterceptor 
> .invoke(DefaultMBeanServerInterceptor.java:815)
> 	at  
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> 	at
> javax 
> .management 
> .remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1410)
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.access 
> $100(RMIConnectionImpl.java:81)
> 	at
> javax.management.remote.rmi.RMIConnectionImpl 
> $PrivilegedOperation.run(RMIConnectionImpl.java:1247)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at
> javax 
> .management 
> .remote 
> .rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java: 
> 1350)
> 	at
> javax 
> .management 
> .remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:784)
> 	at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
> 	at
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java: 
> 294)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:153)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> 	at  
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java: 
> 466)
> 	at
> sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.run(TCPTransport.java:707)
> 	at java.lang.Thread.run(Thread.java:595)
>
>
> I'm trying to deploy it on Geronimo 2.1, Java 1.5.0_14, mysql- 
> connector-java
> 3.1.12 or mysql-connector-java 5.1.7.
>
> I'm trying to deploy it using the Geronimo database pool wizard and  
> by hand
> - both methods gave me the same exception.
>
> could someone please tell me what is wrong and how to fix it? I  
> would be
> really grateful.
> -- 
> View this message in context: http://www.nabble.com/MySQL-and-database-pool-tp20252833s134p20252833.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>


Mime
View raw message