You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by ch...@polytech.unice.fr on 2006/07/07 06:10:26 UTC

Registering portlet applications "on-the-fly"

Hello,

I've just started working on J2, and made the "Simplest" portlet
(+application+psml) described on the J2 website.

However I was wondering: is my config wrong somewhere ? or you really
can't deploy WARs correctly while Jetspeed/Tomcat is running ?


(if you know what I mean, and the answer you can skip the details below ;)

The problem is that when I put "simplest.war" inside /WEB-INF/deploy,
deployment.log does say it has been deployed. But the corresponding
portlet application (and portlet) can't be found. OTOH, once I've uploaded
"simplest.psml" the placeholder where the portlet should have appeared,
there's an error message instead roughly saying the portlet definition
could not be found.

After several attemtps, restarts, reading, etc. I've then tried one last
time something :
- shutting down Jetspeed/Tomcat
- deploying yet another whole new portlet (+app)
- re-starting Jetspeed/Tomcat
... and it worked!

When checking the deployment.log I've noticed 2 new lines saying the
portlet-app have been "registered". So I guess, just like some other
people on the net, the problem I had was coming from the portlet-app not
being registered.

So my (more precise) question is : is it possible to register a portlet
while the web server is running ? Because I'd need it to be upish as much
as possible, therefore restarts could be annoying in my case...


Thanks for your help,

Ludovic


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Registering portlet applications "on-the-fly"

Posted by vivek <Vi...@fmr.com>.
I am not including the portelt-api in the war ,still the same error is coming

Philip Mark Donaghy-2 wrote:
> 
> Hi Ludovic,
> 
> The most common problem is including the portlet-api in the war. If
> you do this it will not work.
> 
> On 7/7/06, chungue@polytech.unice.fr <ch...@polytech.unice.fr> wrote:
>> Hello,
>>
>> I've just started working on J2, and made the "Simplest" portlet
>> (+application+psml) described on the J2 website.
>>
>> However I was wondering: is my config wrong somewhere ? or you really
>> can't deploy WARs correctly while Jetspeed/Tomcat is running ?
> 
> Copying portlet war files to the deploy directory does redeploy the
> application while  the server is running.
> 
>>
>>
>> (if you know what I mean, and the answer you can skip the details below
>> ;)
>>
>> The problem is that when I put "simplest.war" inside /WEB-INF/deploy,
>> deployment.log does say it has been deployed. But the corresponding
>> portlet application (and portlet) can't be found. OTOH, once I've
>> uploaded
>> "simplest.psml" the placeholder where the portlet should have appeared,
>> there's an error message instead roughly saying the portlet definition
>> could not be found.
>>
>> After several attemtps, restarts, reading, etc. I've then tried one last
>> time something :
>> - shutting down Jetspeed/Tomcat
>> - deploying yet another whole new portlet (+app)
>> - re-starting Jetspeed/Tomcat
>> ... and it worked!
>>
>> When checking the deployment.log I've noticed 2 new lines saying the
>> portlet-app have been "registered". So I guess, just like some other
>> people on the net, the problem I had was coming from the portlet-app not
>> being registered.
>>
>> So my (more precise) question is : is it possible to register a portlet
>> while the web server is running ? Because I'd need it to be upish as much
>> as possible, therefore restarts could be annoying in my case...
>>
>>
>> Thanks for your help,
>>
>> Ludovic
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
> 
> 
> -- 
> Philip Donaghy
> donaghy.blogspot.com del.icio.us/donaghy/philip
> Skype: philipmarkdonaghy
> Office: +33 5 56 60 88 02
> Mobile: +33 6 20 83 22 62
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Registering-portlet-applications-%22on-the-fly%22-tf1904250.html#a6035169
Sent from the Jetspeed - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Registering portlet applications "on-the-fly"

Posted by Philip Mark Donaghy <ph...@gmail.com>.
Hi Ludovic,

The most common problem is including the portlet-api in the war. If
you do this it will not work.

On 7/7/06, chungue@polytech.unice.fr <ch...@polytech.unice.fr> wrote:
> Hello,
>
> I've just started working on J2, and made the "Simplest" portlet
> (+application+psml) described on the J2 website.
>
> However I was wondering: is my config wrong somewhere ? or you really
> can't deploy WARs correctly while Jetspeed/Tomcat is running ?

Copying portlet war files to the deploy directory does redeploy the
application while  the server is running.

>
>
> (if you know what I mean, and the answer you can skip the details below ;)
>
> The problem is that when I put "simplest.war" inside /WEB-INF/deploy,
> deployment.log does say it has been deployed. But the corresponding
> portlet application (and portlet) can't be found. OTOH, once I've uploaded
> "simplest.psml" the placeholder where the portlet should have appeared,
> there's an error message instead roughly saying the portlet definition
> could not be found.
>
> After several attemtps, restarts, reading, etc. I've then tried one last
> time something :
> - shutting down Jetspeed/Tomcat
> - deploying yet another whole new portlet (+app)
> - re-starting Jetspeed/Tomcat
> ... and it worked!
>
> When checking the deployment.log I've noticed 2 new lines saying the
> portlet-app have been "registered". So I guess, just like some other
> people on the net, the problem I had was coming from the portlet-app not
> being registered.
>
> So my (more precise) question is : is it possible to register a portlet
> while the web server is running ? Because I'd need it to be upish as much
> as possible, therefore restarts could be annoying in my case...
>
>
> Thanks for your help,
>
> Ludovic
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


-- 
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org