cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with JAR File

Former Member
0 Kudos

I have a jar file. I import it in my Local DC... while creating i got the reference of all the classes in this jar file.. even in deployment there is no error but at a run time it gives a ..

The initial exception that caused the request to fail, was:

java.lang.NoClassDefFoundError: com.cmpasia.mimspoc.XMLUtilities

at test.TestView.onActionSelectCriteria(TestView.java:389)

at test.wdp.InternalTestView.wdInvokeEventHandler(InternalTestView.java:166)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)

but while developing i got the reference of XMLUtilities class file. Even its methods are also displayed after placing "."..

I deploy it in my TOMCAT at local server .. its working fine....

please help me in solving this issue...

points will be awarded 100%...

regards,

Sumit Malhotra

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

do one thing copy your jar files..using navigator perspective & then paste those jar files into lib folder of your web dynpro project....[use navigator perspective]

then add the classpath of those jar files ...using J2EE build class path option..also add ejb20.jar file as class path variable...

Regards,

Khushboo Singhal

Former Member
0 Kudos

Suresh, I tried with this approach also.... my JAR file contains around 50 class files... but it fails to get reference of only 5-6 class file... others 44-45 class files are reffered at runtime... it means it got reference of jar file.... no problem with that.... but in tomcat its fine.....with all 50 files ....according to me ....

:: JAR file is OK.

:: WebDynpro refer JAR file.

but fails wats the problem with those 4-5 files only.

regards,

Sumit

Former Member
0 Kudos

Hi,

You cant just add any external jar file into a DC project.

There is only one way to add a external jar file is by using external library project.

1.create an external library project type DC.

2. put your external jar file into its lib folder.

3. create its public part of type SDA...and API.

4. just use SDA public part into your webdynpro project as used DC.

4. and when you deploy your webdynpro project on server, this file will also get deployed... remember to use SDA public part..

Regards

Surender Dahiya