struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wu, Jack" <jack...@proactcorp.com>
Subject looking up datasource through jndi in Tomcat4.0
Date Mon, 01 Apr 2002 21:44:53 GMT
Hi:

    Does anybody know when this error occurs?


Caused by: javax.naming.ServiceUnavailableException.  Root exception is
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested
exception is: 
	java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect 	

at java.net.PlainSocketImpl.socketConnect(Native Method) 	
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) 	
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) 	
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) 	
at java.net.Socket.<init>(Socket.java:273) 	
at java.net.Socket.<init>(Socket.java:100) 	
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
actory.java:25) 	
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
actory.java:120) 	
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499) 	
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)

at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174) 	
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318) 	
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) 	
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:91)

at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)

at javax.naming.InitialContext.lookup(InitialContext.java:350) 	
at
com.proactcorp.core.controller.ResourceManager.getDataSource(ResourceManager
.java:54) 	
at com.proactcorp.core.util.SQLUtils.getConnection(SQLUtils.java:98) 	
at
com.proactcorp.benefit.admin.role.dao.IRoleDAO.readAllRoleDO(IRoleDAO.java:4
68) 	
at
com.proactcorp.benefit.admin.role.domain.RoleDOHome.findAllRoleDO(RoleDOHome
.java:28) 	
at
com.proactcorp.benefit.admin.BenefitGlobal.getGlobalRoles(BenefitGlobal.java
:33) 	
at
com.proactcorp.benefit.admin.role.service.RoleMaintenanceService.getAllRoles
(RoleMaintenanceService.java:58) 	
at
com.proactcorp.benefit.admin.role.service.RoleMaintenanceDelegate.getAllRole
s(RoleMaintenanceDelegate.java:34) 	
at
com.proactcorp.benefit.admin.role.action.ViewRoleAction.perform(ViewRoleActi
on.java:62) 	
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1726) 	
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1536)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 	
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 	
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247) 	
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193) 	
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243) 	
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 	
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190) 	
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 	
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
) 	
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 	
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170) 	
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) 	
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
) 	
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) 	
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174) 	
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 	
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012) 	
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
) 	
at java.lang.Thread.run(Thread.java:484) 

Junqi Wu


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message