Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Exception using Websphere 7.0.0.23 + EclipseLink 2.2.1

Hi Gibi,

  This reply is fine.

eclipselink.weaving will default to true. The main purpose of that property is to disable weaving.

-Tom

On 03/10/2012 11:51 AM, Gibi Luckose wrote:
Hi Tom,

When I reply to the mail, I have added the original subject and the history of
all the messages in this context. Is this the right way to reply?

Thanks a lot. The unwrap has worked.

Another query in websphere context, we are using static weaving when building
our app. Do we need to have the
<property name="eclipselink.weaving" value="true"/> in persistence.xml. Is this
to enable dynamic weaving?

Regards
Gibi

Message: 5
Date: Tue, 02 Oct 2012 11:50:20 -0400
From: Tom Ware <tom.ware@xxxxxxxxxx <mailto:tom.ware@xxxxxxxxxx>>
To: eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
Subject: Re: [eclipselink-users] eclipselink-users Digest, Vol 62,
         Issue 1
Message-ID: <506B0D3C.9090704@xxxxxxxxxx <mailto:506B0D3C.9090704@xxxxxxxxxx>>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Trying using the JPA entityManager.unwrap(Class) API.

If that does not help, there are some methods in our
org.eclipse.persistence.jpa.JpaHelper class that may help.

-Tom

On 02/10/2012 11:44 AM, Gibi Luckose wrote:
 > Hi Tom,
 >
 > Thanks for the prompt reply.
 >
 > I have found the root cause of the issue but need your advise/recommendation on
 > how to resolve this.
 >
 > We have the EntityManager injection working on the EJB and inorder to try to
 > call a storedproc we have been
 > doing the following steps before injection was working.
 >
 > final Session session = ((EntityManagerImpl) em).getActiveSession();
 > session.executeQuery(query, args);
 >
 > But now since the injected entitymanager is of type
 > com.ibm.ws.jpa.management.JPATxEntityManager
 > we are getting java.lang.ClassCastException.
 >
 > In this scenario what is the best approach to invoke a storedrpoc?
 >
 > Regards
 > Gibi
 >
 > On 1 October 2012 17:00, <eclipselink-users-request@xxxxxxxxxxx
<mailto:eclipselink-users-request@xxxxxxxxxxx>
 > <mailto:eclipselink-users-request@xxxxxxxxxxx
<mailto:eclipselink-users-request@xxxxxxxxxxx>>> wrote:
 >
 >     Send eclipselink-users mailing list submissions to
 > eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
<mailto:eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>>
 >
 >     To subscribe or unsubscribe via the World Wide Web, visit
 > https://dev.eclipse.org/mailman/listinfo/eclipselink-users
 >     or, via email, send a message with subject or body 'help' to
 > eclipselink-users-request@xxxxxxxxxxx
<mailto:eclipselink-users-request@xxxxxxxxxxx>
 >     <mailto:eclipselink-users-request@xxxxxxxxxxx
<mailto:eclipselink-users-request@xxxxxxxxxxx>>
 >
 >     You can reach the person managing the list at
 > eclipselink-users-owner@xxxxxxxxxxx
<mailto:eclipselink-users-owner@xxxxxxxxxxx>
<mailto:eclipselink-users-owner@xxxxxxxxxxx
<mailto:eclipselink-users-owner@xxxxxxxxxxx>>
 >
 >     When replying, please edit your Subject line so it is more specific
 >     than "Re: Contents of eclipselink-users digest..."
 >
 >
 >     Today's Topics:
 >
 >         1. Exception using Websphere 7.0.0.23 +      EclipseLink 2.2.1
 >            (Gibi Luckose)
 >         2. Re: Exception using Websphere 7.0.0.23 + EclipseLink 2.2.1
 >            (Tom Ware)
 >
 >
 >     ----------------------------------------------------------------------
 >
 >     Message: 1
 >     Date: Mon, 1 Oct 2012 12:38:23 +0100
 >     From: Gibi Luckose <gibi.luckose@xxxxxxxxxxxxxxxx
<mailto:gibi.luckose@xxxxxxxxxxxxxxxx>
 >     <mailto:gibi.luckose@xxxxxxxxxxxxxxxx
<mailto:gibi.luckose@xxxxxxxxxxxxxxxx>>>
 >     To: eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
<mailto:eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>>
 >     Subject: [eclipselink-users] Exception using Websphere 7.0.0.23 +
 >              EclipseLink 2.2.1
 >     Message-ID:
 >     <CAAKGwNMOCGR1qCoLkNMdASFxP_x4H=G2dwW6W6h=bQQqheXyLA@xxxxxxxxxxxxxx
<mailto:bQQqheXyLA@xxxxxxxxxxxxxx>
 >     <mailto:bQQqheXyLA@xxxxxxxxxxxxxx <mailto:bQQqheXyLA@xxxxxxxxxxxxxx>>>
 >     Content-Type: text/plain; charset="iso-8859-1"
 >
 >     Hi,
 >
 >     I am using Websphere 7.0.0.23 with EclipseLink 2.2.1, getting the following
 >     exception
 >
 >     java.lang.ClassCastException: com.ibm.ws.jpa.management.JPATxEntityManager
 >     incompatible with org.eclipse.persistence.internal.jpa.EntityManagerImpl
 >
 >
 >     I have tried setting the property
 >
 >     eclipselink.jpql.parser=org.eclipse.persistence.queries.ANTLRQueryBuilder.
 >     but it has not helped.
 >
 >     Also have tried using 2.3.3, but did not work.
 >
 >     Regards
 >     Gibi Luckose
 >     -------------- next part --------------
 >     An HTML attachment was scrubbed...
 >     URL:
 >
<https://dev.eclipse.org/mailman/private/eclipselink-users/attachments/20121001/1ec8ecac/attachment.html>
 >
 >     ------------------------------
 >
 >     Message: 2
 >     Date: Mon, 01 Oct 2012 08:10:03 -0400
 >     From: Tom Ware <tom.ware@xxxxxxxxxx <mailto:tom.ware@xxxxxxxxxx>
<mailto:tom.ware@xxxxxxxxxx <mailto:tom.ware@xxxxxxxxxx>>>
 >     To: eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
<mailto:eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>>
 >     Subject: Re: [eclipselink-users] Exception using Websphere 7.0.0.23 +
 >              EclipseLink 2.2.1
 >     Message-ID: <5069881B.9090103@xxxxxxxxxx
<mailto:5069881B.9090103@xxxxxxxxxx> <mailto:5069881B.9090103@xxxxxxxxxx
<mailto:5069881B.9090103@xxxxxxxxxx>>>
 >     Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 >
 >     Hi Gibi,
 >
 >         What is the full stack-trace of the exception?
 >
 >     -Tom
 >
 >     On 01/10/2012 7:38 AM, Gibi Luckose wrote:
 >      > Hi,
 >      >
 >      > I am using Websphere 7.0.0.23 with EclipseLink 2.2.1, getting the
following
 >      > exception
 >      >
 >      > java.lang.ClassCastException: com.ibm.ws.jpa.management.JPATxEntityManager
 >      > incompatible with org.eclipse.persistence.internal.jpa.EntityManagerImpl
 >      >
 >      >
 >      > I have tried setting the property
 >      >
 >      >
 >
eclipselink.jpql.parser=org.eclipse.persistence.queries.ANTLRQueryBuilder.but it
 >     has not helped.
 >      >
 >      >
 >      > Also have tried using 2.3.3, but did not work.
 >      >
 >      > Regards
 >      > Gibi Luckose




_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



Back to the top