on 2015 Jan 19 4:56 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
Shaji,
You can also simply deploy the JAR resource file to the NW server:
No need to build your own EAR for this unless you are building your own EJB and WAR content alongside of it.
Sam
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
Hi Shaji,
You should be able to import it in your project's web folder.
Thanks,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.