Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Running Tomcat6 from Eclipse
Running Tomcat6 from Eclipse [message #222593] Tue, 07 October 2008 13:40 Go to previous message
Marc Chamberlin is currently offline Marc Chamberlin
Messages: 27
Registered: July 2009
Junior Member
Newbie here so please go easy on me! It has been quite a challenge getting
Tomcat6 and Eclipse Version: 3.4.1 to work together mostly because there
was a broken Manifest.MF in one of the jar files that came with my
SuSE11.0 distribution of Eclipse... sigh...

I have Eclipse configured to use the Tomcat server that is already
installed on my system, and not to create separate instances of it.

Anywise I now have reached the point where I can start and stop Tomcat6
from inside Eclipse but it appears that I have some sort of permissions
problem with creating log files and I cannot figure out how to resolve
this. When I start up Tomcat6, I get the following stack walkbacks
(repeated several times during startup)-

How do I give Tomcat permission, when running under Eclipse, running under
my own Linux account, the permission to create log files when it needs to?
I have tried some of the "obvious" things like adding myself to the tomcat
group, changin permissions on the /var/log/tomcat directory, setting my
user environment variable to tomcat... but so far no joy...

Thanks in advance for help offered... Marc...


java.util.logging.ErrorManager: 4
java.io.FileNotFoundException:
/usr/share/tomcat6/logs/catalina.2008-10-07.log (Permission denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:207)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at java.io.FileWriter.<init>(FileWriter.java:78)
at org.apache.juli.FileHandler.open(FileHandler.java:259)
at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:5 32)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at
org.apache.juli.ClassLoaderLogManager.readConfiguration(Clas sLoaderLogManager.java:398)
at
org.apache.juli.ClassLoaderLogManager.readConfiguration(Clas sLoaderLogManager.java:342)
at
org.apache.juli.ClassLoaderLogManager.readConfiguration(Clas sLoaderLogManager.java:238)
at java.util.logging.LogManager$2.run(LogManager.java:277)
at java.security.AccessController.doPrivileged(Native Method)
at
java.util.logging.LogManager.readPrimordialConfiguration(Log Manager.java:275)
at java.util.logging.LogManager.getLogManager(LogManager.java:2 58)
at java.util.logging.Logger.<init>(Logger.java:238)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:966)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:963)
at java.util.logging.LogManager$1.run(LogManager.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:175)
at java.util.logging.Logger.getLogger(Logger.java:291)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLo g.java:178)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.ja va:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.ja va:241)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:29 6)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Call for screenshots
Next Topic:Re: How to create a "document literal wrapped" WSDL ?
Goto Forum:
  


Current Time: Thu May 23 18:22:09 EDT 2013

Powered by FUDForum. Page generated in 0.01605 seconds