0

OpenEJBException on deploying a Java application on HCP

Nov 11, 2016 at 01:26 PM

43

Hi all,

I'd like to deploy my Java Backend Application on HCP. After Uploading the status changes to Starting and after a short while there will be a log entry stating that the application couldn't be deployed. When I look into the traces I get the following error:

ERROR#org.eclipse.virgo.web.enterprise.openejb.deployer.VirgoDeployerEjb##anonymous#fs-watcher#na#a2618100a#qpserver#web##Error while deploying application with real path '/usr/sap/ljs/webapps/qp-server' and web context path '/qp-server'org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module qp-server: while trying to load from index 28506 of a byte (or boolean) array with length 17725, loaded from the first parameter of the method

Does anyone have an idea what is causing this and how to resolve this?
I also checked StackOverflow and the proposed answer of changing jdk 1.8 to 1.7 didn't work.

Thanks in advance.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Pankaj Kumar SAP Employee Nov 17, 2016 at 07:55 PM
0

It seems your application is using OpenEJBs and you maybe using a runtime that doesn't support that. The runtime that supports EJB (lite) is called "SAP HANA Cloud Platform SDK for Java EE 6 Web Profile" You can download this runtime from

https://tools.hana.ondemand.com/#cloud

Please keep in mind that this runtime only support the EJB Lite version ( see more here https://help.hana.ondemand.com/help/frameset.htm?be583e0a135640bcb06ef2db6a6ff51a.html and for differences between EJB 3.1 and EJB 3.1 Lite, see the Java EE 6 specification, JSR 318: Enterprise JavaBeans, section 21.1)

Regards

Pankaj

Show 1 Share
10 |10000 characters needed characters left characters exceeded

I wasn't able to completely identify the problem but I did find a solution: instead of manually importing the war file I imported it into eclipse and deployed it from there. That did the trick.

0