thanks Mark, is working fine now.


From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Mark Proctor
Sent: Tuesday, 30 January 2007 3:31 AM
To: Rules Users List
Subject: Re: [rules-users] Antlr

You need both 2.7.7 and 3.0b5 - we use StringTemplate and Antlr3, but antlr2.7 is a dependency of StringTemplate :(

Mark
Matthew Shaw wrote:

Hi,

I refer to a JIRA issue 578, which was rejected, however I am still having dramas with it:

When attempting to create a package from a class called by a JSP ( see below) I get the following error:

CharScanner; panic: ClassNotFoundException: org.antlr.stringtemplate.language.ChunkToken
Stopping the Weblogic Workshop debugger...
Debugger Stopped.

The Weblogic server stops as well.

Here is the code snippet called by the jsp

PackageBuilderConfiguration pkgBuilderCfg = new PackageBuilderConfiguration();
pkgBuilderCfg.setCompiler(PackageBuilderConfiguration.JANINO);
PackageBuilder builder = new PackageBuilder(pkgBuilderCfg);
builder.addPackageFromDrl((new InputStreamReader(new FileInputStream("c:\\myruleresource.drl")) ) );

The solution seemed to be:
It seems it is a classpath issue with Weblogic.I added the antlr-2.7.7.jar to the pre classpath and the errror no longer manifests itself

Well I have tried the above and it does not work. I am using weblogic 8.1. This is driving me round the twist any help is greatly appreciated. What version on antlr should I be using with drools3?

Cheers,
Matt.


Matt Shaw
Snr Applications Developer
Service Performance & Management Unit
Phone: 3247 8666. ext. 94666

This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender except where the sender expressly,
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.

_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender except where the sender expressly,
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.