cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Building DC

Former Member
0 Kudos

Hi I am New to NetWeaver I am facing a problem which has stopped out development

When we try to build our ISA Application some thing is changing the .classpath it deletes all the jar entries so I am getting lots of compilation errors

our original .classpath in DTR

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

<classpath>

<classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/>

<classpathentry kind="lib" path="C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/jms/_comp/gen/default/public/default/lib/java/jms.jar"/>

<classpathentry kind="lib" path="C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/jdbc20/_comp/gen/default/public/default/lib/java/jdbc.jar"/>

<classpathentry kind="lib" path="C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/ejb20/_comp/gen/default/public/default/lib/java/ejb20.jar"/>

<classpathentry kind="lib" path="/WEB-INF/lib/lucene-1.3.jar"/>

<classpathentry kind="lib" path="C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/servlet/_comp/gen/default/public/default/lib/java/servlet.jar"/>

<classpathentry kind="src" path="source"/>

<classpathentry kind="lib" path="WEB-INF/lib/advisor.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/appbase.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/auction.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/basesqlj.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/basketdb.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/catalog.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/contract.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/core.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/inqmyxml.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/ipc.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/ipcbo.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/ipccore.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/isacat.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/isacore.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/isacorer3.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/iText.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/iTextHYPH.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/iTextXML.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/lucene-1.3.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/lwc.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/pcatAPI.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/perscommon.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/persistence.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/persmodel.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/personalization.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/persrt.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/perstranform.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/pmestub.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/scestub.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/shopadmin.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/smartstream.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/spcstub.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/spestub.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/struts.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/sxestub.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/ttestub.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/ubis_ipa.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/user.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/userr3.jar"/>

<classpathentry kind="lib" path="WEB-INF/lib/xcmadmin.jar"/>

<classpathentry kind="output" path="bin"/>

</classpath>

When I build it replaces .classpath file with

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

<classpath>

<classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/>

<classpathentry kind="lib" path="C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/jms/_comp/gen/default/public/default/lib/java/jms.jar"/>

<classpathentry kind="lib" path="C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/jdbc20/_comp/gen/default/public/default/lib/java/jdbc.jar"/>

<classpathentry kind="lib" path="C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/ejb20/_comp/gen/default/public/default/lib/java/ejb20.jar"/>

<classpathentry kind="lib" path="C:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/servlet/_comp/gen/default/public/default/lib/java/servlet.jar"/>

<classpathentry kind="src" path="source"/>

<classpathentry kind="output" path="bin"/>

</classpath>

What is the problem we are stuck? Help us please

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

When you build your application using DCs you cannot change the classpath this way. Instead you must create External Library DCs for these jars and define this as a Used DC for your application.

Check my posts in this topic for more info on how to proceed (use the 2nd option I mention there): /thread/47565 [original link is broken]