WLW 8.1 SP4 - "java.lang.Error: Unresolved compilation problems" During Deployment But Not During Build Of Application - CR236853
(Doc ID 776719.1)
Last updated on JUNE 14, 2021
Applies to:
BEA WebLogic Workshop - Version All and laterInformation in this document applies to any platform.
Information in this document applies to any platform
Goal
DESCRIPTION: When deploying an application with a reference in one of its EJB libraries to a package (e.g., javax.sql), the problem is not detected until deployment: <Jul 21, 2005 7:13:34 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating Deploy task for application Debug.> <Jul 21, 2005 7:13:34 PM EDT> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 0 for the application Debug. java.lang.Error: Unresolved compilation problems: The import javax.sql cannot be resolved DataSource cannot be resolved or is not a type DataSource cannot be resolved or is not a type at library.j2ee.ejb.EJBBase.<init>(EJBBase.java:5) at library.j2ee.ejb.EJBSessionBase.<init>(EJBSessionBase.java:22) at membership.cia.ejb.session.membership.MembershipSBean.<init>(MembershipSBean.java:61) at membership.cia.ejb.session.membership.cia_ejb_session_membership_ndjfd4_Impl.<init>(cia_ejb_session_membership_nd jfd4_Impl.java:32) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at weblogic.ejb20.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:129) at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:266) at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:168) at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:254) at weblogic.ejb20.manager.StatelessManager.initializePool(StatelessManager.java:376) at weblogic.ejb20.deployer.EJBDeployer.initializePools(EJBDeployer.java:1607) at weblogic.ejb20.deployer.EJBDeployer.start(EJBDeployer.java:1474) at weblogic.ejb20.deployer.EJBModule.start(EJBModule.java:689) at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2127) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2168) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2503) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2421) at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2138) at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2237) at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2132) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2384) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) --------------- nested within: ------------------ weblogic.management.ManagementException: - with nested exception: [java.lang.Error: Unresolved compilation problems: The import javax.sql cannot be resolved DataSource cannot be resolved or is not a type DataSource cannot be resolved or is not a type at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)> <Jul 21, 2005 7:13:38 PM EDT> <Error> <WLW> <000000> <onMessageException: java.lang.NullPointerException> <Jul 21, 2005 7:13:38 PM EDT> <Error> <WLW> <000000> <onMessageException: java.lang.NullPointerException> <Jul 21, 2005 7:13:38 PM EDT> <Error> <WLW> <000000> <onMessageException: java.lang.NullPointerException> <Jul 21, 2005 7:13:39 PM EDT> <Error> <WLW> <000000> <onMessageException: java.lang.NullPointerException> CONFIGURATION: WebLogic Workshop 8.1 SP4 on Windows
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |