|Libra on Luna [message #1490727]
||Fri, 28 November 2014 11:37
| Pablo eltrán
Registered: November 2014
Surely I'm doing something wrong but after reviewing everything a lot of times, watching all the videos I've been able to found about Libra on Youtube, trying to do the same from several different ways... a I always get a 404 error when a simple Hello World is invoked.
For instance, I've created a Dynamic Web Project (2.5) with OSGi facet support and added a Hello World servlet. Everything seems fine: the dual project configuration (as Dymanic web and plugin project), etc.
If I run the Dynamic Web Project on Tomcat, I'me able to read the Hello World servlet output.
However, as OSGi Bundle... despite the MANIFEST is present and properly configured, the plugin bundled created and deployed, even it is loaded into Equinox (it is shown as ACTIVE bundle from the Apache Equinox Gogo console by running the ss command) , the servlet is not found (404) on the Equinox Server!
I've also extracted the plugin content form the jar file and it looks right: the servlet class is present as well as the web.xml descriptor file properly configured with the servlet and the mapping and the expected webapp structure (WEB-INF, etc).
Maybe I'm invoking the servlet with a wrong path...
<protocol> is http.
I've edited the MANIFEST of the plugin bundle and it contains the same
the <servlepath> corresponds to the <url-pattern> of the <servlet-mapping>
Just the same URL works with Tomcat.
PS: I've attached my project whether you want to look at it. It's quite basic.
[Updated on: Fri, 28 November 2014 19:42]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.33675 seconds