[JBoss Portal] - Re: Creating a portlet instance of an unamed portlet
by egandt
The problem is that the portlets are registered with the portal, but in the display they have only got an id and no name, there are 4 columns: id, name, remote, remote able
The last 2 remote, remotable are check boxes, my portlets only have an id and no name so I can not create an instance. Even when I create a portlet-instance.xml file:
<?xml version="1.0" standalone="yes"?>
<instance-id>ActiveContentInstance</instance-id>
<portlet-ref>ActiveContent</portlet-ref>
<instance-id>ActiveDocumentsInstance</instance-id>
<portlet-ref>ActiveDocuments</portlet-ref>
I get instances of portlets, but the instance point to '-' because the portlet name field is not filled in and apparently the name field is used to map to an instance. This makes no sense to me as my portlets have a name, its just not being used. Also in Portal 2.2.1 this was not a problem.
ERIC
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991392#3991392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991392
18 years, 1 month
[Security & JAAS/JBoss] - Re: Programmatic Login Advice
by pander
OK,
One of the "Admins" is bound to know what this is given this TRACE output.
Here is where you can clearly see that the programmatic login is working. It's calling my DBLoginModule, then calling the ClientLoginModule and finally forwarding to the user's homepage.
| 2006-12-05 16:58:39,703 INFO [cc.livewire.jboss.login.DBLoginModule] Entering DBLoginModule !!!!!!!!!!!!!!!!!!!!!!!!!!!!
| 2006-12-05 16:58:39,705 INFO [cc.livewire.jboss.login.DBLoginModule] Logged in user paul OK !!
| 2006-12-05 16:58:39,705 INFO [cc.livewire.jboss.login.DBLoginModule] SESSION_ID:CC617D5EB33DDF849FCCE011CC7F2661
| 2006-12-05 16:58:39,725 TRACE [org.jboss.security.ClientLoginModule] Security domain: AMIRealm
| 2006-12-05 16:58:39,725 TRACE [org.jboss.security.ClientLoginModule] Enabling restore-login-identity mode
| 2006-12-05 16:58:39,725 TRACE [org.jboss.security.ClientLoginModule] Enabling useFirstPass mode
| 2006-12-05 16:58:39,725 TRACE [org.jboss.security.ClientLoginModule] Begin login
| 2006-12-05 16:58:39,728 TRACE [org.jboss.security.ClientLoginModule] commit, subject=Subject:
| Principal: paul
| Principal: Roles(members:ami.reseller)
|
| 2006-12-05 16:58:39,728 TRACE [org.jboss.security.SecurityAssociation] pushSubjectContext, subject=Subject:
| Principal: paul
| Principal: Roles(members:ami.reseller)
| , sc=org.jboss.security.SecurityAssociation$SubjectContext@1e13ce3{principal=,subject=6592395}
| 2006-12-05 16:58:39,728 INFO [org.apache.jsp.test_jsp] Got past the login call !!.....
| 2006-12-05 16:58:39,729 DEBUG [org.apache.catalina.core.ApplicationDispatcher] servletPath=/homePage.do, pathInfo=null, queryString=null, name=null
| 2006-12-05 16:58:39,729 DEBUG [org.apache.catalina.core.ApplicationDispatcher] Path Based Forward
However, the next click that is made shows some strange things in the server log. It's like the ClientLoginModule never passed on any details at all as when I click on the Logindetails.do?action=change link it automatically is refering me to login.jsp and booting me back to the login page.
| 2006-12-05 17:05:50,400 DEBUG [org.apache.catalina.connector.CoyoteAdapter] Requested cookie session id is CC617D5EB33DDF849FCCE011CC7F2661
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost]] Process request for '/AMI/LoginDetails.do'
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost]] Checking for SSO cookie
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost]] SSO cookie is not present
| 2006-12-05 17:05:50,401 TRACE [org.jboss.web.tomcat.security.FormAuthValve] Enter, j_username=null
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Security checking request GET /AMI/LoginDetails.do
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[Secure Content]' against GET /LoginDetails.do --> true
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[Secure Content]' against GET /LoginDetails.do --> true
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[Secure Content]' against GET /LoginDetails.do --> true
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling hasUserDataPermission()
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.realm.RealmBase] User data constraint already satisfied
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling authenticate()
| 2006-12-05 17:05:50,401 DEBUG [org.apache.catalina.authenticator.FormAuthenticator] Save request in session 'CC617D5EB33DDF849FCCE011CC7F2661'
| 2006-12-05 17:05:50,402 DEBUG [org.apache.catalina.core.ApplicationDispatcher] servletPath=/login.jsp, pathInfo=null, queryString=null, name=null
| 2006-12-05 17:05:50,402 DEBUG [org.apache.catalina.core.ApplicationDispatcher] Path Based Forward
| 2006-12-05 17:05:50,402 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
| 2006-12-05 17:05:50,402 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
| 2006-12-05 17:05:50,409 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
| 2006-12-05 17:05:50,409 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
| 2006-12-05 17:05:50,409 DEBUG [org.apache.catalina.core.ApplicationDispatcher] Disabling the response for futher output
| 2006-12-05 17:05:50,409 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Failed authenticate() test
| 2006-12-05 17:05:50,409 TRACE [org.jboss.web.tomcat.security.FormAuthValve] SessionID: CC617D5EB33DDF849FCCE011CC7F2661
| 2006-12-05 17:05:50,409 TRACE [org.jboss.web.tomcat.security.FormAuthValve] SecurityAssociation.exception: null
| 2006-12-05 17:05:50,409 TRACE [org.jboss.web.tomcat.security.FormAuthValve] Exit, username: null
| 2006-12-05 17:05:50,409 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
|
Surely this must be enough info for someone to have a clue as to what the problem is?
Here's hoping.
Kind Regards,
Paul.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991381#3991381
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991381
18 years, 1 month
[JBoss Seam] - Re: Possible component.xml problem in 1.1.0 CR2
by quilleashm
Cheers for the quick reply.
My components.xml
| <components>
|
| <component name="referenceSession"
| class="org.jboss.seam.core.ManagedHibernateSession"/>
|
| <component name="hibernateSessionFactory"
| class="org.jboss.seam.core.HibernateSessionFactory"/>
|
| </components>
|
Components.xml from jboss-seam.jar
| <!DOCTYPE components PUBLIC
| "-//JBoss/Seam Component Configuration DTD 1.1//EN"
| "http://jboss.com/products/seam/components-1.1.dtd">
|
| <components>
| <factory scope="stateless" auto-create="true" name="actor" value="#{org.jboss.seam.core.actor}"/>
| <factory scope="stateless" auto-create="true" name="applicationContext" value="#{org.jboss.seam.core.applicationContext}"/>
| <factory scope="stateless" auto-create="true" name="businessProcess" value="#{org.jboss.seam.core.businessProcess}"/>
| <factory scope="stateless" auto-create="true" name="businessProcessContext" value="#{org.jboss.seam.core.businessProcessContext}"/>
| <factory scope="stateless" auto-create="true" name="conversation" value="#{org.jboss.seam.core.conversation}"/>
| <factory scope="stateless" auto-create="true" name="conversationContext" value="#{org.jboss.seam.core.conversationContext}"/>
| <factory scope="stateless" auto-create="true" name="conversationList" value="#{org.jboss.seam.core.conversationList}"/>
| <factory scope="stateless" auto-create="true" name="conversationStack" value="#{org.jboss.seam.core.conversationStack}"/>
| <factory scope="stateless" auto-create="true" name="eventContext" value="#{org.jboss.seam.core.eventContext}"/>
| <factory scope="stateless" auto-create="true" name="events" value="#{org.jboss.seam.core.events}"/>
| <factory scope="stateless" auto-create="true" name="expressions" value="#{org.jboss.seam.core.expressions}"/>
| <factory scope="stateless" auto-create="true" name="facesContext" value="#{org.jboss.seam.core.facesContext}"/>
| <factory scope="stateless" auto-create="true" name="facesMessages" value="#{org.jboss.seam.core.facesMessages}"/>
| <factory scope="stateless" auto-create="true" name="httpError" value="#{org.jboss.seam.core.httpError}"/>
| <factory scope="stateless" auto-create="true" name="interpolator" value="#{org.jboss.seam.core.interpolator}"/>
| <factory scope="stateless" auto-create="true" name="isUserInRole" value="#{org.jboss.seam.core.isUserInRole}"/>
| <factory scope="stateless" auto-create="true" name="locale" value="#{org.jboss.seam.core.locale}"/>
| <factory scope="stateless" auto-create="true" name="localeSelector" value="#{org.jboss.seam.core.localeSelector}"/>
| <factory scope="stateless" auto-create="true" name="messages" value="#{org.jboss.seam.core.messages}"/>
| <factory scope="stateless" auto-create="true" name="jbpmContext" value="#{org.jboss.seam.core.jbpmContext}"/>
| <factory scope="stateless" auto-create="true" name="pageContext" value="#{org.jboss.seam.core.pageContext}"/>
| <factory scope="stateless" auto-create="true" name="pageflow" value="#{org.jboss.seam.core.pageflow}"/>
| <factory scope="stateless" auto-create="true" name="pojoCache" value="#{org.jboss.seam.core.pojoCache}"/>
| <factory scope="stateless" auto-create="true" name="pooledTask" value="#{org.jboss.seam.core.pooledTask}"/>
| <factory scope="stateless" auto-create="true" name="pooledTaskInstanceList" value="#{org.jboss.seam.core.pooledTaskInstanceList}"/>
| <factory scope="stateless" auto-create="true" name="processInstance" value="#{org.jboss.seam.core.processInstance}"/>
| <factory scope="stateless" auto-create="true" name="redirect" value="#{org.jboss.seam.core.redirect}"/>
| <factory scope="stateless" auto-create="true" name="resourceBundle" value="#{org.jboss.seam.core.resourceBundle}"/>
| <factory scope="stateless" auto-create="true" name="sessionContext" value="#{org.jboss.seam.core.sessionContext}"/>
| <factory scope="stateless" auto-create="true" name="switcher" value="#{org.jboss.seam.core.switcher}"/>
| <factory scope="stateless" auto-create="true" name="taskInstance" value="#{org.jboss.seam.core.taskInstance}"/>
| <factory scope="stateless" auto-create="true" name="taskInstanceList" value="#{org.jboss.seam.core.taskInstanceList}"/>
| <factory scope="stateless" auto-create="true" name="taskInstanceListForType" value="#{org.jboss.seam.core.taskInstanceListForType}"/>
| <factory scope="stateless" auto-create="true" name="timeZone" value="#{org.jboss.seam.core.timeZone}"/>
| <factory scope="stateless" auto-create="true" name="timeZoneSelector" value="#{org.jboss.seam.core.timeZoneSelector}"/>
| <factory scope="stateless" auto-create="true" name="transition" value="#{org.jboss.seam.core.transition}"/>
| <factory scope="stateless" auto-create="true" name="uiComponent" value="#{org.jboss.seam.core.uiComponent}"/>
| <factory scope="stateless" auto-create="true" name="userPrincipal" value="#{org.jboss.seam.core.userPrincipal}"/>
|
| <factory scope="stateless" auto-create="true" name="currentTime" value="#{org.jboss.seam.framework.currentTime}"/>
| <factory scope="stateless" auto-create="true" name="currentDate" value="#{org.jboss.seam.framework.currentDate}"/>
| <factory scope="stateless" auto-create="true" name="currentDatetime" value="#{org.jboss.seam.framework.currentDatetime}"/>
|
| <factory scope="stateless" auto-create="true" name="theme" value="#{org.jboss.seam.theme.theme}"/>
| <factory scope="stateless" auto-create="true" name="themeSelector" value="#{org.jboss.seam.theme.themeSelector}"/>
|
| <factory scope="stateless" auto-create="true" name="queueSession" value="#{org.jboss.seam.jms.queueSession}"/>
| <factory scope="stateless" auto-create="true" name="topicSession" value="#{org.jboss.seam.jms.topicSession}"/>
| </components>
|
Bit more info.
In the Component.getInstanceFromFactory() the String name passed in is org.jboss.seam.core.localeSelector
Which is then used to call init.getFactory()/getFactoryMethodBinding()/getFactoryValueBinding(). I am guessing that the getFactoryValueBinding() should return something. The map factoryValueBindings in Init is populated but the keys are the short versions e.g. localeSelector, so null is returned from all 3 methods.
Any specific info I can give to track this down please let me know.
Cheers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991376#3991376
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991376
18 years, 1 month