I am just trying to add a new page with the jboss portal built-in Default 
portlet.

Here's what I did:
1. edit the core/src/resources/portal-core-war/WEB-INF/default-portal.xml and 
add the following page definition:

<page>
  |          <page-name>helloworld</page-name>
  |          <window>
  |             <window-name>DefaultPortletWindow</window-name>
  |             
<instance-ref>portal.DefaultPortlet.DefaultPortletInstance</instance-ref>
  |             <region>left</region>
  |             <height>0</height>
  |          </window>
  |       </page>          
  |    </pages>

2. redeploy jboss-portal, by sh build.sh deploy in core directory.

3. when I access the page:
http://localhost:8080/portal/auth/index.html?_id=page.default.helloworld

I got the following exception:


12:01:10,022 ERROR [Engine] StandardWrapperValve[PortalServlet]: Servlet.service
  | () for servlet PortalServlet threw exception
  | org.jboss.portal.common.transaction.NestedException: 
javax.servlet.ServletExcept
  | ion: no main
  |         at 
org.jboss.portal.common.transaction.Transactions.requiresNew(Transact
  | ions.java:81)
  |         at 
org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionF
  | ilter.java:74)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:186)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:157)
  |         at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
  | lter.java:75)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:186)

Am I doing the right thing to create a new page? Please help. Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868580#3868580

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868580


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to