cancel
Showing results for 
Search instead for 
Did you mean: 

Ejb not injected into Servlet

Former Member
0 Kudos

Hello!

I'm just getting started with HANA Cloud Platform. I went through the Using Java EE Web Profile HANA Cloud Tutorial and created the HelloWorldServlet and the bean. The text from the bean is displayed if I run the example on Tomcat. But when I try to run it on HANA Cloud it does not work since the bean does not get injected and is null, which leads to a NullPointerException.

In the Server - SAP HANA Cloud Platform properties I used the SDK neo-javaee6-wp-sdk-2.71.8 which I downloaded from the instruction site. I also added all of the jar files inside to the Eclipse project (I'm not sure if that's necessary but just in case, at least the ejb one will be needed so that the imports are found).

Are there any other things which I should check? Any hints are welcome.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This issue is resolved. I reused the HelloWorld part from the Non-EE Tutorial and missed the runtime change when I continued with the EE part.

Answers (0)