Developing portlets in Grails for Jboss

View: New views
11 Messages — Rating Filter:   Alert me  

Developing portlets in Grails for Jboss

by Michael Berg-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Anyone have any experiences with this?

The Grails Portlet plugin certainly looks promising but it seems to have some things that are specific to Pluto and Liferay. Does this mean the plugin would not work with Jboss?

Regards,
Michael Berg


Re: Developing portlets in Grails for Jboss

by Lee Butts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Michael,

the Pluto and Liferay plugins are there to handle the container specific parts of deploying to those portals, I'm guessing a similar thing will need to be done for JBoss.

cheers

Lee

2009/11/2 Michael Berg <michael.berg@...>
Hi all,

Anyone have any experiences with this?

The Grails Portlet plugin certainly looks promising but it seems to have some things that are specific to Pluto and Liferay. Does this mean the plugin would not work with Jboss?

Regards,
Michael Berg



Re: Developing portlets in Grails for Jboss

by Kenji Nakamura :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Michael, 

Current implementation of portlets plugin requires to access the underlying HttpServletRequest/Response and the way to retrieve them are container specific. It would be great if you take a look at the existing plugins and write one for jboss. 

Thanks, 

Kenji Nakamura



On Mon, Nov 2, 2009 at 1:03 PM, Lee Butts <leebutts@...> wrote:
Hi Michael,

the Pluto and Liferay plugins are there to handle the container specific parts of deploying to those portals, I'm guessing a similar thing will need to be done for JBoss.

cheers

Lee

2009/11/2 Michael Berg <michael.berg@...>

Hi all,

Anyone have any experiences with this?

The Grails Portlet plugin certainly looks promising but it seems to have some things that are specific to Pluto and Liferay. Does this mean the plugin would not work with Jboss?

Regards,
Michael Berg




Re: Developing portlets in Grails for Jboss

by Daniel Honig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael,
 I looked at writing such an adapter for Sun's webspace but there implementation of the Portlet container does not allow one to gain access to the 'original HTTP Request' object, so it was not possible to write an adapter.

Grails needs to have a Grails HTTP Request object so at the moment with the current design of the portlet plugin, if you can't gain access to the original request then you won't be able to write such an adapter.



 of
On Mon, Nov 2, 2009 at 6:20 PM, Kenji Nakamura <kenji_nakamura@...> wrote:
Hi Michael, 

Current implementation of portlets plugin requires to access the underlying HttpServletRequest/Response and the way to retrieve them are container specific. It would be great if you take a look at the existing plugins and write one for jboss. 

Thanks, 

Kenji Nakamura




On Mon, Nov 2, 2009 at 1:03 PM, Lee Butts <leebutts@...> wrote:
Hi Michael,

the Pluto and Liferay plugins are there to handle the container specific parts of deploying to those portals, I'm guessing a similar thing will need to be done for JBoss.

cheers

Lee

2009/11/2 Michael Berg <michael.berg@...>

Hi all,

Anyone have any experiences with this?

The Grails Portlet plugin certainly looks promising but it seems to have some things that are specific to Pluto and Liferay. Does this mean the plugin would not work with Jboss?

Regards,
Michael Berg





Re: Developing portlets in Grails for Jboss

by Michael Berg-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm working on a jboss adapter right now.

Regards,
Michael Berg

On Tue, Nov 3, 2009 at 2:53 AM, Daniel Honig <daniel.honig@...> wrote:
Michael,
 I looked at writing such an adapter for Sun's webspace but there implementation of the Portlet container does not allow one to gain access to the 'original HTTP Request' object, so it was not possible to write an adapter.

Grails needs to have a Grails HTTP Request object so at the moment with the current design of the portlet plugin, if you can't gain access to the original request then you won't be able to write such an adapter.



 of
On Mon, Nov 2, 2009 at 6:20 PM, Kenji Nakamura <kenji_nakamura@...> wrote:
Hi Michael, 

Current implementation of portlets plugin requires to access the underlying HttpServletRequest/Response and the way to retrieve them are container specific. It would be great if you take a look at the existing plugins and write one for jboss. 

Thanks, 

Kenji Nakamura




On Mon, Nov 2, 2009 at 1:03 PM, Lee Butts <leebutts@...> wrote:
Hi Michael,

the Pluto and Liferay plugins are there to handle the container specific parts of deploying to those portals, I'm guessing a similar thing will need to be done for JBoss.

cheers

Lee

2009/11/2 Michael Berg <michael.berg@...>

Hi all,

Anyone have any experiences with this?

The Grails Portlet plugin certainly looks promising but it seems to have some things that are specific to Pluto and Liferay. Does this mean the plugin would not work with Jboss?

Regards,
Michael Berg







Re: Developing portlets in Grails for Jboss

by Michael Berg-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How do you compile your plugin if it has dependencies to another plugin?

Both the Liferay and Pluto refer to org.codehaus.grails.portlets.container.AbstractPortletContainerAdapter, which is a class that is defined in the portlet plugin. I depend on that declaratively by including it in the dependsOn closure in my plugin, but the compiler doesn't seem to respect that in the build phase.

Any suggestions?

Regards,
Michael Berg

On Tue, Nov 3, 2009 at 12:20 AM, Kenji Nakamura <kenji_nakamura@...> wrote:
Hi Michael, 

Current implementation of portlets plugin requires to access the underlying HttpServletRequest/Response and the way to retrieve them are container specific. It would be great if you take a look at the existing plugins and write one for jboss. 

Thanks, 

Kenji Nakamura




On Mon, Nov 2, 2009 at 1:03 PM, Lee Butts <leebutts@...> wrote:
Hi Michael,

the Pluto and Liferay plugins are there to handle the container specific parts of deploying to those portals, I'm guessing a similar thing will need to be done for JBoss.

cheers

Lee

2009/11/2 Michael Berg <michael.berg@...>

Hi all,

Anyone have any experiences with this?

The Grails Portlet plugin certainly looks promising but it seems to have some things that are specific to Pluto and Liferay. Does this mean the plugin would not work with Jboss?

Regards,
Michael Berg






Re: Developing portlets in Grails for Jboss

by Graeme Rocher-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Install the portlet plugin into your plugin

Cheers

On Tue, Nov 3, 2009 at 10:30 AM, Michael Berg
<michael.berg@...> wrote:

> How do you compile your plugin if it has dependencies to another plugin?
>
> Both the Liferay and Pluto refer to
> org.codehaus.grails.portlets.container.AbstractPortletContainerAdapter,
> which is a class that is defined in the portlet plugin. I depend on that
> declaratively by including it in the dependsOn closure in my plugin, but the
> compiler doesn't seem to respect that in the build phase.
>
> Any suggestions?
>
> Regards,
> Michael Berg
>
> On Tue, Nov 3, 2009 at 12:20 AM, Kenji Nakamura
> <kenji_nakamura@...> wrote:
>>
>> Hi Michael,
>> Current implementation of portlets plugin requires to access the
>> underlying HttpServletRequest/Response and the way to retrieve them are
>> container specific. It would be great if you take a look at the existing
>> plugins and write one for jboss.
>> Thanks,
>> Kenji Nakamura
>>
>>
>>
>> On Mon, Nov 2, 2009 at 1:03 PM, Lee Butts <leebutts@...> wrote:
>>>
>>> Hi Michael,
>>>
>>> the Pluto and Liferay plugins are there to handle the container specific
>>> parts of deploying to those portals, I'm guessing a similar thing will need
>>> to be done for JBoss.
>>>
>>> cheers
>>>
>>> Lee
>>>
>>> 2009/11/2 Michael Berg <michael.berg@...>
>>>>
>>>> Hi all,
>>>>
>>>> Anyone have any experiences with this?
>>>>
>>>> The Grails Portlet plugin certainly looks promising but it seems to have
>>>> some things that are specific to Pluto and Liferay. Does this mean the
>>>> plugin would not work with Jboss?
>>>>
>>>> Regards,
>>>> Michael Berg
>>>>
>>>
>>
>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Developing portlets in Grails for Jboss

by Michael Berg-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well this solved my problem with a missing dependency, but unfortunately it brought back the problem from yesterday with references to missing org.mortbay.jetty classes.

I tried to uninstall-plugin tomcat and install-plugin jetty, but this does not work. The 1.2-SNAPSHOT version of jetty references these classes (for example in JettyServer.groovy) and they do not resolve.

Do I need to add a dependency of some kind to make this work?

Regards,
Michael Berg

On Tue, Nov 3, 2009 at 10:32 AM, Graeme Rocher <graeme.rocher@...> wrote:
Install the portlet plugin into your plugin

Cheers

On Tue, Nov 3, 2009 at 10:30 AM, Michael Berg
<michael.berg@...> wrote:
> How do you compile your plugin if it has dependencies to another plugin?
>
> Both the Liferay and Pluto refer to
> org.codehaus.grails.portlets.container.AbstractPortletContainerAdapter,
> which is a class that is defined in the portlet plugin. I depend on that
> declaratively by including it in the dependsOn closure in my plugin, but the
> compiler doesn't seem to respect that in the build phase.
>
> Any suggestions?
>
> Regards,
> Michael Berg
>
> On Tue, Nov 3, 2009 at 12:20 AM, Kenji Nakamura
> <kenji_nakamura@...> wrote:
>>
>> Hi Michael,
>> Current implementation of portlets plugin requires to access the
>> underlying HttpServletRequest/Response and the way to retrieve them are
>> container specific. It would be great if you take a look at the existing
>> plugins and write one for jboss.
>> Thanks,
>> Kenji Nakamura
>>
>>
>>
>> On Mon, Nov 2, 2009 at 1:03 PM, Lee Butts <leebutts@...> wrote:
>>>
>>> Hi Michael,
>>>
>>> the Pluto and Liferay plugins are there to handle the container specific
>>> parts of deploying to those portals, I'm guessing a similar thing will need
>>> to be done for JBoss.
>>>
>>> cheers
>>>
>>> Lee
>>>
>>> 2009/11/2 Michael Berg <michael.berg@...>
>>>>
>>>> Hi all,
>>>>
>>>> Anyone have any experiences with this?
>>>>
>>>> The Grails Portlet plugin certainly looks promising but it seems to have
>>>> some things that are specific to Pluto and Liferay. Does this mean the
>>>> plugin would not work with Jboss?
>>>>
>>>> Regards,
>>>> Michael Berg
>>>>
>>>
>>
>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email






Re: Developing portlets in Grails for Jboss

by Michael Berg-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Kenji!

I'm having some problems using the portlets plugin because it has some dependencies to Jetty in _Events.groovy. Jetty is not included with Grails 1.2.

As far as I can tell, those dependencies are not necessary, there are no references in the script to any of the imported classes.

Could you remove them and release an updated version of the plugin?

Regards,
Michael Berg

On Tue, Nov 3, 2009 at 12:20 AM, Kenji Nakamura <kenji_nakamura@...> wrote:
Hi Michael, 

Current implementation of portlets plugin requires to access the underlying HttpServletRequest/Response and the way to retrieve them are container specific. It would be great if you take a look at the existing plugins and write one for jboss. 

Thanks, 

Kenji Nakamura




On Mon, Nov 2, 2009 at 1:03 PM, Lee Butts <leebutts@...> wrote:
Hi Michael,

the Pluto and Liferay plugins are there to handle the container specific parts of deploying to those portals, I'm guessing a similar thing will need to be done for JBoss.

cheers

Lee

2009/11/2 Michael Berg <michael.berg@...>

Hi all,

Anyone have any experiences with this?

The Grails Portlet plugin certainly looks promising but it seems to have some things that are specific to Pluto and Liferay. Does this mean the plugin would not work with Jboss?

Regards,
Michael Berg







Re: Developing portlets in Grails for Jboss

by Graeme Rocher-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Looking at the sources for _Events.groovy I can't see why it depends
on Jetty. There just seem to be some lingering imports that need
removing. Unless I'm missing something

Regards

On Tue, Nov 3, 2009 at 11:09 AM, Michael Berg
<michael.berg@...> wrote:

> Hi Kenji!
>
> I'm having some problems using the portlets plugin because it has some
> dependencies to Jetty in _Events.groovy. Jetty is not included with Grails
> 1.2.
>
> As far as I can tell, those dependencies are not necessary, there are no
> references in the script to any of the imported classes.
>
> Could you remove them and release an updated version of the plugin?
>
> Regards,
> Michael Berg
>
> On Tue, Nov 3, 2009 at 12:20 AM, Kenji Nakamura
> <kenji_nakamura@...> wrote:
>>
>> Hi Michael,
>> Current implementation of portlets plugin requires to access the
>> underlying HttpServletRequest/Response and the way to retrieve them are
>> container specific. It would be great if you take a look at the existing
>> plugins and write one for jboss.
>> Thanks,
>> Kenji Nakamura
>>
>>
>>
>> On Mon, Nov 2, 2009 at 1:03 PM, Lee Butts <leebutts@...> wrote:
>>>
>>> Hi Michael,
>>>
>>> the Pluto and Liferay plugins are there to handle the container specific
>>> parts of deploying to those portals, I'm guessing a similar thing will need
>>> to be done for JBoss.
>>>
>>> cheers
>>>
>>> Lee
>>>
>>> 2009/11/2 Michael Berg <michael.berg@...>
>>>>
>>>> Hi all,
>>>>
>>>> Anyone have any experiences with this?
>>>>
>>>> The Grails Portlet plugin certainly looks promising but it seems to have
>>>> some things that are specific to Pluto and Liferay. Does this mean the
>>>> plugin would not work with Jboss?
>>>>
>>>> Regards,
>>>> Michael Berg
>>>>
>>>
>>
>
>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Developing portlets in Grails for Jboss

by Michael Berg-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Indeed they are. I'm manually removing the imports now and this works nicely.

Regards,
Michael Berg

On Tue, Nov 3, 2009 at 11:14 AM, Graeme Rocher <graeme.rocher@...> wrote:
Looking at the sources for _Events.groovy I can't see why it depends
on Jetty. There just seem to be some lingering imports that need
removing. Unless I'm missing something

Regards

On Tue, Nov 3, 2009 at 11:09 AM, Michael Berg
<michael.berg@...> wrote:
> Hi Kenji!
>
> I'm having some problems using the portlets plugin because it has some
> dependencies to Jetty in _Events.groovy. Jetty is not included with Grails
> 1.2.
>
> As far as I can tell, those dependencies are not necessary, there are no
> references in the script to any of the imported classes.
>
> Could you remove them and release an updated version of the plugin?
>
> Regards,
> Michael Berg
>
> On Tue, Nov 3, 2009 at 12:20 AM, Kenji Nakamura
> <kenji_nakamura@...> wrote:
>>
>> Hi Michael,
>> Current implementation of portlets plugin requires to access the
>> underlying HttpServletRequest/Response and the way to retrieve them are
>> container specific. It would be great if you take a look at the existing
>> plugins and write one for jboss.
>> Thanks,
>> Kenji Nakamura
>>
>>
>>
>> On Mon, Nov 2, 2009 at 1:03 PM, Lee Butts <leebutts@...> wrote:
>>>
>>> Hi Michael,
>>>
>>> the Pluto and Liferay plugins are there to handle the container specific
>>> parts of deploying to those portals, I'm guessing a similar thing will need
>>> to be done for JBoss.
>>>
>>> cheers
>>>
>>> Lee
>>>
>>> 2009/11/2 Michael Berg <michael.berg@...>
>>>>
>>>> Hi all,
>>>>
>>>> Anyone have any experiences with this?
>>>>
>>>> The Grails Portlet plugin certainly looks promising but it seems to have
>>>> some things that are specific to Pluto and Liferay. Does this mean the
>>>> plugin would not work with Jboss?
>>>>
>>>> Regards,
>>>> Michael Berg
>>>>
>>>
>>
>
>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email