RE: Using latest OpenJPA in WebLogic 10
> -Original Message- > From: Ravi Palacherla [mailto:ravi.palache...@oracle.com] > Sent: Tuesday, December 01, 2009 7:00 PM > To: users@openjpa.apache.org > Subject: RE: Using latest OpenJPA in WebLogic 10 > > Hi David, > > You can use Filtering Classloader that weblogic server supports. Yes, using the "prefer-application-packages" element in the weblogic-application.xml file. I'm familiar with that. The problem is, I know that this doesn't work 100% of the time. Has anyone successfully used this with OpenJPA to avoid using the one provided by WebLogic? > -Original Message- > From: KARR, DAVID (ATTCINW) [mailto:dk0...@att.com] > Sent: Tuesday, December 01, 2009 6:41 PM > To: users@openjpa.apache.org > Subject: Using latest OpenJPA in WebLogic 10 > > I'm looking at using the latest GA release of OpenJPA, v1.2.1, on > WebLogic 10 (not 10.3), in a webapp, not as an ejb-jar or EAR. > Apparently WebLogic 10 already includes a version of OpenJPA, but > certainly an older version. Will I have any trouble using the latest > OpenJPA just in my webapp? Is there something I need to do to prevent > conflicts? I'm familiar with "prefer-web-inf-classes", but I'm not > sure > whether that will help.
RE: Using latest OpenJPA in WebLogic 10
Hi David, You can use Filtering Classloader that weblogic server supports. The following link will give more information on this http://download.oracle.com/docs/cd/E12839_01/web./e13706/classloading.htm#WLPRG313 Regards, Ravi. -Original Message- From: KARR, DAVID (ATTCINW) [mailto:dk0...@att.com] Sent: Tuesday, December 01, 2009 6:41 PM To: users@openjpa.apache.org Subject: Using latest OpenJPA in WebLogic 10 I'm looking at using the latest GA release of OpenJPA, v1.2.1, on WebLogic 10 (not 10.3), in a webapp, not as an ejb-jar or EAR. Apparently WebLogic 10 already includes a version of OpenJPA, but certainly an older version. Will I have any trouble using the latest OpenJPA just in my webapp? Is there something I need to do to prevent conflicts? I'm familiar with "prefer-web-inf-classes", but I'm not sure whether that will help.
Using latest OpenJPA in WebLogic 10
I'm looking at using the latest GA release of OpenJPA, v1.2.1, on WebLogic 10 (not 10.3), in a webapp, not as an ejb-jar or EAR. Apparently WebLogic 10 already includes a version of OpenJPA, but certainly an older version. Will I have any trouble using the latest OpenJPA just in my webapp? Is there something I need to do to prevent conflicts? I'm familiar with "prefer-web-inf-classes", but I'm not sure whether that will help.
Re: openjpa-maven-plugin snapshot
ljnelson on 01/12/09 20:47, wrote: On Tue, Dec 1, 2009 at 1:48 PM, Michael Dick [via OpenJPA] < ml-node+4095467-513228...@n2.nabble.com wrote: I publish the snapshots to the m2-snapshot repository on people.apache.orgfairly regularly. You can find 1.1.1-SNAPSHOT at http://people.apache.org/repo/m2-snapshot-repository/org/apache/openjpa/openjpa/1.1.1-SNAPSHOT/ (Not part of this conversation, but is that for the OpenJPA Maven plugin, or just OpenJPA?) Looks like OpenJPA itself. I should have mentioned the openjpa-maven-plugin in the text as well as the title. Interesting to know about the repository for Apache snapshots though. Regards Adam
Re: openjpa-maven-plugin snapshot
On Tue, Dec 1, 2009 at 1:48 PM, Michael Dick [via OpenJPA] < ml-node+4095467-513228...@n2.nabble.com > wrote: > I publish the snapshots to the m2-snapshot repository on > people.apache.orgfairly regularly. You can find 1.1.1-SNAPSHOT at > > http://people.apache.org/repo/m2-snapshot-repository/org/apache/openjpa/openjpa/1.1.1-SNAPSHOT/ > (Not part of this conversation, but is that for the OpenJPA Maven plugin, or just OpenJPA?) Best, Laird -- View this message in context: http://n2.nabble.com/openjpa-maven-plugin-snapshot-tp4095234p4096196.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: openjpa-maven-plugin snapshot
Hi Adam, I publish the snapshots to the m2-snapshot repository on people.apache.orgfairly regularly. You can find 1.1.1-SNAPSHOT at http://people.apache.org/repo/m2-snapshot-repository/org/apache/openjpa/openjpa/1.1.1-SNAPSHOT/ Will this work for you? -mike On Tue, Dec 1, 2009 at 12:10 PM, Adam Hardy wrote: > Hi > > I can't find any snapshot repository that has 1.1-SNAPSHOT available. Is > there no publicly available snapshot or product of some CI build? > > Thanks > Adam > > >
openjpa-maven-plugin snapshot
Hi I can't find any snapshot repository that has 1.1-SNAPSHOT available. Is there no publicly available snapshot or product of some CI build? Thanks Adam
Open JPA generates incorrect Union All for Date and Boolean Datatype
Hi, I have an EJB3.0 application deployed on Weblogic 10.3 and Oracle 10g DB. I have an entity Typed which has Date and Boolean datatypes. em.persist is sucessful. But whereever there is em.find() on any entity in this application , I have observed that open JPA tries to get Union of all entities. This may be because its first time , But it fails with exception "[BEA][Oracle JDBC Driver][Oracle]ORA-01790:expression must have same datatype as corresponding expression" The SQL generated is union all of all entities in the application . For boolean FLAG_F , MOMENT_F wrong sql is generated. It should have to_date function for date. I have used DATE and boolean in Entity class. SELECT 0, t0.ID, t0.version, t0.NAME_F, '', 0, NULL, '', 0, 0, '1970-01-01', '', 0.0 FROM AddOn_T t0 WHERE t0.ID = ? UNION ALL SELECT 1, t0.ID, t0.version, '', '', t0.COUNTER_F, t0.DATA_F, t0.ENUMED1_F, t0.ENUMED2_F, t0.FLAG_F, t0.MOMENT_F, t0.NAME_F, t0.VALUE_F FROM TYPED_T t0 WHERE t0.ID = ? [params=(String) 30, (String) 30]} [code=1790, state=HY000] I guess openJPA fails to add to_date function for DATE and surrounding chars for boolean. Is this a bug or some settings available. Why is it trying to get union all even for em.find(... ) ? Thanks in advance.. - H -- View this message in context: http://n2.nabble.com/Open-JPA-generates-incorrect-Union-All-for-Date-and-Boolean-Datatype-tp4093559p4093559.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: Struts 2x + OpenJPA 2.0 M3 + ( Tomcat or Glassfish )
After further review, using Glassfish 2.1.1 I received this error message in the server log: Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.apache.openjpa.persistence.validation.ValidationUtils.setupValidation(Lorg/apache/openjpa/conf/OpenJPAConfiguration;)Z" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/apache/openjpa/persistence/PersistenceProviderImpl, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for resolved class, org/apache/openjpa/persistence/validation/ValidationUtils, have different Class objects for the type org/apache/openjpa/conf/OpenJPAConfiguration used in the signature So it appears to be the WebappClassLoader and the AppClassLoader are both loading the OpenJPAConfiguration from the same JAR file, causing the error when the class is trying to be resolved in this particular method.. seth.jackson wrote: > > It appears something was modified in OpenJPA 2.0 M3 from M2 that causes a > LinkageError. > > In my current environment, I've tested both Glassfish and Tomcat using M2 > and M3. M2 runs without problems, but M3 throws a linkage error as > follows: > > Caused by: java.lang.LinkageError: loader constraint violation: loader > (instance of sun/misc/Launcher$AppClassLoader) previously initiated > loading for a different type with name > "org/apache/openjpa/conf/OpenJPAConfiguration" > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:621) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$000(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > at > org.apache.openjpa.persistence.validation.ValidationUtils.setupValidation(ValidationUtils.java:53) > at > org.apache.openjpa.persistence.PersistenceProviderImpl.loadValidator(PersistenceProviderImpl.java:290) > at > org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:97) > at > org.apache.openjpa.persistence.OpenJPAPersistence.createEntityManagerFactory(OpenJPAPersistence.java:128) > at > org.apache.openjpa.persistence.OpenJPAPersistence.createEntityManagerFactory(OpenJPAPersistence.java:111) > at test_test.user.UserAction.execute(UserAction.java:39) > > > I've already confirmed that the OpenJPA classes in question do NOT exist > in any other JARs in the path. > > ValidationUtils.setupValidation(ValidationUtils.java:53) calls the > OpenJPAConfiguration.getConfigurationLog(). The object being referenced is > JDBCConfigurationImpl, which in other classes retrieves the log reference > perfectly fine, before it gets to the offending line. > -- View this message in context: http://n2.nabble.com/Struts-2x-OpenJPA-2-0-M3-Tomcat-or-Glassfish-tp4087312p4093228.html Sent from the OpenJPA Users mailing list archive at Nabble.com.