Skip to main content

Glassfish issue - JDBC connection pool ping fails

15 replies [Last post]
Anonymous

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.(Socket.java:372)
at java.net.Socket.(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.(Socket.java:372)
at java.net.Socket.(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-...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sm157516
Offline
Joined: 2005-03-28

Which version of GlassFish V3 are you using? Also, please post the exception stack trace from the server.log and the jdbc connection pool configuration from domain.xml under domains/domain1/config/ directory.

plecesne

Hi,

Back on my issue...

Only my server is local ; my database is hosted remotely on "mydbserver" so
I'm pretty sure of these options. I'm not sure of datasource name and
network protocol, but I've tried different values and I always have the same
result.

Actually, I think the server doesn't even manage to reach the jndi registry
as, whatever my values are for the datasource classname and the additional
properties, the exceptions remain unchanged : "Connection refused" when
doing a lookup on the registry...

Has anyone an idea why my server couldn't reach the JNDI registry (assuming
that this is the issue) ?

Thank you all for your help.

aldaris wrote:
>
> Hi,
>
> Did you read http://docs.sun.com/app/docs/doc/820-4495/beanb?a=view ?
>
> I guess the servername should be 'localhost'.
> I'm not familiar with sybase, but with mysql, I need only to set:
> - servername (localhost)
> - databasename (mydb)
> - port (3306)
> - user (myuser)
> - password (mypass)
> fields.
>
> Are you certain about datasourcename and networkprotocol properties
> really exists for this type of connection pool?
>
> Regards,
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://old.nabble.com/Glassfish-issue---JDBC-connection-pool-ping-fails-...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Major Péter

Is there some useful stacktrace in server.log? Could you copy the
exception causes? Can you connect to the database using command line (if
sybase has such)?

2009-12-01 10:57 keltezéssel, plecesne írta:
>
> Hi,
>
> Back on my issue...
>
> Only my server is local ; my database is hosted remotely on "mydbserver" so
> I'm pretty sure of these options. I'm not sure of datasource name and
> network protocol, but I've tried different values and I always have the same
> result.
>
> Actually, I think the server doesn't even manage to reach the jndi registry
> as, whatever my values are for the datasource classname and the additional
> properties, the exceptions remain unchanged : "Connection refused" when
> doing a lookup on the registry...
>
> Has anyone an idea why my server couldn't reach the JNDI registry (assuming
> that this is the issue) ?
>
> Thank you all for your help.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

plecesne

I pasted the full stacktrace issued by one failed ping in my first post on
this topic.
And I can connect to the database through a SQL client.

Actually, as I was saying, I don't think that the connection to the database
is the source of my problem. I'd rather bet on the connection to the JNDI
registry. Maybe the JNDI port is wrong? Is there a way to check this?

aldaris wrote:
>
> Is there some useful stacktrace in server.log? Could you copy the
> exception causes? Can you connect to the database using command line (if
> sybase has such)?
>
> 2009-12-01 10:57 keltezéssel, plecesne írta:
>>
>> Hi,
>>
>> Back on my issue...
>>
>> Only my server is local ; my database is hosted remotely on "mydbserver"
>> so
>> I'm pretty sure of these options. I'm not sure of datasource name and
>> network protocol, but I've tried different values and I always have the
>> same
>> result.
>>
>> Actually, I think the server doesn't even manage to reach the jndi
>> registry
>> as, whatever my values are for the datasource classname and the
>> additional
>> properties, the exceptions remain unchanged : "Connection refused" when
>> doing a lookup on the registry...
>>
>> Has anyone an idea why my server couldn't reach the JNDI registry
>> (assuming
>> that this is the issue) ?
>>
>> Thank you all for your help.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://old.nabble.com/Glassfish-issue---JDBC-connection-pool-ping-fails-...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Jagadish Prasath Ramu

>
{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}

Seems like a different Naming Inital Context Factory is available in the
system.
eg: a .properties (jndi.properties) file available with the property
java.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory
or a system flag
"-Djava.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory"
and hence the lookup will be routed based on the above factory class
instead of GlassFish's
"com.sun.enterprise.naming.SerialInitContextFactory"

Thanks,
-Jagadish

On Fri, 2009-11-27 at 11:11 -0800, plecesne wrote:
> 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.(Socket.java:372)
> at java.net.Socket.(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.(Socket.java:372)
> at java.net.Socket.(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-...
> Sent from the java.net - glassfish users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

plecesne

Hi,

Yes, you're right. We indeed use another context factory for other
applications, so I may have referenced a jar containing a jndi.properties.
Before I read your post, I had reinstalled glassfish and it now works. But
for people who may encounter the same issue and find this topic, Jagadish
Prasath Ramu is certainly right about the explaination.

Thank you all so much :)

Jagadish Prasath Ramu wrote:
>
>
>>
> {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}
>
> Seems like a different Naming Inital Context Factory is available in the
> system.
> eg: a .properties (jndi.properties) file available with the property
> java.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory
> or a system flag
> "-Djava.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory"
> and hence the lookup will be routed based on the above factory class
> instead of GlassFish's
> "com.sun.enterprise.naming.SerialInitContextFactory"
>
> Thanks,
> -Jagadish
>
> On Fri, 2009-11-27 at 11:11 -0800, plecesne wrote:
>> 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.(Socket.java:372)
>> at java.net.Socket.(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.(Socket.java:372)
>> at java.net.Socket.(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-...
>> Sent from the java.net - glassfish users mailing list archive at
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://old.nabble.com/Glassfish-issue---JDBC-connection-pool-ping-fails-...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

sm157516
Offline
Joined: 2005-03-28

Is the database server up and running in your localhost (if you have mentioned it in the host name property) ?

Major Péter

Sorry, I missed that. Now I had actually read the full stackstrace and I
guess I know, what's causing the problem.

You had created a connection pool, but there is no JNDI name defined to
that Connection pool, e.g.: in Resources -> JDBC Resources you should
create a new resource, with a custom name, which will point to the
connection pool.

In your code than you should reach the connection pool through the JNDI
name, for example with a @Resource annotation.

Regards,
Peter

2009-11-30 06:40 keltezéssel, glassfish@javadesktop.org írta:
> Is the database server up and running in your localhost (if you have mentioned it in the host name property) ?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

plecesne

Well, I do have a JDBC resource created (named "jdbc/StpPool") pointing to
that connection pool.
And I don't have any code yet. I'm just hitting the "Ping" button on page of
my pool in the Admin Console.

By the way, if this can help, I have the same errors when I try to ping the
__CallFlowPool and the __TimerPool which were predefined when installing
Glassfish.

aldaris wrote:
>
> Sorry, I missed that. Now I had actually read the full stackstrace and I
> guess I know, what's causing the problem.
>
> You had created a connection pool, but there is no JNDI name defined to
> that Connection pool, e.g.: in Resources -> JDBC Resources you should
> create a new resource, with a custom name, which will point to the
> connection pool.
>
> In your code than you should reach the connection pool through the JNDI
> name, for example with a @Resource annotation.
>
> Regards,
> Peter
>
> 2009-11-30 06:40 keltezéssel, glassfish@javadesktop.org írta:
>> Is the database server up and running in your localhost (if you have
>> mentioned it in the host name property) ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://old.nabble.com/Glassfish-issue---JDBC-connection-pool-ping-fails-...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Major Péter

2009-12-01 12:51 keltezéssel, plecesne írta:
>
> Well, I do have a JDBC resource created (named "jdbc/StpPool") pointing to
> that connection pool.
> And I don't have any code yet. I'm just hitting the "Ping" button on page of
> my pool in the Admin Console.
>
> By the way, if this can help, I have the same errors when I try to ping the
> __CallFlowPool and the __TimerPool which were predefined when installing
> Glassfish.

This is really weird... What GF version are you using?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

plecesne

Indeed, very weird.
I'm using Glassfish 2.0 (thinking about upgrading but not for the next few
months).

aldaris wrote:
>
> 2009-12-01 12:51 keltezéssel, plecesne írta:
>>
>> Well, I do have a JDBC resource created (named "jdbc/StpPool") pointing
>> to
>> that connection pool.
>> And I don't have any code yet. I'm just hitting the "Ping" button on page
>> of
>> my pool in the Admin Console.
>>
>> By the way, if this can help, I have the same errors when I try to ping
>> the
>> __CallFlowPool and the __TimerPool which were predefined when installing
>> Glassfish.
>
> This is really weird... What GF version are you using?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://old.nabble.com/Glassfish-issue---JDBC-connection-pool-ping-fails-...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

plecesne

Turns out that a colleague, with the same configuration, manages to ping the
CallFlowPool... which would mean that there is a wrong configuration on my
server, or on my computer (damn!).

I'll keep you informed if I manage to solve this thing out (but if anybody
has another idea in the meantime, feel free to express yourself ! :-)).

plecesne wrote:
>
> Indeed, very weird.
> I'm using Glassfish 2.0 (thinking about upgrading but not for the next few
> months).
>
>
> aldaris wrote:
>>
>> 2009-12-01 12:51 keltezéssel, plecesne írta:
>>>
>>> Well, I do have a JDBC resource created (named "jdbc/StpPool") pointing
>>> to
>>> that connection pool.
>>> And I don't have any code yet. I'm just hitting the "Ping" button on
>>> page of
>>> my pool in the Admin Console.
>>>
>>> By the way, if this can help, I have the same errors when I try to ping
>>> the
>>> __CallFlowPool and the __TimerPool which were predefined when installing
>>> Glassfish.
>>
>> This is really weird... What GF version are you using?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>>
>>
>
>

--
View this message in context: http://old.nabble.com/Glassfish-issue---JDBC-connection-pool-ping-fails-...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Major Péter

Hi,

Did you read http://docs.sun.com/app/docs/doc/820-4495/beanb?a=view ?

I guess the servername should be 'localhost'.
I'm not familiar with sybase, but with mysql, I need only to set:
- servername (localhost)
- databasename (mydb)
- port (3306)
- user (myuser)
- password (mypass)
fields.

Are you certain about datasourcename and networkprotocol properties
really exists for this type of connection pool?

Regards,
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

jbuillot
Offline
Joined: 2009-11-29

Hi all,

I m trying to create a connection pool with my postgresql database with Glassfiash V3 build 68.

I can create it exactly with the same parameters as I have in my old glashfish server V2. But I have error message when I ping my JDBC connection pool.

Is there any bug on Glassfish V3 ?

Major Péter

Hi,

I tried to ping my PostgreSQL database with b72 and I didn't have any
problem. Are you sure, that your pg_hba.conf file is correct? Is
PostgreSQL driver in the correct directory?

Peter

2009-11-29 18:02 keltezéssel, glassfish@javadesktop.org írta:
> Hi all,
>
> I m trying to create a connection pool with my postgresql database with Glassfiash V3 build 68.
>
> I can create it exactly with the same parameters as I have in my old glashfish server V2. But I have error message when I ping my JDBC connection pool.
>
> Is there any bug on Glassfish V3 ?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net