cancel
Showing results for 
Search instead for 
Did you mean: 

Error build time in DC - add java file to dc

Former Member
0 Kudos

How to add the java file to Webdynpro DC?

I'm appreciated for answers.

Regards

Malar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Malar,

1. Add Java Classes to JAR.

2. And JARS to External Library DC.

3. Create Public Parts Compile & Assembly to External Library DC.

4. Now add This External Library DC as Used DCs in your WEbDynpro DC.

This is the way to add your custom java classes.

Thanks,

Raags

Former Member
0 Kudos

Hi Raags,

Worklocation WD application and Worklocations backend java project file is here.WD Application is working fine. I want to include the application through NWDI that time i got DC Build error.

WorkLocationBackend java has two class files (Worklocation.class, WorklocationBackend.class) it is under com/wl/WorkLocation.java, Worklocation.class, WorkLocationBackend.java, WorklocationBackend.class

I added two class files to one com.wl.jar. I created External Library DC added jar file in library Public Parts. WD DC Used DC I added the External Library DC.

I am still get the Build error. How to create Public parts Compile and Assembly in External Library DC .

Could you Explain Briefly..

Thanks

Malar.

Former Member
0 Kudos

Malar,

So, you havent created the Public Parts. Pls go thru the below blogs for detail instructions

/people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas

/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro

As you havent created PPs you are getting errors. follow the above to get rid of those errors.

Thanks,

Raags

Former Member
0 Kudos

Hi Raags,

Build time it doesn't show any error. but activation time it display the error message below...

Analyse activities... started at 2007-04-11 10:52:07.120 GMT

Development line state verification started at 2007-04-11 10:52:07.576 GMT

Verification of the development line [ws/PD1TRK1/ae.com_PASSPORT_SC1/dev/active/] SUCCEEDED

Development line state verification finished at 2007-04-11 10:52:07.602 GMT and took 26 ms

Cache verification, level 2 (Comparison of attributes) started at 2007-04-11 10:52:07.602 GMT

Verification of the following object:

[DC: ae.com/home/workloca, group: 0] SUCCEEDED

Cache verification finished at 2007-04-11 10:52:07.636 GMT and took 34 ms

Analyse dependencies to predecessor activities... finished at 2007-04-11 10:52:07.637 GMT and took 315 ms

CREATE: Development Component "ae.com/home/workloca"

1 component to be build in compartment "ae.com_PASSPORT_SC1_1"

Analyse activities... finished at 2007-04-11 10:52:07.803 GMT and took 683 ms

Calculate all combinations of components and variants to be built...

"ae.com/home/workloca" variant "default"

"ae.com/home/workloca" variant "default" cannot be built. Activation will fail.

INVALID dependency is declared to public part: ExternaLibAssembly.

[DC 723 variant "default"][SC 497 "ae.com_PASSPORT_SC1_1"] using [PP ExternaLibAssembly of DC 724 at Build-Time Dependency]

Prepare build environment in the file system... started at 2007-04-11 10:52:07.861 GMT

Prepare build environment in the file system... finished at 2007-04-11 10:52:07.862 GMT and took 1 ms

===== Pre-Processing ===== finished at 2007-04-11 10:52:07.876 GMT and took 1 s 95 ms

Change request state from PROCESSING to FAILED

ERROR! The following problem(s) occurred during request processing:

ERROR! The following error occurred during request processing:Activation failed due to component "ae.com/home/workloca" variant "default". The component is BROKEN.

REQUEST PROCESSING finished at 2007-04-11 10:52:07.877 GMT and took 1 s 113 ms

Thanks

Malar.

Former Member
0 Kudos

Wrong! You should use a Java DC.

Former Member
0 Kudos

Main Webdynpro Project Lib contains one WKL_Model.jar file. So I created Extenal DC for this jar file.

How to create a Java DC and how to add the com.wl package to that Java DC?

Then How to add the Java DC and External Lib DC to Main WD DC?

please help me

Thanks

Malar.

Former Member
0 Kudos

If you develop your own Java classes you should use a Java DC.

If you want to use third-party classes that come as a jar, you should use an External Library DC.

There are multiple topics and blogs on SDN explaining how to do this.

Answers (0)