Re: [rules-users] The Eclipse JDT Core jar is not in the classpath error

2009-06-02 Thread Marcus Ilgner
2009/6/2 Chris Richmond crichm...@referentia.com:
 Hello,



 I am using netbeans and ivy with Drools 5.  I have successfully named,
 published the jars from drools to and could build my port of the stock
 ticker application in netbeans, but when I try to run it, I get the
 following error:





 java.lang.NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream



 I have the antlr-runtime jar from the bin/lib on my classpath where I added
 all the others, but it always fails at this line

 In loadRuleBase() in Broker.java of the stock ticker sample



 builder.add( ResourceFactory.newInputStreamResource(
 Broker.class.getResourceAsStream( RULES_FILE ) ),

 ResourceType.DRL);.





 Does anyone have any ideas what jar I might be missing if it’s not the
 antlr-runtime?



 Thanks,

 Chris


Hi,

in one of my projects, I actually needed two different versions of
antlr in the classpath. Did you check if the class referenced in the
exception actually exists in the deployed antlr jar file?

Best regards
Marcus

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


RE: [rules-users] The Eclipse JDT Core jar is not in the classpath error

2009-06-02 Thread Chris Richmond
Marcus,

I only have the one version of antlr jar that comes in the /lib folder of
the drools 5.0 binary distribution, however that was enough to allow me to
run the stockticker fusion sample in eclipse no problem.  I ported the
project to Netbeans and am relying on all of the same jars from that binary
distribution, but getting this error now.   Perhaps there is something that
is being provided by the eclipse drools plugin?  

Thanks,
Chris

-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Marcus Ilgner
Sent: Monday, June 01, 2009 11:14 PM
To: Rules Users List
Subject: Re: [rules-users] The Eclipse JDT Core jar is not in the classpath
error

2009/6/2 Chris Richmond crichm...@referentia.com:
 Hello,



 I am using netbeans and ivy with Drools 5.  I have successfully named,
 published the jars from drools to and could build my port of the stock
 ticker application in netbeans, but when I try to run it, I get the
 following error:





 java.lang.NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream



 I have the antlr-runtime jar from the bin/lib on my classpath where I
added
 all the others, but it always fails at this line

 In loadRuleBase() in Broker.java of the stock ticker sample



 builder.add( ResourceFactory.newInputStreamResource(
 Broker.class.getResourceAsStream( RULES_FILE ) ),

 ResourceType.DRL);.





 Does anyone have any ideas what jar I might be missing if it’s not the
 antlr-runtime?



 Thanks,

 Chris


Hi,

in one of my projects, I actually needed two different versions of
antlr in the classpath. Did you check if the class referenced in the
exception actually exists in the deployed antlr jar file?

Best regards
Marcus

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




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


Re: [rules-users] The Eclipse JDT Core jar is not in the classpath error

2009-06-02 Thread Edson Tirelli
   Chris,

   There must be a problem with the classpath. That message only shows up
when the antlr-runtime jar is not in the classpath.

java.lang.NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream

Also, I successfully run examples from command line, outside of eclipse,
so it is unlikely that you are being hit by some hidden dependency.

Sorry for not helping you more, but continue investigating your netbeans
project classpath for odd things.

Oh, and BTW, antlr runtimes are not compatible between versions, so, if
your netbeans has a different antlr runtime jar in the classpath in a higher
priority search order, it will give you similar problems.

[]s
Edson


2009/6/2 Chris Richmond crichm...@referentia.com

 Marcus,

 I only have the one version of antlr jar that comes in the /lib folder of
 the drools 5.0 binary distribution, however that was enough to allow me to
 run the stockticker fusion sample in eclipse no problem.  I ported the
 project to Netbeans and am relying on all of the same jars from that binary
 distribution, but getting this error now.   Perhaps there is something that
 is being provided by the eclipse drools plugin?

 Thanks,
 Chris

 -Original Message-
 From: rules-users-boun...@lists.jboss.org
 [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Marcus Ilgner
 Sent: Monday, June 01, 2009 11:14 PM
 To: Rules Users List
 Subject: Re: [rules-users] The Eclipse JDT Core jar is not in the classpath
 error

 2009/6/2 Chris Richmond crichm...@referentia.com:
  Hello,
 
 
 
  I am using netbeans and ivy with Drools 5.  I have successfully named,
  published the jars from drools to and could build my port of the stock
  ticker application in netbeans, but when I try to run it, I get the
  following error:
 
 
 
 
 
  java.lang.NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream
 
 
 
  I have the antlr-runtime jar from the bin/lib on my classpath where I
 added
  all the others, but it always fails at this line
 
  In loadRuleBase() in Broker.java of the stock ticker sample
 
 
 
  builder.add( ResourceFactory.newInputStreamResource(
  Broker.class.getResourceAsStream( RULES_FILE ) ),
 
  ResourceType.DRL);.
 
 
 
 
 
  Does anyone have any ideas what jar I might be missing if it’s not the
  antlr-runtime?
 
 
 
  Thanks,
 
  Chris
 

 Hi,

 in one of my projects, I actually needed two different versions of
 antlr in the classpath. Did you check if the class referenced in the
 exception actually exists in the deployed antlr jar file?

 Best regards
 Marcus

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




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




-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] The Eclipse JDT Core jar is not in the classpath error

2009-06-02 Thread Chris Richmond
Ed,

 

Thanks for the feedback.  That's pretty much the conclusion I have come
to..I will double  check the higher priority reference, that sounds possible
because we are using Ivy for dependencies with many package dependencies..

 

Thanks very much for the insights.

 

Chris

 

  _  

From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Tuesday, June 02, 2009 9:42 AM
To: Rules Users List
Subject: Re: [rules-users] The Eclipse JDT Core jar is not in the classpath
error

 


   Chris,

   There must be a problem with the classpath. That message only shows up
when the antlr-runtime jar is not in the classpath.

java.lang.

NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream

Also, I successfully run examples from command line, outside of eclipse,
so it is unlikely that you are being hit by some hidden dependency.

Sorry for not helping you more, but continue investigating your netbeans
project classpath for odd things.

Oh, and BTW, antlr runtimes are not compatible between versions, so, if
your netbeans has a different antlr runtime jar in the classpath in a higher
priority search order, it will give you similar problems.

[]s
Edson

 

2009/6/2 Chris Richmond crichm...@referentia.com

Marcus,

I only have the one version of antlr jar that comes in the /lib folder of
the drools 5.0 binary distribution, however that was enough to allow me to
run the stockticker fusion sample in eclipse no problem.  I ported the
project to Netbeans and am relying on all of the same jars from that binary
distribution, but getting this error now.   Perhaps there is something that
is being provided by the eclipse drools plugin?

Thanks,
Chris


-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Marcus Ilgner
Sent: Monday, June 01, 2009 11:14 PM
To: Rules Users List
Subject: Re: [rules-users] The Eclipse JDT Core jar is not in the classpath
error

2009/6/2 Chris Richmond crichm...@referentia.com:
 Hello,



 I am using netbeans and ivy with Drools 5.  I have successfully named,
 published the jars from drools to and could build my port of the stock
 ticker application in netbeans, but when I try to run it, I get the
 following error:





 java.lang.NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream



 I have the antlr-runtime jar from the bin/lib on my classpath where I
added
 all the others, but it always fails at this line

 In loadRuleBase() in Broker.java of the stock ticker sample



 builder.add( ResourceFactory.newInputStreamResource(
 Broker.class.getResourceAsStream( RULES_FILE ) ),

 ResourceType.DRL);.





 Does anyone have any ideas what jar I might be missing if it's not the
 antlr-runtime?



 Thanks,

 Chris


Hi,

in one of my projects, I actually needed two different versions of
antlr in the classpath. Did you check if the class referenced in the
exception actually exists in the deployed antlr jar file?

Best regards
Marcus

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




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




-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com

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


[rules-users] The Eclipse JDT Core jar is not in the classpath error

2009-06-01 Thread Chris Richmond
Hello,

 

I am using netbeans and ivy with Drools 5.  I have successfully named,
published the jars from drools to and could build my port of the stock
ticker application in netbeans, but when I try to run it, I get the
following error:

 

 

java.lang.NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream

 

I have the antlr-runtime jar from the bin/lib on my classpath where I added
all the others, but it always fails at this line 

In loadRuleBase() in Broker.java of the stock ticker sample

 

builder.add( ResourceFactory.newInputStreamResource(
Broker.class.getResourceAsStream( RULES_FILE ) ),

ResourceType.DRL);.

 

 

Does anyone have any ideas what jar I might be missing if it's not the
antlr-runtime?

 

Thanks,


Chris

 

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