users@glassfish.java.net

Eclipselink error while deploying app to GF v3

From: <glassfish_at_javadesktop.org>
Date: Wed, 30 Sep 2009 10:39:44 PDT

Hi, Guys,

I was trying to deploy my application (which is working fine in GFv3 prelude) to GFv3, I got following error during deployment process.

Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
Error Code: 0
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20090821-r4934): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
Error Code: 0
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1816)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1520)
        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:93)
        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:229)
        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:214)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:307)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)

I am using EclipseLink and mysql.

The weird thing is GFv3 is complaining about port 1527, but I never use this port in my application. The default port of mysql is 3306. Where comes this 1527?

I searched the internet, it looks like 1527 is used by Derby database. Why is my application releated to Derby???

I appreciate your help!

Thanks,
Lann
[Message sent by forum member 'taolu2000' (taolu2000_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=366349