on 11-19-2020 11:48 AM
Hi all,
I'm trying to following this https://developers.sap.com/tutorials/s4sdk-scp-neo-sample-application.html tutorial which basically boils down to this (after installing java jdk 8 and maven):
generate archetype, compile and run on local server
mvn archetype:generate -DarchetypeGroupId=com.sap.cloud.sdk.archetypes -DarchetypeArtifactId=scp-neo-javaee7 -DarchetypeVersion=RELEASE (I used myapp as application name)
cd myapp
mvn clean install
this all goes well (I tried to deploy the .war on my Cloud Account and it works).
then I deploy to my local hana CP.
mvn scp:clean scp:push -pl application
If I browse on my pc to http://localhost:8080/myapp-application/hello I get the login screen, i enter test / test but the servlet never comes up. I can confirm test / test is working (if I enter some other username it say "authentication failed"), but basically the runtime never lets me fetch the resources.
Where is the error ? Its very easy to replicate - I tested in Windows and Linux and in both cases the scp is "stuck" at the login screen.
Hi Matteo,
I am facing same issue how did you solve this issue?
Regards,
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matteo,
Essentially, the fix is to remove the following line from server/conf/context.xml of neo sdk:
<Valve className="com.sap.cloud.runtime.kotyo.tomcat.support.CookieValve"/>
So either you can do the fix manually or upgrade to the latest neo sdk version 1.88.x which is to be released on December 3 on Maven central, where this authentication issue in local deployment is fixed.
Best Regards,
Tanvi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Until there is a solution you can work around this by commenting out the authentication parts completely in the web.xml. For local deployments this is fine, so to unblock you I would recommend that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, I can reproduce the issue and am looking into a fix.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.