[JBoss Portal] - NoClassDefFoundError exception related to filter
by LidiaEmma
Hello everybody :)
I deployed a portal on Jboss Portal Server, and all works fine.
Now I have to integrate a filter, to change login mechanism, using libraries developed by other people.
I specified filter mapping in %jboss_home%\server\default\deploy\jbossweb-tomcat55.sar\conf\web.xml and deployed libraries in %jboss_home%\lib folder .
When starting Jboss, I get following exception:
11:34:08,937 ERROR [[/invoker]] Exception starting filter
java.lang.NoClassDefFoundError: <class inside filter library>
(of course replace name between <> with name of filter software)
The class which is not found is inside filter library, placed in %jboss_home%\lib folder and also in other lib folder of jboss portal, but it seems somewhere is not found.
Its developers also told me that in JBoss (not portal) their filter worked correctly, so I think there is something wrong in my JBossPortal configuration.
Does anyone have any suggestion?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029257#4029257
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029257
19Â years, 1Â month
[Persistence, JBoss/CMP, Hibernate, Database] - hibernate Session.get() returns proxy ?
by davidbalazic
(I posted this first on hibernate.org forums, but got no reply)
Hi!
I have this with hibernate 3.2.0.cr2 (inside JBoss 4.0.4GA):
| Mapped m = session.get(Mapped.class,myID);
| session.flush();
| session.evict(m);
| session.flush();
| // ...
| session.get(m.getClass,m.getID());
|
This runs once, and then again (the value of myID is the same).
On the second run, the get(Mapped.class,myID) returns an object of type Mapped$$EnhancerByCGLIB$$f6f2dbd7 instead of Mapped, so the line session.get(m.getClass,m.getID()); fails as it will try to load an object of type Mapped$$EnhancerByCGLIB$$f6f2dbd7 , but that has no defined mapping.
I get :
Caused by: org.hibernate.MappingException: Unknown entity: Mapped$$EnhancerByCGLIB$$f6f2dbd7
Why does it return in the second case this weird object (I guess it is a proxy) instead of a normal object, like in the first iteration (it is basically a loop).
How do I force it return a plain object ?
The book "Hibernate in Action" says in 4.4.1 "Retrieving objects by identifier" it:
get() never returns a proxy.
But in my case it does ???
Regards,
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029254#4029254
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029254
19Â years, 1Â month
[JBoss Portal] - Re: additional fields on the login page
by ikazarno
I have a problem with the approach 2.
"Antoine_h" wrote :
|
| 2) add the parameter to the username (concatenation with a special separator), then create your own jaas login module (similar to the one provided), and parse the username to retrieve the name and parameter.
| use javascript to concatenate the name with the extra parameter.
|
|
I have implemented my own login module in the way described above. However, although the method getUsername() of the module returns a correct value, I have a problem with the UserInterceptor. The method req.getRemoteUser() returns a not parsed username with the separator and as a consequence I get NoSuchUserException in UserModule:
org.jboss.portal.core.model.NoSuchUserException: No such user No such user user(a)mydomain.com#en
org.jboss.portal.core.impl.user.UserModuleImpl.findUserByUserName(UserModuleImpl.java:123)
org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:100)
I think I should try implement the third approach with the cookie? Or there is a simple solution for the problem of UserInterceptor?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029249#4029249
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029249
19Â years, 1Â month