Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Weblogic 10.3 and eclipselink

Kusanagihk,
Hi, this is a common scenario. Either your JTA datasource is not setup correctly on your server - check your datasource on your WebLogic server if you wish to use it.
   Checkout...
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#Setting_up_a_Globally_Scoped_JNDI_Datasource_on_the_WebLogic_Server_Console

Or, you have transaction-type="JTA" in your persistence unit or are defaulting to JTA in the absence of specifying transaction-type="RESOURCE_LOCAL" when deploying to the server (running in standalone SE would default to RESOURCE_LOCAL) However, it looks like you would like to run in RESOURCE_LOCAL or a non-JTA SE mode where you manage your own transactions.

See
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#Troubleshooting
And
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#JTA_Datasource http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#RESOURCE_LOCAL_Datasource


As an example, If i publish an EAR that contains a persistence unit without a transaction-type, and do not define the datasource on the server, the server defaults to JTA and I get the following exception.

Exception [EclipseLink-28010] ***: org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: PersistenceUnitInfo example has transactionType JTA, but doesnt have jtaDataSource. at org.eclipse.persistence.exceptions.EntityManagerSetupException.jtaPersistenceUnitInfoMissingJtaDataSource(EntityManagerSetupException.java:154)

   thank you
   /michael

kusanagihk wrote:
Hi
I'm a newbie on eclipselink; currently I am setting up a demo using
eclipselink under weblogic 10.3
However I met an exception (and this exception is quite well known on the
web as well)

<pre>
Error An error occurred during activation of changes, please see the log for
details.
Error Exception preparing module: EJBModule(core-1.0.jar)
Error Substituted for missing class Exception [EclipseLink-28010] (Eclipse
Persistence Services - 1.0.2 (Build 20081024)) -
org.eclipse.persistence.exceptions.EntityManagerSetupException Exception
Description: PersistenceUnitInfo jtaDS has transactionType JTA, but doesnt
have jtaDataSource. </pre>

Ok, the answers I've got on several forums/websites states that I have not
setup the DataSource well. However... this is not my case; the DataSource is
working (I have written a jsp just to get access to the global DataSource
through JNDI)

And 1 funny thing is that the "jtaDS" has been removed by me earlier! I mean
the persistence.xml doesn't define this "jtaDS" entry anymore~ So I wonder
is this some sort of bug or the Weblogic / EclipseLink has cached down the
previous config....
Any ideas would be definitely appreciated

Thx and good day~

Stack Traces below:
<Error> <Console> <BEA-240003> <Console encountered the following error
weblogic.application.ModuleException: Exception preparing module:
EJBModule(core-1.0.jar)

        at
weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
        at
weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
        at
weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
        at
weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
        at
weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
        at
weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
        at
weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
        at
weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
        at
weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
        at
weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
        at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
        at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
        at
weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
        at
weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
        at
weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
        at
weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
        at
weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
        at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
        at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
        at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
        at
weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.Throwable: Substituted for missing class Exception
[EclipseLink-28010] (Eclipse Persistence Services - 1.0.2 (Build 20081024))
- org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: PersistenceUnitInfo jtaDS has transactionType JTA,
but doesnt have jtaDataSource.
        at
org.eclipse.persistence.exceptions.EntityManagerSetupException.jtaPersistenceUnitInfoMissingJtaDataSource(EntityManagerSetupException.java:154)
        at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:790)
        at
org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:189)
        at
weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:330)
        at
weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:123)
        at
weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:331)
        at
weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:245)
        at
weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:63)
        at
weblogic.ejb.container.deployer.EJBModule.setupPersistenceUnitRegistry(EJBModule.java:209)
        at
weblogic.ejb.container.deployer.EJBModule$1.execute(EJBModule.java:310)
        at
weblogic.deployment.PersistenceUnitRegistryInitializer.setupPersistenceUnitRegistries(PersistenceUnitRegistryInitializer.java:62)
        at
weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:376)>





Back to the top