[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-25 Thread patrickdalla
I didn't like this implementation. (Or I haven't understood) When Tomcat is configured for SSL with client cert authentication required, it already uses a keystore (connector tag in server.xml). This keystore contains only the server certificate. The clients certificates is authenticated against t

[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-20 Thread patrickdalla
walkthrought: I've implementend a subclass of HibernateLoginConfig that returns always true for validatePassword; I've implemented a Filter that replaces the request object with a RequestWrapper that returns X509Certificate[] certs = (X509Certificate[]) request.getAttribute("javax.servlet.requ

[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-19 Thread patrickdalla
As you say if everything was correct getUserPrincipal would return the user. Maybe I'm not configuring the application correctly. getUserPrincipal is returning null and request.getAttribute("javax.servlet.request.X509Certificate") is returning the user certificates. why? View the original post

[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-19 Thread patrickdalla
No. it is 4.0.1 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874519#3874519 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874519 --- This SF.Net email is sponsor

[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-19 Thread patrickdalla
the code that functions is: X509Certificate[] certs = (X509Certificate[]) request.getAttribute("javax.servlet.request.X509Certificate"); X509Certificate cert = certs[0]; cert.getSubjectDN().getName(); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874516#387

[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-19 Thread patrickdalla
the code that functions is: X509Certificate[] certs = (X509Certificate[]) request.getAttribute("javax.servlet.request.X509Certificate"); X509Certificate cert = certs[0]; cert.getSubjectDN().getName(); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874515#387

[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-19 Thread patrickdalla
Excuse... getUserPrincipal returned null. it doesn't function View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874512#3874512 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874512 --

[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-19 Thread patrickdalla
It functions and return the user name. But I think jboss portal does not use this String to amp with a User and authenticate him. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874507#3874507 Reply to the post : http://www.jboss.org/index.html?module=bb&op=

[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-19 Thread patrickdalla
getRemoteUser() is returning "null" request.getAttribute("javax.servlet.request.X509Certificate") is returning all the client certificates configured in the client. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874504#3874504 Reply to the post : http://www

[JBoss-dev] [Design of JBoss Portal] - Re: Certificate Authentication

2005-04-19 Thread patrickdalla
But how the certificate of the client is mapped to a user in the Users table? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874484#3874484 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874484 ---

[JBoss-dev] [Design of JBoss Portal] - Certificate Authentication

2005-04-18 Thread patrickdalla
I wan't to configure portal authentication to be made via user certificate. Where I configure this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874362#3874362 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874362

[JBoss-dev] [Design of JBoss Portal] - Re: Redeploying portlet WAR

2005-04-14 Thread patrickdalla
It didn't work View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873940#3873940 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873940 --- SF email is sponsored by - The

[JBoss-dev] [Design of JBoss Portal] - Re: hibernate3

2005-04-14 Thread patrickdalla
When JBOSS will suporte hibernate 3? I'm having some trouble with hibernate 2 and oracle on composite keys and I've seen in JIRA of hibernate that it won't be solved in hibernate 2.1 but is already implemented in hibernate 3. How coupled with hibernate 2 is JBOSS Portal? Which files would I hav

[JBoss-dev] [Design of JBoss Portal] - hibernate3

2005-04-13 Thread patrickdalla
Does jboss-portal support hibernate3? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873822#3873822 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873822 --- SF em

[JBoss-dev] [Design of JBoss Portal] - Redeploying portlet WAR

2005-04-07 Thread patrickdalla
When I redeploy a WAR with a protlet specification the follow exception occur. But if I restart JBOSS it functions well. What can be problem? java.lang.NullPointerException at org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.j

[JBoss-dev] [Design of JBoss Portal] - CMSPortlet

2005-04-07 Thread patrickdalla
Hi. I would like to implement diferent instances of CMSPortlet and AdminCMSPortlet each for a diferente part of content. How can I do this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873080#3873080 Reply to the post : http://www.jboss.org/index.html?mo

[JBoss-dev] [Design of JBoss Portal] - Run-Time Page Definition

2005-03-14 Thread patrickdalla
It is possible to update a page definition xml at run-time, changing which portlet apears and changing portlets preferences? Does jboss portal support personalization? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870011#3870011 Reply to the post : http://

[JBoss-dev] [Design of JBoss Portal] - Re: service=Hibernate

2005-02-28 Thread patrickdalla
It seams to be ok. This line appears in the startup log: 15:45:31,530 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PortalDS to JNDI name 'java:PortalDS' I think jboss is not seeing portal-core.har.

[JBoss-dev] [Design of JBoss Portal] - service=Hibernate

2005-02-28 Thread patrickdalla
Jboss startup process is not registering service=Hibernate. No exception occur. What can be the problem? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868251#3868251 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868

[JBoss-dev] [Design of JBoss Portal] - Re: Portal Build

2005-02-25 Thread patrickdalla
But jboss-portal-2.0 is up to date? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867783#3867783 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867783 --- SF email

[JBoss-dev] [Design of JBoss Portal] - Re: Portal Build

2005-02-25 Thread patrickdalla
Ok... The following error occurred after installation of jboss-cache.jar in lib directory... but this is an error that doesn't relates to the first exception, I think 11:04:28,727 WARN [ServiceController] Problem starting service jboss.har:service=ForumHibernate net.sf.hibernate.HibernateExce

[JBoss-dev] [Design of JBoss Portal] - Re: Portal Build

2005-02-25 Thread patrickdalla
the build worked successfully. but the portal doesn't function anymore. Exception: org.jboss.portal.common.transaction.NestedException: java.lang.NullPointerException at org.jboss.portal.common.transaction.Transactions.requiresNew(Transactions.java:81) at org.jboss.portal.core

[JBoss-dev] [Design of JBoss Portal] - Re: Portal Build

2005-02-25 Thread patrickdalla
I think the exception that caused the problem was listed in the post, in the end... I think is that Caused by: java.lang.NullPointerException at org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:69

[JBoss-dev] [Design of JBoss Portal] - Re: Portal Build

2005-02-25 Thread patrickdalla
There is no other exception in the log. Except one that occur when starting jboss: 10:50:59,716 WARN [ServiceController] Problem starting service jboss.har:service=ForumHibernate java.lang.NoClassDefFoundError: org/jboss/cache/TreeCache at net.sf.hibernate.cache.TreeCache.(TreeCache.jav

[JBoss-dev] [Design of JBoss Portal] - Portal Build

2005-02-24 Thread patrickdalla
I've downloaded the modules jboss-portal and jboss-portal-thirdparty. When I've runned build.bat from jboss-portal/build directory the following error ocurred: file:C:/Projetos/workspace/jboss-portal-2.0/format/build.xml:113: Could not create task or type of type: jflex. what i've done wrong?

[JBoss-dev] [Design of JBoss Portal] - Re: Preferences

2005-02-23 Thread patrickdalla
So? what class do I have to update? how I get the source code? I'm behind a firewall and connot use cvs. Can I download via http? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867630#3867630 Reply to the post : http://www.jboss.org/index.html?module=bb&op

[JBoss-dev] [Design of JBoss Portal] - Re: Preferences

2005-02-22 Thread patrickdalla
Ok. When you've solved the problem post a message here. thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867465#3867465 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867465

[JBoss-dev] [Design of JBoss Portal] - Re: Preferences

2005-02-21 Thread patrickdalla
I've changed the portlet.xml to: | | http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd" version="1.0"> | |

[JBoss-dev] [Design of JBoss Portal] - Re: Preferences

2005-02-21 Thread patrickdalla
No. I have to declare the preference? How? There is a help for these xml files? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867276#3867276 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867276 ---

[JBoss-dev] [Design of JBoss Portal] - Re: Preferences

2005-02-18 Thread patrickdalla
is it right? how is the right way to access a portlet instance preference View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867127#3867127 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867127 --

[JBoss-dev] [Design of JBoss Portal] - Preferences

2005-02-18 Thread patrickdalla
My portlet-instances.xml is as follow: | | | | Servicos | PagePortlet | | | teste | teste | | | | | | | | | |

[JBoss-dev] [Design of JBoss Portal] - Re: Init Param

2005-02-17 Thread patrickdalla
I've included the preferences tag in portlet-instances.xml and used the function: request.getPreferences().getValue("page","") to access the preference but the default value was returned. Had I used the correct function? View the original post : http://www.jboss.org/index.html?module=bb&op=vi

[JBoss-dev] [Design of JBoss Portal] - Re: Init Param

2005-02-17 Thread patrickdalla
thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866971#3866971 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866971 --- SF email is sponsored by - The IT Prod

[JBoss-dev] [Design of JBoss Portal] - Init Param

2005-02-17 Thread patrickdalla
There is a tag init-param that can be used in portlet.xml to initialize a portlet class. But what I need is some tag to pass a param to initialize a portlet instance in the portlet-instance.xml. is there such a tag? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtop

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-14 Thread patrickdalla
how do I load a class from another WAR file? or how include a JSP from another WAR? Is it possible? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866503#3866503 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866503

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-11 Thread patrickdalla
I'm trying to make war themes but I have a doubt: Can I include a jsp file from another WAR? How? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866239#3866239 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866239 --

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-11 Thread patrickdalla
how i submit html code to the forum? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866199#3866199 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866199 --- SF email

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-11 Thread patrickdalla
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="jbp" %> View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866197#3866197 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866197

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-11 Thread patrickdalla
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="jbp" %> View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866196#3866196 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866196

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-11 Thread patrickdalla
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="jbp" %> View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866198#3866198 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866198

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-11 Thread patrickdalla
<%@ page import="org.jboss.portal.server.output.FragmentResult, java.io.StringWriter, org.jboss.portal.theme.taglib.*" %> <% FragmentResult pfragment = (FragmentResult) pageContext.getRequest().getAttribute(RegionRenderTag.PCTX_FRAGMENT); if(pfragment!=null)

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-11 Thread patrickdalla
note that the tag include a jsp file named /nodesk/portlet.jsp responsible for rendering the portlets. this name can be configured in an xml file. here is an example implementation: View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866193#3866193 Reply to the

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-11 Thread patrickdalla
/* * Arquivo criado em Feb 11, 2005 por jespdb */ package org.jboss.portal.theme.taglib; import java.util.Iterator; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import org.jboss.portal.core.theme.Item; import org.jboss.portal.core.theme.PageHolder; imp

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-11 Thread patrickdalla
I don't know how to use cvs... so I 've made this code for a tag for rendering regions. does anybody can comment? does anybody can teach me how to submit this code to cvs. the nexts posts are the code: View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866191#

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-10 Thread patrickdalla
I was thinking in a theme (or skin) interface which declares method for getting images and styles definitions according to their names and region and some other properties (maybe the PortalRequest object). There could be some reserved names for some special images and styles. For example, for th

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-04 Thread patrickdalla
Does exist some standard specification for themes(like portlets)? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865260#3865260 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865260 --

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-04 Thread patrickdalla
How can I contribute? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865259#3865259 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865259 --- This SF.Net email is sp

[JBoss-dev] [Design of JBoss Portal] - Re: Theme development

2005-02-04 Thread patrickdalla
Does anybody is working on development of theme API? It will be made using custom JSP tags? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865256#3865256 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865256 -

[JBoss-dev] [Design of JBoss Portal] - Theme development

2005-02-04 Thread patrickdalla
How I create a new theme? How I change the default theme? Can i develop diferent themes and change between them according to some variable (like, user logged in, date) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865252#3865252 Reply to the post : http:/

[JBoss-dev] [Design of JBoss Portal] - Forum

2005-02-03 Thread patrickdalla
I've deployed the forum. But with which URL do I use him? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865040#3865040 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865040 --

[JBoss-dev] [Design of JBoss Portal] - Re: Error

2005-01-28 Thread patrickdalla
I've changed the following line: Session session = HibernateContext.getSession("java:portal/SessionFactory"); with: Session session = ((SessionFactory)new InitialContext().lookup("java:portal/SessionFactory")).openSession(); and it had functioned... what can be the problem? View the origina

[JBoss-dev] [Design of JBoss Portal] - Re: Error

2005-01-28 Thread patrickdalla
The first two lines: java.lang.NullPointerException org.jboss.hibernate.session.HibernateContext.prepareSession(HibernateContext.java:171) org.jboss.hibernate.session.HibernateContext.getSession(HibernateContext.java:99) View the original post : http://www.jboss.org/index.html

[JBoss-dev] [Design of JBoss Portal] - Re: Error

2005-01-28 Thread patrickdalla
I think portal is not binding the following name to the correct object: portal/SessionFactory In which class it would be done? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864077#3864077 Reply to the post : http://www.jboss.org/index.html?module=bb&op=pos

[JBoss-dev] [Design of JBoss Portal] - Re: Error

2005-01-28 Thread patrickdalla
This is the log generated when jboss starts referencing session factory: 10:52:39,015 INFO [SessionFactoryImpl] building session factory 10:53:07,374 INFO [ReflectHelper] reflection optimizer disabled for: org.jboss.portal.core.impl.role.RoleImpl, BulkBeanException: Property is private (proper

[JBoss-dev] [Design of JBoss Portal] - Error

2005-01-28 Thread patrickdalla
An error occur in the following line: org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserContextInterceptor.java:52) here is the line. Session session = HibernateContext.getSession("java:portal/SessionFactory"); what can be the cause? View the original post : http://www.jboss.