Orbeon on JBoss Portal - basic setup

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Orbeon on JBoss Portal - basic setup

jontto
This post was updated on .
Hi,

Just thought I'd give a note on how I just set up Orbeon on JBoss Portal as a portlet, since this seems to be missing from the page in the wiki: http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet

I'm using the JBoss Portal 2.6.5-SP1, which is somewhat outdated, but works for my testing needs.

1. First setup and run the portal normally and check that you get the portal first page ok at http://localhost:8080/portal

2. Get the orbeon WAR (I got some nightly of January 2009 of the 3.7.0 version) and add the following files to WEB-INF:
- 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>
      <instance>
         <instance-id>OrbeonPortletInstance</instance-id>
         <portlet-ref>OrbeonFormsPortlet</portlet-ref>
      </instance>
   </deployment>
</deployments>


- orbeon-object.xml

<?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>default.default</parent-ref>
      <if-exists>overwrite</if-exists>
      <window>
         <window-name>Orbeon Forms</window-name>
         <content>
          <content-type>portlet</content-type>
          <content-uri>OrbeonPortletInstance</content-uri>
         </content>
         <region>center</region>
         <height>1</height>
      </window>
   </deployment>
</deployments>

3. In my case I had to uncomment the following in the web.xml, since the resource was present in jboss-web.xml file:

   
   
    <resource-ref>
        <description>DataSource</description>
        <res-ref-name>jdbc/db</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>

4. Deploy modified WAR to $JBOSS_PORTAL_DIR/server/default/deploy

5. The deployer should automatically deploy the WAR and if you refresh the first page on the portal, you will see that the orbeon portlet view has appeared on the page. Check the terminal or logs for issues during deployment if you have some problems.

NOTE: This is just me testing if it Orbeon works on JBoss Portal so no guarantees are given. Hopefully this'll give someone a nudge at the right direction, though.

// Jonas


EDIT: Just thought that I'd point out that I was using JBoss Portal 2 1.6.5-SP1, but it worked ok with JBoss Portal 2.7.1 also. Both were bundled with the JBoss AS.
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon on JBoss Portal - basic setup

Erik Bruchez
Administrator
Jonas,

Thanks for sharing this!

-Erik

On Jan 27, 2009, at 6:22 AM, jontto wrote:

>
> Hi,
>
> Just thought I'd give a note on how I just set up Orbeon on JBoss  
> Portal as
> a portlet, since this seems to be missing from the page in the wiki:
> http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet
>
> I'm using the JBoss Portal 2.6.5-SP1, which is somewhat outdated,  
> but works
> for my testing needs.
>
> 1. First setup and run the portal normally and check that you get  
> the portal
> first page ok at http://localhost:8080/portal
>
> 2. Get the orbeon WAR (I got some nightly of January 2009 of the 3.7.0
> version) and add the following files to WEB-INF:
> - 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>
>      <instance>
>         <instance-id>OrbeonPortletInstance</instance-id>
>         <portlet-ref>OrbeonFormsPortlet</portlet-ref>
>      </instance>
>   </deployment>
> </deployments>
>
>
> - orbeon-object.xml
>
> <?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>default.default</parent-ref>
>      <if-exists>overwrite</if-exists>
>      <window>
>         <window-name>Orbeon Forms</window-name>
>         <content>
>         <content-type>portlet</content-type>
>         <content-uri>OrbeonPortletInstance</content-uri>
>         </content>
>         <region>center</region>
>         <height>1</height>
>      </window>
>   </deployment>
> </deployments>
>
> 3. In my case I had to uncomment the following in the web.xml, since  
> the
> resource was present in jboss-web.xml file:
>
>    <!-- Uncomment this for the SQL examples -->
>
>    <resource-ref>
>        <description>DataSource</description>
>        <res-ref-name>jdbc/db</res-ref-name>
>        <res-type>javax.sql.DataSource</res-type>
>        <res-auth>Container</res-auth>
>    </resource-ref>
>
> 4. Deploy modified WAR to $JBOSS_PORTAL_DIR/server/default/deploy
>
> 5. The deployer should automatically deploy the WAR and if you  
> refresh the
> first page on the portal, you will see that the orbeon portlet view  
> has
> appeared on the page. Check the terminal or logs for issues during
> deployment if you have some problems.
>
> NOTE: This is just me testing if it Orbeon works on JBoss Portal so no
> guarantees are given. Hopefully this'll give someone a nudge at the  
> right
> direction, though.
>
> // Jonas
> --
> View this message in context: http://www.nabble.com/Orbeon-on-JBoss-Portal---basic-setup-tp21686244p21686244.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon on JBoss Portal - basic setup

Alessandro Vernet
Administrator
In reply to this post by jontto
Thank you for this information! I integrated this on the page that  
deals with deploying Orbeon Forms on a portal server:

http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet#TOC-JBoss-Portal

Alex

On Jan 27, 2009, at 6:22 AM, jontto wrote:

> 1. First setup and run the portal normally and check that you get  
> the portal
> first page ok at http://localhost:8080/portal
>
> 2. Get the orbeon WAR (I got some nightly of January 2009 of the 3.7.0
> version) and add the following files to WEB-INF:
> - 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>
>      <instance>
>         <instance-id>OrbeonPortletInstance</instance-id>
>         <portlet-ref>OrbeonFormsPortlet</portlet-ref>
>      </instance>
>   </deployment>
> </deployments>
>
>
> - orbeon-object.xml
>
> <?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>default.default</parent-ref>
>      <if-exists>overwrite</if-exists>
>      <window>
>         <window-name>Orbeon Forms</window-name>
>         <content>
>         <content-type>portlet</content-type>
>         <content-uri>OrbeonPortletInstance</content-uri>
>         </content>
>         <region>center</region>
>         <height>1</height>
>      </window>
>   </deployment>
> </deployments>
>
> 3. In my case I had to uncomment the following in the web.xml, since  
> the
> resource was present in jboss-web.xml file:
>
>    <!-- Uncomment this for the SQL examples -->
>
>    <resource-ref>
>        <description>DataSource</description>
>        <res-ref-name>jdbc/db</res-ref-name>
>        <res-type>javax.sql.DataSource</res-type>
>        <res-auth>Container</res-auth>
>    </resource-ref>
>
> 4. Deploy modified WAR to $JBOSS_PORTAL_DIR/server/default/deploy
>
> 5. The deployer should automatically deploy the WAR and if you  
> refresh the
> first page on the portal, you will see that the orbeon portlet view  
> has
> appeared on the page. Check the terminal or logs for issues during
> deployment if you have some problems.
>
> NOTE: This is just me testing if it Orbeon works on JBoss Portal so no
> guarantees are given. Hopefully this'll give someone a nudge at the  
> right
> direction, though.
>
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws