Running Manager App with Security Manager turned on - Tomcat 8.0.15

2014-11-20 Thread Luka Pavlič
Hi,

I am running tomcat 8.0.15, win64 ZIP, on Windows 2008R2, Oracle JRE 8.0.20.

Running with catalina start, /manager app works perfectly.

Running catalina start -security will result in not deployed manager app.

I would *definitely need* both: running Tomcat with Security Manager turned
on, and manager application. (I would like to enable non-trusted people
to deploy their applications to my server via manager app)

Any idea what to do?

Thank you in advance!

Error log:

20-Nov-2014 11:28:46.242 SEVERE [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory The web application
with context path [/manager] was not deployed because it contained a
deployment descriptor
[C:\Deployments\SOA\apache-tomcat-8.0.15\webapps\manager\META-INF\context.xml]
which may include configuration necessary for the secure deployment of the
application but processing of deployment descriptors is prevented by the
deployXML setting of this host. An appropriate descriptor should be created
at
[C:\Deployments\SOA\apache-tomcat-8.0.15\conf\Catalina\localhost\manager.xml]
to deploy this application.
20-Nov-2014 11:28:46.258 SEVERE [localhost-startStop-1]
org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component
[/manager]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:131)
at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:153)
at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:699)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)
at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to process either
the global, per-host or context-specific context.xml file therefore the
[/manager] Context cannot be started.
at
org.apache.catalina.startup.FailedContext.startInternal(FailedContext.java:199)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 14 more

Bests, Luka.


Re: Running Manager App with Security Manager turned on - Tomcat 8.0.15

2014-11-20 Thread Konstantin Kolinko
2014-11-20 14:00 GMT+03:00 Luka Pavlič luka.pav...@gmail.com:
 Hi,

 I am running tomcat 8.0.15, win64 ZIP, on Windows 2008R2, Oracle JRE 8.0.20.

 Running with catalina start, /manager app works perfectly.

 Running catalina start -security will result in not deployed manager app.

 I would *definitely need* both: running Tomcat with Security Manager turned
 on, and manager application. (I would like to enable non-trusted people
 to deploy their applications to my server via manager app)

 Any idea what to do?

 Thank you in advance!

 Error log:


What words in the below message you do not understand?

Have you searched the mailing list archive for previous answers?

 20-Nov-2014 11:28:46.242 SEVERE [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory The web application
 with context path [/manager] was not deployed because it contained a
 deployment descriptor
 [C:\Deployments\SOA\apache-tomcat-8.0.15\webapps\manager\META-INF\context.xml]
 which may include configuration necessary for the secure deployment of the
 application but processing of deployment descriptors is prevented by the
 deployXML setting of this host. An appropriate descriptor should be created
 at
 [C:\Deployments\SOA\apache-tomcat-8.0.15\conf\Catalina\localhost\manager.xml]
 to deploy this application.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Running Manager App with Security Manager turned on - Tomcat 8.0.15

2014-11-20 Thread André Warnier

Luka Pavlič wrote:

Hi,

I am running tomcat 8.0.15, win64 ZIP, on Windows 2008R2, Oracle JRE 8.0.20.

Running with catalina start, /manager app works perfectly.

Running catalina start -security will result in not deployed manager app.

I would *definitely need* both: running Tomcat with Security Manager turned
on, and manager application. (I would like to enable non-trusted people
to deploy their applications to my server via manager app)

Any idea what to do?

Thank you in advance!

Error log:

20-Nov-2014 11:28:46.242 SEVERE [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory The web application
with context path [/manager] was not deployed because it contained a
deployment descriptor
[C:\Deployments\SOA\apache-tomcat-8.0.15\webapps\manager\META-INF\context.xml]
which may include configuration necessary for the secure deployment of the
application but processing of deployment descriptors is prevented by the
deployXML setting of this host. An appropriate descriptor should be created
at
[C:\Deployments\SOA\apache-tomcat-8.0.15\conf\Catalina\localhost\manager.xml]
to deploy this application.


Good idea to copy the error log.
It seems that it does provide some clues as to what is happening, which can be examined in 
the online documentation, here :


http://tomcat.apache.org/tomcat-8.0-doc/config/host.html#Standard_Implementation

See deployXML.

I'm not sure that I fully understand myself what it says there, but maybe you 
do.
I think that the appropriate way to understand that very dense (but probably very precise 
and accurate) paragraph may be to draw a little logical flowchart of it.

In any case, the last phrase seems to say that :
- if you start without -security, then the default is true
- and if you start with -security, then the default is false
Which then matches the thing that the last line of the log above is telling you.

It's really nice, when the documentation and the logs match perfectly. And even more when 
the logs tell you exactly what to do to correct the problem.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Running Manager App with Security Manager turned on - Tomcat 8.0.15

2014-11-20 Thread Mark Thomas
On 20/11/2014 12:00, Luka Pavlič wrote:
 Hi,
 
 I am running tomcat 8.0.15, win64 ZIP, on Windows 2008R2, Oracle JRE 8.0.20.
 
 Running with catalina start, /manager app works perfectly.
 
 Running catalina start -security will result in not deployed manager app.
 
 I would *definitely need* both: running Tomcat with Security Manager turned
 on, and manager application. (I would like to enable non-trusted people
 to deploy their applications to my server via manager app)
 
 Any idea what to do?

Read the error message in the logs.

snip/

 An appropriate descriptor should be created
 at
 [C:\Deployments\SOA\apache-tomcat-8.0.15\conf\Catalina\localhost\manager.xml]
 to deploy this application.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org