6 Replies Latest reply on Jan 17, 2006 11:17 AM by noicangi

    Creating new Portal

    Altaf Ahmed Newbie

      hi,

      i think i am right in saying that we can create new Portlets in Jboss portal. But can we create a new Portal altogether in Jboss Portal.

      if yes, please tell me how to do that.


      thanks,
      Altaf.

        • 1. Re: Creating new Portal
          Andrew Pitonyak Newbie

           

          think i am right in saying that we can create new Portlets in Jboss portal.

          You can write portlets and deploy them in JBoss Portal. You can use the management portlet to add new pages to an existing portal and add deployed portlets to your portal pages.

          can we create a new Portal altogether in Jboss Portal

          You can not create one using the management portlet. I am very new to this so I can not make many comments, but, you can create a portal instance by deploying a *-object.xml file. For example, the following creates a new Portal, complete with pages.
          <?xml version="1.0" encoding="UTF-8"?>
          <deployments>
           <deployment>
           <parent-ref/>
           <if-exists>overwrite</if-exists>
           <portal>
           <portal-name>HelloPortal</portal-name>
           <properties>
           <!-- Set the layout for the default portal -->
           <!-- see also portal-layouts.xml -->
           <property>
           <name>layout.id</name>
           <value>generic</value>
           </property>
           <!-- Set the theme for the default portal -->
           <!-- see also portal-themes.xml -->
           <property>
           <name>theme.id</name>
           <value>Nphalanx</value>
           </property>
           <!-- set the default render set name (used by the render tag in layouts) -->
           <!-- see also portal-renderSet.xml -->
           <property>
           <name>theme.renderSetId</name>
           <value>divRenderer</value>
           </property>
           <!-- set the default strategy name (used by the strategy interceptor) -->
           <!-- see also portal-strategies.xml -->
           <property>
           <name>layout.strategyId</name>
           <value>maximizedRegion</value>
           </property>
           </properties>
           <supported-modes>
           <mode>view</mode>
           <mode>edit</mode>
           <mode>help</mode>
           </supported-modes>
           <supported-window-states>
           <window-state>normal</window-state>
           <window-state>minimized</window-state>
           <window-state>maximized</window-state>
           </supported-window-states>
           <page>
           <page-name>default</page-name>
           <properties/>
           <window>
           <window-name>HelloWorldPortletWindow</window-name>
           <instance-ref>HelloWorldPortletInstance</instance-ref>
           <region>center</region>
           <height>0</height>
           </window>
           </page>
           </portal>
           </deployment>
           <deployment>
           <if-exists>overwrite</if-exists>
           <parent-ref>HelloPortal</parent-ref>
           <page>
           <page-name>foobar</page-name>
           <window>
           <window-name>HelloWorldPortletWindow</window-name>
           <instance-ref>HelloWorldPortletInstance</instance-ref>
           <region>center</region>
           <height>0</height>
           </window>
           </page>
           </deployment>
           <deployment>
           <if-exists>overwrite</if-exists>
           <instance>
           <instance-name>HelloWorldPortletInstance</instance-name>
           <component-ref>helloworld.HelloWorldPortlet</component-ref>
           </instance>
           </deployment>
          </deployments>
          


          • 2. Re: Creating new Portal
            noicangi Novice

            ok i'm on the same step, y have deployed the helloportal, now i'm triying to use the cms admin, but when i create a folder or upload an image, the portlet desapears.

            also i'am trying to edit the maple theme (it's horrible) but how can i edit de *.css using a html page to see what i'm doing?


            • 3. Re: Creating new Portal
              Woodler Expert

               

              "noicangi" wrote:

              also i'am trying to edit the maple theme (it's horrible) but how can i edit de *.css using a html page to see what i'm doing?


              No need to edit it if it's horrible ! You can just write your own.

              I don't understand your question? What is it that you want to do ?
              The css follows common web design practices, so just follow those and you'll be ok..... as I said, not sure what you are looking for .....

              • 4. Re: Creating new Portal
                noicangi Novice

                hahahaha sorry for my english...isn't my mother language,

                mholzner, because i'm new in jboss i was trying to create my portal, i deploy the HELLOPORTAL sample in portal2.2 and then y tried to modify a theme(maple) to create myown (learning from the maple modifications).

                i post if someone could upload a tutorial to create themes and portlets, beacause i'am new in jboss and java programing.

                now i'am trying portal2.0.1 beacause it seems to be robust with less bugs.

                • 5. Re: Creating new Portal
                  Woodler Expert

                  There is an excellent theme and layout guide as part of the user documentation. Check it out.

                  • 6. Re: Creating new Portal
                    noicangi Novice

                    oUUU ( like homer) i don't arrived there reading.....i'm stuck on the cms...:P

                    the cms admin, in portal 2.2 when i upload an image it disapears, and in portal 2.0.1 it gives me this error :





                    exception

                    javax.servlet.ServletException: An error occured during the action request : Servlet execution threw an exception
                    org.jboss.portal.core.servlet.CoreServlet.render(CoreServlet.java:174)
                    org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:81)
                    org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)
                    org.jboss.portal.server.servlet.AbstractMainServlet.doPost(AbstractMainServlet.java:62)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                    org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)
                    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

                    root cause

                    javax.servlet.ServletException: Servlet execution threw an exception
                    org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:58)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.core.invocation.AccessControlInterceptor.invoke(AccessControlInterceptor.java:125)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.invocation.component.CacheInterceptor.invoke(CacheInterceptor.java:74)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
                    org.jboss.portal.server.Component.invoke(Component.java:130)
                    org.jboss.portal.server.invocation.portal.TargetInterceptor.invokeWindow(TargetInterceptor.java:167)
                    org.jboss.portal.server.invocation.portal.TargetInterceptor.invoke(TargetInterceptor.java:67)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.core.invocation.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:117)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserContextInterceptor.java:92)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.invocation.portal.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:77)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
                    org.jboss.portal.server.PortalServer.invoke(PortalServer.java:186)
                    org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:78)
                    org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)
                    org.jboss.portal.server.servlet.AbstractMainServlet.doPost(AbstractMainServlet.java:62)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                    org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)
                    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

                    root cause

                    java.lang.NoSuchMethodError: org.apache.commons.fileupload.portlet.PortletFileUpload.parseRequest(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
                    org.apache.commons.fileupload.portlet.PortletFileUpload.parseRequest(PortletFileUpload.java:101)
                    org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet$20.perform(AdminCMSPortlet.java:926)
                    org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet$1.run(AdminCMSPortlet.java:116)
                    org.jboss.portal.core.security.jaas.IdentityPropagationLoginModule.propagate(IdentityPropagationLoginModule.java:102)
                    org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet.perform(AdminCMSPortlet.java:97)
                    org.jboss.portal.core.portlet.cms.admin.AdminCMSPortlet.processAction(AdminCMSPortlet.java:917)
                    org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:342)
                    org.jboss.portal.portlet.invocation.DispatcherInterceptor.invokeAction(DispatcherInterceptor.java:110)
                    org.jboss.portal.portlet.invocation.DispatcherInterceptor.invoke(DispatcherInterceptor.java:191)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.portlet.invocation.PreferencesInterceptor.invoke(PreferencesInterceptor.java:93)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.invocation.component.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:27)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:94)
                    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    java.lang.reflect.Method.invoke(Unknown Source)
                    org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:49)
                    org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.java:98)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                    org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:58)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.core.invocation.AccessControlInterceptor.invoke(AccessControlInterceptor.java:125)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.invocation.component.CacheInterceptor.invoke(CacheInterceptor.java:74)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
                    org.jboss.portal.server.Component.invoke(Component.java:130)
                    org.jboss.portal.server.invocation.portal.TargetInterceptor.invokeWindow(TargetInterceptor.java:167)
                    org.jboss.portal.server.invocation.portal.TargetInterceptor.invoke(TargetInterceptor.java:67)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.core.invocation.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:117)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserContextInterceptor.java:92)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.invocation.portal.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:77)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                    org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
                    org.jboss.portal.server.PortalServer.invoke(PortalServer.java:186)
                    org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:78)
                    org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)
                    org.jboss.portal.server.servlet.AbstractMainServlet.doPost(AbstractMainServlet.java:62)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                    org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)
                    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)