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

The exception indicates that persistence unit has transaction type JTA:
in persistence.xml it either explicitly defined transaction type JTA or skips
transaction type - in this case it's defaulted to JTA.
but does not specify jta data source:
   <jta-data-source>...jtaDS</jta-data-source>

Either add jta-data-source definition, or change persistence unit transaction type to RESOURCE_LOCAL:
  <persistence-unit name="MyPU" transaction-type="RESOURCE_LOCAL">



----- Original Message ----- From: "kusanagihk" <kusanagihk@xxxxxxxxx>
To: <eclipselink-users@xxxxxxxxxxx>
Sent: Monday, August 10, 2009 10:10 AM
Subject: [eclipselink-users] Weblogic 10.3 and eclipselink



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)>


--
View this message in context: http://www.nabble.com/Weblogic-10.3-and-eclipselink-tp24895850p24895850.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.

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




Back to the top