[opencms-dev] login problem using oc4j in opencms 6.2.2

Georg Raffer georg.nc at gmail.com
Thu Aug 10 14:13:22 CEST 2006


Hello,

I've once solved the problem (http://www.nabble.com/Help..%21-tf956538.html#a2487807):


Furthermore OpenCms also works with Oracle Containers for J2EE 10g
(10.1.3) Developer Preview and Java 5. You only have to make a few changes:

* use the Apache xml parser instead of oracle xml (that is default)

http://www.oracle.com/technology/tech/java/oc4j/904/collateral/OC4J-FAQ-904.html

     (see: How can I use a 3rd party XML parser such as xerces with OC4J)

* Cms login does not work correctly. This can be fixed:
     in class: org.opencms.main.OpenCmsCore
     change method:

private CmsObject initCmsObject(HttpServletRequest req, HttpServletResponse res) throws IOException, CmsException{

	HttpSession session = req.getSession(false);

     to

         HttpSession session = req.getSession(true);



hope that helps.
ciao, Georg

Nacho Fernandez wrote:
> Hi all again,
> 
> Digging deeper into code I found that although the CmsLoginBean appear 
> to be logging in the user correctly, when the workplace file is read, a 
> permissions exception arises due to the system considering is the guest 
> user the one that is trying to access the workplace. I need a bit more 
> of information of one of you guys who understand the guts of the login 
> process. I realized that no event listener is notified of the login 
> action when it is fired (none is registered to that event (# 1) nor to 
> all events (# -1). Can this be the problem? I think that somehow an 
> event listener I can't find must store in the system the information 
> that the new user has logged.
> 
> Thanks in advance, help would be greatly appreciated. I think solving 
> this be useful, right now if you google for "opencms oc4j" the 3rd and 
> 4th entries talk about this problem and say it's unsolved. Greetings,
> 
> Nacho.
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list