What is "My favourites"?
[JNDI/Naming/Network] - InitialContext.lookup(
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java Programming > [JNDI/Naming/Network­] - InitialContext.look­up(" ") problem 9 May 2005 13:25:48

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

[JNDI/Naming/Network­] - InitialContext.look­up(" ") problem

Waglik 9 May 2005 13:25:48
 Hello I have a problem

I write a client :

public class Proba {

private static final String JNDI_NAME = "ModelEJB";

public static void main(String[] args) throws NamingException {

//JNDI properties
Properties h = new Properties();
h.put(Context.INITI­AL_CONTEXT_FACTORY,"­org.jnp.interfaces.N­amingContextFactory"­);
h.put(Context.PROVI­DER_URL,"t3://localh­ost:1099");

InitialContext ctx = new InitialContext(h);
Object obj = ctx.lookup("ModelEJ­B");
}
}

and I recive an error :

javax.naming.Commun­icationException: Receive timed out [Root exception is java.net.SocketTime­outException: Receive timed out]
at org.jnp.interfaces.­NamingContext.discov­erServer(NamingConte­xt.java:1159)
at org.jnp.interfaces.­NamingContext.checkR­ef(NamingContext.jav­a:1239)
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­527)
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­520)
at javax.naming.Initia­lContext.lookup(Init­ialContext.java:347)­
at Proba.main(Proba.ja­va:25)
at sun.reflect.NativeM­ethodAccessorImpl.in­voke0(Native Method)
at sun.reflect.NativeM­ethodAccessorImpl.in­voke(NativeMethodAcc­essorImpl.java:39)
at sun.reflect.Delegat­ingMethodAccessorImp­l.invoke(DelegatingM­ethodAccessorImpl.ja­va:25)
at java.lang.reflect.M­ethod.invoke(Method.­java:324)
at com.intellij.rt.exe­cution.application.A­ppMain.main(AppMain.­java:78)
Caused by: java.net.SocketTime­outException: Receive timed out
at java.net.PlainDatag­ramSocketImpl.receiv­e(Native Method)
at java.net.DatagramSo­cket.receive(Datagra­mSocket.java:711)
at org.jnp.interfaces.­NamingContext.discov­erServer(NamingConte­xt.java:1129)
... 10 more
Exception in thread "main

Do You have any ideas whats wrong?
thx
Waglik

View the original post : http://www.jboss.or­g/index.html?module=­bb&op=viewtopic&p=38­76961#3876961

Reply to the post : http://www.jboss.or­g/index.html?module=­bb&op=posting&mode=r­eply&p=3876961


-------------------­--------------------­----------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy­.com/?r=20
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Java Programming > [JNDI/Naming/Network­] - InitialContext.look­up(" ") problem 9 May 2005 13:25:48

see also:
Access expoert reports to PDF using PDF…
SQL precision arithmetic overflow error…
PANIC: Attempting to bring system down
pass tests:
Tvoia anime vneshnost'.(Dlia devochek)
see also:
Poschemy vso po anglish?
Test: Tvoia anime vneshnost'.(Dlia ...

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .