Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-26-2007, 04:37 PM
Member
 
Join Date: Nov 2007
Posts: 3
amitid4forum is on a distinguished road
Unable to configure JNDI properties
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure a JNDI URL resource rinks Advanced Java 0 03-12-2008 05:57 PM
Jndi lookup _Need help(URGENT) j satya Enterprise JavaBeans 0 01-14-2008 04:48 AM
How to configure JavaDocs in Eclipse javaplus New To Java 3 11-26-2007 07:17 PM
Configure J2 SDK1.3.1_20 on XP Neon Blue New To Java 3 08-13-2007 11:19 PM
error in JNDI naming jitendra.ibs Java Servlet 0 06-08-2007 06:23 PM


All times are GMT +3. The time now is 10:37 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org