[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread eleitevasco
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 variable of type Configuration and puts null to it, it 
works. It only breaks when I use some method of this class.

Is there a way to tell aopc not to search this class to compile the aspects?

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread eleitevasco
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] [debug] jboss.aop.search.classpath: 'null' true

A new interesting point... if I take the reference to the Configuration object 
from Hibernate, everything works fine. Very strange...

Any thoughts?

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread eleitevasco
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 : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858519#3858519

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-13 Thread eleitevasco
ok.
I will prepare the example with Hibernate and it to you.

Thanks

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Problem Compiling aspects

2004-12-16 Thread eleitevasco
Hi all,

i am building some aspects to work with hibernate inside session beans.

I created an aspect factory that instantiates a Hibernate SessionFactory and 
it's createPerVm methos instantiates a SessionFactory, binds it to an Aspect 
that holds the reference to the SessionFactory.

The problem is that when I call the aopc task, it generates the following error:

 [aopc] org.jboss.aop.instrument.TransformationException: Failed to aspectiz
e class br.com.quickmind.framework.persistence.HibernateAspectFactory.  Could no
t find class it references net.sf.hibernate.cfg.Configuration

No method in this class is advisable considering my jboss-aop.xml.

The compiler visits all the methods of this class, successfuly classifing them 
as not advisable.

After the last method, the error message above is displayed.

I am using Jboss-aop 1.0 final, the download available at the jboss site.

Thanks,
Eduardo

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-16 Thread eleitevasco
My last message was messed because of the XML stuff of my build file...
Sorry for that.


  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Problem Compiling aspects

2004-12-16 Thread eleitevasco
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=bb&op=viewtopic&p=3858523#3858523

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development