[JBoss Portal] - Re: When do you need to create additional instances of a por
by PeterJ
Ah, it's all coming back to me now. That's what happens when I don't deal with a problem for a while, I forget some of the hoops I jumped through.
Try this. In your portlet.xml file, declare another portlet, say 'YetAnotherBridgePortlet' whose class is org.portletbridge.portlet.PortletBridgePortlet. Then in portlet-instance.xml, you can have:
<instance>
| <instance-id>GooglePortletBridgeInstance</instance-id>
| <portlet-ref>YetAnotherBridgePortlet</portlet-ref>
| </instance>
| <instance>
| <instance-id>YahooPortletBridgeInstance</instance-id>
| <portlet-ref>YetAnotherBridgePortlet</portlet-ref>
| </instance>
Then reference GooglePortletBridgeInstance and YahooPortletBridgeInstance in *-object.xml.
Caveat: I think this is what I did; I am still looking for the files or writeup where I explained this to someone a while back. Once I find the evidence, if it is different, I will post a correction.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109478#4109478
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109478
18 years, 4 months
[JBoss Portal] - Re: When do you need to create additional instances of a por
by afichtner
Thank you. Here is my portlet-instances.xml:
<?xml version="1.0" standalone="yes"?>
| <!DOCTYPE deployments PUBLIC
| "-//JBoss Portal//DTD Portlet Instances 2.6//EN"
| "http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd">
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <instance>
| <instance-id>GooglePortletBridgeInstance</instance-id>
| <portlet-ref>org.portletbridge.portlet.PortletBridgePortlet</portlet-ref>
| </instance>
| <preferences>
| <preference>
| <name>initUrl</name>
| <value>http://www.google.com</value>
| </preference>
| </preferences>
| </deployment>
| </deployments>
I don't think my *-object.xml is an issue becuase the above doesn't work. Instead, here is my jboss-app.xml:
<jboss-app>
| <app-name>ehealth</app-name>
| </jboss-app>
When I deploy, I get the following error:
anonymous wrote : 17:24:17,203 WARN [PortletAppDeployment] Failed to create instance GooglePortletBridgeInstance of portlet ehealth.org.portletbridge.portlet.PortletBridgePortlet because portlet ehealth.org.portletbridge.portlet.PortletBridgePortlet is not available
|
As you can see, it appended my app name ("ehealth") to the portletbridge package name, so now it can't find it.
Do you know how I can stop it from appending my application's name to the front so that it can find the portlet?
Thanks!
Abby
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109476#4109476
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109476
18 years, 4 months
[Security & JAAS/JBoss] - error
by jdsignature
in the following stackTrace: what does this mean? [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
Thanks,
07-11-30 16:36:18,128 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] Begin invoke, callernull
2007-11-30 16:36:18,128 TRACE [org.jboss.security.SecurityAssociation] pushRunAsIdentity, runAs=null
2007-11-30 16:36:18,128 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
2007-11-30 16:36:18,128 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
2007-11-30 16:36:18,128 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
2007-11-30 16:36:18,128 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
2007-11-30 16:36:18,128 TRACE [org.jboss.security.SecurityAssociation] popRunAsIdentity, runAs=null
2007-11-30 16:36:18,128 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] End invoke, callernull
2007-11-30 16:36:18,128 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
2007-11-30 16:36:18,128 DEBUG [org.apache.catalina.connector.CoyoteAdapter] Requested cookie session id is 71E7535CC7D5FA940BF0EC8946FB708B
2007-11-30 16:36:18,128 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Security checking request GET /Shields-UI/images/topBtn_search_on.gif
2007-11-30 16:36:18,128 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecurePages]' against GET /images/topBtn_search_on.gif --> false
2007-11-30 16:36:18,128 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecurePages]' against GET /images/topBtn_search_on.gif --> false
2007-11-30 16:36:18,128 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecurePages]' against GET /images/topBtn_search_on.gif --> false
2007-11-30 16:36:18,128 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecurePages]' against GET /images/topBtn_search_on.gif --> false
2007-11-30 16:36:18,128 DEBUG [org.apache.catalina.realm.RealmBase] No applicable constraint located
2007-11-30 16:36:18,128 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Not subject to any constraint
2007-11-30 16:36:18,128 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] Begin invoke, callernull
2007-11-30 16:36:18,128 TRACE [org.jboss.security.SecurityAssociation] pushRunAsIdentity, runAs=null
2007-11-30 16:36:18,128 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
2007-11-30 16:36:18,128 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
2007-11-30 16:36:18,143 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
2007-11-30 16:36:18,143 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
2007-11-30 16:36:18,143 TRACE [org.jboss.security.SecurityAssociation] popRunAsIdentity, runAs=null
2007-11-30 16:36:18,143 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] End invoke, callernull
2007-11-30 16:36:18,143 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
2007-11-30 16:36:18,190 DEBUG [org.apache.catalina.connector.CoyoteAdapter] Requested cookie session id is 71E7535CC7D5FA940BF0EC8946FB708B
2007-11-30 16:36:18,190 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Security checking request POST /Shields-UI/ExecuteSearchService
2007-11-30 16:36:18,190 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecurePages]' against POST /ExecuteSearchService --> true
2007-11-30 16:36:18,190 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling hasUserDataPermission()
2007-11-30 16:36:18,190 DEBUG [org.apache.catalina.realm.RealmBase] User data constraint has no restrictions
2007-11-30 16:36:18,190 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling authenticate()
2007-11-30 16:36:18,190 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Session Created with id=71E7535CC7D5FA940BF0EC8946FB708B
2007-11-30 16:36:18,190 DEBUG [org.apache.catalina.authenticator.FormAuthenticator] Save request in session '71E7535CC7D5FA940BF0EC8946FB708B'
2007-11-30 16:36:18,221 DEBUG [org.apache.catalina.core.ApplicationDispatcher] servletPath=/login.jsp, pathInfo=null, queryString=null, name=null
2007-11-30 16:36:18,221 DEBUG [org.apache.catalina.core.ApplicationDispatcher] Path Based Forward
2007-11-30 16:36:18,221 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
2007-11-30 16:36:18,221 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
2007-11-30 16:36:18,221 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
2007-11-30 16:36:18,221 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
2007-11-30 16:36:18,221 DEBUG [org.apache.catalina.core.ApplicationDispatcher] Disabling the response for futher output
2007-11-30 16:36:18,221 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Failed authenticate() test
2007-11-30 16:36:18,221 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109472#4109472
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109472
18 years, 4 months
[JBoss Portal] - When do you need to create additional instances of a portlet
by afichtner
I'm using JBoss 2.6.2 and I want to include the same portlet in a couple of different places in my portal. However, in each place, it would clip a different web page. In other words, each time I use the PortletBridge portlet, I'd want to set different preferences for it.
Let's say I in one place it displays google, in the 2nd it displays yahoo.
By default, PortletBridge (which is deployed seperately from my application on JBoss) has already created a single PortletBridgeInstance.
Do I need to create 2 new instances of PortletBridge, so that I can set one instance's URL pref to google, the other's to yahoo?
(and if so, where do I create them? I tried creating them in my own portal's portlet-instances.xml but it failed because it appended my portal's name to the path and so couldn't find myportal.org.portletbridge.portlet.PortletBridgePortlet)
Or.... can I just have both places use the single PortletBridgeInstance that already exists?
(and, if so, where would I specify the preferences in each place? Note that I need this to all be done inside of the WAR, not through the web UI)
Thanks!
Abby
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109469#4109469
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109469
18 years, 4 months