I am trying to follow along with the examples in the book Enterprise OSGi In Action by Holly Cummins and Tim Ward. I have successfully installed and have running the Apache Aries examples download (http://archive.apache.org/dist/aries/samples-1.0.0-source-release.zip
). I want to create a simple jar that contains one servlet class. The directory structure contains two directories
1) META-INF which contains the MANIFEST.MF
2) WEB-INF which contains web.xml and the compiled simple servlet class
I am using Eclipse IDE for Java Developers Version 2019-03 (4.11.0). I know that I need to first create a new project. When I do File->New in the eclipse IDE, I am presented with many options. I do not know which one to choose so that I can successfully write my tiny servlet class and build the jar.
I want the WEB-INF/web.xml to look like this:
And I want the MANIFEST-MF file to look like this:
I chose the Java Plug-in project for File->New. I have the following errors in my project that I do not know how to resolve.
Image showing error
Can anyone help me to understand how to create the simple jar and resolve these errors? Thank you.