[Note: No reference to the attached fileConsoleOutput.txt- pcali]TIBCO BusinessEvents (BE) studio-tools fails when generating Decision Table (DT) class with "problem with TnsNamespaceKind" and gives java.lang.ClassCastException.

[Note: No reference to the attached fileConsoleOutput.txt- pcali]TIBCO BusinessEvents (BE) studio-tools fails when generating Decision Table (DT) class with "problem with TnsNamespaceKind" and gives java.lang.ClassCastException.

book

Article ID: KB0090284

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
=========
The partial error stack will be similar to the following:

[tibeai@hlixgr902 bin]$ ./studio-tools -op generateDTClass -d /MOPS/DT/OR_MH00000005.rulefunctionimpl -p /tmp/rmopreg2/mops_be_p2/MOPS_BE -o /tmp/rmopreg2/tempLoc2 -x true -e /tmp/rmopreg2/MOPS_BE.ear>/tmp/rmopreg2/AABC.log
problem with TnsNamespaceKind: com.tibco.score.configuration.ScoreNamespaceKind: java.lang.ClassCastException com.tibco.score.configuration.ScoreNamespaceKind cannot be cast to com.tibco.xml.tns.parse.TnsNamespaceKind
log4j:ERROR Could not create an Appender. Reported error follows.
java.lang.ClassNotFoundException: com.tibco.share.util.BWLogFileAppender
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:483)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)
        at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:237)
        at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:171)
        at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:184)
        at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:502)
        at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:415)
        at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:919)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)
        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
        at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
        at org.apache.log4j.Logger.getLogger(Logger.java:105)
        at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:102)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)

See attached command line log (Filename: RedirectedConsolOutput.txt) when output is redirected to a file for full stack.
  
Environment:
=========
Linux; BE 4.0.x

Symptoms:
=========
Note, this error was generated from executing studio-tools from the command line and not from having BW do an External Command to execute studio-tools. Note the same error can happen for other studio-tools operations. You may also see an error such as log4j:ERROR Could not create an Appender. Reported error follows.


java.lang.ClassNotFoundException: com.tibco.share.util.BWLogFileAppender.  


Cause:
=========
There is a conflict of JARs on the class path between plugins.jar and TIBCOxml.jar. Putting plugins.jar before TIBCOxml.jar does not solve the problem.

Resolution:
=========
BE studio-tools has tibco.class.path.extended %CUSTOM_EXT_PREPEND_CP%%PSP%%STD_EXT_CP%%PSP%%CUSTOM_EXT_APPEND_CP%%PSP%

Change it to tibco.class.path.extended %STD_EXT_CP%%PSP%%CUSTOM_EXT_APPEND_CP%%PSP% as there are no dependencies on BW or TRA for studio-tools. If BW_HOME is defined in studio-tools.tra remove it and any references to it in the file.

Reference:
=========
SR 1-E6UY4N

Issue/Introduction

[Note: No reference to the attached fileConsoleOutput.txt- pcali]TIBCO BusinessEvents (BE) studio-tools fails when generating Decision Table (DT) class with "problem with TnsNamespaceKind" and gives java.lang.ClassCastException.

Attachments

[Note: No reference to the attached fileConsoleOutput.txt- pcali]TIBCO BusinessEvents (BE) studio-tools fails when generating Decision Table (DT) class with "problem with TnsNamespaceKind" and gives java.lang.ClassCastException. get_app
[Note: No reference to the attached fileConsoleOutput.txt- pcali]TIBCO BusinessEvents (BE) studio-tools fails when generating Decision Table (DT) class with "problem with TnsNamespaceKind" and gives java.lang.ClassCastException. get_app