Hi everybody,
I am a newbie to EJB 3.0
I am trying to call a sample session bean from a servlet in web app.
But I am facing the proble as follows:
My JBoss is unable to connect to the port no which is localhost:1099
19:59:07,098 ERROR [STDERR] javax.naming.CommunicationException: Could not obtain connection to any
of these urls:
cPanel® and discovery failed with error: javax.naming.CommunicationExce
ption: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Roo
t exception is javax.naming.CommunicationException: Failed to connect to server http:1099 [Root exce
ption is javax.naming.ServiceUnavailableException: Failed to connect to server http:1099 [Root excep
tion is java.net.UnknownHostException: http: http]]]
19:59:07,348 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(NamingCo ntext.java:1414
)
19:59:07,442 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:594)
19:59:07,488 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:587)
19:59:07,535 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext. java:351)
19:59:07,567 ERROR [STDERR] at com.cg.ecm.NuxeoServlet.doPost(NuxeoServlet.java:7 6)
19:59:07,613 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
19:59:07,660 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
19:59:07,707 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(
ApplicationFilterChain.java:252)
19:59:07,801 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.do Filter(Applicat
ionFilterChain.java:173)
19:59:07,879 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHead
erFilter.java:96)
19:59:07,973 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(
ApplicationFilterChain.java:202)
19:59:08,051 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.do Filter(Applicat
ionFilterChain.java:173)
19:59:08,145 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrap
I am putting the following proprties :
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.i nterfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "http://localhost:1099");
ic = new InitialContext(env);
I am completely stuck up with this:I am unable to find help from google also.
any body plz help me!!
thanks in Advance,
Amit