Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Ejb not injected into Servlet


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.

Former Member
Former Member replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question