Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » register servlet manually at HttpService
register servlet manually at HttpService [message #607501] Mon, 16 August 2010 13:50 Go to next message
chrisatpinguin  is currently offline chrisatpinguin Friend
Messages: 18
Registered: May 2010
Junior Member
Hi,

I try to register a Servlet manually to the HttpService provided by Virgo.

This is my Code:
final HttpService httpService = (HttpService) context
.getService(reference);

try {
httpService.registerServlet(url, servlet, null, null);
} catch (final Exception e) {
//some logging code
}
It seems that this works, but i could not find my Servlet at the URL I configured.

Example: url = "/myTestServlet", I expected the complete URL is http://localhost:8080/myTestServlet But everything I get is a 404 error from tomcat and I do not find anything in the logfiles.

Do I have to use a different URL?
Re: register servlet manually at HttpService [message #607504 is a reply to message #607501] Mon, 16 August 2010 15:45 Go to previous message
Dmitry Sklyut is currently offline Dmitry SklyutFriend
Messages: 279
Registered: January 2010
Senior Member
I am pretty sure HttpService is not deployed out of the box with virgo.

try this:

start server
telnet localhost 2401
> services
or
> services (objectClass=*HttpService)

You will not find it. You can deploy any http service implementation if you want. I wonder if just deploying war files or web bundles be enough for you? The org.eclipse.gemini.web will pick those up automatically.

http://wiki.eclipse.org/Gemini/Web
Previous Topic:Re: Where to configure org.osgi.framework.* properties
Next Topic:Re: Where to configure org.osgi.framework.* properties
Goto Forum:
  


Current Time: Thu Apr 25 23:33:27 GMT 2024

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

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

Back to the top