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

How to add a Jar file to J2EE Server Component Library ?

Hello,

My objective:

=====================================================

To add a 3rd party jar file to be a runtime jar file to J2EE Server Component

Library project.

I have created a J2EE Server Component Library project.

I have built the J2EE Server Component Library project to get the provider.xml file and place the provider.xml under the J2EE Server Component Library project's server folder.

Here is my problem:

=====================================================

I can't open the provider.xml with SAP's special editor for the provider.xml.

The special SAP editor doesn't exist for me.

Here is my question:

=====================================================

Q1) Do I copy/paste my JAR_X file where <jar_0> is located? (Below is the

J2EE Server Component Library SDA structure.)

Q2) If you were to update the provider.xml with notepad, what would you

type in provider.xml for JAR_X?

Q3) Is there anything else that I need to do?

Thanks,

Steve

J2EE Server Component Library SDA structure.

======================================

|-META-INF_

| |-manifest.mf

| |-sap_manifest.mf

| |-SearchRules.xml

| |-<SDA>.xml

| |...

|-<jar_0>

|- ...

|-<jar_N>

|-dispatcher_

| |-provider.xml

| |-properties

| |-runtime.properties

| |-persistent__

| | |-<persistent_files(2)>

| |-descriptors_

| |-<descriptor_files(3)>

|-server_____

| |-provider.xml

| |-properties

| |-runtime.properties

| |-persistent__

| | |-<persistent_files>

| |-descriptors_

| |-<descriptor_files>

|-os_libs____

|-<char set>__

|-<platform>__

|-<jvm bitlength>__

|-<native lib files>

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2008 at 03:16 AM

    Hi Steve,

    You can refer to this [Blog |https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2361] [original link is broken] [original link is broken] [original link is broken]; by Valery.

    It explains addition of 3rd party Jars to a J2EE Server Component.

    Regards,

    Alka.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2008 at 09:19 PM

    Steve..

    Open you entire sda with any unzip tool..winzip or winrar..edit the provider.xml, add the jars to the lib..and add the section below to the jars section..the zip utility will ask you if you want to update the package..

    <jar-name>lib/commons-logging-1.0.4.jar</jar-name>

    Hope that helps

    Regards

    Ravi Raman

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Your provider.xml will be something like that

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE provider-descriptor SYSTEM "library.provider.dtd">
      <provider-descriptor>
      	<display-name>
            Your_Lib_Name
          </display-name>
      	<component-name>
            Your_Lib_Name
          </component-name>
      	<major-version>6</major-version>
      	<minor-version>40</minor-version>
      	<micro-version>0</micro-version>
      	<provider-name>
            sap.com
          </provider-name>
      	<references>
      		<reference 
      			provider-name="sap.com" 
      			strength="weak" 
      			type="library">Your_Lib_Name</reference>
      	</references>
      	<jars>
      		<jar-name>my_jar.jar</jar-name>
      	</jars>
      </provider-descriptor>

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2008 at 06:41 AM

    we can include third party jars, but it's project specific, go to project properties, select java built path, in that, again select add external jar file, then add your jars or libraries.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 04:35 PM

    Thank you for all your solution...

    my provider.xml was missing the <!DOCTYPE> tag for me to use the SAP LibraryDD Editor

    Thanks again,

    Steve

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE provider-descriptor SYSTEM "library.provider.dtd">

    <provider-descriptor>

    <display-name>

    Your_Lib_Name

    </display-name>

    <component-name>

    Your_Lib_Name

    </component-name>

    <major-version>6</major-version>

    <minor-version>40</minor-version>

    <micro-version>0</micro-version>

    <provider-name>

    sap.com

    </provider-name>

    <references>

    <reference

    provider-name="sap.com"

    strength="weak"

    type="library">Your_Lib_Name</reference>

    </references>

    <jars>

    <jar-name>my_jar.jar</jar-name>

    </jars>

    </provider-descriptor>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 04:37 PM

    My provider.xml was missing the <!DOCTYPE> tag me use to use the SAP LibraryDD Editor.

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE provider-descriptor SYSTEM "library.provider.dtd">

    <provider-descriptor>

    <display-name>

    Your_Lib_Name

    </display-name>

    <component-name>

    Your_Lib_Name

    </component-name>

    <major-version>6</major-version>

    <minor-version>40</minor-version>

    <micro-version>0</micro-version>

    <provider-name>

    sap.com

    </provider-name>

    <references>

    <reference

    provider-name="sap.com"

    strength="weak"

    type="library">Your_Lib_Name</reference>

    </references>

    <jars>

    <jar-name>my_jar.jar</jar-name>

    </jars>

    </provider-descriptor>

    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.