cancel
Showing results for 
Search instead for 
Did you mean: 

Add external jar (barcode4j.jar) to Develeopment Component

Former Member
0 Kudos

Hi,

I have read the threat and blog about the topic. I have the same problem...

I get the error NoClassDefFoundError.

I can't add the public part from the DC Component XXX to the J2ee Server Component Library.

In the blog is discription that I should go to J2EE Explorer Perspectiv and open the structure DC Metadata

-> DC Definition - > Useds DCs

But this folder structure doesn't exist in my J2ee Server Component Library? How cann I add the public part to my J2ee Server Component Library?

It is possible to use external .jars without a J2ee Server Component Library?

Blog:

/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro

Thread:

Error:

java.lang.NoClassDefFoundError: org/krysalis/barcode4j/impl/AbstractBarcodeBean

....

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for view com.xxx.BarcodeView.

(Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)

Accepted Solutions (1)

Accepted Solutions (1)

former_member751941
Active Contributor
0 Kudos

Hi SAP User,

I think you have created a local J2EE Server Component.

<b>Create a J2EE Server Component DC Library.

1> Choose File=>New=>Project

2> Select Development Component=>Development Component Project

3> Choose Next

4> Select Local Development =>My Components

5> Click on Next. Enter Details

6> Choose Library under (J2EE Server Component under sap.com domain)

7> Click on Next and Finish.

Once DC Library is created you will get DC MetaData.

Under DC MetaData=>DC Definition=>Used DCs add Used DCs...

In Add Used DCs.. Add the type compilation and type assembly that you have already created that contains your jar files.

Then build and deploy. Your jar file will be deployed in your server you will not get NoClassDefFoundError.</b>

Regards,

Mithu

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

You can make use of the steps described in this [blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4512] [original link is broken] [original link is broken] [original link is broken]; of Bala to create the External Library and add it to your DC, w/o the use of J2EE Server Component.

Hope it helps.

Regards,

Alka.

Former Member
0 Kudos

Hi SAP User,

This folder structure will be available in the Development Infrastructure Perspective.

So switch to that perspective and then choose

DC Metadata-> DC Definition - > Useds DCs

Hope it helps you.

Regards,

Srinivasan Subbiah

Former Member
0 Kudos

Only a Development Configuration Perspectiv exist.

And there is no Folder structure for a J2EE Server Component Library like this:

DC Metadata-> DC Definition - > Useds DCs

Only the folder below exist:

- META-INF

- Model Folder

- server

This Folder structure only exist for Development Components