InvokerServlet cannot be loaded in Tomcat 6.0.14 in Eclipse SDK 3.3.0 [message #200769] |
Sun, 30 September 2007 17:37  |
Eclipse User |
|
|
|
Problem: InvokerServlet cannot be loaded in Tomcat 6.0.14 in Eclipse SDK
3.3.0
Error: "org.apache.catalina.servlets.InvokerServlet is privileged and cannot
be loaded by this web application"
Software:
Eclipse SDK, Version: 3.3.0, Build id: I20070621-1340
wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip
jdk-6u2-windows-i586-p.exe
apache-tomcat-6.0.14.exe
Window XP Pro SP2
Procedure:
In Servers view, define a new server for Tomcat 6.0.14 using jdk1.6.0_02.
Enabled servlet invoker by uncommenting the following lines in web.xml.
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
In Servers view, start server.
The following error appears in the Console view:
Sep 30, 2007 2:26:50 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C:\Program
Files\Java\jdk1.6.0_02\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WIND OWS\system32;C:\WINDOWS;C:\DOS\Perl\site\bin;C:\DOS\Perl\bin ;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ Program
Files\ATI Technologies\ATI Control Panel;"C:\Program Files\Common
Files\Roxio Shared\DLLShared";C:\Program Files\Common Files\Roxio
Shared\DLLShared;C:\Program Files\Common Files\Adobe\AGL;"C:\Program
Files\Zone Labs\ZoneAlarm\MailFrontier";C:\Program Files\Microsoft\Support
Tools\;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\CVSNT\
Sep 30, 2007 2:26:50 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 30, 2007 2:26:50 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1215 ms
Sep 30, 2007 2:26:50 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 30, 2007 2:26:50 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
Caused by: java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.InvokerServlet is privileged and cannot be
loaded by this web application
at
org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:1134)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrappe r.java:981)
at
org.apache.catalina.core.StandardContext.loadOnStartup(Stand ardContext.java:4045)
at
org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4351)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at
org.apache.catalina.core.StandardHost.start(StandardHost.jav a:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
at
org.apache.catalina.core.StandardService.start(StandardServi ce.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer .java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566 )
... 6 more
|
|
|
Re: InvokerServlet cannot be loaded in Tomcat 6.0.14 in Eclipse SDK 3.3.0 [message #200847 is a reply to message #200769] |
Mon, 01 October 2007 09:38   |
Eclipse User |
|
|
|
Why do want to enable the InvokerServlet? There are different ways of
handling this, depending on the reason.
Cheers,
Larry
John wrote:
> Problem: InvokerServlet cannot be loaded in Tomcat 6.0.14 in Eclipse SDK
> 3.3.0
>
>
>
> Error: "org.apache.catalina.servlets.InvokerServlet is privileged and cannot
> be loaded by this web application"
>
>
>
> Software:
>
> Eclipse SDK, Version: 3.3.0, Build id: I20070621-1340
>
> wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip
>
> jdk-6u2-windows-i586-p.exe
>
> apache-tomcat-6.0.14.exe
>
> Window XP Pro SP2
>
>
>
> Procedure:
>
> In Servers view, define a new server for Tomcat 6.0.14 using jdk1.6.0_02.
>
> Enabled servlet invoker by uncommenting the following lines in web.xml.
>
>
>
> <servlet>
>
> <servlet-name>invoker</servlet-name>
>
> <servlet-class>
>
> org.apache.catalina.servlets.InvokerServlet
>
> </servlet-class>
>
> <init-param>
>
> <param-name>debug</param-name>
>
> <param-value>0</param-value>
>
> </init-param>
>
> <load-on-startup>2</load-on-startup>
>
> </servlet>
>
>
>
> <servlet-mapping>
>
> <servlet-name>invoker</servlet-name>
>
> <url-pattern>/servlet/*</url-pattern>
>
> </servlet-mapping>
>
>
>
> In Servers view, start server.
>
> The following error appears in the Console view:
>
>
>
> Sep 30, 2007 2:26:50 PM org.apache.catalina.core.AprLifecycleListener init
>
> INFO: The Apache Tomcat Native library which allows optimal performance in
> production environments was not found on the java.library.path: C:\Program
> Files\Java\jdk1.6.0_02\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WIND OWS\system32;C:\WINDOWS;C:\DOS\Perl\site\bin;C:\DOS\Perl\bin ;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ Program
> Files\ATI Technologies\ATI Control Panel;"C:\Program Files\Common
> Files\Roxio Shared\DLLShared";C:\Program Files\Common Files\Roxio
> Shared\DLLShared;C:\Program Files\Common Files\Adobe\AGL;"C:\Program
> Files\Zone Labs\ZoneAlarm\MailFrontier";C:\Program Files\Microsoft\Support
> Tools\;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\CVSNT\
>
> Sep 30, 2007 2:26:50 PM org.apache.coyote.http11.Http11Protocol init
>
> INFO: Initializing Coyote HTTP/1.1 on http-8080
>
> Sep 30, 2007 2:26:50 PM org.apache.catalina.startup.Catalina load
>
> INFO: Initialization processed in 1215 ms
>
> Sep 30, 2007 2:26:50 PM org.apache.catalina.core.StandardService start
>
> INFO: Starting service Catalina
>
> Sep 30, 2007 2:26:50 PM org.apache.catalina.core.StandardEngine start
>
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
>
> java.lang.reflect.InvocationTargetException
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
>
> at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
>
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
>
> Caused by: java.lang.SecurityException: Servlet of class
> org.apache.catalina.servlets.InvokerServlet is privileged and cannot be
> loaded by this web application
>
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:1134)
>
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrappe r.java:981)
>
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(Stand ardContext.java:4045)
>
> at
> org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4351)
>
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
>
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.jav a:719)
>
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
>
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
>
> at
> org.apache.catalina.core.StandardService.start(StandardServi ce.java:516)
>
> at
> org.apache.catalina.core.StandardServer.start(StandardServer .java:710)
>
> at org.apache.catalina.startup.Catalina.start(Catalina.java:566 )
>
> ... 6 more
>
>
|
|
|
|
|
|
|
Re: InvokerServlet cannot be loaded in Tomcat 6.0.14 in Eclipse SDK 3.3.0 [message #201078 is a reply to message #200943] |
Tue, 02 October 2007 12:57  |
Eclipse User |
|
|
|
Originally posted by: hall.coreservlets.com
John wrote:
> Marty - I appreciate your help. Your solution worked!
> It is unclear why Eclipse does not automatically import the context.xml file
> to path
> /Servers/Tomcat v6.0 Server at localhost-config
> or
> MyWorkspace.metadata.pluginsorg.eclipse.wst.server.coretmp0c onf
> Do you know why it doesn't?
I am not sure either. But in one (of the many) hats that I wear, I teach
Java Web app programming in the Johns Hopkins part-time graduate program
in Computer Science. Students are free to use any IDE they want, and some
use MyEclipse, some use regular Eclipse, and others use whatever they are
used to (NetBeans or IDEA, perhaps). A common problem from the regular
Eclipse users is that they make changes to the Tomcat configuration files
(such as the entry for context.xml for the invoker servlet), and don't
know why it is not picked up.
Now, if I could only make projects that would be recognized by BOTH
MyEclipse and regular Eclipse as dynamic Web projects, I would be happy.
That way for each topic that I cover at Hopkins, I could distribute a
single sample project to my JHU students. Similarly, in my "real" work, I
also have clients that are split between MyEclipse and regular Eclipse,
and I want to distribute projects to them as well.
Finally, again, please remember that the invoker servlet is for testing
and experimenting only: never for deployed apps.
Cheers-
- Marty
------------------------------------------------------------ -----------------
JSP/servlet/Struts/JSF/AJAX/GWT/Java training:
http://courses.coreservlets.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04548 seconds