This is a discussion on Problem accessing nested class which is stored in session. - Weblogic ; Hi there, I'm using struts within weblogic. I've overwritten the RequestProcessor with my own one which initializes a User object. User user = (User)request.getSession().getAttribute(AttributeN ames.USER); if (user==null || user.activeDeputiesChanged()) { user = new User(accessor.getPID()); request.getSession().setAttribute(AttributeNames.U SER, user); } The User ...
Hi there,
I'm using struts within weblogic. I've overwritten the
RequestProcessor with my own one which initializes a User object.
User user = (User)request.getSession().getAttribute(AttributeN ames.USER);
if (user==null ||
user.activeDeputiesChanged()) {
user = new User(accessor.getPID());
request.getSession().setAttribute(AttributeNames.U SER, user);
}
The User is a Serializable object, which also instantiates another
object called Authorization. When the User is inistantiated I always
got an exception that the constructor of Authorization can't be found:
<18.02.2005 08:19:48 CET>
<[WebAppServletContext(3493306,StrategicElement.war. exp,/StrategicElement.war.e
xp)] Root cause of ServletException
java.lang.NoSuchMethodError: com.csg.pmnet.aucs.Authorization: method
()V not found
at com.csg.pmnet.core.model.User.(User.java:59)
I do not understand that because both classes are in the same package
and both are deployed. When I remove the Authentication from User it
works.
Did anyone have the same problem?