« Return to Thread: Eclipselink with Spring 2.5.6 and Weblogic 10.3

Re: Eclipselink with Spring 2.5.6 and Weblogic 10.3

by James Sutherland :: Rate this Message:

Reply to Author | View in Thread

Could you include the full exception stack trace.

Also try enabling logging to finest and see was is logged ("eclipselink.logging.level"="finest" in persistence.xml).  Maybe also try deploying your persistence unit outside of Spring to see if it is a Spring issue.


Lori A. Dornfeld wrote:
Hello,

I'm having some issues trying to get eclipselink to work with my
application...  I saw this e-mail address on a help-site, so I'm hoping
this will be an okay place to start... Whenever I attempt to run an
web-app, I get the following error:

Could not obtain JPA EntityManager; nested exception is
javax.persistence.PersistenceException: Exception [EclipseLink-28019]
(Eclipse Persistence Services - 1.0.2 (Build 20081024)):
org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Deployment of PersistenceUnit
[opsPersistenceUnit] failed.
Internal Exception: java.lang.NullPointerException; nested exception is
org.springframework.dao.DataAccessResourceFailureException: Could not
obtain JPA EntityManager; nested exception is
javax.persistence.PersistenceException: Exception [EclipseLink-28019]
(Eclipse Persistence Services - 1.0.2 (Build 20081024)):
org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Deployment of PersistenceUnit
[opsPersistenceUnit] failed.
Internal Exception: java.lang.NullPointerException>

I figure it's something with either my application-context.xml OR my
persistence.xml, I just don't know what... Any ideas???

Application-Context.xml:
    <bean id="dataSource"
class="org.springframework.jdbc.datasource.TransactionAwareDataSourcePro
xy">
    <constructor-arg>
    <jee:jndi-lookup jndi-name="myDataSource"/>
    </constructor-arg>
    </bean>
             
        <jee:jndi-lookup id="entityManagerFactory"
jndi-name="java:comp/env/jpa/bisonToolsPersistenceUnit"/>
       
        <bean id="transactionManager"
class="org.springframework.transaction.jta.JtaTransactionManager" />
   
    <bean id="entityManagerManager"
class="com.assisted.common.utils.EntityManagerManager">
        <property name="entityManagerFactory"
ref="entityManagerFactory"/>
    </bean>
        <bean id="jpaDialect"
       
class="org.springframework.orm.jpa.vendor.EclipseLinkJpaDialect" />
        <bean id="jpaVendorAdapter"
       
class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter">
                <property name="showSql" value="true" />
                <property name="databasePlatform"
       
value="org.eclipse.persistence.platform.database.oracle.OraclePlatform"
/>
        </bean>

Persistence.xml
<persistence xmlns="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"
    version="1.0">
    <persistence-unit name="opsPersistenceUnit" transaction-type="JTA">
 
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <jta-data-source>myDataSource</jta-data-source>
        <mapping-file>META-INF/orm.xml</mapping-file>
        <exclude-unlisted-classes>false</exclude-unlisted-classes>
       
        <properties>
            <property name="eclipselink.weaving" value="static"/>
            <property name="eclipselink.cache.shared.default"
value="false"/>
            <property name="eclipselink.target-server"
value="com.assisted.common.jpa.toplink.MultiTransactionController"/>
            <property name="eclipselink.cache.shared.AddressType"
value="true"/>
            <property name="eclipselink.cache.shared.AgreementCategory"
value="true"/>
            <property name="eclipselink.cache.shared.AgreementStatus"
value="true"/>
            <property name="eclipselink.cache.shared.AgreementType"
value="true"/>
            <property name="eclipselink.cache.shared.Agency"
value="true"/>
            <property name="eclipselink.cache.shared.AgencyType"
value="true"/>
            <property name="eclipselink.cache.shared.BrandName"
value="true"/>
            <property name="eclipselink.cache.shared.BuildingManagement"
value="true"/>
            <property name="eclipselink.cache.shared.BuildingOrigin"
value="true"/>
            <property name="eclipselink.cache.shared.BuildingOwnership"
value="true"/>
            <property name="eclipselink.cache.shared.BuildingType"
value="true"/>
            <property name="eclipselink.cache.shared.Company"
value="true"/>
            <property name="eclipselink.cache.shared.CompanyAgreement"
value="true"/>
            <property
name="eclipselink.cache.shared.ConstructionMaterial" value="true"/>
            <property name="eclipselink.cache.shared.ContactRelType"
value="true"/>
            <property name="eclipselink.cache.shared.ContactType"
value="true"/>
            <property name="eclipselink.cache.shared.Country"
value="true"/>
            <property name="eclipselink.cache.shared.EconomicScale"
value="true"/>
            <property name="eclipselink.cache.shared.ItemType"
value="true"/>
            <property name="eclipselink.cache.shared.LendingStatus"
value="true"/>
            <property name="eclipselink.cache.shared.LiabilityType"
value="true"/>
            <property name="eclipselink.cache.shared.LicensingCategory"
value="true"/>
            <property name="eclipselink.cache.shared.MarketingMethod"
value="true"/>
            <property name="eclipselink.cache.shared.NameSuffix"
value="true"/>
            <property name="eclipselink.cache.shared.NameTitle"
value="true"/>
            <property name="eclipselink.cache.shared.ObjectType"
value="true"/>
            <property name="eclipselink.cache.shared.OpsApplication"
value="true"/>
            <property name="eclipselink.cache.shared.OrgGroupType"
value="true"/>
            <property name="eclipselink.cache.shared.PsaContentVersion"
value="true"/>
            <property name="eclipselink.cache.shared.PsaQuestion"
value="true"/>
            <property name="eclipselink.cache.shared.PsaQuestionType"
value="true"/>
            <property name="eclipselink.cache.shared.PsaSection"
value="true"/>
            <property name="eclipselink.cache.shared.PsaSectionPoints"
value="true"/>
            <property name="eclipselink.cache.shared.PsaTermType"
value="true"/>
            <property name="eclipselink.cache.shared.PsaType"
value="true"/>
            <property name="eclipselink.cache.shared.PsaVersion"
value="true"/>
            <property
name="eclipselink.cache.shared.PspAddtlPersonalContent" value="true"/>
            <property name="eclipselink.cache.shared.PspContent"
value="true"/>
            <property name="eclipselink.cache.shared.PspListItem"
value="true"/>
            <property name="eclipselink.cache.shared.PspQuestion"
value="true"/>
            <property name="eclipselink.cache.shared.PspQuestionContent"
value="true"/>
            <property name="eclipselink.cache.shared.PspQuestionOption"
value="true"/>
            <property name="eclipselink.cache.shared.PspQuestionType"
value="true"/>
            <property name="eclipselink.cache.shared.PssCareLink"
value="true"/>
            <property
name="eclipselink.cache.shared.PssCareLinkQuestion" value="true"/>
            <property name="eclipselink.cache.shared.Reason"
value="true"/>
            <property name="eclipselink.cache.shared.ReasonGroup"
value="true"/>
            <property name="eclipselink.cache.shared.RelationshipType"
value="true"/>
            <property name="eclipselink.cache.shared.ResidentStayType"
value="true"/>
            <property name="eclipselink.cache.shared.SmsAgeRange"
value="true"/>
            <property name="eclipselink.cache.shared.StateProv"
value="true"/>
            <property name="eclipselink.cache.shared.Status"
value="true"/>
            <property name="eclipselink.cache.shared.UnitOfMeasure"
value="true"/>
            <property name="eclipselink.cache.shared.UnitStyle"
value="true"/>
            <property name="eclipselink.cache.shared.Vendor"
value="true"/>
            <property name="eclipselink.cache.shared.VendorType"
value="true"/>
        </properties>
    </persistence-unit>
</persistence>
Any help is REALLY appreciated, I'm truly at a loss as I'm fairly new to
this.

Thank you,



Lori
Programmer Analyst II



-----------------------------------------
This email may contain confidential protected health information
and/or attorney privileged information. If received in error, see
our Privacy Statement at
http://www.brookdaleliving.com/privacy-policy.aspx

 « Return to Thread: Eclipselink with Spring 2.5.6 and Weblogic 10.3