On 09/02/2012 16:26, Andres Aguado wrote:
> Hi, first, for me there is a powerfull reason for maintain 5.5
> version. This is the initial version and application is working fine
> now, and I think that i'm not prepare to execute the upgrade, i don't
> know how and where to begin.
> 
> And second, i'm trying to compile JMXAdaptorLifecycleListener.java to
> get class file (i think that i must do this, but not sure), and i'm
> getting this error. Here is one example, but it's appearing me 11
> errors like this one.
> 
> C:\Program Files\Java\jdk1.5.0_22\bin>javac -classpath
> %CATALINA_HOME%\server\lib\catalina.jar:%CATALINA_HOME%\bin\commons-logging-api-1.1.1.jar
> c:\JMXAdaptorLifecycleListener.java -Xlint
> warning: [path] bad path element
> "C:\apache-tomcat-5.5.27\server\lib\catalina.jar:C:\apache-tomcat-5.5.27\bin\commons-logging-api-1.1.1.jar":
> no such file or directory

The colon character is a path separator.  You have it in the C: part of
each path.


p

> c:\JMXAdaptorLifecycleListener.java:25: cannot find symbol
> symbol  : class Lifecycle
> location: package org.apache.catalina
> import org.apache.catalina.Lifecycle;
> 
> I've created .java file copying text from internet, as attached
> 
> The last, I've checked catalina-optional.jar but no similar class
> could be found inside, i suppose that i must copy into this jar file
> the .class file obtained after compiling .java file, but this is my
> assumption
> 
> Thanks a lot for your time, it's very appreciated
> 
> Regards,
> Andres
> 
> 2012/2/9 Pid <p...@pidster.com>:
>> On 09/02/2012 14:03, Rainer Jung wrote:
>>> On 09.02.2012 13:51, Andres Aguado wrote:
>>>> Hi Guys!
>>>>
>>>>      First of all, I want to be grateful for help. I'm (very) newbie
>>>> with apache-tomcat world, level 1 (I've installed Tomcat sucessfully
>>>> once ;-) )
>>>>
>>>>      Well, I've a Tomcat 5.5.27 version with an application in
>>>> production environment and i've installed the same version for windows
>>>> on a VM-WiXP to test configuration before applying changes to
>>>> production server
>>>>      And I want to monitorize the application remotelly through
>>>> jconsole. So, I've added this lines to catalina startup script:
>>>>
>>>> set CATALINA_OPTS=-Dcom.sun.management.jmxremote
>>>> -Dcom.sun.management.jmxremote.port=8999
>>>> -Dcom.sun.management.jmxremote.ssl=false
>>>> -Dcom.sun.management.jmxremote.authenticate=false (When all works I'll
>>>> add authentication, but now i need to run jconsole.)
>>>>
>>>>     Now I'm accesible to 8999 port (RMI Registry?) telneting, but
>>>> jconsole outputs a connection error. I've executed netstat -an command
>>>> and I've seen that 8999 port connextion is STABLISHED, but there is
>>>> another port (48657) to the tomcat ip in SYN_WAIT.
>>>>
>>>>      Well, I've been reading documentation and it seems that i must
>>>> configure manually an additional port to connect through jconsole
>>>> because this port is a random port (RMIServer and RMIConnection?) and
>>>> it's a problem to gain access through firewalls
>>>>
>>>>      I've been reading more information and I've arrived to this document
>>>> http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html#Enabling_JMX_Remote
>>>>
>>>>
>>>>       Then, I've added<Listener
>>>> className="org.apache.catalina.mbeans.JMXAdaptorLifecycleListener"
>>>> namingPort="8999" port="48657" host="tomcatservername" />
>>>>
>>>>       This is the point i'm blocked. Tomcat doesn't start, and
>>>> catalina.out file shows this error:
>>>>
>>>> SEVERE: Begin event threw exception
>>>> java.lang.ClassNotFoundException:
>>>> org.apache.catalina.mbeans.JMXAdaptorLifecycleListener
>>>>
>>>>      I've been looking for JMXAdaptorLifecycleListener, but i don't
>>>> know how to make it works.
>>>>
>>>> Could anyone help me?
>>>
>>> I think for TC 5.5 the class is not included in the binary downloads.
>>> You need to grab a source download and build it using Java 5.
>>>
>>> When building using Java 1.4.2 which IMHO is the default for a release,
>>> the class can't be build.
>>>
>>> Check your jar files, the class should be in catalina-optional.jar.
>>>
>>> Starting with Tomcat 6 this functionality is available as a separate
>>> Jar, which is part of the so-called "extra" downloads (in the extra
>>> folder underneath the bin folder.
>>
>> +1  Is there a reason you can't use a newer version, like 7.0 Andres?
>>
>>
>> p
>>
>>
>> --
>>
>> [key:62590808]
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


-- 

[key:62590808]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to