LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-19-2012, 10:04 PM   #1
skymet
LQ Newbie
 
Registered: Jun 2012
Posts: 12
Blog Entries: 1

Rep: Reputation: Disabled
Tomcat6 error


Dear All,

We are getting the below error in catalina.out file. I using Tomcat6 with JDK1.6. But tomcat works fine and due to this warning message, size of catalina.out file is very high. Please suggest how to fix this Warning message.

WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' referenced by handlers, class not found
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler,
<<No stacktrace available>>
Exception during runtime initialization
java.lang.ExceptionInInitializerError
<<No stacktrace available>>
Caused by: java.lang.NullPointerException
<<No stacktrace available>>


The classpath defined in bashrc file is shown below.

# User specific aliases and functions
PATH=/usr/java/jdk1.6.0_16/bin:$PATH
PATH=/usr/java/jdk1.6.0_16/lib:$PATH
JAVA_HOME=/usr/java/latest
JRE_HOME=/usr/java/latest/jre
CATALINA_HOME=/usr/local/tomcat6/
CATALINA_BASE=/usr/local/tomcat6/
export CLASSPATH=${JRE_HOME}/lib/ext
export CATALINA_HOME CATALINA_BASE JAVA_HOME JRE_HOME
export PATH
 
Old 08-20-2012, 02:53 PM   #2
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Your installation of JAVA and/or Tomcat seemed to be missing some library or maybe changing this:

before:
Code:
JAVA_HOME=/usr/java/latest
JRE_HOME=/usr/java/latest/jre
after:
Code:
JAVA_HOME=/usr/java/jdk1.6.0_16
JRE_HOME=/usr/java/jdk1.6.0_16/jre
 
Old 08-21-2012, 09:14 PM   #3
skymet
LQ Newbie
 
Registered: Jun 2012
Posts: 12

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Dear Robertjinx,

Thanks for the reply. Could you suggest a way to stop these warning messages as Tomcat works fine with these wanings also.
 
Old 08-22-2012, 02:28 AM   #4
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Drop the usage of "1catalina.org.apache.juli.FileHandler" from logging.properties:

Code:
logging.properties:handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
logging.properties:.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
logging.properties:1catalina.org.apache.juli.FileHandler.level = FINE
logging.properties:1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
logging.properties:1catalina.org.apache.juli.FileHandler.prefix = catalina.
Better idea would be to make sure you have all the libs and necessary files for tomcat to run properly. This option is way better then removing the lines from the logging configuration file.

I've tried to download Tomcat6 from apache.org, unpacked the tarball, set the java home, openjdk 1.6.0_24 (jre) on openSUSE 12.1 and works out of the box without any catalina error, which means you are something.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat6 and SSL whositwhatnow Linux - Enterprise 3 07-24-2012 08:55 AM
how to configure the tomcat6 server. sisirkumar Linux - Newbie 3 09-14-2011 02:09 PM
Apache2 - Tomcat6 digitolx Linux - Server 2 06-01-2010 08:22 AM
Tomcat6 error srinivasmiriyalu Solaris / OpenSolaris 4 08-07-2009 05:23 AM
Apache2.24-Tomcat6.0.1- JK 1.2.21 how to ?? Idrisk Linux - Software 1 03-08-2007 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration