on 11-12-2009 3:17 PM
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
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 ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.