on 03-12-2008 5:21 PM
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>
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.