geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Himsley <m...@mdsh.com>
Subject Database Pool creation exception
Date Sun, 13 Sep 2009 17:06:58 GMT
Hi,

I've got Geronimo 2.1.4 installed in
/usr/local/geronimo-tomcat6-javaee5-2.1.4 on a Mac OS 10.5.8 with
java.version 1.5.0_19.

Going to the console at http://localhost:8080/console/ and logging in as
system/manager I am trying to add a Database Pool to a MySQL server.

I used the driver download function in the Database Pool wizard to
install the MySQL driver 3.1.2 which was installed into $GERONIMO_HOME
as
repository/mysql/mysql-connector-java/3.1.12/mysql-connector-java-3.1.12.jar

If I run Geronimo from the command line with ./start-server from
$GERONIMO_HOME/bin then there is not problem.

If I run Geronimo as a server within Eclipse then when I use the console
to deploy the Database Pool using that driver JAR I get the following
exception:


Deployer operation failed: org.apache.openejb.OpenEJBException: Unable
to extract jar. error in opening zip file: error in opening zip file
org.apache.geronimo.common.DeploymentException:
org.apache.openejb.OpenEJBException: Unable to extract jar. error in
opening zip file: error in opening zip file
	at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbModuleBuilder.java:251)
	at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbModuleBuilder.java:225)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:310)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:227)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
	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:613)
Caused by: org.apache.openejb.OpenEJBException: Unable to extract jar.
error in opening zip file: error in opening zip file
	at
org.apache.openejb.config.DeploymentLoader.unpack(DeploymentLoader.java:1006)
	at
org.apache.openejb.config.DeploymentLoader.createConnectorModule(DeploymentLoader.java:782)
	at
org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:142)
	at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbModuleBuilder.java:241)
	... 15 more
Caused by: java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
	at java.util.jar.JarFile.<init>(JarFile.java:132)
	at java.util.jar.JarFile.<init>(JarFile.java:97)
	at org.apache.openejb.util.JarExtractor.extract(JarExtractor.java:75)
	at org.apache.openejb.util.JarExtractor.extract(JarExtractor.java:48)
	at
org.apache.openejb.config.DeploymentLoader.unpack(DeploymentLoader.java:1004)
	... 18 more



I'm running both from the command line and from within Eclipse as the
same user. And, yes I did shutdown the command-line run Geronimo before
I started the Eclipse Geronimo.

I'd like to know what I'm doing wrong in Eclipse - although I can't
think what!


Thanks

-- 
Mark

Mime
View raw message