I have installed in my Win XP PC with jboss-4.0.3RC1-installer.jar with 
selection deploy type ejb3. My testing with most ejb3 (without @Clustered 
annotation) works fine. I tried to test clustering using the example in the 
tutorial download from JBoss site and follow the steps accordingly. On 
performing ant run.stateless and an run.stateful , the below error messages 
appeared in the console. I check the deploy folder (all) which has the 
following:
ejb3-deployer
ejb3-clustered-sfsbcache-service.xml
ejb3-entity-cache-service.xml
ejb3-interceptors-aop.xml

I noticed that cluster-service.xml was missing and I copied one over. I copied 
the jbossha.jar to all/deploy/lib as well but all these did not solve the 
problem.  Are there anybody who has successfully tested the Clustering EJB3 
tutorial example??


Total time: 0 seconds
C:\jboss-EJB-3.0_Beta\docs\tutorial\clustering>ant
Buildfile: build.xml

prepare:
    [mkdir] Created dir: C:\jboss-EJB-3.0_Beta\docs\tutorial\clustering\build
    [mkdir] Created dir: C:\jboss-EJB-3.0_Beta\docs\tutorial\clustering\build\cl
asses

compile:
    [javac] Compiling 6 source files to C:\jboss-EJB-3.0_Beta\docs\tutorial\clus
tering\build\classes

ejbjar:
      [jar] Building jar: C:\jboss-EJB-3.0_Beta\docs\tutorial\clustering\build\t
utorial.ejb3
     [copy] Copying 1 file to C:\jboss-4.0.3RC1-AllPlusEJB3\server\default\deplo
y
     [copy] Copying 1 file to C:\jboss-4.0.3RC1-AllPlusEJB3\server\test\deploy

BUILD SUCCESSFUL
Total time: 2 seconds
C:\jboss-EJB-3.0_Beta\docs\tutorial\clustering>ant run.stateless
Buildfile: build.xml

prepare:

compile:

ejbjar:

run.stateless:
     [java] Exception in thread "main" javax.naming.NameNotFoundException: org.j
boss.tutorial.clustering.bean.Session not bound
     [java]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)

     [java]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)

     [java]     at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
     [java]     at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
a:294)
     [java]     at sun.rmi.transport.Transport$1.run(Transport.java:153)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
     [java]     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
t.java:460)
     [java]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
ransport.java:701)
     [java]     at java.lang.Thread.run(Thread.java:595)
     [java]     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(StreamRemoteCall.java:247)
     [java]     at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
ll.java:223)
     [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
     [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:61
0)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:57
2)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:351)
     [java]     at org.jboss.tutorial.clustering.client.StatelessRun.main(Statel
essRun.java:18)
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 6 seconds
C:\jboss-EJB-3.0_Beta\docs\tutorial\clustering>ant run.stateful
Buildfile: build.xml

prepare:

compile:

ejbjar:

run.stateful:
     [java] Exception in thread "main" javax.naming.NameNotFoundException: org.j
boss.tutorial.clustering.bean.StatefulRemote not bound
     [java]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)

     [java]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)

     [java]     at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
     [java]     at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
a:294)
     [java]     at sun.rmi.transport.Transport$1.run(Transport.java:153)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
     [java]     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
t.java:460)
     [java]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
ransport.java:701)
     [java]     at java.lang.Thread.run(Thread.java:595)
     [java]     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(StreamRemoteCall.java:247)
     [java]     at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
ll.java:223)
     [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
     [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:61
0)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:57
2)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:351)
     [java]     at org.jboss.tutorial.clustering.client.StatefulRun.main(Statefu
lRun.java:18)
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 4 seconds


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

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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to