------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
I am trying to integrate my own bridge for Oracle ADF Faces. Even with your hint I am not able to figure out how to get the bridge interceptor working. When I invoke <JBossServletContextProvider>.getServletContext(null) an IllegalStateException is thrown, indicating that no bridge is set. I think this results from the fact, that the interceptor is not in position. If I modify the jboss-container-xml of the portal to include an entry for the interceptor a NullPointerException is thrown, that originates from the BridgeInterceptor accessing an object that is not available.
------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
Ahhh, I see the following when the portlet deploys:
ERROR [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] No config for the name JPivotPortlet will use the default configuration
After some digging around in the code, this is caused by a reference to the config-name element in jboss-portlet.xml.
In org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.buildComponentConfiguration(String portletName), the value of the config-element is being looked for in the configurations variable.
Th configurations variable is set up in create(). The data is loaded from /standardjboss-portlet.xml in the portal-core.sar.
The StrutsPortlet configuration in standardjboss-portlet.xml does not have anything specific to Struts in it. The only difference from the default one is the inclusion of the BridgeInterceptor, which sets up the ServletContextProvider. Maybe this configuration should be called BridgedPortlet?
So I put the line <config-name>StrutsPortlet</config-name> into jboss-portlet.xml. Now there is no error like above in the log when I deploy.
------------------------------------------------------- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
THANKS! I wasn't aware of the jboss-app.xml, was just wondering why my own portlet suddenly did not show up any more with the portal sources from cvs head.
------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
When I try to get the servletcontext (servletContextProvider.getServletContext(this)) I get a IllegalStateException
| java.lang.IllegalStateException: No bridge set | at org.jboss.portal.bridge.JBossServletContextProvider.getServletContext(JBossServletContextProvider.java:53) | I have this in my portlet.xml and jboss-portlet.xml
| <portlet> | <portlet-name>StrutsPortletDemo</portlet-name> | <config-name>StrutsPortlet</config-name> | </portlet> | The init method in my portlet sets up a ServletContextProvider like the StrutsPortlet does. Also struts-demo is running fine. Any help would be much appreciated.
------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
If you would like to report an abuse of our service, such as a spam message, please . Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .