[jboss-user] [JBoss Portal] - Re: Handling Portal/Portlet Preferences

explorer do-not-reply at jboss.com
Tue Jul 17 11:35:57 EDT 2007


Thanks for the reply guys.
I had started using a real DB (Oracle) Thats in the project environment.

Well, i was trying to work around applying a theme and style to my portal.

But from the -Object.xml i was getting this error.

  | org.jboss.deployment.DeploymentException: namespace BGPortal Context already exists; - nested throwable: (org.jboss.portal.core.model.portal.Dupli
  | catePortalObjectException: namespace  already exists)
  |         at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectDeployment.java:101)
  |         at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
  |         at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
  | 
The BGPortal-object.xml is as below. Here in this, what ever i make changes to the context name... same error is thrown with the changed name.

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE deployments PUBLIC
  |    "-//JBoss Portal//DTD Portal Object 2.6//EN"
  |    "http://www.jboss.org/portal/dtd/portal_object_2_6.dtd">
  | 
  | <deployments>
  | 	<deployment>
  | 		<parent-ref/>
  | 		<if-exists>overwrite</if-exists>
  | 		<context>
  | 			<context-name>BGPortal Context</context-name>
  | 			<properties>
  | 				<property>
  | 				   <name>layout.id</name>
  | 				   <value>2ColumnLayout</value>
  | 				</property>
  | 				<property>
  | 				   <name>theme.id</name>
  | 				   <value>simple-sample</value>
  | 				</property>            
  | 			 </properties>		 
  | 		 </context>
  | 	</deployment>
  |    <deployment>      
  |       <parent-ref/>
  |       <if-exists>overwrite</if-exists>
  |       <portal>
  | 		<portal-name>BGPortal</portal-name>         
  | 		<page>
  | 			<page-name>default</page-name>
  | 			 <window>
  |          		<window-name>ARPWindow</window-name>
  |          		<instance-ref>ARPInstance</instance-ref>
  |          		<region>left</region>
  |          		<height>0</height>
  |       		</window>        		
  | 		</page>         
  | 	  </portal>      
  |    </deployment>
  | </deployments>
  | 
The corresponding, theme and layout are properly defined.

The layout.jsp i am using is as below.

  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
  | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  | 
  | <%@ taglib uri="/WEB-INF/theme-basic-lib.tld" prefix="basic" %>
  | 
  | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
  | 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
  | <body>
  | <!-- center table with columns -->
  | <basic:forEachWindowInRegion region='left'>
  | 	<table width="100%" bgcolor="#FFFFFF">
  | 		<tr>
  | 			<td class="leftColumn">
  | 				This should appear to the left. - from basic tag
  | 			</td>
  | 		</tr>
  | 	</table>
  | </basic:forEachWindowInRegion>
  | </body>
  | </html>
  | 
  | 

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

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



More information about the jboss-user mailing list