I was hoping to get a help with my issue in migrating to tomcat-6.0.36. At the moment, we are currently running tomcat 5.5.35 under Centos 5.7 & it has been running fine, however since 5.5 is now no longer supported, we need to migrate to version 6 for security reason.
I have done the following as part of the upgrade:
- downloaded tomcat-6.0.36.tar.gz (core)
- upgrade the JDK into 1.6.0 release 32
- upgrade Bitronix Transaction Manager to BTM 2.1.0 (following the guide listed in: http://docs.codehaus.org/display/BTM/Tomcat2x)
- upgrade the Tomcat Connector to the latest version, which is 1.2.37
When we start tomcat, it generate the following exception:
Dec 5, 2012 3:16:53 PM bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
INFO: Starting Bitronix Transaction Manager
Dec 5, 2012 3:16:53 PM bitronix.tm.BitronixTransactionManager logVersion
INFO: Bitronix Transaction Manager version 2.1.0
Dec 5, 2012 3:16:53 PM bitronix.tm.Configuration buildServerIdArray
INFO: JVM unique ID: <tomcat-btm-node-sbb-int010>
Dec 5, 2012 3:16:53 PM bitronix.tm.resource.ResourceLoader init
INFO: reading resources configuration from /usr/local/tomcat-instances/sbb_internal/conf/resources.properties
Dec 5, 2012 3:16:53 PM bitronix.tm.recovery.Recoverer run
INFO: recovery committed 0 dangling transaction(s) and rolled back 0 aborted transaction(s) on 3 resource(s) [ReportingDB, ExternalDB, InternalDB] (restricted to serverId 'tomcat-btm-node-sbb-int010')
Dec 5, 2012 3:16:53 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 5, 2012 3:16:53 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by: java.lang.NoSuchMethodError: org.apache.tomcat.util.IntrospectionUtils.setProperty(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)V
Anyone can suggest any idea as to where the exception is generated from? Really appreciated any help I can get in troubleshooting this issue. Thanks guys
You appear to be out of sync between your compile libraries and your run libraries. If you have added any jars to the TOMCAT_HOME/lib directory, you should reconsider them. You've probably noticed that Tomcat 6 has 1 lib directory instead of Tomcat 5's 3 lib directories, but that's not really important.
An IDE is no substitute for an Intelligent Developer.
Joined: Dec 04, 2012
Thanks for the quick response, are you able to specify which library that was out of sync from the above error message. At first I thought it was the case with the tomcat connector, hence I recompile a new one, but it might not be the issue here.
To make things even complicated, we have 2 application server that runs on similar setting, I manage to start tomcat on 1 of the server successfully but not on the other. I copied the exact same tomcat package, same libraries, same JRE & it is running the same application code, not sure why they are behaving differently since they are basically running on the same environment (from tomcat perspective).
Well, the offender appears to be the Coyote connector, but it all appears to be in the middle of stuff that should be core Tomcat code, so I have to wonder if somehow your copy of Tomcat isn't damaged. Or you have something really weird going on in Tomcat's CLASSPATH.