cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError

Former Member
0 Kudos

Hi Experts,

I'm Using with nwds 7.0 sp18

and i'm want to use with FTPClient

but i'm get the error message "java.lang.NoClassDefFoundError: org/apache/commons/net/SocketClient "

I'm using with external libraries according to the blog

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID0624163350DB00824325244483116045End...

and i'm using with the jar commons-net-1.3.0.jar

but i'ts not working

do you have a soultion?

thanks

Yossi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Thanks for your response

now I get the message

Details: com.sap.tc.webdynpro.services.sal.core.DispatcherException: Failed to start deployable object supersol.co.il/planograms.

Exception id: [0050568C0C2F006D000000360000184800047A63C9D80725]

what do I nedd to write in the Library reference

i try the name of the external library

and i try the public part ref

and it's not work

Former Member
0 Kudos

In the library reference, give

<pakage name say> ~ <J2EE EA DC Name>

Eg. sap.com~testEmpProj

Regards,

Tushar Sinha

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Yossi,

The problem is the Jars are not available to your component at run time.

You have created an External Library DC with all the jars in the lib folder and created public parts aout of it.

Now you create a J2EE Enterprise application dc like the library dc and add the public parts to it. Now you create two public parts of this J2EE Enterprise Application DC and Deploy the DC.

So, in your own web dynpro dc, you can simply add both the public parts of the Enterprise Application and add the dc in the library references under Project>Properties>Web Dynpro References.

And, then deploy your DC.

It should be fine. Check it out!

Regards,

Tushar Sinha

Former Member
0 Kudos

Hi Jan

I' didn't Understand deploy to what?

to the external library or to my dc

if do you mean to my dc i did deply

how can i do deploy to external library?

Former Member
0 Kudos

There's another DC for a J2EE Library.. the external library public part of the JAR file you're using should be set as a Used DC in the J2EE library so you can make it available during run-time on the server. Deploy the J2EE Library - since you can't really deploy the external library.

Regards,

Jan

Former Member
0 Kudos

You created a JEE Server Component Library right and attached the external library with it right? You need to deploy that to the server to make it available during run-time.

Regards,

Jan