My last message was messed because of the XML stuff of my build file...
Sorry for that.
| path id=competence.compilation.classpath
| pathelement path=${hibernate.lib.dir}/hibernate2.jar/
| pathelement path=${aop.lib.dir}/jboss-aop.jar/
|
I reworked my code in such a way that the invocation for the Configuration
class is out of the scope of the aopc compiler.
Now everything works fine.
Does anyone had any problems like this?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858523#3858523
Reply
When you aopc your classes, make sure the hibernate libraries are in the
classpath. This exception gets thrown because you are aspectizing a class that
references the HibernateSessionFactory and the compiler cannot find this class
to determine whether or not any other aspects/pointcuts are
It does not work...
there is a weird thing happening here...
I took of the references to the configuration object in my code, and every
thing works fine. Including code that uses classes of the Hibernate jar.
I use other concrete class for the package, and it worked too.
If I only declare a
I still does not understand what paths am I supposed to put on the task...
And still does not work...
The first two lines of the debug output:
[aopc] [debug] jboss.aop.class.path is NULL
[aopc]
I analysed the hibernate jar and saw that the
sf.net.hibernate.cfg.Configuration contains inner classes.
I tried to use a class of the log4j pack (the ConsoleAppender) and it worked
nice. And it does not have inner classes.
Any clues?
View the original post :
It would help if you could send me an easy example that I can reproduce the
problem. An example with Hibernate would be fine... [EMAIL PROTECTED]
I'm sorry for your problems.
Bill
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858536#3858536
Reply to the
ok.
I will prepare the example with Hibernate and it to you.
Thanks
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858538#3858538
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858538
Add the Hiberante jars to your classpath element of the aopc target. I.e.:
|
| aopc ...
|
|classpath path=${competence.classes.dir}/
|classpath refid=aopc.classpath/
|src path=${competence.classes.dir}/
|aoppath path=${aop.config}/
| /aopc
|
|
Does that