You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by André Warnier <aw...@ice-sa.com> on 2011/10/04 17:08:32 UTC
RHEL + Tomcat6, error in logfile
Hi.
I am installing something on a customer's RedHat server.
Tomcat was obviously installed (not by me) from a RHEL package.
As far as I can tell (because I cannot find the bin/version.sh script), the Tomcat version
is 6.0.24 (that's what various jar's seem to be named, like
"/usr/share/tomcat6/lib/catalina-6.0.24.jar").
Java version seems to be :
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
(I am not quite sure that Tomcat really uses this version, but I presume)
Anyway, I see the following messages in a catalina.(date).log file.
Any idea what this is due to ?
Should I worry about it ?
How do I get rid of it ?
message :
INFO: Stopping Coyote HTTP/1.1 on http-8080
Oct 4, 2011 4:46:25 PM org.apache.catalina.mbeans.ServerLifecycleListener lifecycleEvent
SEVERE: destroyMBeans: Throwable
javax.management.MalformedObjectNameException: Cannot create object name for
org.apache.catalina.connector.Connector@3fa6cd
at org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:764)
at org.apache.catalina.mbeans.MBeanUtils.destroyMBean(MBeanUtils.java:1416)
at
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(ServerLifecycleListener.java:678)
at
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(ServerLifecycleListener.java:1005)
at
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(ServerLifecycleListener.java:971)
at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:154)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:748)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
at org.apache.catalina.startup.Catalina.start(Catalina.java:618)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Thanks for any clues.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: RHEL + Tomcat6, error in logfile
Posted by Mark Eggers <it...@yahoo.com>.
----- Original Message -----
> From: "Caldarale, Charles R" <Ch...@unisys.com>
> To: Tomcat Users List <us...@tomcat.apache.org>
> Cc:
> Sent: Tuesday, October 4, 2011 8:41 AM
> Subject: RE: RHEL + Tomcat6, error in logfile
>
>> From: André Warnier [mailto:aw@ice-sa.com]
>> Subject: RHEL + Tomcat6, error in logfile
>
>> Oct 4, 2011 4:46:25 PM org.apache.catalina.mbeans.ServerLifecycleListener
> lifecycleEvent
>> SEVERE: destroyMBeans: Throwable
>> javax.management.MalformedObjectNameException: Cannot create object name
> for
>> org.apache.catalina.connector.Connector@3fa6cd
>
> Assuming you can find it in this non-standard environment, let's look at the
> server.xml and see if there's something odd in there, especially the
> <Connector> elements.
>
You might try finding it like this (all from the command line):
rpm -qa | egrep ^tomcat6
rpm q <package-name> --filesbypkg
There should be a couple of tomcat6 packages (if RHEL is like Fedora). Provided they've not moved things around, that should give you a good feel concerning the Red Hay layout.
You should also be able to do the following to get more complete information about a package (including the actual Tomcat version).
yum info <package-name>
Hope this helps.
. . . . just my two cents.
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: RHEL + Tomcat6, error in logfile
Posted by André Warnier <aw...@ice-sa.com>.
Caldarale, Charles R wrote:
>> From: André Warnier [mailto:aw@ice-sa.com]
>> Subject: RHEL + Tomcat6, error in logfile
>
>> Oct 4, 2011 4:46:25 PM org.apache.catalina.mbeans.ServerLifecycleListener lifecycleEvent
>> SEVERE: destroyMBeans: Throwable
>> javax.management.MalformedObjectNameException: Cannot create object name for
>> org.apache.catalina.connector.Connector@3fa6cd
>
> Assuming you can find it in this non-standard environment, let's look at the server.xml and see if there's something odd in there, especially the <Connector> elements.
>
Yes ! I found it ! in /etc/tomcat6 of all places.
Anyway, with comments removed, here is what it contains.
Note that I have left in the commented-out HTTPS connector, because I find it strange that
two other connectors reference its port, but that it is itself commented out.
I don't know if it matters, but I imagine that removing the "redirectPort" attributes in
the HTTP and AJP Connectors would not hurt, would it ?
Anyway, I don't see anything strange here, do you ?
server.xml :
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>
</Server>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: RHEL + Tomcat6, error in logfile
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: André Warnier [mailto:aw@ice-sa.com]
> Subject: RHEL + Tomcat6, error in logfile
> Oct 4, 2011 4:46:25 PM org.apache.catalina.mbeans.ServerLifecycleListener lifecycleEvent
> SEVERE: destroyMBeans: Throwable
> javax.management.MalformedObjectNameException: Cannot create object name for
> org.apache.catalina.connector.Connector@3fa6cd
Assuming you can find it in this non-standard environment, let's look at the server.xml and see if there's something odd in there, especially the <Connector> elements.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.