geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Katia Aresti Gonzalez" <kaare...@hotmail.com>
Subject RE: Geronimo and JMS
Date Fri, 29 Apr 2005 10:38:52 GMT
<html><div style='background-color:'><DIV class=RTE>
<DIV class=RTE>
<P>Hi!!</P>
<P>Im still trying to make this work. I have added to the classes the following method:</P>
<P><BR><FONT face="Courier New, Courier, Monospace">&nbsp;public static
Context getInitialContext() throws javax.naming.NamingException <BR>&nbsp;&nbsp;&nbsp;
{<BR>&nbsp;&nbsp;Properties props = new Properties();<BR>&nbsp;&nbsp;props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.activemq.jndi.ActiveMQInitialContextFactory");<BR>&nbsp;&nbsp;props.setProperty(Context.PROVIDER_URL,"tcp://hostname:61616");<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;return
new InitialContext(props);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;
}</FONT></P>
<P>So now i get the initialContext with this. The Error I get when running is this one:</P>
<P>D:\jms&gt;java EnviaPS<BR>Exception in thread "main" java.lang.NoClassDefFoundError:
EDU/oswego/cs/dl/util<BR>/concurrent/ConcurrentHashMap<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.activemq.jndi.ActiveMQInitialContextFactory.getInitialContext(Act<BR>iveMQInitialContextFactory.java:62)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6<BR>62)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243<BR>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.naming.InitialContext.init(InitialContext.java:219)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at javax.naming.InitialContext.&lt;init&gt;(InitialContext.java:195)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at EnviaPS.getInitialContext(EnviaPs.java:45)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at EnviaPS.main(EnviaPs.java:15)<BR></P>
<P>And the <U>classpath </U>Im using to run is this:</P>
<P>set classpath=c:\gero\repository\openejb\jars\openejb-core-2.0-SNAPSHOT.jar;c:\gero\lib\cglib-full-2.0.2.jar;c:\gero\lib\geronimo-kernel-1.0-SNAPSHOT.jar;c:\gero\repository\geronimo\jars\geronimo-security-1.0-SNAPSHOT.jar;c:\gero\repository\geronimo-spec\jars\geronimo-spec-j2ee-jacc-1.0-rc4.jar;c:\gero\repository\geronimo\jars\geronimo-kernel-1.0-SNAPSHOT.jar;D:\cmp\build\classes;C:\j2sdkee1.3.1\lib\j2ee.jar;d:\jms;d:\jms\jstl-1.1.1.jar;d:\jms\standard-1.1.1.jar;C:\gero\repository\activemq\jars\activemq-core-3.0-SNAPSHOT.jar;C:\gero\repository\activemq\jars\activemq-gbean-3.0-SNAPSHOT.jar</P>
<P>java EnviaPS<BR>pause<BR>java RecibePS<BR>pause</P>
<P>Can somebody help me with this? Its possible to run standalone JMS client with Geronimo
as I did with the EJB client? What more I need to do to make this example work? </P>
<P>Thank you very much!!!</P>
<P>Katia</P></DIV>
<DIV></DIV>
<P>&nbsp;</P></DIV>
<DIV></DIV>&gt;From: "Katia Aresti Gonzalez" &lt;kaaresti@hotmail.com&gt;
<DIV></DIV>&gt;Reply-To: user@geronimo.apache.org
<DIV></DIV>&gt;To: user@geronimo.apache.org
<DIV></DIV>&gt;Subject: Geronimo and JMS
<DIV></DIV>&gt;Date: Thu, 28 Apr 2005 17:34:56 +0000
<DIV></DIV>&gt;
<DIV></DIV></div><br clear=all><hr>Coches nuevos, coches de
ocasiĆ³n, coches de Km 0 <a href="http://g.msn.com/8HMAESES/2746??PS=47575" target="_top">Si
piensas en cambiar de coche, MSN Motor.</a> </html>

Mime
View raw message