Skip to Content
avatar image
Former Member

Adding a reference from application to a Library

Hi,

I want to access xerces.jar from my application. I have added entries in library.txt and reference.txt. I am following the instructions in the FAQ - Frequently-AskedQuestionsAboutSAPJ2EEEngine6.20. as given below

**************************

1) Register Xerces as an additional library on SAP J2EE

Engine. You can do this using the Deploy Service

CHANGELIB command or manually copy the archive

file in <sap-install-dir>/cluster/dispatcher/additional-lib/ for dispatcher nodes and

for <sap-install-dir>/cluster/server/additional-lib/ application nodes. Then add the following line in library.txt file located in <sap-install-dir>/cluster/dispatcher/managers/

directory for dispatcher nodes and in <sap-install-dir>/cluster/server/managers/

directory for application nodes:

library xerces xerces.jar

Then register a reference from your application to

the Xerces library, using the CHANGEREF shell

command of Deploy Service, or manually in reference.txt

file located in the same directory as the

above mentioned library.txt

2) If you are using the Xerces parser in classes that are

included in a WAR file, add xerces.jar in the WEB-INF/lib

directory in the WAR.

3) Add to your applications EAR.

*******************

I tried the first and third options except that I did not modify the reference.txt and library.txt files in the dispatcher directory. I have restarted the server every time and tried to access my pages. But it is giving me a org/w3c/dom/Node NoClassDefFound error.

Environment : Windows 2003, EP6.0 Sp2. Hotfix4. MS SQL Server. WAS 6.20.

Any ideas to resolve this ?

Regards

Bhanu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 06, 2004 at 04:19 PM

    Hi Bhanu,

    You also need to put sapxmltoolkit.jar in the classpath.

    Regards,

    Hart

    Add comment
    10|10000 characters needed characters exceeded