cancel
Showing results for 
Search instead for 
Did you mean: 

SP09->SP14 deployment error: caf~bw~ear fails with NoClassDefFoundError

Former Member
0 Kudos
228

Hi,

The following error occurs when upgrading a portal from NW2004s (Java AS 7.00) SP09 to SP14. A similar portal has been upgraded from SP11 to SP14 without problems, so we're thinking of first patching the CAF application from SP09 to SP11 before proceeding to SP14.

The key errors are:

Exception in operation update with application sap.com/cafbwear..

Reason: com/sap/caf/bw/api/IBWProcessorLocal; nested exception is:

java.lang.NoClassDefFoundError: com/sap/caf/bw/api/IBWProcessorLocal

The error occurred while trying to load "com.sap.caf.bw.services.bwprocessor.BWProcessorLocal".

Anyone experienced the same problem?

Jan 17, 2008 8:31:20 AM Info: Starting: Update: Selected development component 'caf/bw/ear'/'sap.com'/'MAIN_APL70VAL_C'/'1497856'/'2' updates currently deployed development component 'caf/bw/ear'/'sap.com'/'MAIN_APL70VAL_C'/'946553'/'1'.

Jan 17, 2008 8:31:20 AM Info: SDA to be deployed: /usr/sap/ES3/JC87/SDM/root/origin/sap.com/caf/bw/ear/MAIN_APL70VAL_C/2/1497856/cafbwear.sda

Jan 17, 2008 8:31:20 AM Info: Software type of SDA: J2EE

Jan 17, 2008 8:31:20 AM Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****

Jan 17, 2008 8:31:27 AM Info: Begin of log messages of the target system:

08/01/17 08:31:20 - ***********************************************************

08/01/17 08:31:21 - Start updating EAR file...

08/01/17 08:31:21 - start-up mode is lazy

08/01/17 08:31:21 - EAR file updated successfully for 413ms.

08/01/17 08:31:21 - Start updating...

08/01/17 08:31:22 - EAR file uploaded to server for 541ms.

08/01/17 08:31:27 - ERROR: Not updated. Deploy Service returned ERROR:

java.rmi.RemoteException: Exception in operation update with application sap.com/cafbwear..

Reason: com/sap/caf/bw/api/IBWProcessorLocal; nested exception is:

java.lang.NoClassDefFoundError: com/sap/caf/bw/api/IBWProcessorLocal

-


Loader Info -


ClassLoader name: [sap.com/cafbwear]

Parent loader name: [Frame ClassLoader]

References:

common:service:http;service:servlet_jsp

service:ejb

common:service:iiop;service:naming;service:p4;service:ts

service:jmsconnector

library:jsse

library:servlet

common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl

library:ejb20

library:j2eeca

library:jms

library:opensql

common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore

interface:resourcecontext_api

interface:webservices

interface:cross

interface:ejbserialization

library:com.sap.mw.jco

common:library:bimmrcore;library:bimmrdb

library:bimmrjmi

library:com.sap.tc.Logging

library:bimmrcwm_1.0_library

service:applocking

sap.com/cafruntimeear

sap.com/com.sap.jdo

library:com.sap.ip.bi.sdk

library:tcddicddicruntime

library:tcconnconnectorframework

library:tc~cmi

library:tcddicddicservices

service:webdynpro

library:cafruntimeapi~lib

library:cafruntimeuicouplingapilib

Resources:

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/EJBContainer/applicationjars/sap.comcafbw~services.jar

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/servlet_jsp/bwtest/work

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/EJBContainer/clientjars/clientsap.comcafbw~services.jar

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/servlet_jsp/bwtest/root/WEB-INF/classes

Loading model: {parent,references,local}

-


The error occurred while trying to load "com.sap.caf.bw.services.bwprocessor.BWProcessorLocal".

at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:681)

at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

Caused by: java.lang.NoClassDefFoundError: com/sap/caf/bw/api/IBWProcessorLocal

-


Loader Info -


ClassLoader name: [sap.com/cafbwear]

Parent loader name: [Frame ClassLoader]

References:

common:service:http;service:servlet_jsp

service:ejb

common:service:iiop;service:naming;service:p4;service:ts

service:jmsconnector

library:jsse

library:servlet

common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl

library:ejb20

library:j2eeca

library:jms

library:opensql

common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore

interface:resourcecontext_api

interface:webservices

interface:cross

interface:ejbserialization

library:com.sap.mw.jco

common:library:bimmrcore;library:bimmrdb

library:bimmrjmi

library:com.sap.tc.Logging

library:bimmrcwm_1.0_library

service:applocking

sap.com/cafruntimeear

sap.com/com.sap.jdo

library:com.sap.ip.bi.sdk

library:tcddicddicruntime

library:tcconnconnectorframework

library:tc~cmi

library:tcddicddicservices

service:webdynpro

library:cafruntimeapi~lib

library:cafruntimeuicouplingapilib

Resources:

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/EJBContainer/applicationjars/sap.comcafbw~services.jar

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/servlet_jsp/bwtest/work

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/EJBContainer/clientjars/clientsap.comcafbw~services.jar

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/servlet_jsp/bwtest/root/WEB-INF/classes

Loading model: {parent,references,local}

-


The error occurred while trying to load "com.sap.caf.bw.services.bwprocessor.BWProcessorLocal".

at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:401)

at com.sap.engine.services.ejb.deploy.xml.MethodsExtractor.getAllMethodsInBean(MethodsExtractor.java:91)

at com.sap.engine.services.ejb.deploy.xml.EJBJarParser.getMethodXml(EJBJarParser.java:1168)

at com.sap.engine.services.ejb.deploy.xml.EJBJarParser.processContainerTransaction(EJBJarParser.java:1023)

at com.sap.engine.services.ejb.deploy.xml.EJBJarParser.processAssemblyDescriptor(EJBJarParser.java:924)

at com.sap.engine.services.ejb.deploy.xml.EJBJarParser.parseXml(EJBJarParser.java:156)

at com.sap.engine.services.ejb.deploy.xml.EJBJarParser.parseXml(EJBJarParser.java:97)

at com.sap.engine.services.ejb.deploy.DeployAdmin.parseSingleJar(DeployAdmin.java:298)

at com.sap.engine.services.ejb.EJBAdmin.buildAppDescriptorBeforeUpdate(EJBAdmin.java:408)

at com.sap.engine.services.ejb.EJBAdmin.needUpdate(EJBAdmin.java:341)

at com.sap.engine.services.deploy.server.application.UpdateTransaction.getContainersWhichNeedUpdate(UpdateTransaction.java:537)

at com.sap.engine.services.deploy.server.application.UpdateTransaction.getConcernedContainers(UpdateTransaction.java:493)

at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:263)

at com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:164)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)

at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3184)

at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:669)

... 10 more

For detailed information see the log file of the Deploy Service.

08/01/17 08:31:27 - ***********************************************************

Jan 17, 2008 8:31:27 AM Info: End of log messages of the target system.

Jan 17, 2008 8:31:27 AM Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****

Jan 17, 2008 8:31:27 AM Error: Aborted: development component 'caf/bw/ear'/'sap.com'/'MAIN_APL70VAL_C'/'1497856'/'2', grouped by :

Caught exception during application deployment from SAP J2EE Engine's deploy service:

java.rmi.RemoteException: Exception in operation update with application sap.com/cafbwear..

Reason: com/sap/caf/bw/api/IBWProcessorLocal; nested exception is:

java.lang.NoClassDefFoundError: com/sap/caf/bw/api/IBWProcessorLocal

-


Loader Info -


ClassLoader name: [sap.com/cafbwear]

Parent loader name: [Frame ClassLoader]

References:

common:service:http;service:servlet_jsp

service:ejb

common:service:iiop;service:naming;service:p4;service:ts

service:jmsconnector

library:jsse

library:servlet

common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl

library:ejb20

library:j2eeca

library:jms

library:opensql

common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore

interface:resourcecontext_api

interface:webservices

interface:cross

interface:ejbserialization

library:com.sap.mw.jco

common:library:bimmrcore;library:bimmrdb

library:bimmrjmi

library:com.sap.tc.Logging

library:bimmrcwm_1.0_library

service:applocking

sap.com/cafruntimeear

sap.com/com.sap.jdo

library:com.sap.ip.bi.sdk

library:tcddicddicruntime

library:tcconnconnectorframework

library:tc~cmi

library:tcddicddicservices

service:webdynpro

library:cafruntimeapi~lib

library:cafruntimeuicouplingapilib

Resources:

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/EJBContainer/applicationjars/sap.comcafbw~services.jar

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/servlet_jsp/bwtest/work

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/EJBContainer/clientjars/clientsap.comcafbw~services.jar

/usr/sap/ES3/JC87/j2ee/cluster/server0/apps/sap.com/cafbwear/servlet_jsp/bwtest/root/WEB-INF/classes

Loading model: {parent,references,local}

-


The error occurred while trying to load "com.sap.caf.bw.services.bwprocessor.BWProcessorLocal".

(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)

Jan 17, 2008 8:31:27 AM Info: Starting to save the repository

Jan 17, 2008 8:31:54 AM Info: Finished saving the repository

Jan 17, 2008 8:31:54 AM Info: Starting: Update: Selected software component 'CAF'/'sap.com'/'MAIN_APL70VAL_C'/'1000.7.00.14.0.20071117062838''/'2' updates currently deployed software component 'CAF'/'sap.com'/'MAIN_APL70VAL_C'/'1000.7.00.9.0.20060825071023''/'2'.

Jan 17, 2008 8:31:54 AM Error: Aborted: software component 'CAF'/'sap.com'/'MAIN_APL70VAL_C'/'1000.7.00.14.0.20071117062838''/'2':

Failed deployment of SDAs:

development component 'caf/bw/ear'/'sap.com'/'MAIN_APL70VAL_C'/'1497856'/'2' : aborted

Please, look at error logs above for more information!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dagfinn,

are you using JSPM to deploy the application cafruntimeear? One reason why this deployment could fail is because of the reference to cafruntimeear which is currently not running (since JSPM puts the J2EE Engine in save mode). As a workaround you could try to start the engine in normal mode and deploy CAF with SDM directly.

Hope this helps,

Holger.

Former Member
0 Kudos

Thanks for the suggestion,

Yes, we are using JSPM.

I'll try deploying the CAF component directly with SDM now.

Wondering if this will happen for all portals from SP09 to SP14 or if it is just one of those rather random events that can happen.

Dagfinn

Former Member
0 Kudos

Redeploying now, but same error on cafruntimeear

Former Member
0 Kudos

Hi,

did you put the J2EE Engine in normal mode (instead of safe mode) before trying with SDM?

Regards,

Holger.

Former Member
0 Kudos

Yes,

Checked in configtool now and it is reporting safe mode is off.

The big question is why cafruntimeear would run into a StackOverFlow

Dagfinn

Answers (3)

Answers (3)

Former Member
0 Kudos

We had the identical error on an initial java install.

ERROR: Not updated. Deploy Service returned ERROR:

java.rmi.RemoteException: Exception in operation update with application sap.com/cafbwear..

Reason: com/sap/caf/bw/api/IBWProcessorLocal; nested exception is:

java.lang.NoClassDefFoundError: com/sap/caf/bw/api/IBWProcessorLocal

Sap Note 1200072

Resolution

To resolve the error message

Click Start > Control Panel > System > Advanced tab.

Click Settings in the Performance section of the Advanced tab. The Performance Options dialog box appears.

Click the Data Execution Prevention tab.

Click the Turn on DEP for essential Windows programs and services only option. Click OK.

Worked for us.

Former Member
0 Kudos

Reply from SAP support

"It seams there are cycles in the parent-child relationship of the

groups in your LDAP server, which are the reason for this problem.

Please try to find any such cycles and remove them - if possible -

as a workaround for successful deployment of that application.

Meanwhile we will clarify the matter."

Disconnected LDAP using configtool and now CAF is successfully deployed via SDM (and the rest of SP14 via JSPM).

LDAP has now been reconnected and no problems.

Looking further into the issue of the cycles in groups (are only about 100 00 so shouldn't take long

Dagfinn

Former Member
0 Kudos

Thanks alot for this information!

Good like in finding the cycles...

Regards,

Holger.

Former Member
0 Kudos

It seems the root cause is the failure of cafruntimeear to startup after it has been upgraded.

It receives a java.lang.StackOverflowError without any more explanation.

Jan 16, 2008 10:05:36... Warning: Finished with warnings: development component 'caf/runtime/ear'/'sap.com'/'MAIN_APL70VAL_C'/'1534014'/'1', grouped by :

Caught exception during application startup from SAP J2EE Engine's deploy service:

java.rmi.RemoteException: Error occurred while starting application sap.com/caf/runtime/ear and wait.

Reason: Clusterwide exception: server ID 871120050:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception while preparing start of application sap.com/cafruntimeear.

at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:233)

at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:171)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:301)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:342)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:126)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:245)

at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4707)

at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4612)

at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4585)

at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

Caused by: java.lang.StackOverflowError