Skip to Content
author's profile photo Former Member
Former Member

Problem with JAR File

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2008 at 12:23 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2008 at 03:56 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 05:19 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.