on 10-23-2019 10:30 AM
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; }); });
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Thanks Ivan, This helps. I have restarted the eclipse once and I see the cloud server as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.