0 Replies Latest reply on Dec 2, 2010 9:44 PM by user2284293

    bouncycastle jar problem with weblogic 10.3.1

    user2284293
      I am using JDK6, weblogic 10.3.1, ojdbc6, oracle10g, I have a ear file to be deployed to weblogic server. It used to work well with tomcat6.

      In order to enable my apache axis2 webservices client work well, I have a weblogic-application.xml, it is like

      <prefer-application-packages>
                
                <package-name>org.apache.*</package-name>
                
                
           </prefer-application-packages>
           

      </wls:weblogic-application>

      When I tried deployed my ear file, it gave out weblogic.application.ModuleException, but I do have my bcprov-jdk16-145.jar in web-inf/lib

      java.lang.NoClassDefFoundError: org/bouncycastle/crypto/params/ParametersWithIV
           at org.bouncycastle.jce.provider.JCEBlockCipher.engineInit(Unknown Source)
           at javax.crypto.Cipher.a(DashoA13*..)
           at javax.crypto.Cipher.a(DashoA13*..)
           at javax.crypto.Cipher.init(DashoA13*..)
           at javax.crypto.Cipher.init(DashoA13*..)
           at oracle.security.o5logon.O5LoginClientHelper.decryptAES(Unknown Source)
           at oracle.security.o5logon.O5LoginClientHelper.generateOAuthResponse(Unknown Source)
           at oracle.jdbc.driver.T4CTTIoauthenticate.marshalOauth(T4CTTIoauthenticate.java:457)
           at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:367)
           at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
           at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
           at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
           at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
           at java.sql.DriverManager.getConnection(DriverManager.java:582)
           at java.sql.DriverManager.getConnection(DriverManager.java:154)
           at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:97)
           at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:300)
           at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:771)
           at com.sprint.common.util.GenericObjectPoolExt.borrowObject(Unknown Source)
           at com.sprint.common.db.DBConnectionPool.getConnection(Unknown Source)
           at com.sprint.common.db.DBConnectionPool.getDBContext(Unknown Source)
           at com.sprint.common.db.DBConnectionFactory.getDBContextFromPool(Unknown Source)
           at com.sprint.common.db.DBConnectionFactory.getDBContextFromPool(Unknown Source)
           at com.sprint.common.rt.RuntimeContext.getDatabaseContextFromSource(Unknown Source)
           at com.sprint.common.rt.RuntimeContext.loadPropertySet(Unknown Source)
           at com.sprint.common.rt.RuntimeContext.initProjectProperties(Unknown Source)
           at com.sprint.common.rt.RuntimeContext.initProject(Unknown Source)
           at com.sprint.common.rt.RuntimeContext.init(Unknown Source)
           at com.sprint.common.web.rt.ServletRuntimeContext.init(Unknown Source)
           at com.sprint.common.web.servlets.WebProjectContext.initRuntimeContext(Unknown Source)
           at com.sprint.common.web.servlets.WebProjectContext.initProject(Unknown Source)
           at com.sprint.common.web.servlets.WebProjectContext.init(Unknown Source)
           at com.sprint.common.web.struts.ActionServletExt.init(Unknown Source)
           at javax.servlet.GenericServlet.init(GenericServlet.java:241)
           at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
           at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
           at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
           at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
           at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
           at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1913)
           at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1887)
           at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1805)
           at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3041)
           at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1374)
           at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
           at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
           at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
           at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
           at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:629)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
           at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:206)
           at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:53)
           at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
           at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
           at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
           at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
           at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
           at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
           at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
           at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
           at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
           at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
           at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
           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)

      This error prevented me from deploying my ear. Only after I cleaned the cache/tmp folder, I could deploy successfully. Does anyone know what happened here? We have no problem redeploying ear without weblogic-application.xml(given that my axis2 ws client doesn't work if no weblogic-application.xml). Does it have anything to do with this weblogic-application.xml file? If no this file, we could redeploy/deploy without cleaning cache/tmp folder in weblogic, but my axis2 ws client won't work.


      How could we redeploy/deploy ear file with weblogic-application.xml without cleaning up cache/tmp folder?