cancel
Showing results for 
Search instead for 
Did you mean: 

can't deploy helloworld servlet to hcp

peter_neumayer
Explorer
0 Kudos

I have windows 10, eclipse mars version. java 8, and use neo-java-web-sdk-1.95.34 version. when I start deployment

I get message

Problem during deploymentJava version [8] is not compatible with the currently specified runtime; use runtime neo-java-web 2.x

Java version [8] is not compatible with the currently specified runtime; use runtime neo-java-web 2.x

If I try to configure this neo-java-web-sdk- 2.42.18   under Preferences Server Runtime Environment I get an error message ... not possible to create Java Web runtime using Java Web Tomcat 7 SDK.

Please advice.

Thanks,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

You should use Java Web Tomcat 7 runtime type in Eclipse with the Java Web Tomcat 7 SDK.

peter_neumayer
Explorer
0 Kudos

Hi Vladimir,

it took my several attempts still to make it work , but your hint was the right one.

thanks a lot ,

Peter

0 Kudos

Hi,

Can you please describe precisly what (how) you did on Eclipse with the Tomcat SDK?
I cannot make this running.

Thx

Patrick

Former Member
0 Kudos

Hi Patrick,

I faced the same issue during deploy. Please check Windows->Preferences->Server->Runtime Environments tha Java Web Tomcat 7 is present and path points to the extracted sdk.

like C:\SAP\HCP\neo-java-web-sdk-2.45.16.2

Then please check Properties for your HelloWord if the target runtime matches

Then, during deploy, (Run On Server), chose explicit the Java Web Tomcat 7 Runtime

After that, it was fine to deploy.

Of nothing of that works, try to delete the project and recreate it with given target runtime again.

Best regards,

Matthias

0 Kudos

Hello Vladimir-


This is the correct answer for Peter, who is just trying to get his Hello World application into HCP.

For those having trouble deploying Java Web and Java EE applications to HANA Cloud Platform:  the issue is with your Java Runtime Environment, not with the Application Runtime Container (ARC) you chose.  Tomcat is the only HCP ARC currently supporting Java 1.8, Java Web and Java EE require that you are using Java 1.7

Ensure all your build and runtime/deployment options in Eclipse are set to use Java 1.7.  If you've ensure all the settings are correct and still get these errors, it may help to export the WAR file and deploy to Hana Cloud Platform using the neo tool from the client connector, or the upload WAR option from the HCP cockpit (application->update->upload).

Thank you

JS

marcosmata
Participant
0 Kudos

Thanks man.

denniss_
Explorer
0 Kudos

The project properties did the trick, many thanks. Now all running fine with Java 8

former_member357090
Discoverer
0 Kudos

Thanks Matthias! It resolved my issue too.

0 Kudos

Thanks Matthias!

It resolved my issue too.

Remember

When we deploy app to HCP and run app from Eclipse

Trial account = 2 active applications

0 Kudos

Esta es la solución!

Gracias...

Answers (0)