TIBCO Business Events (BE) Web Services (HTTP port) with TOMCAT set as server type fails to start with the error of java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z

TIBCO Business Events (BE) Web Services (HTTP port) with TOMCAT set as server type fails to start with the error of java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z

book

Article ID: KB0087502

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============
BE Engine will fail to start up when an HTTP port server type is set to TOMCAT.  With BUILT-IN it will start.  

Environment:
==========
All platforms with either BE 5.0.0 or 5.0.1.  

Symptoms:
=========

Full stack:

2012 Mar 27 13:58:20:180 GMT -5 SepsisMgmt-SepsisMgmt Info [main] - [runtime.channel] Initialized Channel Manager
2012 Mar 27 13:58:20:275 GMT -5 SepsisMgmt-SepsisMgmt Debug [main] - [root] Set Catalina home for: null
2012 Mar 27 13:58:20:623 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root] java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z
2012 Mar 27 13:58:20:624 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.commons.logging.impl.SLF4JLog.isTraceEnabled(SLF4JLog.java:79)
2012 Mar 27 13:58:20:624 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.coyote.http11.Http11BaseProtocol.setAttribute(Http11BaseProtocol.java:71)
2012 Mar 27 13:58:20:625 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.coyote.http11.Http11BaseProtocol.setSoLinger(Http11BaseProtocol.java:422)
2012 Mar 27 13:58:20:626 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.coyote.http11.Http11BaseProtocol.&ltinit>(Http11BaseProtocol.java:56)
2012 Mar 27 13:58:20:626 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.coyote.http11.Http11Protocol.&ltinit>(Http11Protocol.java:40)
2012 Mar 27 13:58:20:627 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2012 Mar 27 13:58:20:628 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
2012 Mar 27 13:58:20:628 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
2012 Mar 27 13:58:20:629 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
2012 Mar 27 13:58:20:629 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at java.lang.Class.newInstance0(Class.java:355)
2012 Mar 27 13:58:20:630 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at java.lang.Class.newInstance(Class.java:308)
2012 Mar 27 13:58:20:631 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.catalina.connector.Connector.&ltinit>(Connector.java:76)
2012 Mar 27 13:58:20:632 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.catalina.connector.Connector.&ltinit>(Connector.java:67)
2012 Mar 27 13:58:20:632 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.catalina.startup.Embedded.createConnector(Embedded.java:425)
2012 Mar 27 13:58:20:633 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.catalina.startup.Embedded.createConnector(Embedded.java:384)
2012 Mar 27 13:58:20:633 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at org.apache.catalina.startup.Embedded.createConnector(Embedded.java:373)
2012 Mar 27 13:58:20:634 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at com.tibco.cep.driver.http.server.impl.tomcat.TomcatServer.a(SourceFile:267)
2012 Mar 27 13:58:20:635 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at com.tibco.cep.driver.http.server.impl.tomcat.TomcatServer.init(SourceFile:170)
2012 Mar 27 13:58:20:635 GMT -5 SepsisMgmt-SepsisMgmt Error [main] - [root]     at com.tibco.cep.driver.http.HttpChannel.init(SourceFile:75)

Cause:
=====
TIBCO Hawk 5.9 has a latter version of the slf4j*.jar files which as a function while the BE jar files do not have the new function.

Resolution:
=========
There are two ways to address this problem:

1). Change the order of the CLASSPATH in be-engine.tra so that it points to the ./hawk/4.9/lib/slf4j-api-1.5.2.jar.  This would be changed in the be-engine.tra file so that %PSP%%HAWK_HOME%/lib is first in the tibco.env.STD_EXT_CP.  After making the change you would have to redeploy the application in Administrator so that a new application tra file is generated.

2). You can also copy the ./hawk/4.9/lib/slf4j*.jar files to ./be/5.0/lib/ext/tpcl/ .

References:
==========
SPM-3406 for reference to changing the classpath.  See also SOL1-C4384R for the copying the jar files.

Issue/Introduction

TIBCO Business Events (BE) Web Services (HTTP port) with TOMCAT set as server type fails to start with the error of java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z