users@glassfish.java.net

Glassfish issue - JDBC connection pool ping fails

From: plecesne <pierre.lecesne_at_gmail.com>
Date: Fri, 27 Nov 2009 11:11:55 -0800 (PST)

Hello,

I've been trying for a few days to have a ping work on a JDBC (Sybase)
connection pool of my Glassfish server (my server is local). No matter what
I try and in spite of all my researches on the Internet, I have not been
able to get anything else than the exceptions below.

First, here is my configuration of my JDBC Pool Connection :

- General tab
Name : STP
Datasource classname : com.sybase.jdbc3.jdbc.SybDataSource
Resource type : javax.sql.DataSource
(I left the rest of the options unchanged)

- Additional properties
serverName : mydbserver
portNumber : 5030
datasourceName : stp
networkProtocol : Tds
user : mylogin
password : mypassword

(servername, user and password are correct and I can connect without any
problem to the database with a regular SQL client).


I put the "jconn3.jar" (which contains the SybDataSource class) in
"glassfish/lib" directory (and restarted the server afterwards). I even
tried to reference it in the System classpath of the server (even though,
I'm not sure if this is absoltuely necessary as it's already in the lib
folder).


And finally, below are the series of exceptions I get on the server.log when
I ping this pool connection (from the server admin console : this results in
the server admin console into a "An error has occurred. Connection refused:
connect").
Basically, I noticed the "Connection refused to host: localhost" when doing
a RegistryContext.lookup() but I don't know if this is the main reason or if
it's only a result of the main issue.


I would really appreciate your help if anyone has an idea !
Thank you,
 

[#|2009-11-27T17:45:03.114+0100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;|1881181
[httpWorkerThread-4848-4] DEBUG org.objectweb.carol.jndi - No provider URL,
use multiprotocol context
|#]

[#|2009-11-27T17:45:03.114+0100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;|1881181
[httpWorkerThread-4848-4] DEBUG org.objectweb.carol.jndi -
MultiContext.MultiContext(env), env =
{java.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory,
java.naming.factory.url.pkgs=com.sun.enterprise.naming:com.sun.enterprise.naming:com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl:com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl:com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
|#]

[#|2009-11-27T17:45:04.067+0100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;|1882134
[httpWorkerThread-4848-4] DEBUG org.objectweb.carol.jndi - No provider URL,
use multiprotocol context
|#]

[#|2009-11-27T17:45:04.067+0100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;|1882134
[httpWorkerThread-4848-4] DEBUG org.objectweb.carol.jndi -
MultiContext.MultiContext(env), env =
{java.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory,
java.naming.factory.url.pkgs=com.sun.enterprise.naming:com.sun.enterprise.naming:com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl:com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl:com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
|#]

[#|2009-11-27T17:45:05.020+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;_RequestID=2ae6088a-5899-460f-9bfb-125fdd2020ee;|
com.sun.enterprise.connectors.ConnectorRuntimeException: This pool is not
bound in JNDI : STP
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.obtainManagedConnectionFactory(ConnectorConnectionPoolAdminServiceImpl.java:1091)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.createConnectorConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:263)
    at
com.sun.enterprise.connectors.ConnectorRuntime.createConnectorConnectionPool(ConnectorRuntime.java:321)
    at
com.sun.enterprise.resource.JdbcConnectionPoolDeployer.actualDeployResource(JdbcConnectionPoolDeployer.java:136)
    at
com.sun.enterprise.resource.JdbcConnectionPoolDeployer.deployResource(JdbcConnectionPoolDeployer.java:115)
    at
com.sun.enterprise.connectors.ConnectorServiceImpl.loadDeferredResources(ConnectorServiceImpl.java:269)
    at
com.sun.enterprise.connectors.ConnectorServiceImpl$1.run(ConnectorServiceImpl.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at
com.sun.enterprise.connectors.ConnectorServiceImpl.loadResourcesAndItsRar(ConnectorServiceImpl.java:214)
    at
com.sun.enterprise.connectors.ConnectorServiceImpl.checkAndLoadPoolResource(ConnectorServiceImpl.java:204)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection(ConnectorConnectionPoolAdminServiceImpl.java:1216)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.testConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:551)
    at
com.sun.enterprise.connectors.ConnectorRuntime.testConnectionPool(ConnectorRuntime.java:515)
    at
com.sun.enterprise.admin.mbeans.ResourcesMBean.pingConnectionPool(ResourcesMBean.java:2387)
    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:597)
    at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
    at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
    at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
    at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
    at $Proxy1.invoke(Unknown Source)
    at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
    at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
    at
com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:119)
    at
com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:75)
    at
com.sun.enterprise.tools.admingui.handlers.JdbcHandlers.pingJdbcConnectionPool(JdbcHandlers.java:530)
    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:597)
    at
com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
    at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:343)
    at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:317)
    at
com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:133)
    at
com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:81)
    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
    at
javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)
    at javax.faces.component.UICommand.broadcast(UICommand.java:368)
    at
com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
    at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
    at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at
com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89)
    at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
    at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
Caused by: javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException|#]

[#|2009-11-27T17:45:05.035+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;_RequestID=2ae6088a-5899-460f-9bfb-125fdd2020ee;|:
Connection refused to host: localhost; nested exception is:
    java.net.ConnectException: Connection refused: connect]
    at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
    at javax.naming.InitialContext.lookup(InitialContext.java:396)
    at org.objectweb.carol.jndi.spi.AbsContext.lookup(AbsContext.java:140)
    at org.objectweb.carol.jndi.spi.AbsContext.lookup(AbsContext.java:150)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at
org.objectweb.carol.jndi.spi.MultiContext.lookup(MultiContext.java:118)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.getConnectorConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:908)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.obtainManagedConnectionFactory(ConnectorConnectionPoolAdminServiceImpl.java:1027)
    ... 87 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost;
nested exception is:
    java.net.ConnectException: Connection refused: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
    at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
    ... 95 more
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.enterprise.server.ss.provider.ASPlainSocketImpl$2.run(ASPlainSocketImpl.java:419)
    at java.security.AccessController.doPrivileged(Native Method)
    at
com.sun.enterprise.server.ss.provider.ASPlainSocketImpl._invoke(ASPlainSocketImpl.java:416)
    at
com.sun.enterprise.server.ss.provider.ASPlainSocketImpl.connect(ASPlainSocketImpl.java:288)
    at
com.sun.enterprise.server.ss.provider.ASClientSocketImpl.connect(ASClientSocketImpl.java:267)
    at java.net.Socket.connect(Socket.java:525)
    at java.net.Socket.connect(Socket.java:475)
    at java.net.Socket.<init>(Socket.java:372)
    at java.net.Socket.<init>(Socket.java:186)
    at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
    at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
    ... 100 more
|#]

[#|2009-11-27T17:45:05.035+0100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;|1883102
[httpWorkerThread-4848-4] DEBUG org.objectweb.carol.jndi - No provider URL,
use multiprotocol context
|#]

[#|2009-11-27T17:45:05.035+0100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;|1883102
[httpWorkerThread-4848-4] DEBUG org.objectweb.carol.jndi -
MultiContext.MultiContext(env), env =
{java.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory,
java.naming.factory.url.pkgs=com.sun.enterprise.naming:com.sun.enterprise.naming:com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl:com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl:com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
|#]

[#|2009-11-27T17:45:06.145+0100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;|1884212
[httpWorkerThread-4848-4] DEBUG org.objectweb.carol.jndi - No provider URL,
use multiprotocol context
|#]

[#|2009-11-27T17:45:06.145+0100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;|1884212
[httpWorkerThread-4848-4] DEBUG org.objectweb.carol.jndi -
MultiContext.MultiContext(env), env =
{java.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory,
java.naming.factory.url.pkgs=com.sun.enterprise.naming:com.sun.enterprise.naming:com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl:com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl:com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
|#]

[#|2009-11-27T17:45:07.145+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;_RequestID=2ae6088a-5899-460f-9bfb-125fdd2020ee;|
com.sun.enterprise.connectors.ConnectorRuntimeException: This pool is not
bound in JNDI : STP
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.obtainManagedConnectionFactory(ConnectorConnectionPoolAdminServiceImpl.java:1091)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.createConnectorConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:263)
    at
com.sun.enterprise.connectors.ConnectorRuntime.createConnectorConnectionPool(ConnectorRuntime.java:321)
    at
com.sun.enterprise.resource.JdbcConnectionPoolDeployer.actualDeployResource(JdbcConnectionPoolDeployer.java:136)
    at
com.sun.enterprise.resource.JdbcConnectionPoolDeployer.deployResource(JdbcConnectionPoolDeployer.java:115)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection(ConnectorConnectionPoolAdminServiceImpl.java:1230)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.testConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:551)
    at
com.sun.enterprise.connectors.ConnectorRuntime.testConnectionPool(ConnectorRuntime.java:515)
    at
com.sun.enterprise.admin.mbeans.ResourcesMBean.pingConnectionPool(ResourcesMBean.java:2387)
    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:597)
    at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
    at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
    at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
    at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
    at $Proxy1.invoke(Unknown Source)
    at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
    at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
    at
com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:119)
    at
com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:75)
    at
com.sun.enterprise.tools.admingui.handlers.JdbcHandlers.pingJdbcConnectionPool(JdbcHandlers.java:530)
    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:597)
    at
com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
    at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:343)
    at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:317)
    at
com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:133)
    at
com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:81)
    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
    at
javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)
    at javax.faces.component.UICommand.broadcast(UICommand.java:368)
    at
com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
    at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
    at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at
com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89)
    at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
    at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
Caused by: javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
    java.net.ConnectException: Connection refused: connect]
    at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
    at javax.naming.InitialContext.lookup(InitialContext.java:396)
    at org.objectweb.carol.jndi.spi.AbsContext.lookup(AbsContext.java:140)
    at org.objectweb.carol.jndi.spi.AbsContext.lookup(AbsContext.java:150)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at org.obj|#]

[#|2009-11-27T17:45:07.145+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=35;_ThreadName=httpWorkerThread-4848-4;_RequestID=2ae6088a-5899-460f-9bfb-125fdd2020ee;|ectweb.carol.jndi.spi.MultiContext.lookup(MultiContext.java:118)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.getConnectorConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:908)
    at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.obtainManagedConnectionFactory(ConnectorConnectionPoolAdminServiceImpl.java:1027)
    ... 82 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost;
nested exception is:
    java.net.ConnectException: Connection refused: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
    at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
    ... 90 more
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.enterprise.server.ss.provider.ASPlainSocketImpl$2.run(ASPlainSocketImpl.java:419)
    at java.security.AccessController.doPrivileged(Native Method)
    at
com.sun.enterprise.server.ss.provider.ASPlainSocketImpl._invoke(ASPlainSocketImpl.java:416)
    at
com.sun.enterprise.server.ss.provider.ASPlainSocketImpl.connect(ASPlainSocketImpl.java:288)
    at
com.sun.enterprise.server.ss.provider.ASClientSocketImpl.connect(ASClientSocketImpl.java:267)
    at java.net.Socket.connect(Socket.java:525)
    at java.net.Socket.connect(Socket.java:475)
    at java.net.Socket.<init>(Socket.java:372)
    at java.net.Socket.<init>(Socket.java:186)
    at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
    at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
    ... 95 more
|#]
-- 
View this message in context: http://old.nabble.com/Glassfish-issue---JDBC-connection-pool-ping-fails-tp26545369p26545369.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.