cancel
Showing results for 
Search instead for 
Did you mean: 

EJB DC to Java DC dependency: NoClassDefFound

Former Member
0 Kudos

Hi,

I have an EJB DC which contains some JPA classes and somehow I'm not able to add a dependency to my Java DC. Eclipse resolves the dependency, but the deployment failes with a NoClassDefFound. I tried also to create an external library DC - nothing worked. Can someone give me the necessary steps to set up such a dependency.

Thanks

Konrad

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

ok my public parts were correct:

assembly_api with all classes I need

compilation_api with all classes I need

as well as this dependency:

ejb dependency with all possible dependency to the Java DC

and what solved my problem in the end was:

to add runtime and build dependency from my ear DC to the Java DC ...

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi Konrad

In SAP NW Java simple Java DC is not a deployable unit that's why you get the deploy-time exception. The problem can be solved in two ways:

1. In Java DC create Public Part of ASSEMBLY type. Establish a build-time reference from EJB DC to the PP. The ASSEMBLY PP will be completely included physically into your EAR (with EJB) during a build. So with the solution you will include physically the code from Java DC into EAR.

2. Convert the Java DC to Server Library DC. Library DC is deployable unit. Then your reference that you currently have from EJB DC to Java DC will be resolved on deploy-time, because the both DC will be deployed on server.

BR, Siarhei