-
15. Re: interest client
scoobydoo Jun 25, 2002 1:54 PM (in response to newone)Hi,
Im a JBoss newbie too. And not being able to get the first frigging example working is very frustrating.
The problem with the interest example is that when you deploy the interest client to the jboss-intallation/deploy directory, JBoss does not automatically see it. As is claimed in the documentation.
That's because, as someone noted in this thread, the deploy directory has moved in Jboss3. But changing the deploy dir in the ant file doesnt seem to work either.
So the quick and easy solution to the problem is to run the sample applications on jboss2.4.6. Thats what im
gonna do. And hope someone will clue us newbies in as to what we should do to get the examples working on version 3. -
16. Re: interest client
reeling Jun 25, 2002 2:43 PM (in response to newone)I have got the interest example to work (on Linux). Find attached modified build.xml file - judge badness of changes yourselves....
-
17. Re: interest client
trevorjeff Jun 25, 2002 5:10 PM (in response to newone)I am running into the same problem with the "logger". Do you know how to make this work???
-
18. Re: interest client
trevorjeff Jun 25, 2002 5:17 PM (in response to newone)I am running JBOSS 3.0, trying to get by with the documentation which I believe is for version 2.4. Things don't work correctly. When I build the Interest example, it seems to build. I "deploy" manually which again seems to work perfectly but when I try to run the client I get this problem finding the logger.
Does anybody know how to resolve this? I am new to JBOSS.
interest-client:
[java] Got JNDI InitialContext
[java] Got JNDI reference
[java] java.lang.NoClassDefFoundError: org/jboss/logging/Logger
[java] at org.jboss.invocation.MarshalledValueInputStream.(MarshalledValueInputStream.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:26)
[java] at org.jboss.invocation.MarshalledValueOutputStream.(Mar
shalledValueOutputStream.java:28)
[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:7
6)
[java] at $Proxy0.create(Unknown Source)
[java] at org.jboss.docs.interest.InterestClient.main(InterestClient.ja
va:72)
[java] Exception in thread "main"
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 1 second -
20. Re: interest client
jsmits Aug 5, 2002 3:31 PM (in response to newone)I am also a beginner to JBoss, and am getting the EXACT same error that several other people have mentioned about NoClassDefFoundError: orgs/jboss/logging/Logger
However, I have found no solution and the link in the previous post is dead.
Any help would be GREATLY appreciated!!! -
21. Re: interest client
jsmits Aug 5, 2002 3:39 PM (in response to newone)I am also a beginner to JBoss, and am getting the EXACT same error that several other people have mentioned about NoClassDefFoundError: orgs/jboss/logging/Logger
However, I have found no solution and the link in the previous post is dead.
Any help would be GREATLY appreciated!!! -
22. Re: interest client
blaidig Sep 4, 2002 5:26 PM (in response to newone)You need to place it in your classpath.
Thanks to warjort (http://jboss.org/forums/thread.jsp?forum=61&thread=20495&message=3738621&q=Logger#3738621) we need another directory with its jar files in the classpath
In examples\org\jboss\docs\interest\build.xml
add to your classpath under target interest-client
<fileset dir="${jboss.dist}/client">
<include name="**/*.jar"/>
</fileset>
so the whole target should look like
<target name="interest-client" depends="compile">
<java classname="org.jboss.docs.interest.InterestClient" fork="yes">
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="${build.classes.dir}"/>
<pathelement location="${src.resources}"/>
<fileset dir="${jboss.dist}/client">
<include name="**/*.jar"/>
</fileset>
</classpath>
</java>
</target>
I haven't tried out any of the other examples yet but this should solve at least the one problem. -
23. Re: interest client
shwetagarg Oct 28, 2002 4:19 AM (in response to newone)Hello blaidig,
I m a new JBoss user and facing the problem regarding Logger with JBoss 3.0. Nothing helped me and finally I tried ur solution regarding interest client and it worked !! and solved all my problems.
3 cheers to you!!!
Thanx
Shweta -
24. Re: interest client
urmeli Nov 26, 2002 8:35 AM (in response to newone)Hi,
I had the same problem and the solution worked in my environment too.
This solution seems a little quick&dirty to me, I would prefer to understand what in detail was the missing part?
HAND,
Jan. -
25. Re: interest client
jamesstrachan Nov 29, 2002 12:20 PM (in response to newone)I am getting similar problems, culminating in the error message
METHOD NOT FOUND 127(more digits)
This is not helpful. I will take the same approach as others and just include every client library in the build.
It would be kind of nice if the JBoss Group could present a list of which client libraries are needed for which purposes. -
26. Re: interest client
kwill1253 Nov 29, 2002 10:09 PM (in response to newone)Here is a modified version of the Interest example.
There is a .bat file that list the jars(from the client folder) that need to be in the classpath.
You also need the client folder in the classpath and the jndi.properties file in the client folder set to your system.
The location of your Interest classes needs to also be in the classpath.
I put the app together with forte and and tested of
jboss 3.0.0 and all worked.