[JBoss-user] [EJB/JBoss] - Re: Connection Refused

2005-03-14 Thread jieshengz
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870124#3870124

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870125#3870125

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870125


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Connection Refused

2004-07-25 Thread richardyang
I got the same problem like you.

But I find the more information about it.
holp some budy will help us

first, It is working in version jboss 3.2.1 and  fail  after jboss3.2.2

second , It is working in IP B class , butl fail exceed in A class
 it mean that if cline and server example like 192.168.X.X ,it work
but fail in 192.X.X.X  

why?  Is it a security setting? I can't  resolve this problem for a long time.

Please help me  ~>_<~



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3843225#3843225

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3843225


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Connection Refused

2004-06-24 Thread katsteve
Okay, I'm hoping that you guys are as confused as me.  I promise that when I figure 
this out, I'll post an FAQ for it.

Adrian and Scott have both mentioned an FAQ for the "rmi.remote.server.hostname 
trick", but I can't find any references in the FAQ/Wiki or forums.

I'm thinking that somehow, the ejb lookup is searching for port  on 10.1.201.x, 
not 69.18.x.x, which is causing the hang/connection timeout.  The Exception trace 
shows that it goes through TCPEndPoint.newSocket() (see source and output below).  And 
now I have ClassLoader problems on top of that.  Sure hope someone can help me figure 
this one out.


System.out.println("CONNECTION/LOOKUP TEST");

Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
ht.put(Context.PROVIDER_URL,"jnp://69.18.x.x:1099");
ht.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");

InitialContext ctx = null;
try { ctx = new InitialContext(ht); }
catch (Exception e)
{ System.out.println("Initial Context failed...");
  e.printStackTrace(); 
}

try
{ Object homeObj = ctx.lookup(""); 
  System.out.println("GOT EJB HOME");
}
catch (Exception e)
{ System.out.println("EJB Lookup failed...");
  e.printStackTrace(); 
}


And here's the stack trace:

CONNECTION/LOOKUP TEST
EJB Lookup failed...
javax.naming.CommunicationException.  Root exception is java.rmi.ConnectExceptio
n: Connection refused to host: 10.1.201.XX; nested exception is:
java.net.ConnectException: Connection timed out: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:354)
at org.apache.jsp.connTest$jsp._jspService(connTest$jsp.java:87)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
82)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a: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.j
ava:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeli