cancel
Showing results for 
Search instead for 
Did you mean: 

Java Applictions on Hana cloud platform

theanmozhi
Advisor
Advisor
0 Kudos

Hi Experts,

I have build a Dynamic web project in my local server and its working perfectly !!

I upload the java war application to my hana cloud account to access in cloud.

I have applied few javascript functions in my jsp which is wrkign in local but once i upload in cloud.. its not working..

can someone advise, why this js in jsp is not wrking in cloud? Thanks

here is the piece of script, basicaly it will clear the choser value 2 and 3 if chooser 1 is changed.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type="text/javascript"> $(function () { $("#btnReset").bind("click", function () { $("#selType")[0].selectedIndex = 0; $("#listtemplate")[0].selectedIndex = 0; }); });

maxstreifeneder
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi theankathi,

can you give us a little more details? How did you upload the code/project? The source code is also not shown. A log output would help - but that depends on if you are running your project in SAP Cloud Platform Neo or SAP Cloud Platform Cloud Foundry.

Accepted Solutions (1)

Accepted Solutions (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Theanmozhi Katheervel,

Please check which application runtime you are using. Since you are using JSP, I assume you are also using EJB. But unfortunately, no all runtimes in SCP Neo contain EJB support.

https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/7613bd28711e1014839a8273b0e...

Only Web Profile has the required libraries to run it.

I would use Eclipse with the Cloud Tools installed so you can test your app with the same runtime as you will find in your cloud account. Running on a full-blown tomcat server in your local machine isn't the same and will not reproduce the cloud environment.

Best regards,
Ivan

theanmozhi
Advisor
Advisor
0 Kudos

Hi Ivan

I see sap hana cloud platform as the execution server now in eclipse. But its asking for password.which i dont remember giving one as it was signle sign on when i created the trail account. I tried my I number password but its not accepting. I couldnt reset also as i dont see the option how i can set this one? Please advise.Thanks

Answers (2)

Answers (2)

theanmozhi
Advisor
Advisor
0 Kudos

Thanks Ivan, This helps. I have restarted the eclipse once and I see the cloud server as well.

theanmozhi
Advisor
Advisor
0 Kudos

Thanks Ivan so much for the response.

Exactly what is suspected. I am running the program in my local using Java Web server.

I also installed the software ->https://tools.hana.ondemand.com/oxygen.

But i dont see the cloud server to execute. any idea why i couldn't find the cloud server.

should i install a different eclipse version? Please advise. Thanks

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert

Hi Theanmozhi Katheervel,

There are two server configuration options for Cloud Application development in Eclipse. 1) Local: Web Profile & Tomcat 7, 8, etc. 2) SAP Cloud Platform. The 1st will run a local installation with the chosen runtime in which you can add your web application to it. The 2nd will connect Eclipse directly to your cloud account. It also allows you to add your web application (but you have to pay attention to the wizard when it asks for the runtime to deploy your app on SCP).

The 1st option will require you to have a previously created runtime server configuration based on a downloaded SDK - you do that in the SAP Cloud settings in Eclipse or during the server creation also in Eclipse (Oxygen). The 2nd option is also done in Eclipse, but the wizard asks you information about the SCP landscape, account ID and user/password and also the runtime you will be using. Once you add a module to the server it deploys directly to SCP.

If you don't see the SCP Server type nor the Web Profile and Tomcat from SAP in Eclipse, you probably didn't install the Eclipse plugins for Neo Development from this location. The setup will require you to install the plugins (to have the server definitions and interaction with SCP) and also the SDK that contains the runtime (which are represented in the tools page by a zip file).

Hope this info helps.

Best regards,
Ivan