cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Third party jar file location MII 12.2

shaji_chandran
Participant
0 Kudos
612

Hi Experts,

I have created a JSP page in MII which consumes a third party Java API. I would like to know the location (path) on MII server  where I need to keep the jar files of this API. I do not want to create a custom action since JSP is enough to achieve my scenario. Please let me know if you have any idea about this

I am using MII 12.2 version

Thanks

Shaji

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Shaji,

In your workbench, under the WEB folder where you have your JSP file just import your third party jar file also in the same folder. MII will take it from there itself.

Thanks

Nirjar

shaji_chandran
Participant
0 Kudos

Hi Nirjar,

I tried that as well but still I am getting package does not exist error while compiling JSP file.

Thanks

Shaji

0 Kudos

Hi Shaji,

Can you please copy the jar file at any one of the below mentioned location  and try again :-

\usr\sap\<SID>\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\root\WEB-INF\lib

or

\usr\sap\<SID>\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\root\WEB-INF\classes

I hope it should work at least from here.

Thanks

Nirjar

Former Member
0 Kudos

Hi Shaji,

Ideally jar files should never be placed directly on server location like this. The moment you re-deploy your application, the jar placed why you will be gone.

If your JSP is using just the libraries from the jar file, bundle it up as an EAR and deploy it on the server.

Regards,

Anushree

shaji_chandran
Participant
0 Kudos

Hi Anushree,

Yes I agree 100% with you.

Could you please let me knwo the process how to deploy ear file on MII server?

Thanks

Shaji

Former Member
0 Kudos

Hi Shaji,

Using an IDE(prefereably NWDS) is the best way to do this. There are other ways stated here:

Deploying Applications - Developing Java EE 5 Applications - SAP Library

Regards,

Anushree

salvatore_castro
Product and Topic Expert
Product and Topic Expert
0 Kudos

Shaji,

You can also simply deploy the JAR resource file to the NW server:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60d99678-1a29-2d10-94b4-9d9a67b71...

No need to build your own EAR for this unless you are building your own EJB and WAR content alongside of it.

Sam

shaji_chandran
Participant
0 Kudos

Hi Sam,

Thanks for your response.

I had a look at the document and find that we need to have NWDS for packing the jar. Currently I am not using NWDS. Do I need to install NWDS and make a connection to MII for deploying the JAR file on NW Server?

Thanks

Shaji

salvatore_castro
Product and Topic Expert
Product and Topic Expert
0 Kudos

I think that NWDS is the easiest way but there is also this link that I found:

http://scn.sap.com/thread/3502861

This question may best be answered on the NW (AS Java) Forum.

Sam

swaroop_anasane
Active Contributor
0 Kudos

Hi Shaji,

You should be able to import it in your project's web folder.

Thanks,
Swaroop

shaji_chandran
Participant
0 Kudos

Hi Swaroop,


Thanks for your reply.

I can see all my project folders under below folder. But I could not find any web folder under project folders.

E:\usr\sap\SID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\root\CM\

Could you please provide me the path which you intent

Thanks

Shaji