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

Url to ...\j2ee\cluster\apps\sap.com\xxx\app_libraries_container ?

Hi,

Sorry if my question looks stupid. I'm relativly new to the J2EE environment. (i have lot of more experience with Microsoft world).

I have created 1 servlet , and 1 Java application (that should be deployed via webstart).

Then i have created an Entreprise Application project (MyApplication_EAR) that refers to the servlet (MyServlet_WEB) and the Java application project (that generates MyTestApp.jar)

When i deploy the EAR on the server , i see that the servlet war file is deployed in :

..\j2ee\cluster\apps\sap.com\MyApplication_EAR\servlet_jsp\MyServlet_WEB

I see also that the Java application 's jar is deployed in :

...\j2ee\cluster\apps\sap.com\MyApplication_EAR\app_libraries_container

I need in my Servlet to have an URL pointing on the MyTestApp.jar which is int he app_libraries_container.

How can i find this URL?

thanks in advance for your help.

Jean-Philippe.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 24, 2007 at 01:08 PM

    Hi,

    I assume that you need some resource from MyTestApp.jar in your servlet. You can obtain that with

    getClass().getResource(resourcePath)

    in your servlet class.

    HTH!

    -- Vladimir

    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.