DO NOT REPLY [Bug 37213] - problem when running tomcat with -security option

2006-10-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37213.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37213


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-10-19 16:03 ---
Having to add the necessary permissions to catalina.policy to enable your
logging configuration is a question for the users list.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 37213] - problem when running tomcat with -security option

2006-02-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37213.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37213





--- Additional Comments From [EMAIL PROTECTED]  2006-02-24 18:57 ---
I got the same problem.

The problem occurs if log4j is configured to write to a file where log4j th
webapp does not have permission to write to.

the original exception
java.security.AccessControlException: access denied (java.io.FilePermission
\_training\webapps\fear\WebRoot\l
og.html write)

gets some how converted (log4j??) to a 
Caused by: java.lang.NoClassDefFoundError

and than converted by commons-logging to a :
java.lang.reflect.InvocationTargetException

Each time the a static initialization of logger is done a
java.lang.ExceptionInInitializerError is thrown.

This makes tomcat loop trying to clean up the webapplication:
...
GRAVE: Context [/max64] startup failed due to previous errors
24-feb-2006 17.16.09 org.apache.catalina.core.StandardContext start
GRAVE: Exception during cleanup after start failed
...
24-feb-2006 17.16.31 org.apache.catalina.startup.ContextConfig 
applicationWebConfig
GRAVE: Context [/max64] startup failed due to previous errors
24-feb-2006 17.16.31 org.apache.catalina.core.StandardContext start
GRAVE: Exception during cleanup after start failed

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 37213] - problem when running tomcat with -security option

2006-01-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37213.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37213





--- Additional Comments From [EMAIL PROTECTED]  2006-01-26 11:02 ---
Created an attachment (id=17509)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17509action=view)
log messages


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 37213] - problem when running tomcat with -security option

2006-01-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37213.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37213


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|NEW




--- Additional Comments From [EMAIL PROTECTED]  2006-01-26 11:05 ---
Hi,
i have the same problems since Tomcat 5.5.x. The latest test with stand-alone
Tomcat 5.5.15 on W2K generates the folowing log messages: (full log as 
attachment)

c:\tomcat5\bincatalina run -security
Using CATALINA_BASE:   c:\tomcat5
Using CATALINA_HOME:   c:\tomcat5
Using CATALINA_TMPDIR: c:\tomcat5\temp
Using JRE_HOME:c:\jdk1.5
Using Security Manager
26.01.2006 10:42:36 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the
java.library.path:
c:\jdk1.5\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;E:\MySQL
4.1\bin;c:\_training\bin;c:\jdk1.5\bin;
26.01.2006 10:42:36 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
26.01.2006 10:42:36 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1344 ms
26.01.2006 10:42:37 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
26.01.2006 10:42:37 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
26.01.2006 10:42:37 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
26.01.2006 10:42:38 org.apache.catalina.core.StandardPipeline registerValve
INFO: Can't register valve org.apache.catalina.core.StandardContextValve[/ear5]
org.apache.commons.logging.LogConfigurationException:
java.lang.ExceptionInInitializerError (Caused by java.lang.Excepti
onInInitializerError)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
at 
org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
at 
org.apache.catalina.valves.ValveBase.createObjectName(ValveBase.java:256)
at
org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:296)
at
org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:233)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4103)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:121)
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:737)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ExceptionInInitializerError
at 

DO NOT REPLY [Bug 37213] - problem when running tomcat with -security option

2006-01-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37213.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37213





--- Additional Comments From [EMAIL PROTECTED]  2006-01-26 11:39 ---
Sorry,

Correct Permission is java.io.FilePermission

grant codeBase file:${catalina.base}/webapps/your app/- {
   permission java.io.FilePermission ${catalina.base}${/}ear5.log, 
read,write,delete ;
};


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]