Skip to Content
avatar image
Former Member

Ejb not injected into Servlet

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 29, 2015 at 09:06 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded