users@glassfish.java.net

Re: Can Not Connect to MySQL Connection Pool

From: Narayana Rallabandi <Narayana.Rallabandi_at_Sun.COM>
Date: Mon, 22 Dec 2008 08:50:43 +0530

I guess you must have created the pool using an existing jmsra adapter
in the glassfish for JMS connections from the following.

How are you seeing the JNDI name from the admin console?
Did you try using jms/<JNDIName> in this case?

--Narayanaa

glassfish_at_javadesktop.org wrote:
> Good day to you all !
>
> I'm a brand new apprentice of GlassFish, and of course have done the basics, and recently I tried something a little more advanced, That is, to Create a Connection Pool.
> Ok, so here's the situation:
>
> I placed the required jar in the glassfish directory; and created the connection Pool, Fortunately the Ping was Succesful, then I created a JDBC Resource for my pool to have a JNDI name...
>
> Later I tried the following code in a Simple class, to try to use My connection pool, But I wasn't successful..
>
> Context ctx = new InitialContext();
> DataSource ds = (DataSource) ctx.lookup("Pool1");
> Connection con = ds.getConnection();
>
> it appears that it attempts to get a Connection, but it throws an Exception:
>
> [b]java.lang.NoClassDefFoundError: com/sun/jms/spi/xa/JMSXAConnectionFactory[/b]
>
> What Am I supposed to do now?
>
> I have to point out that I already Included the following jars to the project:
>
> appserv-rt.jar
> javaee.jar
> appserv-admin.jar
>
> By doing so, I corrected some previous exceptions. However, I don't know how to correct the latest one I just detailed.
>
> Please Help me out !
>
> Best Regards,
>
> Jose
> [Message sent by forum member 'josebce' (josebce)]
>
> http://forums.java.net/jive/thread.jspa?messageID=322877
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>