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

Problem of exporing JARs in webdynpro

Hello Everyone,

I have made one webdynpro application in which i am using two to three external JARs.As these JARs are not available at server side, I have to export it in my project's EAR file.

For this, ihave checked these JARs in

project property -> Java build Path -> Order and Export

thus it should export these JAR files with my application's EAR file. But when i am rebuilding or creating erchive these JARs are not added in this EAR.

So, at runtime it gives me error saying ClassNotFound Exception.

So, what am i missing in this?

I have also tried manually adding these JARs in EAR file but these JARs are not properly added in it.

So, what can i do for this?

Regards,

Bhavik

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 24, 2005 at 12:09 PM

    Are you sure that the package structure is being preserved in the jar?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 24, 2005 at 12:29 PM

    Hi

    I Think u can add the required Jars to One Component and Deploy the same and add the same Component to the One u want to use.

    I Hope this works

    With Wishes

    Krishna kanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 24, 2005 at 01:31 PM

    Hi Kareem,

    These JARs are exsiting JARs only given by APACHE.

    And which type of package conventions require?

    Hi Krish,

    I can do that also. But problem is same. In any one component i have to add these JARs and export to WAS.

    But problem is in exporting these JARs to server.

    Thanks,

    Bhavik

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Bhavik

      One Solution to this is Create a development component and in src/packages folder of the component, place all the unziped jars. Expose this package folder as Public part. In public part use Java Package Tree option (select all the files). Build and deploy this component.

      Use this component in the your component as used webdynpro component.

      Kishore

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 04:34 AM

    Hi Vankayala,

    I did what you said. But when i deployed this component on server these file are not transfered to Server. I checked WDA file at server side. It doesn't contain any files of my JARs.

    Thanks,

    Bhavik

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 05:59 AM

    Hi,

    Adding external jars then selecting them in your project should work. If thats not working try to deploy the jar in the server.

    Select a J2EE server component project and create a library project.Add your jars in this project .Build a deployment archive(.sda) and deploy it in the server.

    Restart the server and deploy your application.Check if it works now.

    Regards

    Bharathwaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 10:22 AM

    hi,

    Double click on server/provider xml file. Then say add jars and add your jar.go to the project and right click on it and say build library archive. This will give u a .sda file. Right click on the .sda file and deploy it to the J2EE server.

    Regards

    Bharathwaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 11:05 AM

    Hello Bharadwaj,

    I have solved my problem by adding JARs in EJB. Now when i am deploying EJB on server JARs also go with it.

    Now i will check your option too.

    Thanks,

    Bhavik

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2005 at 11:57 AM

    Hi Bharadwaj,

    I did as you said. But we can't add External JARs in it. It only allows JARs from existing projects.

    How can we add External JARs in this library project?

    Thanks,

    Bhavik

    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.