cancel
Showing results for 
Search instead for 
Did you mean: 

Using External Library in a DC problem (SP16)

former_member212767
Participant
0 Kudos

Hi,

I've been trying to get the example that Valery is outlining in his <a href="/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro">Blog</a>.

I've done it exactly as Valery says, but I can't get it to work. I create the External Library DC, add the jar to Public Part (purpose Assembly) and build. Builds ok.

I then proceed to creating the J2EE Library. It is created ok. I then add the External Lib I just created to Used DCs. This goes ok. I build the DC. There are warnings:

Warning: Warning: Source folder does not exist, will be ignored: server

Plugin initialized in 0.03 seconds

Warning: No runtime information available for development component type External Library (sap.com), cannot validate runtime dependency.

And:

createDeployArchive:

[mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\sdaprep

[cda] Creating descriptor server/provider.xml ...

[cda] WARNING: Ignoring invalid runtime dependency on js/jars (orion.com), type External Library

I've tried nearly every combination of Dependency Types When adding the used DC to J2EE DC. The jar never ends up in the SDA file in gen\default\deploy or jar in gen\default\public. I only get different types of warnings.

Here is the whole build.log:

Apr 7, 2006 8:48:00 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] WARNING: js/lib: built with warnings orion.com/js/lib(MyComponents) in variant "default" (0.753 sec) :

-


Build log -


Development Component Build (2006-04-07 08:48:00)

Component name: js/lib

Component vendor: orion.com

SC compartment: MyComponents

Configuration: LocalDevelopment

Location: local

Source code location: jarpak@UFIES-JARPAK

DC root folder: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\

DC type: J2EE Server Component

DC subtype: Library

Host: UFIES-JARPAK

DC Model check:

[dcmake] All used DCs are available locally

[dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/addLib"

[dcmake] validating dependency to public part "Tokenizer" of DC "orion.com/js/jars"

[dcmake] DC model check OK

Start build plugin:

[dcmake] using build plugin: sap.com/tc/bi/bp/addLib

[dcmake] starting build plugin from : C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\addLib\_comp\gen\default\public\addLib\

Build Plugin 'J2EE Library', Version 6.40 SP 16 (630_VAL_REL, built on 2006-02-13 00:17:07 CET)

development component: js/lib (orion.com)

software component: MyComponents (demo.sap.com)

location: local

type: J2EE Server Component, subtype Library

build variant: default

source location: jarpak@UFIES-JARPAK

plugin start time: 2006-04-07 08:48:00 GMT+02:00 (EEST)

Java VM: Java HotSpot(TM) Client VM, 1.4.2_03-b02 (Sun Microsystems Inc.)

General options:

convert *.xlf to *.properties: yes

include sources for debugging: yes

Warning: Warning: Source folder does not exist, will be ignored: server

Plugin initialized in 0.03 seconds

Warning: No runtime information available for development component type External Library (sap.com), cannot validate runtime dependency.

Preparing data context..

No 'default' JDK defined, will use running VM.

Data context prepared in 0 seconds

Executing macro file..

Using macro file: C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\addLib\_comp\gen\default\public\addLib\macros\build.vm

Creating output file: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\logs\build.xml

Macro file executed in 0.482 seconds

Starting Ant..

Using build file: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\logs\build.xml

Using build target: build

Generation folder: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426

Using Ant version: 1.5.4

prepare:

[mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\deploy

[mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\int-pp

[mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\sda

compile:

createPublicParts:

createDeployArchive:

[mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\sdaprep

[cda] Creating descriptor server/provider.xml ...

[cda] WARNING: Ignoring invalid runtime dependency on js/jars (orion.com), type External Library

packDeployArchive:

[srcpacker] Creating source archive

[srcpacker] No sources available for packing, no archive will be created.

[timer] Source archive creation finished in 0.02 seconds

[jarsap] Info: JarSAP version 20041217.1600

[jarsap] Info: JarSAPProcessing version 20060104.1634 / JarSL version 20060106.1831

[jarsap] Property jarsap.info.dir is not set.

[jarsap] Building: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\deploy\orion.comjslib.sda with compression

[timer] JarSAP finished in 0.03 seconds

build:

Ant runtime 0.161 seconds

Ant build finished with WARNINGS

Build plugin finished at 2006-04-07 08:48:00 GMT+02:00 (EEST)

Total build plugin runtime: 0.693 seconds

Build finished with WARNING

-


What am I doing wrong ?

Kind Regards,

Jari Pakarinen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Jari,

Sadly, this blog entry is quite outdated. It was created using SP11. Immediately I got feedback that things are different in SP12. In recent SPs (15/16) they are totally different.

Please read recent comments to blog -- there are some hints regarding what parts you have to create manually now.

VS

former_member212767
Participant
0 Kudos

Hi,

Could you please update the blog to be at least on > SP12 level ? Preferably SP16... or point me to some other location where this process is explained thoroughly.

Kind Regards,

Jari

Former Member
0 Kudos

Jari,

Sadly, I have only SP11 and NW04s at my desktop.

And in NW04s things work as in SP11 (!!!)

VS

Former Member
0 Kudos

Hi,

There is an issue with SP16 in using External library DC.

Go through this . This thread deals with the same issue.

Hope this helps.

Regards,

Rathna.

Answers (0)