Allright,

something changed, but it is still not satisfying for me:
Well, what I want to do is the following:

I installed JBoss Portal successfully, just like JBoss AOP.
When a new user is created the method:

public User createUser(String uname, String pwd, String realmail)

is called. It is contained in class:

org.jboss.portal.core.impl.user.UserModuleImpl
 
The return-value user is an interface :

org.jboss.portal.core.model.User

Now I want an aspect-class to be called, everytime the createUser-Method is 
called, when clicking on NEW USER in the portal-application. So I prepared the 
UserModuleImpl-class for dynamic AOP



and added a binding with the following pointcut dynamically:

execution(public org.jboss.portal.core.model.User 
org.jboss.portal.core.impl.user.UserModuleImpl->createUser(..))

Now I get an error-message, when creating a new user on JBoss Portal:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

javax.servlet.ServletException: javax.servlet.ServletException: 
org.jboss.portal.core.impl.user.UserImpl
        
org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:85)
        
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

root cause

org.jboss.portal.common.transaction.BusinessException: 
javax.servlet.ServletException: org.jboss.portal.core.impl.user.UserImpl
        
org.jboss.portal.common.transaction.Demarcator.requiresNew(Demarcator.java:58)
        
org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:74)
        
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

note The full stack trace of the root cause is available in the Apache 
Tomcat/5.0.28 logs.
Apache Tomcat/5.0.28

By the way, UserImpl implements that User-interface...
Is this an AOP or an Portal-problem now. 
I hope this will describe my problem a bit more detailed :-)
OLLI

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

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


-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to