[jboss-user] [Security JAAS/JBoss] - custom login-config.xml within custom app?

2007-01-23 Thread hubertg
Hi, I have the following question: is it possible to write your own login-config.xml and deploy it with an application (within the ear/war) OR do you have to edit the global /server/default/conf/login-config.xml. Maybe it would be useful if you can hold the login-config.xml within the

[jboss-user] [JBoss Portal] - order of *-object.xml files

2006-09-29 Thread hubertg
hi, in which order the *-object.xml files are processed? i had some problems when one file references objects from another one. are there some rules which have to be noticed? i think it can be useful to divide the deployment infos into different *-object.xml files. thanks in advance. View

[jboss-user] [JBoss Portal] - isUserInRole doesnt work in jsp

2006-09-28 Thread hubertg
hi, [jboss-portal bundle 2.4] i have a portlet which dispatches to a jsp to render the output. now my problem: within the portlet i can execute aRequest.isUserInRole(student)); this returns true because the given user is a student. but wihin the jsp | % out.println(jsp in role : +

[jboss-user] [JBoss Portal] - Re: isUserInRole doesnt work in jsp

2006-09-28 Thread hubertg
ok, my fault: i have to use portletRequest variable instead of request. and therefore I have to insert the defineObjects tag. this works now (returns true as is should): | portlet:defineObjects/ | % out.println(jsp in role : + renderRequest.isUserInRole(student)); % View the

[jboss-user] [Security JAAS/JBoss] - Re: using a portal page within form-login-page

2006-09-27 Thread hubertg
nobody can help me on this topic? thanks in advance ... PS: sorry for the typo in the original subject (porta instead of portal) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3974419#3974419 Reply to the post :

[jboss-user] [Installation, Configuration Deployment] - Re: Problems facing Installation of JBoss

2006-09-27 Thread hubertg
h! I'm using JBoss Portal + JBoss AS 2.4 Production (2006-08-19) I think I'm having kind of the same problem: whenever I start Jboss and requests a portal page with http://localhost:8080/portal the following exception is thrown: 08:53:41,789 ERROR [PortalServlet] Invocation exception

[jboss-user] [Installation, Configuration Deployment] - Re: Problems facing Installation of JBoss

2006-09-27 Thread hubertg
ok, I solved the problem for me: the cause for the exception was simply that the mysql jdbc driver was not registered at the time the *-ds.xml files were intialized. the solution was to copy the mysql-connector-*.jar to /jboss/server/default/lib so the mysql driver is available from the

[jboss-user] [Security JAAS/JBoss] - using a porta page within form-login-page

2006-09-25 Thread hubertg
hi, i want to implement the following behaviour: 0. user is not logged in 1. user clicks on protected resource's url 2. portal redirects to a special portal page which contains a portlet which contains itself a form pointing to j_security_check 3. user inputs user/pwd, if authentication

[jboss-user] [JBoss Portal] - Re: sharing data between render() and processAction() method

2006-07-18 Thread hubertg
thanks for your answer. The order is: 1. processAction() portlet A 2. render() portlet A 3. render() portlet B 4. render() other portlests C,D, ... I'm porting a MVC web framework (WebWork 1) into a portlet. The classical MVC approach is based on one atomic request-response cycle. The action

[jboss-user] [JBoss Portal] - Re: download non-html file from portlet

2006-07-17 Thread hubertg
Ok, I will try that! Thanks for the quick answer! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3958379#3958379 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958379 ___

[jboss-user] [JBoss Portal] - sharing data between render() and processAction() method

2006-07-17 Thread hubertg
Hi, I need to share data between the render() and the processAction() method. The method of (my) choice (and I think the only? method) is using the PortletSession: render() : | request.getPortletSession(sharedData, value); | processAction(); | Object data =

[jboss-user] [JBoss Portal] - Re: Theme No Selection Leads to Null Pointer Selection

2006-07-14 Thread hubertg
Hi, try to delete the portal's database, then restart jboss. This should reset all settings including the theme. br, h View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3958014#3958014 Reply to the post :

[jboss-user] [JBoss Portal] - download non-html file from portlet

2006-07-13 Thread hubertg
Hi, a portlet normally provides a HTML fragment. All portlets of a portal must provide content of the same content type. Now, what if I want to have a link to a pdf, doc, xls file within a portlet? Within a servlet I just set the response's content type and write into the out stream. Is

[jboss-user] [JBoss Portal] - where did the IPC documentation go to?

2006-07-12 Thread hubertg
in version 2.4 docs i'm missing the documentation for the inter portlet communication (IPC) as it existed for version 2.2. can I assume that 2.4 equals docs for 2.2 or are there major changes? br, hubert View the original post :

[jboss-user] [JBoss Portal] - Re: Why

2006-07-11 Thread hubertg
I'm having the very same problem here. trying to get the servletcontext within my portlet. | protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException |{ | |ServletContextProvider prov = new

[jboss-user] [JBoss Portal] - Re: Why - small correction

2006-07-11 Thread hubertg
oops, wrong stacktrace, the one above was for prov.getServletContext(portlet), basically it should make no difference, any call to the JBossServletContextProvider ends up in the no bridge set exception. ok, this is the right stacktrace: | 09:19:13,817 ERROR [ContentPortlet] The portlet