Re: Using Apache 2.0 HTTP server with Geronimo 1.0
On 2/9/06, Bharath <[EMAIL PROTECTED]> wrote: > Hi, I've replied to a similar query here: > http://www.ibm.com/developerworks/forums/dw_thread.jsp?message=13766589&cat=51&thread=98829&treeDisplayType=threadmode1&forum=541#13766589 > > It was for M5...*should* also work for v1.0. Let me know if it helps. > > /Bharath Thanks, I saw that after my post. But for my Linux system it's little different. http://www.wmwweb.com/apache/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.14/ contains two modules (*.so files) and no documentation which/how to use them. For Win32 there is some notes below the files to help you getting the correct one(s). I will try to incorporate these... -- Regards Joacim
Re: Tomcat MySQL XA support
--- lichtner <[EMAIL PROTECTED]>写道: > > Anything in any logs? Maybe something is failing and this is a side > effect? > There is no error message in logs. The web application is started normally. But the xaDs from "XADataSource xaDs = (XADataSource)ctx.lookup("java:comp/env/jdbc/myXADB");" is null ! Maybe "mysql 5.0.18 + Connector/J + tomcat 5" can not support XA ? > On Thu, 9 Feb 2006, Jack Wang wrote: > > > --- lichtner <[EMAIL PROTECTED]>写道: > > > > > > Is it possible that the data source also has to be listed in your web.xml? > > > > > > > Yes, I have resource-ref defined in web.xml. But the XADataSource is null, > > why ? > > > > > > > > jdbc/myXADB > > javax.sql.XADataSource > > Container > > Shareable > > > > > > > > > > > On Thu, 9 Feb 2006, Jack Wang wrote: > > > > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > > > > > Jack Wang wrote: > > > > > > I can get connect from Resource configured in tomcat with > > > > > > type="javax.sql.DataSource". > But > > > the > > > > > > project needs the XADataSource, so I configure the XADataSource in > > > > > > tomcat's server.xml > > > with > > > > > You need to use mysql-connector-java-5.0.0-beta's > > > > > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 > > > > > server, > > > > > or the far less desirable XAPool for fake XA. > > > > > > > > > > > > > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > > > > > You need to use mysql-connector-java-5.0.0-beta's > > > > > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 > > > > > server, > > > > > or the far less desirable XAPool for fake XA. > > > > > > > > > > > > > I have used mysql-connector-java-5.0.0-beta, but I still have the null > > > > XADataSource xaDs > from > > > the > > > > java action. > > > > Here is the server.xml in tomcat: > > > > > > > > - > > > > > > > type="javax.sql.XADataSource" > > > > factory="com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory" > > > > driverClassName="com.mysql.jdbc.Driver" > > > > user="root" > > > > password="password" > > > > > > > > url="jdbc:mysql://localhost/test?useUnicode=true&characterEncoding=gbk" > > > > /> > > > > - > > > > > > > > And the is my action: > > > > > > > > - > > > > Context ctx = new InitialContext(); > > > > XADataSource xaDs = > > > > (XADataSource)ctx.lookup("java:comp/env/jdbc/myXADB"); > > > > // Here get the null xaDs, Oops !! > > > > - > > > > > > > > My environment is : > > > > JDK 1.5 > > > > Tomcat 5.5 > > > > MySQL: 5.0.18-win32 > > > > Connector/J 5.0 beta > > > > > > > > I have checked mysql-connector-java-5.0.0-beta changes. The 11-04-05 - > > > > Version 5.0.0-beta > > > > - XADataSource implemented (ported from 3.2 branch which won't be > > > > released as a product). > > > > Use "com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" as your > > > > datasource > > > > class name in your application server to utilize XA transactions > > > > in MySQL-5.0.10 and newer. > > > > > > > > So, what's the wrong ? Please help. Thanks. > > > > > > > > > > > > Wang Jun > > > > > > > > > > > > > Wang Jun
Re: Tomcat MySQL XA support
Anything in any logs? Maybe something is failing and this is a side effect? On Thu, 9 Feb 2006, Jack Wang wrote: > --- lichtner <[EMAIL PROTECTED]>写道: > > > > Is it possible that the data source also has to be listed in your web.xml? > > > > Yes, I have resource-ref defined in web.xml. But the XADataSource is null, > why ? > > > > jdbc/myXADB > javax.sql.XADataSource > Container > Shareable > > > > > > On Thu, 9 Feb 2006, Jack Wang wrote: > > > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > > > > Jack Wang wrote: > > > > > I can get connect from Resource configured in tomcat with > > > > > type="javax.sql.DataSource". But > > the > > > > > project needs the XADataSource, so I configure the XADataSource in > > > > > tomcat's server.xml > > with > > > > You need to use mysql-connector-java-5.0.0-beta's > > > > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 server, > > > > or the far less desirable XAPool for fake XA. > > > > > > > > > > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > > > > You need to use mysql-connector-java-5.0.0-beta's > > > > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 server, > > > > or the far less desirable XAPool for fake XA. > > > > > > > > > > I have used mysql-connector-java-5.0.0-beta, but I still have the null > > > XADataSource xaDs from > > the > > > java action. > > > Here is the server.xml in tomcat: > > > > > > - > > > > > type="javax.sql.XADataSource" > > > factory="com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory" > > > driverClassName="com.mysql.jdbc.Driver" > > > user="root" > > > password="password" > > > > > > url="jdbc:mysql://localhost/test?useUnicode=true&characterEncoding=gbk" > > > /> > > > - > > > > > > And the is my action: > > > > > > - > > > Context ctx = new InitialContext(); > > > XADataSource xaDs = (XADataSource)ctx.lookup("java:comp/env/jdbc/myXADB"); > > > // Here get the null xaDs, Oops !! > > > - > > > > > > My environment is : > > > JDK 1.5 > > > Tomcat 5.5 > > > MySQL: 5.0.18-win32 > > > Connector/J 5.0 beta > > > > > > I have checked mysql-connector-java-5.0.0-beta changes. The 11-04-05 - > > > Version 5.0.0-beta > > > - XADataSource implemented (ported from 3.2 branch which won't be > > > released as a product). > > > Use "com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" as your datasource > > > class name in your application server to utilize XA transactions > > > in MySQL-5.0.10 and newer. > > > > > > So, what's the wrong ? Please help. Thanks. > > > > > > > > Wang Jun > > > > > >
Re: Using Apache 2.0 HTTP server with Geronimo 1.0
Hi, I've replied to a similar query here: http://www.ibm.com/developerworks/forums/dw_thread.jsp?message=13766589&cat=51&thread=98829&treeDisplayType=threadmode1&forum=541#13766589 It was for M5...*should* also work for v1.0. Let me know if it helps. /Bharath
Re: Tomcat MySQL XA support
--- lichtner <[EMAIL PROTECTED]>写道: > > Is it possible that the data source also has to be listed in your web.xml? > Yes, I have resource-ref defined in web.xml. But the XADataSource is null, why ? jdbc/myXADB javax.sql.XADataSource Container Shareable > On Thu, 9 Feb 2006, Jack Wang wrote: > > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > > > Jack Wang wrote: > > > > I can get connect from Resource configured in tomcat with > > > > type="javax.sql.DataSource". But > the > > > > project needs the XADataSource, so I configure the XADataSource in > > > > tomcat's server.xml > with > > > You need to use mysql-connector-java-5.0.0-beta's > > > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 server, > > > or the far less desirable XAPool for fake XA. > > > > > > > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > > > You need to use mysql-connector-java-5.0.0-beta's > > > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 server, > > > or the far less desirable XAPool for fake XA. > > > > > > > I have used mysql-connector-java-5.0.0-beta, but I still have the null > > XADataSource xaDs from > the > > java action. > > Here is the server.xml in tomcat: > > > > - > > > type="javax.sql.XADataSource" > > factory="com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory" > > driverClassName="com.mysql.jdbc.Driver" > > user="root" > > password="password" > > > > url="jdbc:mysql://localhost/test?useUnicode=true&characterEncoding=gbk" > > /> > > - > > > > And the is my action: > > > > - > > Context ctx = new InitialContext(); > > XADataSource xaDs = (XADataSource)ctx.lookup("java:comp/env/jdbc/myXADB"); > > // Here get the null xaDs, Oops !! > > - > > > > My environment is : > > JDK 1.5 > > Tomcat 5.5 > > MySQL: 5.0.18-win32 > > Connector/J 5.0 beta > > > > I have checked mysql-connector-java-5.0.0-beta changes. The 11-04-05 - > > Version 5.0.0-beta > > - XADataSource implemented (ported from 3.2 branch which won't be > > released as a product). > > Use "com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" as your datasource > > class name in your application server to utilize XA transactions > > in MySQL-5.0.10 and newer. > > > > So, what's the wrong ? Please help. Thanks. > > > > Wang Jun
Re: Tomcat MySQL XA support
Is it possible that the data source also has to be listed in your web.xml? On Thu, 9 Feb 2006, Jack Wang wrote: > > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > > Jack Wang wrote: > > > I can get connect from Resource configured in tomcat with > > > type="javax.sql.DataSource". But the > > > project needs the XADataSource, so I configure the XADataSource in > > > tomcat's server.xml with > > You need to use mysql-connector-java-5.0.0-beta's > > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 server, > > or the far less desirable XAPool for fake XA. > > > > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > > You need to use mysql-connector-java-5.0.0-beta's > > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 server, > > or the far less desirable XAPool for fake XA. > > > > I have used mysql-connector-java-5.0.0-beta, but I still have the null > XADataSource xaDs from the > java action. > Here is the server.xml in tomcat: > > - >type="javax.sql.XADataSource" > factory="com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory" > driverClassName="com.mysql.jdbc.Driver" > user="root" > password="password" > url="jdbc:mysql://localhost/test?useUnicode=true&characterEncoding=gbk" > /> > - > > And the is my action: > > - > Context ctx = new InitialContext(); > XADataSource xaDs = (XADataSource)ctx.lookup("java:comp/env/jdbc/myXADB"); > // Here get the null xaDs, Oops !! > - > > My environment is : > JDK 1.5 > Tomcat 5.5 > MySQL: 5.0.18-win32 > Connector/J 5.0 beta > > I have checked mysql-connector-java-5.0.0-beta changes. The 11-04-05 - > Version 5.0.0-beta > - XADataSource implemented (ported from 3.2 branch which won't be > released as a product). > Use "com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" as your datasource > class name in your application server to utilize XA transactions > in MySQL-5.0.10 and newer. > > So, what's the wrong ? Please help. Thanks. > > > > Wang Jun > > > > ___ > 无限容量雅虎相册,原图等大下载,超快速度,赶快抢注! > http://cn.photos.yahoo.com >
Re: XADataSource error in tomcat 5.5 with MySQL 5.1
--- lichtner <[EMAIL PROTECTED]>写道: > > Does this version of Connector/J actually support XA? A few months ago I > remember that it was in alpha, and it was broken. Does the latest release > of the driver support XA? --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > Jack Wang wrote: > > I can get connect from Resource configured in tomcat with > > type="javax.sql.DataSource". But the > > project needs the XADataSource, so I configure the XADataSource in tomcat's > > server.xml with > You need to use mysql-connector-java-5.0.0-beta's > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 server, > or the far less desirable XAPool for fake XA. > I have used mysql-connector-java-5.0.0-beta, but I still have the null XADataSource xaDs from the java action. Here is the server.xml in tomcat: - - And the is my action: - Context ctx = new InitialContext(); XADataSource xaDs = (XADataSource)ctx.lookup("java:comp/env/jdbc/myXADB"); // Here get the null xaDs, Oops !! - My environment is : JDK 1.5 Tomcat 5.5 MySQL: 5.0.18-win32 Connector/J 5.0 beta I have checked mysql-connector-java-5.0.0-beta changes. The 11-04-05 - Version 5.0.0-beta - XADataSource implemented (ported from 3.2 branch which won't be released as a product). Use "com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" as your datasource class name in your application server to utilize XA transactions in MySQL-5.0.10 and newer. So, what's the wrong ? Please help. Thanks. Wang Jun ___ 雅虎1G免费邮箱百分百防垃圾信 http://cn.mail.yahoo.com/
Re: Tomcat MySQL XA support
--- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > Jack Wang wrote: > > I can get connect from Resource configured in tomcat with > > type="javax.sql.DataSource". But the > > project needs the XADataSource, so I configure the XADataSource in tomcat's > > server.xml with > You need to use mysql-connector-java-5.0.0-beta's > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 server, > or the far less desirable XAPool for fake XA. > --- "Christopher G. Stach II" <[EMAIL PROTECTED]>写道: > You need to use mysql-connector-java-5.0.0-beta's > com.mysql.jdbc.jdbc2.optional.MysqlXADataSource with a MySQL 5.0 server, > or the far less desirable XAPool for fake XA. > I have used mysql-connector-java-5.0.0-beta, but I still have the null XADataSource xaDs from the java action. Here is the server.xml in tomcat: - - And the is my action: - Context ctx = new InitialContext(); XADataSource xaDs = (XADataSource)ctx.lookup("java:comp/env/jdbc/myXADB"); // Here get the null xaDs, Oops !! - My environment is : JDK 1.5 Tomcat 5.5 MySQL: 5.0.18-win32 Connector/J 5.0 beta I have checked mysql-connector-java-5.0.0-beta changes. The 11-04-05 - Version 5.0.0-beta - XADataSource implemented (ported from 3.2 branch which won't be released as a product). Use "com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" as your datasource class name in your application server to utilize XA transactions in MySQL-5.0.10 and newer. So, what's the wrong ? Please help. Thanks. Wang Jun ___ 无限容量雅虎相册,原图等大下载,超快速度,赶快抢注! http://cn.photos.yahoo.com
Re: remotely deploy application within eclipse
I used to "Export WAR" from Eclipse into $geronimo_home/deploy directory for "remote deployment". Just need access to folder (local or network). I think this should work for EAR, RAR and so on.Richter Lin Sun <[EMAIL PROTECTED]> escreveu: Hi there,I have tried the remote deployment via deploy.bat and it worked very well.Now I am interested in remotely deploying my application within eclipse. Is thissupported? It is not obvious to me how to do it. I tried to define a new server, thentyped my remote geronimo server's host name as server host name, selected geronimo as theserver type and hit next. However, the next screen asked me for application serverinstall directory which I don't know what to enter for a remote server. I don't thinkI can finish defining a new server if t he plugin cannot find the bin\server.jar file(finish button is greyed out).Thanks, Lin__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Acesso Grátis Internet rápida e grátis. Instale o discador agora!
Re: Using Apache 2.0 HTTP server with Geronimo 1.0
You can use mod_rewrite for bypass some or all apache request to geronimo. RegardsJuan2006/2/8, Joacim J <[EMAIL PROTECTED] >:Hi,I have installed Geronimo 1.0 on my Linux (Fedora Core 4) machine where I already have Apache 2.0 HTTP server.Now I want to connect them together and need some help.I have not found any good documentation for this.--RegardsJoacim -- Juan P. Ramón Garridomailto:[EMAIL PROTECTED]
Using Apache 2.0 HTTP server with Geronimo 1.0
Hi, I have installed Geronimo 1.0 on my Linux (Fedora Core 4) machine where I already have Apache 2.0 HTTP server. Now I want to connect them together and need some help. I have not found any good documentation for this. -- Regards Joacim
remotely deploy application within eclipse
Hi there, I have tried the remote deployment via deploy.bat and it worked very well. Now I am interested in remotely deploying my application within eclipse. Is this supported? It is not obvious to me how to do it. I tried to define a new server, then typed my remote geronimo server's host name as server host name, selected geronimo as the server type and hit next. However, the next screen asked me for application server install directory which I don't know what to enter for a remote server. I don't think I can finish defining a new server if the plugin cannot find the bin\server.jar file (finish button is greyed out). Thanks, Lin __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
problem to deploy an EJB Session and WAR
Hi, probably my question is very stupid and my english is badly. I'm sorry :-) (The best way to start a email ^_^). I have deployed an ejb Stateless in a ejb jar file. My client application is simply a servlet in a war file in the same Application Server. When deploy the two applications (the same problem when deploy a ear file) geronimo didn't report a problem. But the client throw an "NameNotFoundException" when try to use the ejb. Probably I make a mistake in the configuration file. We can see my error please. thanks Matteo Valdina The openejb-jar.xml file: http://www.openejb.org/xml/ns/openejb-jar-2.0"; xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.0"; xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0"; xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"; xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.0"; configId="ListCall"> ListCall ListCallHomeRemote File: ejb-jar.xml xmlns="http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd";> ListCall ListCall ejbeans.remote.ListCallHome ejbeans.remote.LC ejbeans.app.ListCall Stateless Bean File web.xml only a small part xmlns="http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> ... ejb/ListCall Session ejbeans.remote.ListCallHome ejbeans.remote.LC ... And geronimo-web.xml http://geronimo.apache.org/xml/ns/j2ee/web-1.0"; xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.0"; xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"; xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.0"; configId="Malquati"> /Malquati false ejb/ListCall geronimo.server:EJBModule=ListCall,J2EEApplication=null,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=ListCall jdbc/MyDataSource MySQL2
Re: MDB deployment problem
Nothing's jumping out at me. Can you post the results of jar -tf InboundCustListMdb.jar (the version where you put the classes in the JAR and the JAR in the EAR)? Also, you might try putting both the resource adapter RAR and the EJB JAR in the same EAR and then omitting the parentId in openejb-jar.xml and see if that changes things. Thanks, Aaron On 2/8/06, johnxmas <[EMAIL PROTECTED]> wrote: > When deploying an EAR containing an MDB, listening to an inbound Resource > Adapter, > I get the following exception > > org.apache.geronimo.common.DeploymentException: Unable to initialize > EJBContaine > r GBean: ejbNameInboundCustListMdb > at org.openejb.deployment.MdbBuilder.createBean(MdbBuilder.java:212) > ... > Caused by: java.lang.ClassNotFoundException: > com.scort.inbound.test.custlist.Ger > onimoInboundCustListMdb > at java.net.URLClassLoader$1.run(URLClassLoader.java:199) > > GeronimoInboundCustListMdb is the name of my MDB in the jar > InboundCustListMdb.jar > > If I supress this jar, just putting the classes in the EAR, the deployment > runs fine. > I've checked and cross-checked my descriptors but can't get the reason (If > this > is just a typo somewhere, sorry but I really don't see it :-D) > > > > Here are my deployment descriptors > > > > >xmlns="http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/application_1_4.xsd";> > > InboundCustListMdb > > > > > InboundCustListMdb.jar > > > > ___ > > > > http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"; > version="2.1"> > > > > InboundCustListMdb > > com.scort.inbound.test.custlist.GeronimoInboundCustListMdb > com.scort.inbound.jca.InboundListener > Container > > > > > id > > CUSTLIST > > > > port > > 23072 > > > > > > > > > > InboundCustListMdb > * > >NotSupported > > > > > > __ > > openejb-jar > xmlns="http://www.openejb.org/xml/ns/openejb-jar"; > xmlns:naming="http://geronimo.apache.org/xml/ns/naming"; > xmlns:security="http://geronimo.apache.org/xml/ns/security"; > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment"; > configId="InboundCustListMdb" parentId="ScortJcaAdapter15"> > > > InboundCustListMdb > >ScortJcaAdapter15 > > > > id > > CUSTLIST > > > id > > CUSTLIST > > > > > > > > > >
Re: Problems creating JMS Resrouce Group
Thanks a lot Aaron! that worked perfectly! I'm still hammering this all out so I'll hopefully be back with more fundamental questions!
MDB deployment problem
When deploying an EAR containing an MDB, listening to an inbound Resource Adapter, I get the following exception org.apache.geronimo.common.DeploymentException: Unable to initialize EJBContaine r GBean: ejbNameInboundCustListMdb at org.openejb.deployment.MdbBuilder.createBean(MdbBuilder.java:212) ... Caused by: java.lang.ClassNotFoundException: com.scort.inbound.test.custlist.Ger onimoInboundCustListMdb at java.net.URLClassLoader$1.run(URLClassLoader.java:199) GeronimoInboundCustListMdb is the name of my MDB in the jar InboundCustListMdb.jar If I supress this jar, just putting the classes in the EAR, the deployment runs fine. I've checked and cross-checked my descriptors but can't get the reason (If this is just a typo somewhere, sorry but I really don't see it :-D) Here are my deployment descriptors http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd";> InboundCustListMdb InboundCustListMdb.jar ___ http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"; version="2.1"> InboundCustListMdb com.scort.inbound.test.custlist.GeronimoInboundCustListMdb com.scort.inbound.jca.InboundListener Container id CUSTLIST port 23072 InboundCustListMdb * NotSupported __ openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar"; xmlns:naming="http://geronimo.apache.org/xml/ns/naming"; xmlns:security="http://geronimo.apache.org/xml/ns/security"; xmlns:sys="http://geronimo.apache.org/xml/ns/deployment"; configId="InboundCustListMdb" parentId="ScortJcaAdapter15"> InboundCustListMdb ScortJcaAdapter15 id CUSTLIST id CUSTLIST
Re: XADataSource error in tomcat 5.5 with MySQL 5.1
Does this version of Connector/J actually support XA? A few months ago I remember that it was in alpha, and it was broken. Does the latest release of the driver support XA? On Wed, 8 Feb 2006, Jack Wang wrote: > I can get connect from Resource configured in tomcat with > type="javax.sql.DataSource". But the > project needs the XADataSource, so I configure the XADataSource in tomcat's > server.xml with > following: > > - > >type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource" > factory="com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory" > driverClassName="com.mysql.jdbc.Driver" > databaseName="test" > serverName="192.168.1.2" > explicitUrl="true" > port="3306" > user="root" > password="123456" > > url="jdbc:mysql://192.168.1.2/test?useUnicode=true&characterEncoding=gbk" > /> > > or > >factory="org.objectweb.jndi.DataSourceFactory" > driverClassName="com.mysql.jdbc.Driver" > username="root" > password="123456" > url="jdbc:mysql://192.168.1.2/test" > /> > - > > But both can't work. I only get a null xaDs, so can not get the XAConnection. > The java code in the > web application to get the XADataSource is: > > - > Context ctx = new InitialContext(); > XADataSource xaDs = (XADataSource)ctx.lookup("java:comp/env/jdbc/myXADB"); > // Here get the null xaDs, Oops !! > - > > The error message is: > > - > - Could not execute action > java.lang.ClassCastException: > com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource > at > example.helloWorld.HelloWorldAnotherAction.execute(HelloWorldAnotherAction.java:104) > .. > - > > My environment is : > JDK 1.5 > Tomcat 5.5 > MySQL 5.1 > Connector/J 5.0 > > Please ask where is the wrong ? Thanks. > > > > Wang Jun > > > Wang Jun > > > > ___ > > 情人节,用雅虎邮箱送玫瑰! > >
XADataSource error in tomcat 5.5 with MySQL 5.1
I can get connect from Resource configured in tomcat with type="javax.sql.DataSource". But the project needs the XADataSource, so I configure the XADataSource in tomcat's server.xml with following: - or - But both can't work. I only get a null xaDs, so can not get the XAConnection. The java code in the web application to get the XADataSource is: - Context ctx = new InitialContext(); XADataSource xaDs = (XADataSource)ctx.lookup("java:comp/env/jdbc/myXADB"); // Here get the null xaDs, Oops !! - The error message is: - - Could not execute action java.lang.ClassCastException: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource at example.helloWorld.HelloWorldAnotherAction.execute(HelloWorldAnotherAction.java:104) .. - My environment is : JDK 1.5 Tomcat 5.5 MySQL 5.1 Connector/J 5.0 Please ask where is the wrong ? Thanks. Wang Jun Wang Jun ___ 情人节,用雅虎邮箱送玫瑰!