CONFIGURING SPRING DEPENDENCY INJECTION EXTENSION FOR WLS 10.3.4 (Doc ID 1355441.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 10.3.4 and later
Information in this document applies to any platform.

Symptoms

Spring dependency injection extension for WLS doesn't work.
It got ClassNotFoundException and ClassCastException when app is deployed:

 

Followed the steps, and doc
http://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/web.1111/e14453/enable_spring.htm#CHDIIIGJ, using pitchfork 1.0 m6, the following error is seen:


Caused By: java.lang.ClassCastException:
 org.springframework.jee.spi.PitchforkUtilsImpl cannot be cast to
 com.oracle.pitchfork.interfaces.PitchforkUtils
 at weblogic.j2ee.injection.PitchforkContext.getPitchforkUtils(PitchforkContext.java:60)
 at weblogic.servlet.internal.WebComponentContributor.<init>(WebComponentContributor.java:73)
 at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1385)
 at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:449)
 at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:493)
 at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418)
 at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:972)
 at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:382)
 at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
 at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
 at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
 at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
 at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
 at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
 at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
 at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
 at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
 at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
 at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
 at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
 at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
 at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
 at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
 at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
 at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
 at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
 at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
 at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms