Hello all....

I'm a new to JBoss (not really)....and been try to use it since a month ago. 
But still can't get it works for me. The very first problem that I faced was 
I got the wrong version of JDK to run JBoss. It suppose to use JDK1.3 but I 
use JDK1.2.2 . Anyway, now the server is working I mean JBoss is working 
once I swich to JDK1.3 beta(Linux).

Now I got another problem which is I can't get the client connect to the 
JBoss. May be it's connected but I get the error exception said that the 
HomeObject I lookuped was not found...

Actuall message :

javax.naming.NameNotFoundException: ABCHome not bound
        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
        at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
        at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:167)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:152)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)
        at ConverterBeanClient.main(ConverterBeanClient.java:31)

This shouldn't be because when I run JBoss, and verbose shown that 
everything was bound..

Acutall message:

[Auto deploy] Watching /usr/local/jboss/deploy
[Auto deployer] Initializing
[Auto deployer] Initialized
[Auto deployer] Starting
[Auto deploy] Auto deploy of file:/usr/local/jboss/deploy/bank.jar
[Container factory] Deploying:file:/usr/local/jboss/deploy/bank.jar
[Container factory] Deploying ABCBean
[Container factory] Started: ABCBean
[Container factory] Bound ABCBean to ABCBean
[Container factory] Deployed application: 
file:/usr/local/jboss/deploy/bank.jar
[Auto deploy] Auto deploy of file:/usr/local/jboss/deploy/ABCBean/
[Container factory] Deploying:file:/usr/local/jboss/deploy/ABCBean/
[Container factory] Deploying ABCBean
[Container factory] Started: ABCBean
[Container factory] Bound ABCBean to ABCBean
[Container factory] Deployed application: 
file:/usr/local/jboss/deploy/ABCBean/
[Auto deployer] Started
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Adaptor] Starting
[JMX RMI Adaptor] Started
[Default] jBoss 2.0 Started
[Default] Shutdown
[Default] Shutting down 17 MBeans

(see...everything is fine and works peacefully...)

But only when I try to run the client which by the time it lookups the 
ABCHome, it returns me the error message said that ABCHome not bount. Does 
anyone has any ideal????? Please help......

Below is the code of my client program....

try {
        Properties prop = /*System.getProperties();//*/new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");


try {
        ctx = new InitialContext(prop);
        System.out.println("Got context........");
} catch (NamingException nme) {
        System.out.println("Can't get context...");
        nme.printStackTrace();
}

try {
        System.out.println("Find home");
//                      home = (ConverterHome) 
javax.rmi.PortableRemoteObject.narrow(ctx.lookup("ConverterBean"));
        home = (ConverterHome)  ctx.lookup("ConverterHome");
        System.out.println("Found home");
        } catch (Exception e) {
                System.out.println("Can't lookup ConverterHome...");
                e.printStackTrace();
}


As you see from the code, I event try to lookup the "ABCHome" by using the 
rmi.lookup method. But it doesn't work.

Please help me and .... I also wondering about the JBoss which I have to run 
the clinet program at the director where JNDI.properties (and those files in 
the /conf) located. If I don't run the client in the directory which has 
those files I get the error exception said that

Actuall message :

javax.naming.ServiceUnavailableException: rmi.  Root exception is 
java.net.UnknownHostException: rmi
        at java.net.InetAddress.getAllByName0(InetAddress.java:571)
        at java.net.InetAddress.getAllByName0(InetAddress.java:540)
        at java.net.InetAddress.getByName(InetAddress.java:449)
        at java.net.Socket.<init>(Socket.java:100)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:503)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:159)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:152)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)
        at ConverterBeanClient.main(ConverterBeanClient.java:31)

I know it's quite a long message but I just want to show clearly about the 
problem that I facing.

Please help me and thanks in advance....


Coco



________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to