Embedded web application [message #143634] |
Tue, 14 October 2003 10:14  |
Eclipse User |
|
|
|
Originally posted by: Eric.Jain.isb-sib.ch
I'm trying to embed a web application within an existing plug-in. Currently,
I simply have a bunch of static HTML files in a "web" subdirectory within
the plug-in. In MyPlugin.startup() I do the following:
String id = getDescriptor().getUniqueIdentifier():
Path path = new Path("web");
WebappManager.start("test", id, path);
log.debug("Port: " + WebappManager.getPort());
When I then point a browser to http://localhost:xyz/test/, I get: "The
document that you have requested is not available."
If I change the path to http://localhost:xyz/help/, the same message
appears, initially. Only after opening the help from within Eclipse at least
once does the help application load correctly. I therefore assume I am
missing one step in order to activate my own web application, but what?
--
Eric Jain
|
|
|
|
|
|
Re: Embedded web application [message #143974 is a reply to message #143669] |
Tue, 14 October 2003 13:15  |
Eclipse User |
|
|
|
Originally posted by: Eric.Jain.isb-sib.ch
> What you did is enough, and works for me. Check the .log. There
> might be something else that has a side effect as you describe.
The problem turned out to be that I was trying to put the web application
root into a sub directory within the plug-in. The following works:
String id = getDescriptor().getUniqueIdentifier();
WebappManager.start("test", id, new Path(""));
--
Eric Jain
|
|
|
Powered by
FUDForum. Page generated in 1.06998 seconds