-
1. Re: Running document example application on JBoss3.0.0RC1
moraleslos Apr 16, 2002 5:54 PM (in response to moraleslos)here's an update
I switched containers (from Jboss 3.0.0RC1 to 2.4.5.RC1) and the example application worked just fine. I can even see the console for 2.4.5.RC1 display the deployer info. So I don't know if i need to do something extra for 3.0.0RC1 in order to deploy or something else.
thanks.
-los -
2. Re: Running document example application on JBoss3.0.0RC1
moraleslos Apr 17, 2002 12:41 PM (in response to moraleslos)I fixed the problem. the jar file should be in the directory jboss3.0.0RC1\server\default\deploy instead of jboss3.0.0RC1\deploy.
However, I encountered a problem running the client app. Its giving me:
/////////////////////////////////////////////
interest-client:
[java] Got context
[java] Got reference
[java] java.lang.NoClassDefFoundError: org/jboss/logging/Logger
[java] at org.jboss.invocation.MarshalledValueInputStream.(Mars
halledValueInputStream.java:25)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:130)
[java] at org.jboss.invocation.MarshalledValueOutputStream.class$(Marsh
alledValueOutputStream.java:23)
[java] at org.jboss.invocation.MarshalledValueOutputStream.(Mar
shalledValueOutputStream.java:25)
[java] at org.jboss.invocation.MarshalledValue.(MarshalledValue.j
ava:47)
[java] at org.jboss.invocation.MarshalledInvocation.writeExternal(Marsh
alledInvocation.java:317)
[java] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStre
am.java:1262)
[java] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputSt
ream.java:1243)
[java] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.ja
va:1052)
[java] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.jav
a:278)
[java] at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:265)
[java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:124)
[java] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unkn
own Source)
[java] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(
JRMPInvokerProxy.java:128)
[java] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterce
ptor.java:108)
[java] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInte
rceptor.java:73)
[java] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityIntercepto
r.java:76)
[java] at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.ja
va:185)
[java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:9
6)
[java] at $Proxy0.create(Unknown Source)
[java] at org.jboss.docs.interest.InterestClient.main(InterestClient.ja
va:46)
[java] Exception in thread "main"
[java] Java Result: 1
BUILD SUCCESSFUL
//////////////////////////////////////////////
I don't know why a NoClassDefFoundError: org/jboss/logging/Logger exception occured since its not defined anywhere in the code. Could it be that JBoss3.0.0RC1 uses a different directory for logging than its 2.x predecessors?
Any help will be appreciated. Thanks!
-los -
3. Re: Running document example application on JBoss3.0.0RC1
adrian.brock Apr 17, 2002 12:51 PM (in response to moraleslos)You'll find the class in jboss-common-client.jar
Regards,
Adrian -
4. Re: Running document example application on JBoss3.0.0RC1
moraleslos Apr 17, 2002 2:25 PM (in response to moraleslos)Hi Adrian,
Thanks for the tip. The jar was in JBoss3.0.0RC1\client.
Now my stupid question is, what am I suppose to do with it? I tried copying it to the JBoss3.0.0RC1\lib and JBoss3.0.0RC1\server\default\deploy directory but I can't get the container to recognize this class.
-los -
5. Re: Running document example application on JBoss3.0.0RC1
moraleslos Apr 17, 2002 3:58 PM (in response to moraleslos)never mind about previous post... I figured it out. I changed the build script to look for jboss-common-client.jar and log4j.jar in the client directories and it worked.
I guess the 2.x versions already included them in jboss-client.jar so I did not need to worry about them.
-los