• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to user logging with my tomcat  RSS feed

 
Satchidananda Mohanty
Ranch Hand
Posts: 78
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I do have one problem ,can anybody help me ??
I am trying to use logging function with my web application in java.

But in my server it is not allowed to use log4j; so I used the java.util.logging function to create a log file.
In my local development system it is working. When I uploaded that it is showing this exceptions.

java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
java.security.AccessController.checkPermission(AccessController.java:427)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
java.util.logging.LogManager.checkAccess(LogManager.java:932)
java.util.logging.Handler.checkAccess(Handler.java:278)
java.util.logging.FileHandler.<init>(FileHandler.java:232)
Health.HealthQuote.processRequest(HealthQuote.java:30)
Health.HealthQuote.doGet(HealthQuote.java:121)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)



Thanks in advance
zeet
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!