cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with JavaBean-Model on Web DynPro for Java

Former Member
0 Kudos

Hi,

I have the following Problem:

We run a Web AS Java with SP 18. I defined a Web DynPro DC and an External Library DC. Within the External Library DC I added two public parts( one assembly( linked to the Web DynPro DC at runtime(strong) and buildtime, the other is compilation linked with buildtime).

I can add the Model without Problem, and the Web DynPro DC is build without error. But everytime I run the application I get an "java.lang.NoClassDefFoundError" exception on the used model class.

As Dependency for the SC I defined

SAP-JEE 6.40

SAP_JTECHS 6.40

SAP_BUILDT 6.40

Does anyone know what I do wrong?

Thanks for your help,

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185086
Active Contributor
0 Kudos

Hi Michael

One Question :How you added the public parts of External Library DC?

If it is publish as file then change it to publish as archive the NotClassFoundException will be solved.

Note : Defined it for compilation and assembly build the External Library DC and webdynpro DC ,Deploy only webdynpro Dc.

Hope it help you

Best Regards

Satish Kumar

Former Member
0 Kudos

Hey,

where do I set publish as archive?

I just am in the NWDS and select "DC Metadata->DC Definition->Used DC->Add DC" to add the

Compilation and the Assembly public part.

I also updated the dependencies for the SC I defined( I also checked in and all)

SAP-JEE 7.00 ( SP 18)

SAP_JTECHS 7.00 ( SP 18)

SAP_BUILDT 7.00 ( SP 9)

Thanks for your help,

Michael

former_member185086
Active Contributor
0 Kudos

hi

What is the NWDS version you are using ?

if 7.0 then use this [thread|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4512] [original link is broken] [original link is broken] [original link is broken]; to understand

Best Regards

Satish Kumar

Former Member
0 Kudos

Thanks,

I do everything as said in the Blog.

I use NWDS Version 7.0.15.

former_member185086
Active Contributor
0 Kudos

Hi

Take the help from following threads suitable for 7.0

1.[NoClassDefFoundError|]

2.[NoClassDefFoundError in WebDynpro Project|]

3.[Adding External Jar in a Webdynpro Dc|]

4.[Problem using External Library DC|]

Best Regards

Satish Kumar

former_member185086
Active Contributor
0 Kudos

Hi

Check [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502f70a8-33a4-2b10-3dbe-bdcb5e25c6da] also.

BR

Satish Kumar