Hi,

We have an application which uses Spring to expose a POJO as an MBean and that 
works fine. One method starts a new Thread in which a process is started were 
every now and than it looks in de Database using Hibernate. On the find method 
we get:
 at antlr.CharScanner.makeToken(CharScanner.java:175)
 at org.hibernate.hql.ast.HqlLexer.makeToken(HqlLexer.java:33)
 at org.hibernate.hql.antlr.HqlBaseLexer.mIDENT(HqlBaseLexer.java:632)
....

This indicates that we have a Classloader problem. Our application works in a 
standalone environment and this problem only occurs when we use the MBean.

I've tried isolation with overriding:
<class-loading>
 <loader-repository>
  dot.com:loader=spg.war
 <loader-repository-config>java2ParentDelegaton=false</loader-  
repository-config>
</loader-repository>
</class-loading>

It seems as if the call from the MBean uses a different Classloader when using 
antlr classes. The thing is that in a standalone env. (or when using the 
webapp) we do not provide the antlr.jar and there seems no need for it.

So 3 questions:
1. Why does the isolation not work?
2. Why do we need the antlr.jar
2. What is the main difference when starting a process from an MBean and 
starting the same process from our webapp or standalond env. in terms of 
Classloading.

Hope someone can help.

Thank,
Maarten


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911071#3911071

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911071


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to