Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat 6 and Eclipse 3.3 trouble
Tomcat 6 and Eclipse 3.3 trouble [message #196624] Wed, 18 July 2007 07:03 Go to next message
Eclipse UserFriend
Originally posted by: sagene31.hotmail.com

Anyone else experiencing:

INFO: Starting Servlet Engine: Apache Tomcat/6.0.13

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:585)

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:4042)

at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4348)

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 )



Hope anyone can help.

Thanks in advance.
Re: Tomcat 6 and Eclipse 3.3 trouble [message #196660 is a reply to message #196624] Wed, 18 July 2007 14:22 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
Because the InvokerServlet represents a security hole, you will have to
include privileged="true" in the <context> element for any webapp that
tries to deploy it. You would add this to appropriate <context>
elements in the server.xml found under the Servers project in your
workspace.

If you uncommented the InvokerServlet in the web.xml found under the
Servers project, then it applies to all webapps. In this case, if one
of the projects added to the server isn't a default webapp (i.e. one
with context-root set to an empty string), then you will need to add a
<context> for the "ROOT" webapp that is provided by default, i.e.:

<Context docBase="<path-to-default-webapp>" path="" privileged="true" />

For the Tomcat server created by default, the path to the default webapp
will be something like:

<workspace-path> \.metadata\.plugins\org.eclipse.wst.server.core\tmp?\wtpweba pps\ROOT


Cheers,
Larry

madman wrote:
> Anyone else experiencing:
>
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
>
> 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:585)
>
> 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:4042)
>
> at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4348)
>
> 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 )
>
>
>
> Hope anyone can help.
>
> Thanks in advance.
>
>
>
>
>
>
>
Previous Topic:Some Problem during launching websphere 6.1 from eclipse WTP 1.5.3
Next Topic:WTP 3.0 Release Themes DRAFT document published...
Goto Forum:
  


Current Time: Mon Nov 24 15:10:58 GMT 2014

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

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