Re: Geronimo 2.0, OpenJPA and DB2
Thanks Dave, You were absolutely right - removing the Non JTA Data source fixed the problem, and when I upgraded my Geronimo 2.0 server to the latest build, the deployer did not like the way that I had specified the , but using the complex type format fixed this problem also. However, the latest version of Geronimo (I'm actually using WASCE 2.0 based on geronimo-2.0_Rev562004 openejb-3.0_Rev561991 and openjpa-1.0.0_Rev561970) now gives the following error, which I have researched a fair bit, and suspect that it may be a Geronimo bug, is this the case? or am I missing something here the error is as follows: Error: Unable to distribute lunchinator-ear-2.0.ear: Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): path=../APP-INF/lib/commons-beanutils-1.7.0.jar, resolved to targetURI=../APP-INF/lib/commons-beanutils-1.7.0.jar looking at: lunchinator-web-2.0.warcurrent classpath: [WEB-INF/lib/ajax4jsf-1.1.1.jar, WEB-INF/lib/jsf-facelets-1.1.11.jar, WEB-INF/lib/mysql-connector-java-5.0.5-bin.jar, WEB-INF/lib/oscache-2.3.2.jar, WEB-INF/lib/richfaces-3.0.1.jar, WEB-INF/classes/, ../../APP-INF/lib/commons-beanutils-1.7.0.jar] ignoring modules: [lunchinator-web-2.0.war, lunchinator-domain-2.0.jar] org.apache.geronimo.common.DeploymentException: Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): path=../APP-INF/lib/commons-beanutils-1.7.0.jar, resolved to targetURI=../APP-INF/lib/commons-beanutils-1.7.0.jar looking at: lunchinator-web-2.0.warcurrent classpath: [WEB-INF/lib/ajax4jsf-1.1.1.jar, WEB-INF/lib/jsf-facelets-1.1.11.jar, WEB-INF/lib/mysql-connector-java-5.0.5-bin.jar, WEB-INF/lib/oscache-2.3.2.jar, WEB-INF/lib/richfaces-3.0.1.jar, WEB-INF/classes/, ../../APP-INF/lib/commons-beanutils-1.7.0.jar] ignoring modules: [lunchinator-web-2.0.war, lunchinator-domain-2.0.jar] at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath(DeploymentContext.java:367) at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath(DeploymentContext.java:286) at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicInitContext(AbstractWebModuleBuilder.java:332) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext(TomcatModuleBuilder.java:290) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$5ba4e66e.initContext() at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContext(SwitchingModuleBuilder.java:159) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$5ba4e66e.initContext() at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:576) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvo
Mysql XA data source
Hi all, I am new to Geronimo. I am trying to create a XA data source using Mysql driver version 5.0.6. I couldn't get it work using Database pool tool in the console. Is it possible to create it using plan? From the documentation I can find the plan to create XA JMS resource but for JDBC there is only example which supports local transaction. Is there any example plan for this task? I have read the following threads:- http://www.nabble.com/Re%3A-Tomcat-MySQL-XA-support-tf1087440s134.html#a2837414 http://www.nabble.com/TranQL-resource-adapter-crapping-out-tf635065s134.html#a1691116 http://www.nabble.com/XA-support-tf635749s134.html#a1691978 but I can't get on how to deploy a XA resource for MysqlXADataSource, please help. Thank you in advance for any help or hint. Thanks. Regards, Chee Seng -- View this message in context: http://www.nabble.com/Mysql-XA-data-source-tf4206923s134.html#a11967169 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Credential Store
xmlns="http://geronimo.apache.org/xml/ns/ deployment-1.2">MyCredentialStore should work... see the testsuite/enterprise-testsuite/sec-tests for an example I got to work when I made this change. I tried to - eliminate one useless layer of xml nesting - use "-ref" so we can let you directly include the credential-store xml in the future and let the builder figure out how to define the credential store gbean for you (the proposed credential-store element is not yet implemented) thanks david jencks On Aug 2, 2007, at 8:07 AM, Aman Nanner/MxI Technologies wrote: Hi, referring to a credential store from within my geronimo-application.xml used to be done like this: xmlns="http://geronimo.apache.org/xml/ns/ deployment-1.2">MyCredentialStore With the final schema changes, the element got changed to , and now it seems like the contents of this element are supposed to refer to a repository artifact. My Credential Store GBean is also defined within my geronimo-application.xml, so I'm not sure how it should be self-referenced now. Any advice? __ * This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose the message or any information contained in the message. If you have received this message in error, please advise the sender by reply e- mail , and delete the message, or call (collect) 001 613 747 4698. *
Credential Store
Hi, referring to a credential store from within my geronimo-application.xml used to be done like this: http://geronimo.apache.org/xml/ns/deployment-1.2";>MyCredentialStore With the final schema changes, the element got changed to , and now it seems like the contents of this element are supposed to refer to a repository artifact. My Credential Store GBean is also defined within my geronimo-application.xml, so I'm not sure how it should be self-referenced now. Any advice? __ * This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose the message or any information contained in the message. If you have received this message in error, please advise the sender by reply e-mail , and delete the message, or call (collect) 001 613 747 4698. *
Re: Geronimo 2.0, OpenJPA and DB2
I think most likely the problem is that you have the same datasource for jta-datasource and non-jta-datasource. I suggest you create another datasource with no-transaction support for the non-jta- datasource. db2 might work OK without the non-jta-datasource, I haven't tried, but I can't get derby to work at all for schema creation and sequence values with only a jta-datasource Also note that when you update your g version you will find that external-path is now a pattern rather than a string representation of an artifactId, i.e. it will look more like http://geronimo.apache.org/xml/ns/ deployment-1.2"> org.tranql tranql-connector-db2-embed-xa 1.3 rar (you can leave out the version) hope this helps david jencks On Aug 1, 2007, at 6:11 PM, Adam OGorman wrote: I am using the following geronimo-application.xml to deploy an EAR file. The EAR deploys and starts OK, but the datasource that it creates is called "jdbc/LunchinatorDataSource" i.e. this is literally the string that shows up in the admin console, not "LunchinatorDataSource". What is more, the deployment does not populate the database with the relevant tables, using openJPA. Are these two things related? Or should I be looking elsewhere to get openJPA working correctly? I am using Geronimo 2.0 and DB2 v9.1 on Windows XP Thanks in advance! geronimo-application.xml: http://geronimo.apache.org/xml/ns/j2ee/ application-1.2"> com.maketechnologies.applications lunchinator-ear 2.0 ear org.apache.geronimo.configs openjpa car org.apache.geronimo.configs j2ee-corba-yoko car org.apache.geronimo.configs system-database car com.ibm.db2 db2jcc 9.1 jar com.ibm.db2 db2jcc_license_cu 9.1 jar lunchinator-web-2.0.war http://geronimo.apache.org/xml/ns/j2ee/ web-1.2"> /lunchinator lunchinator/EntityManagerFactorypersistence-unit-ref-name> LunchinatorPUname> lunchinator-domain-2.0.jar http://openejb.apache.org/xml/ns/openejb-jar-2.2";> HelloWorld http://java.sun.com/xml/ns/ persistence" version="1.0"> org.apache.openjpa.persistence.PersistenceProviderImplprovider> jdbc/LunchinatorDataSource jdbc/LunchinatorDataSource name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/> value="File=C:\temp\db2openjpa.log, Runtime=TRACE, Tool=INFO, SQL=TRACE"/> LunchinatorDataSource org.tranql/tranql-connector-db2-embed-xa/1.3/rarexternal-path> http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";> javax.sql.DataSourceconnectionfactory-interface> jdbc/LunchinatorDataSource db2admin db2admin localhost 5 testdb db2trace.log 10 0 Persistence.xml: http://java.sun.com/xml/ns/ persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";> jdbc/LunchinatorDataSource jdbc/LunchinatorDataSource com.maketechnologies.lunchinator.domain.BaseEntity com.maketechnologies.lunchinator.domain.Comment com.maketechnologies.lunchinator.domain.Restaurant com.maketechnologies.lunchinator.domain.Vote trueclasses> -- View this message in context: http://www.nabble.com/Geronimo-2.0%2C- OpenJPA-and-DB2-tf4203557s134.html#a11956746 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.