You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Bruce Snyder <br...@gmail.com> on 2005/04/29 17:32:30 UTC
Re: Geronimo and JMS
On 4/29/05, Katia Aresti Gonzalez <ka...@hotmail.com> wrote:
> Im still trying to make this work. I have added to the classes the following
> method:
>
>
> public static Context getInitialContext() throws
> javax.naming.NamingException
> {
> Properties props = new Properties();
>
> props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.activemq.jndi.ActiveMQInitialContextFactory");
> props.setProperty(Context.PROVIDER_URL,"tcp://hostname:61616");
>
> return new InitialContext(props);
> }
>
> So now i get the initialContext with this. The Error I get when running is
> this one:
>
> D:\jms>java EnviaPS
> Exception in thread "main" java.lang.NoClassDefFoundError:
> EDU/oswego/cs/dl/util
> /concurrent/ConcurrentHashMap
According to the error above, the oswego concurrent jar is missing.
This jar should should already be in the Geronimo repository. When
building Geronimo from source, the concurrent jar should be located
here:
./modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/concurrent/jars/concurrent-1.3.4.jar
According to the execution of EnviaPS above, the CLASSPATH is not
being set there, so it must be set in your environment. What is
included in the CLASSPATH?
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://geronimo.apache.org/
Re: Geronimo and JMS
Posted by Bruce Snyder <br...@gmail.com>.
On 4/29/05, Katia Aresti Gonzalez <ka...@hotmail.com> wrote:
> D:\jms>java EnviaPS
> javax.naming.NameNotFoundException: No object bound for
> java:comp/env/jms/Connec
> tionFactoryLocalTx
Does the JMS resource adapter plan contain a connection factory object
registered under the JNDI name comp/env/jms/ConnectionFactoryLocalTx?
Please post the JMS resource adapter configuration and the web
deployment descriptor.
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://geronimo.apache.org/