Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Libra » Libra on Luna (Does Libra work with Luna?)
Libra on Luna [message #1490727] Fri, 28 November 2014 11:37 Go to next message
Pablo  Beltrán is currently offline Pablo BeltránFriend
Messages: 6
Registered: November 2014
Junior Member
Hi,

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>://localhost:9080/<plugin.id>/<servletpath>

<protocol> is http.

I've edited the MANIFEST of the plugin bundle and it contains the same

Web-ContextPath: /<pluin.id>

the <servlepath> corresponds to the <url-pattern> of the <servlet-mapping>

Just the same URL works with Tomcat.


Any suggestion?
Thanks!
Pablo

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

Re: Libra on Luna [message #1491184 is a reply to message #1490727] Fri, 28 November 2014 20:00 Go to previous messageGo to next message
Pablo  Beltrán is currently offline Pablo BeltránFriend
Messages: 6
Registered: November 2014
Junior Member
The console output is shown below as it might help to track bundle versions. I would like to notice that I installed the latest stable Libra milestone (0.3.1.201405141436) available from the update site:

http ://download.eclipse.org/libra/milestones/

on my Eclipse Luna instance (4.4.1).

The Target Platform Profile is the Infocenter deployable feature built against Eclipse Luna. As the ServletBridge is not included in the Luna edition, I built it from the latest sources available on the repository, hence the version is 1.3.0. Despite it, I've downgrade the ServletBridge to the 1.0.2 version shipped with the Eclipse SDK 3.7.2 version getting the same results, so it looks like not having any impact.

Another noticeable thing is that the jasper version was downgraded to support 2.5 Servlet API (Indigo) rather than the default 3.0 version.

That said, everything above works fine.

The only one pending issue would be seeing the damn HelloWorld servlet Mad



osgi> ss
"Framework is launched."


id State Bundle
0 ACTIVE org.eclipse.osgi_3.10.1.v20140909-1633
1 ACTIVE com.ibm.icu_52.1.0.v201404241930
2 ACTIVE com.jcraft.jsch_0.1.50.v201403120620
3 ACTIVE javax.el_2.2.0
4 ACTIVE javax.servlet.jsp_2.0.0.v201101211617
5 ACTIVE javax.servlet_3.0.0.v201112011016
6 ACTIVE javax.xml_1.3.4.v201005080400
7 ACTIVE org.apache.commons.el_1.0.0.v201101211617
8 ACTIVE org.apache.commons.logging_1.1.1.v201101211721
9 ACTIVE org.apache.felix.gogo.command_0.10.0.v201209301215
10 ACTIVE org.apache.felix.gogo.runtime_0.10.0.v201209301036
11 ACTIVE org.apache.felix.gogo.shell_0.10.0.v201212101605
12 ACTIVE org.apache.felix.webconsole_4.2.2.all
13 ACTIVE org.apache.jasper_5.5.17.v201101211617
14 ACTIVE org.apache.lucene.analysis_3.5.0.v20120725-1805
15 ACTIVE org.apache.lucene.core_3.5.0.v20120725-1805
16 ACTIVE org.eclipse.core.contenttype_3.4.200.v20140207-1251
17 ACTIVE org.eclipse.core.expressions_3.4.600.v20140128-0851
18 ACTIVE org.eclipse.core.jobs_3.6.0.v20140424-0053
19 ACTIVE org.eclipse.core.net_1.2.200.v20140124-2013
20 ACTIVE org.eclipse.core.runtime.compatibility_3.2.200.v20140128-0851
21 ACTIVE org.eclipse.core.runtime_3.10.0.v20140318-2214
22 ACTIVE org.eclipse.equinox.app_1.3.200.v20130910-1609
23 ACTIVE org.eclipse.equinox.common_3.6.200.v20130402-1505
24 ACTIVE org.eclipse.equinox.console_1.1.0.v20140131-1639
25 ACTIVE org.eclipse.equinox.http.jetty_3.0.200.v20131021-1843
26 ACTIVE org.eclipse.equinox.http.registry_1.1.300.v20130402-1529
27 ACTIVE org.eclipse.equinox.http.servlet_1.1.500.v20140318-1755
28 ACTIVE org.eclipse.equinox.jsp.jasper.registry_1.0.200.v20100503
29 ACTIVE org.eclipse.equinox.jsp.jasper_1.0.300.v20110502
30 ACTIVE org.eclipse.equinox.preferences_3.5.200.v20140224-1527
31 ACTIVE org.eclipse.equinox.registry_3.5.400.v20140428-1507
32 RESOLVED org.eclipse.equinox.security.win32.x86_64_1.0.100.v20130327-1442
Master=33
33 ACTIVE org.eclipse.equinox.security_1.2.0.v20130424-1801
Fragments=32
34 ACTIVE org.eclipse.equinox.servletbridge_1.3.0.201411281832
35 ACTIVE org.eclipse.help.base_4.0.200.v20140925-0400
36 ACTIVE org.eclipse.help.webapp_3.6.300.v20140407-1855
37 ACTIVE org.eclipse.help_3.6.0.v20130326-1254
38 ACTIVE org.eclipse.jetty.continuation_8.1.14.v20131031
39 ACTIVE org.eclipse.jetty.http_8.1.14.v20131031
40 ACTIVE org.eclipse.jetty.io_8.1.14.v20131031
41 ACTIVE org.eclipse.jetty.security_8.1.14.v20131031
42 ACTIVE org.eclipse.jetty.server_8.1.14.v20131031
43 ACTIVE org.eclipse.jetty.servlet_8.1.14.v20131031
44 ACTIVE org.eclipse.jetty.util_8.1.14.v20131031
45 ACTIVE org.eclipse.jetty.xml_8.1.14.v20131031
46 ACTIVE org.eclipse.osgi.services_3.4.0.v20140312-2051
47 ACTIVE org.eclipse.update.configurator_3.3.300.v20140518-1928
48 ACTIVE com.kintosoft.test.libra_1.0.0
Re: Libra on Luna [message #1492273 is a reply to message #1490727] Sat, 29 November 2014 18:12 Go to previous message
Pablo  Beltrán is currently offline Pablo BeltránFriend
Messages: 6
Registered: November 2014
Junior Member
Solved!, sorry for the noise.

Luna + Libra + Gemini works! Smile

Thanks for this awesome project!
Previous Topic:Context
Next Topic:Warproducts in a headless build?
Goto Forum:
  


Current Time: Wed Sep 19 19:33:29 GMT 2018

Powered by FUDForum. Page generated in 0.02027 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top