unable to load class using sample.http.registry [message #72929] |
Sat, 09 September 2006 23:54 |
Eclipse User |
|
|
|
Originally posted by: bendevlists.gmail.com
I have been trying to get the sample.http.registry to function. I am using
Tomcat 5.5.17. The output of the ss on the console gives me the following:
Framework is launched.
id State Bundle
0 ACTIVE system.bundle_3.2.100.200607211737
Fragments=8
1 ACTIVE org.eclipse.equinox.common_3.2.0.200607211737
2 ACTIVE org.eclipse.update.configurator_3.2.0.200607211737
3 ACTIVE
org.eclipse.equinox.servlet.bridge.http_3.2.0.200607211737
4 ACTIVE org.eclipse.equinox.http.registry_3.2.0.200607211737
7 ACTIVE org.eclipse.equinox.registry_3.2.100.200607211737
8 RESOLVED
org.eclipse.equinox.servlet.bridge.extensionbundle_3.2.0
Master=0
10 RESOLVED org.eclipse.osgi.services_3.1.100.200607211737
19 RESOLVED sample.http_1.0.0
20 ACTIVE sample.http.registry_1.0.0
When going to /ext/helloworld I receive the following error:
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: Plug-in sample.http.registry was unable to
load class sample.http.registry.HelloWorldServlet.
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.initializeDelegate(ServletManager.java:166)
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:135)
org.eclipse.equinox.servlet.bridge.http.internal.ServletRegi stration.handleRequest(ServletRegistration.java:78)
org.eclipse.equinox.servlet.bridge.http.internal.ProxyServle t.processAlias(ProxyServlet.java:107)
org.eclipse.equinox.servlet.bridge.http.internal.ProxyServle t.service(ProxyServlet.java:57)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.eclipse.equinox.servlet.bridge.launcher.BridgeServlet.se rvice(BridgeServlet.java:95)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.eclipse.core.runtime.CoreException: Plug-in sample.http.registry was
unable to load class sample.http.registry.HelloWorldServlet.
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:178)
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:162)
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:787)
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.initializeDelegate(ServletManager.java:156)
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:135)
org.eclipse.equinox.servlet.bridge.http.internal.ServletRegi stration.handleRequest(ServletRegistration.java:78)
org.eclipse.equinox.servlet.bridge.http.internal.ProxyServle t.processAlias(ProxyServlet.java:107)
org.eclipse.equinox.servlet.bridge.http.internal.ProxyServle t.service(ProxyServlet.java:57)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.eclipse.equinox.servlet.bridge.launcher.BridgeServlet.se rvice(BridgeServlet.java:95)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
I have put the directory sample.http.registry within the
WEB-INF/platform/plugins/
Any help will be appreciated, or a guide on setting up the
sample.http.registry example.
I am also looking for any tutorials or references for using Equinox within
a servlet enviroment and working with current servlets I have.
|
|
|
Re: unable to load class using sample.http.registry [message #72981 is a reply to message #72929] |
Mon, 11 September 2006 02:34 |
Eclipse User |
|
|
|
Originally posted by: skaegi.sympatico.ca
Hi Ben,
It looks like you've configuration is fine.
I'm going to guess that it might be something wrong with the
sample.http.registry bundle itself.
I wonder if you created the bundle by repackaging the folder?
The zip contains the actual project and the paths are wrong if used as a
bundle. (e.g. the classes are in /bin)
You should still be able to access helloworld.html as coincidentally its in
the right place.
I've enclosed an exported bundle based on the project that I've just
verified works. (...it's just 2KB)
-Simon
"Ben" <bendevlists@gmail.com> wrote in message
news:80b31d1fd5b453b099113d41aa5d955e$1@www.eclipse.org...
> I have been trying to get the sample.http.registry to function. I am using
> Tomcat 5.5.17. The output of the ss on the console gives me the following:
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.100.200607211737
> Fragments=8
> 1 ACTIVE org.eclipse.equinox.common_3.2.0.200607211737
> 2 ACTIVE org.eclipse.update.configurator_3.2.0.200607211737
> 3 ACTIVE
> org.eclipse.equinox.servlet.bridge.http_3.2.0.200607211737
> 4 ACTIVE org.eclipse.equinox.http.registry_3.2.0.200607211737
> 7 ACTIVE org.eclipse.equinox.registry_3.2.100.200607211737
> 8 RESOLVED
> org.eclipse.equinox.servlet.bridge.extensionbundle_3.2.0
> Master=0
> 10 RESOLVED org.eclipse.osgi.services_3.1.100.200607211737
> 19 RESOLVED sample.http_1.0.0
> 20 ACTIVE sample.http.registry_1.0.0
>
> When going to /ext/helloworld I receive the following error:
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Plug-in sample.http.registry was unable to
> load class sample.http.registry.HelloWorldServlet.
>
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.ini
tializeDelegate(ServletManager.java:166)
>
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.ser
vice(ServletManager.java:135)
>
org.eclipse.equinox.servlet.bridge.http.internal.ServletRegi stration.handleR
equest(ServletRegistration.java:78)
>
org.eclipse.equinox.servlet.bridge.http.internal.ProxyServle t.processAlias(P
roxyServlet.java:107)
>
org.eclipse.equinox.servlet.bridge.http.internal.ProxyServle t.service(ProxyS
ervlet.java:57)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
org.eclipse.equinox.servlet.bridge.launcher.BridgeServlet.se rvice(BridgeServ
let.java:95)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> root cause
>
> org.eclipse.core.runtime.CoreException: Plug-in sample.http.registry was
> unable to load class sample.http.registry.HelloWorldServlet.
>
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(
RegistryStrategyOSGI.java:178)
>
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutabl
eExtension(RegistryStrategyOSGI.java:162)
>
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtensi
on(ExtensionRegistry.java:787)
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:243)
>
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutab
leExtension(ConfigurationElementHandle.java:51)
>
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.ini
tializeDelegate(ServletManager.java:156)
>
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.ser
vice(ServletManager.java:135)
>
org.eclipse.equinox.servlet.bridge.http.internal.ServletRegi stration.handleR
equest(ServletRegistration.java:78)
>
org.eclipse.equinox.servlet.bridge.http.internal.ProxyServle t.processAlias(P
roxyServlet.java:107)
>
org.eclipse.equinox.servlet.bridge.http.internal.ProxyServle t.service(ProxyS
ervlet.java:57)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
org.eclipse.equinox.servlet.bridge.launcher.BridgeServlet.se rvice(BridgeServ
let.java:95)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> I have put the directory sample.http.registry within the
> WEB-INF/platform/plugins/
>
>
> Any help will be appreciated, or a guide on setting up the
> sample.http.registry example.
>
>
> I am also looking for any tutorials or references for using Equinox within
> a servlet enviroment and working with current servlets I have.
>
|
|
|
Re: unable to load class using sample.http.registry [message #73144 is a reply to message #72929] |
Fri, 15 September 2006 08:27 |
Eclipse User |
|
|
|
Originally posted by: ridcully560.yahoo.com
Hello,
I've been trying to use that sample, too. But when I load it to my
eclipse, or try to rebuild the structure for my own projects, eclipse
always tells me, that the extension-points
"org.eclipse.equinox.http.registry.servlets" and
"org.eclipse.equinox.http.registry.recources" are unknown.
Any idea what might be wrong (Eclipse 3.2 and the plugins from
eclipse-equinox-3.2.zip are installed).
Johannes
|
|
|
Re: unable to load class using sample.http.registry [message #73162 is a reply to message #73144] |
Fri, 15 September 2006 09:22 |
Eclipse User |
|
|
|
Originally posted by: ridcully560.yahoo.com
Hi,
got it working - my fault: I simply forgot the incubator-bundles
(another new install of eclipse).
Johannes
Johannes schrieb:
> Hello,
>
> I've been trying to use that sample, too. But when I load it to my
> eclipse, or try to rebuild the structure for my own projects, eclipse
> always tells me, that the extension-points
> "org.eclipse.equinox.http.registry.servlets" and
> "org.eclipse.equinox.http.registry.recources" are unknown.
>
> Any idea what might be wrong (Eclipse 3.2 and the plugins from
> eclipse-equinox-3.2.zip are installed).
>
> Johannes
|
|
|
Powered by
FUDForum. Page generated in 0.03069 seconds