cancel
Showing results for 
Search instead for 
Did you mean: 

How to package a par into an ear

Former Member
0 Kudos

Hi,

I have built a par. Now I want to package it into an ear, as I want to use application-j2ee-engine.xml. I've read Packaging PARs in J2EE Applications and add

the following to application-J2ee-engine.xml:

<modules-additional>

<module>

<entry-name>

KMCTitan.par

</entry-name>

<container-type>

PortalRuntimeContainer

</container-type>

</module>

</modules-additional>

But, my question is, where should this KMCTitan.jar be placed?

I am using NWDS.

Thanks,

Ray

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hai ,

create j2ee library project >add jars in server-provider.xml> deploy it

open application-j2ee -engine.xml --> in general tab add reference to that library project.

this will solve your problem.

regards,

Naga

Former Member
0 Kudos

Hi,

Thanks, I am manually doing this, and it works.

But I just wonder why it cannot find org.apache.tools.ant.Main, when using sapmake_util to do that.

Thanks,

Ray

Vlado
Advisor
Advisor
0 Kudos

Hi Ray,

par2sda.bat calls sapmake.bat which uses ant from the following location:


%SAPIDE_HOME%JDTeclipsepluginsorg.apache.ant_1.5.3

Please check if you have strictly followed SAP note 696084 and have set the environment variable SAPIDE_HOME correctly. Also, check if ant.jar and optional.jar are present in the location mentioned above.

Hope it helps!

-Vladimir

Answers (2)

Answers (2)

Former Member
0 Kudos

Ray,

As per the J2EE specification, we should put all the .jar files in lib folder.

I suggest you to follow the same..

former_member187702
Active Participant
0 Kudos

Hi Ray

Please see SAP note 696084

Regards

Former Member
0 Kudos

Hi Shilpa,

Thanks for help. I have download sapmake_util from Note 696084 and followed all steps.

However, when I run par2sda,

 java.lang.NoClassDefFoundException: org.apache.tools.ant.Main

.

I have already installed ant and put ant.jar in classpath. So what could be the cause of this error?

Thanks,

Ray