Skip to Content

Load run time libraries on to SAP Tomcat 8 before the Java application starts

I have a requirement where I have to load a few runtime libraries on to Cloud Tomcat / TomEE server before the application starts. How do I do that in the SAP Cloud platform Neo environment? I tried loading them from WEB-INF/lib folder but my Application is starting before the libraries get loaded and throwing me a NoClassDefFoundError. Could anyone please help me out here.

Add a comment
10|10000 characters needed characters exceeded

  • Hi Ivan,

    This is happening when I deploy the application to SCP-Neo. In local also, this is not working. But this is working when I add the libraries to lib folder in SDK. Could you please let me know how to proceed over this.

  • 1) Could you please share your pom.xml

    2) Could you please share how you are generating the war file

    3) If not using maven, please let us know how you've created the project and which IDE you are using.

    My two cents on this: if you are not using a maven project or the correct eclipse project type, the libraries aren't being loaded into the correct places and when you build your war file the lib folder may be empty. There is also the possibility that you are using the wrong lib path in contrast to the one configured by eclipse while using a faceted project.

  • Hi Ivan,

    It looks like SAP Tomcat Web Profile server is a Web profile and not a Full Profile server so it doesn't have JMS support which we are explicitly trying to achieve. So going through different blogs, we came to a conclusion that we won't be able to have Enterprise messaging in SAP Cloud Neo environment. Thanks for your help.

    Regards,

    Sai Tharun

Related questions

1 Answer

  • Posted on Feb 26, 2019 at 07:28 PM

    Hi M M Sai,

    Enterprise Messaging with JMS can be achieved either via:

    Best regards,
    Ivan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.