In BusinessEvents 3.x, the antlr exception is thrown when trying to generate the web service in TIBCO Designer.

In BusinessEvents 3.x, the antlr exception is thrown when trying to generate the web service in TIBCO Designer.

book

Article ID: KB0091390

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============
In BusinessEvents (BE) 3.x, the antlr exception is thrown when trying to generate the web service in TIBCO Designer.


Environment:
==========

   o TIBCO BusinessEvents 3.x

   o TIBCO Designer


Symptoms:
=========
BE Engine throws the following exception -

at org.antlr.stringtemplate.language.ActionParser.primaryExpr(ActionParser.java:769)
    at org.antlr.stringtemplate.language.ActionParser.expr(ActionParser.java:440)
    at org.antlr.stringtemplate.language.ActionParser.templatesExpr(ActionParser.java:222)
    at org.antlr.stringtemplate.language.ActionParser.action(ActionParser.java:126)
    at org.antlr.stringtemplate.StringTemplate.parseAction(StringTemplate.java:879)
    at org.antlr.stringtemplate.language.TemplateParser.action(TemplateParser.java:162)
    at org.antlr.stringtemplate.language.TemplateParser.template(TemplateParser.java:127)
    at org.antlr.stringtemplate.StringTemplate.breakTemplateIntoChunks(StringTemplate.java:853)

Cause:
=====
In BE 3.0, extra jars are added for Query Agent functionality. These jars are conflicting with the old jars used by BusinessWorks (BW). As far as BE is concerned, there is no problem at run-time. At design time for generating web services, the following resolution can be used.


Resolution:
==========

Move "C:/tibco/be/3.0/lib/ext" under "tibco.env.CUSTOM_CP_EXT" in designer.tra to the end.
    
    For example, if you have in designer.tra
    
    tibco.env.CUSTOM_CP_EXT  ..\........C:/tibco/be/3.0/lib;C:/tibco/be/3.0/lib/palettes;C:/tibco/be/3.0/lib/ext;........%TPCL_HOME%/jviews/6.0
    
Move C:/tibco/be/3.0/lib/ext to the end, so it becomes something like..
    
    tibco.env.CUSTOM_CP_EXT  ..\........C:/tibco/be/3.0/lib;C:/tibco/be/3.0/lib/palettes;........%TPCL_HOME%/jviews/6.0;C:/tibco/be/3.0/lib/ext

Issue/Introduction

In BusinessEvents 3.x, the antlr exception is thrown when trying to generate the web service in TIBCO Designer.