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 miten mehta <im...@yahoo.com> on 2004/10/27 14:10:29 UTC

Deploying custom portlet

Hello,

I have custom portlet which is packaged in war file. 
xml files I added were:
portlet.xml - which defines xml for my portlet
web.xml - copied it from jetspeed dir deployed in
tomcat (I hope thats how to package)

added entry to default-page.psml as APPID::portletid

I see on default page a window for my porlet but it
does not seem to be getting called.  

I dont know exactly what all I need to get a basic
portlet working.  I added System.out.println messages
but nothing printed to console.  Neither log4j is any
help since I believe my portlet is not called at all.
Some thing related to jetspeed unable to find it.

Any one would like more info let me know and I can
provide you with war file etc.

Miten.


		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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


Re: Deploying custom portlet

Posted by Michael McElligott <mi...@liquidplanet.com>.
Hi Miten,

There are some other quirks that I've encountered on my installation.  
Admittedly, I've not been doing portlet work for long.  Still, my 
development box is XP, I'm running tomcat 5.0.28 with jdk 1.5.  
Jetspeed's backed by a MySQL db.  I've had your experience as well.  My 
problems worked themselves out, but there were a few quirks that I 
didn't see documented:

1.  When I redeploy a warfile, jetspeed does not remove the old webapp 
and install the new one over it.  I shut down tomcat5, delete my portlet 
webapp directory, build the warfile to jetspeed's deploy directory and 
restart.  I've also had to do a maven db.recreate fairly regularly 
because the removal of my apps doesn't seem to go smoothly.  I'm sure 
these are basic configuration issues on my system, but I haven't taken 
the time to figure them out yet.

2.   Some of the documentation suggests that if you have a j2eedeployer 
(or something like that) user and password specified in your 
build.properties file in USER_HOME it will automatically connect to the 
Catalina manager app for removals and installs.  This isn't true.  You 
need to add those properties to jetspeed's properties file 
(WEB-INF/conf/jetspeed.properties).  Actually, you're supposed to add 
them to override.properties from what I read, but I haven't done that so 
I can't say that it works.

3.  Scott's response probably fixes your problem. ;)  I just wanted to 
add these to the list for headache reduction purposes.

Mike

Scott T. Weaver wrote:

> APPID::portletid needs to be APPID::portletName not the id. 
>
>
> miten mehta wrote:
>
>> Hello,
>>
>> I have custom portlet which is packaged in war file. xml files I 
>> added were:
>> portlet.xml - which defines xml for my portlet
>> web.xml - copied it from jetspeed dir deployed in
>> tomcat (I hope thats how to package)
>>
>> added entry to default-page.psml as APPID::portletid
>>
>> I see on default page a window for my porlet but it
>> does not seem to be getting called. 
>> I dont know exactly what all I need to get a basic
>> portlet working.  I added System.out.println messages
>> but nothing printed to console.  Neither log4j is any
>> help since I believe my portlet is not called at all.
>> Some thing related to jetspeed unable to find it.
>>
>> Any one would like more info let me know and I can
>> provide you with war file etc.
>>
>> Miten.
>>
>>
>>        
>> __________________________________
>> Do you Yahoo!?
>> Take Yahoo! Mail with you! Get it on your mobile phone.
>> http://mobile.yahoo.com/maildemo
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>>
>>
>>
>>  
>>
>
>

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


Re: Deploying custom portlet

Posted by miten mehta <im...@yahoo.com>.
Marina,

Your web.xml advise worked out good.  Wiki is kind of
lame and overlooks such questions.  I am having
session problems now.  Session attributes set in
portlet are not visible in jsp.




--- M P <pp...@yahoo.com> wrote:

> It's a stupid question, but where did you deploy
> your
> WAR into? 
> 
> Make sure it is
> $TOMCAT_HOME\webapps\jetspeed\WEB-INF\deploy dir,
> and
> NOT $TOMCAT_HOME\webapps dir (which you would use
> for
> deploying normal web apps)
> 
> I'm asking only because I made this mistake myself
> :)
> 
> If that's not the case - what is in your web.xml
> file?
> You could leave it pretty much empty (have <web-app>
> and <display-name> only and whatever params you
> need)
> and let Jetspeed inject it with necessary entries...
> 
> Marina
> 
> 
> --- miten mehta <im...@yahoo.com> wrote:
> 
> > Hello,
> > 
> > I deleted TD_App under webapps which is my
> > application.
> > Then rebuild war and added to deploy dir.
> > 
> > Now TD_App is empty dir in webapps.  Jetspeed did
> > not
> > expand it.
> > 
> > Any ideas?
> > 
> > Miten.
> > --- miten mehta <im...@yahoo.com> wrote:
> > 
> > > Hello,
> > > 
> > > Incidently portletid and portletname are same in
> > my
> > > case.  Thanks for telling me.
> > > 
> > > Miten.
> > > --- "Scott T. Weaver"
> > > <sc...@binary-designs.net> wrote:
> > > 
> > > > APPID::portletid needs to be
> APPID::portletName
> > > not
> > > > the id.  
> > > > 
> > > > 
> > > > 
> > > > miten mehta wrote:
> > > > 
> > > > >Hello,
> > > > >
> > > > >I have custom portlet which is packaged in
> war
> > > > file. 
> > > > >xml files I added were:
> > > > >portlet.xml - which defines xml for my
> portlet
> > > > >web.xml - copied it from jetspeed dir
> deployed
> > in
> > > > >tomcat (I hope thats how to package)
> > > > >
> > > > >added entry to default-page.psml as
> > > > APPID::portletid
> > > > >
> > > > >I see on default page a window for my porlet
> > but
> > > it
> > > > >does not seem to be getting called.  
> > > > >
> > > > >I dont know exactly what all I need to get a
> > > basic
> > > > >portlet working.  I added System.out.println
> > > > messages
> > > > >but nothing printed to console.  Neither
> log4j
> > is
> > > > any
> > > > >help since I believe my portlet is not called
> > at
> > > > all.
> > > > >Some thing related to jetspeed unable to find
> > it.
> > > > >
> > > > >Any one would like more info let me know and
> I
> > > can
> > > > >provide you with war file etc.
> > > > >
> > > > >Miten.
> > > > >
> > > > >
> > > > >		
> > > > >__________________________________
> > > > >Do you Yahoo!?
> > > > >Take Yahoo! Mail with you! Get it on your
> > mobile
> > > > phone.
> > > > >http://mobile.yahoo.com/maildemo 
> > > > >
> > > >
> > >
> >
>
>---------------------------------------------------------------------
> > > > >To unsubscribe, e-mail:
> > > > jetspeed-user-unsubscribe@jakarta.apache.org
> > > > >For additional commands, e-mail:
> > > > jetspeed-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > > >
> > > > >  
> > > > >
> > > > 
> > > > 
> > > > -- 
> > > > "Great minds discuss ideas. Average minds
> > discuss
> > > > events. Small minds discuss people."  -
> Admiral
> > > > Hyman Rickover
> > > > 
> > > > *******************************************
> > > > *           Scott T. Weaver               *
> > > > *         <we...@apache.org>             *
> > > > *     <http://www.einnovation.com>        *
> > > > * --------------------------------------  *
> > > > *   Apache Jetspeed Enterprise Portal     *
> > > > *     Apache Pluto Portlet Container      *
> > > > *                                         *
> > > > * OpenEdit, Website Content Management *
> > > > *     <http://www.openedit.org>           *
> > > > *******************************************
> > > > 
> > > > 
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > jetspeed-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > > jetspeed-user-help@jakarta.apache.org
> > > > 
> > > > 
> > > 
> > > 
> > > 
> > > 	
> > > 		
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - You care about security. So do we.
> > > http://promotions.yahoo.com/new_mail
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > jetspeed-user-help@jakarta.apache.org
> > > 
> > > 
> > 
> > 
> > 
> > 	
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - You care about security. So do we.
> > http://promotions.yahoo.com/new_mail
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > jetspeed-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We
> finish.
> 
=== message truncated ===



	
		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

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


Re: Deploying custom portlet

Posted by M P <pp...@yahoo.com>.
It's a stupid question, but where did you deploy your
WAR into? 

Make sure it is
$TOMCAT_HOME\webapps\jetspeed\WEB-INF\deploy dir, and
NOT $TOMCAT_HOME\webapps dir (which you would use for
deploying normal web apps)

I'm asking only because I made this mistake myself :)

If that's not the case - what is in your web.xml file?
You could leave it pretty much empty (have <web-app>
and <display-name> only and whatever params you need)
and let Jetspeed inject it with necessary entries...

Marina


--- miten mehta <im...@yahoo.com> wrote:

> Hello,
> 
> I deleted TD_App under webapps which is my
> application.
> Then rebuild war and added to deploy dir.
> 
> Now TD_App is empty dir in webapps.  Jetspeed did
> not
> expand it.
> 
> Any ideas?
> 
> Miten.
> --- miten mehta <im...@yahoo.com> wrote:
> 
> > Hello,
> > 
> > Incidently portletid and portletname are same in
> my
> > case.  Thanks for telling me.
> > 
> > Miten.
> > --- "Scott T. Weaver"
> > <sc...@binary-designs.net> wrote:
> > 
> > > APPID::portletid needs to be APPID::portletName
> > not
> > > the id.  
> > > 
> > > 
> > > 
> > > miten mehta wrote:
> > > 
> > > >Hello,
> > > >
> > > >I have custom portlet which is packaged in war
> > > file. 
> > > >xml files I added were:
> > > >portlet.xml - which defines xml for my portlet
> > > >web.xml - copied it from jetspeed dir deployed
> in
> > > >tomcat (I hope thats how to package)
> > > >
> > > >added entry to default-page.psml as
> > > APPID::portletid
> > > >
> > > >I see on default page a window for my porlet
> but
> > it
> > > >does not seem to be getting called.  
> > > >
> > > >I dont know exactly what all I need to get a
> > basic
> > > >portlet working.  I added System.out.println
> > > messages
> > > >but nothing printed to console.  Neither log4j
> is
> > > any
> > > >help since I believe my portlet is not called
> at
> > > all.
> > > >Some thing related to jetspeed unable to find
> it.
> > > >
> > > >Any one would like more info let me know and I
> > can
> > > >provide you with war file etc.
> > > >
> > > >Miten.
> > > >
> > > >
> > > >		
> > > >__________________________________
> > > >Do you Yahoo!?
> > > >Take Yahoo! Mail with you! Get it on your
> mobile
> > > phone.
> > > >http://mobile.yahoo.com/maildemo 
> > > >
> > >
> >
>
>---------------------------------------------------------------------
> > > >To unsubscribe, e-mail:
> > > jetspeed-user-unsubscribe@jakarta.apache.org
> > > >For additional commands, e-mail:
> > > jetspeed-user-help@jakarta.apache.org
> > > >
> > > >
> > > >
> > > >  
> > > >
> > > 
> > > 
> > > -- 
> > > "Great minds discuss ideas. Average minds
> discuss
> > > events. Small minds discuss people."  - Admiral
> > > Hyman Rickover
> > > 
> > > *******************************************
> > > *           Scott T. Weaver               *
> > > *         <we...@apache.org>             *
> > > *     <http://www.einnovation.com>        *
> > > * --------------------------------------  *
> > > *   Apache Jetspeed Enterprise Portal     *
> > > *     Apache Pluto Portlet Container      *
> > > *                                         *
> > > * OpenEdit, Website Content Management *
> > > *     <http://www.openedit.org>           *
> > > *******************************************
> > > 
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > jetspeed-user-help@jakarta.apache.org
> > > 
> > > 
> > 
> > 
> > 
> > 	
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - You care about security. So do we.
> > http://promotions.yahoo.com/new_mail
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > jetspeed-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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


Re: Deploying custom portlet

Posted by miten mehta <im...@yahoo.com>.
Hello,

I deleted TD_App under webapps which is my
application.
Then rebuild war and added to deploy dir.

Now TD_App is empty dir in webapps.  Jetspeed did not
expand it.

Any ideas?

Miten.
--- miten mehta <im...@yahoo.com> wrote:

> Hello,
> 
> Incidently portletid and portletname are same in my
> case.  Thanks for telling me.
> 
> Miten.
> --- "Scott T. Weaver"
> <sc...@binary-designs.net> wrote:
> 
> > APPID::portletid needs to be APPID::portletName
> not
> > the id.  
> > 
> > 
> > 
> > miten mehta wrote:
> > 
> > >Hello,
> > >
> > >I have custom portlet which is packaged in war
> > file. 
> > >xml files I added were:
> > >portlet.xml - which defines xml for my portlet
> > >web.xml - copied it from jetspeed dir deployed in
> > >tomcat (I hope thats how to package)
> > >
> > >added entry to default-page.psml as
> > APPID::portletid
> > >
> > >I see on default page a window for my porlet but
> it
> > >does not seem to be getting called.  
> > >
> > >I dont know exactly what all I need to get a
> basic
> > >portlet working.  I added System.out.println
> > messages
> > >but nothing printed to console.  Neither log4j is
> > any
> > >help since I believe my portlet is not called at
> > all.
> > >Some thing related to jetspeed unable to find it.
> > >
> > >Any one would like more info let me know and I
> can
> > >provide you with war file etc.
> > >
> > >Miten.
> > >
> > >
> > >		
> > >__________________________________
> > >Do you Yahoo!?
> > >Take Yahoo! Mail with you! Get it on your mobile
> > phone.
> > >http://mobile.yahoo.com/maildemo 
> > >
> >
>
>---------------------------------------------------------------------
> > >To unsubscribe, e-mail:
> > jetspeed-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail:
> > jetspeed-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >  
> > >
> > 
> > 
> > -- 
> > "Great minds discuss ideas. Average minds discuss
> > events. Small minds discuss people."  - Admiral
> > Hyman Rickover
> > 
> > *******************************************
> > *           Scott T. Weaver               *
> > *         <we...@apache.org>             *
> > *     <http://www.einnovation.com>        *
> > * --------------------------------------  *
> > *   Apache Jetspeed Enterprise Portal     *
> > *     Apache Pluto Portlet Container      *
> > *                                         *
> > * OpenEdit, Website Content Management *
> > *     <http://www.openedit.org>           *
> > *******************************************
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > jetspeed-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> 
> 



	
		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

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


Re: Deploying custom portlet

Posted by miten mehta <im...@yahoo.com>.
Hello,

Incidently portletid and portletname are same in my
case.  Thanks for telling me.

Miten.
--- "Scott T. Weaver"
<sc...@binary-designs.net> wrote:

> APPID::portletid needs to be APPID::portletName not
> the id.  
> 
> 
> 
> miten mehta wrote:
> 
> >Hello,
> >
> >I have custom portlet which is packaged in war
> file. 
> >xml files I added were:
> >portlet.xml - which defines xml for my portlet
> >web.xml - copied it from jetspeed dir deployed in
> >tomcat (I hope thats how to package)
> >
> >added entry to default-page.psml as
> APPID::portletid
> >
> >I see on default page a window for my porlet but it
> >does not seem to be getting called.  
> >
> >I dont know exactly what all I need to get a basic
> >portlet working.  I added System.out.println
> messages
> >but nothing printed to console.  Neither log4j is
> any
> >help since I believe my portlet is not called at
> all.
> >Some thing related to jetspeed unable to find it.
> >
> >Any one would like more info let me know and I can
> >provide you with war file etc.
> >
> >Miten.
> >
> >
> >		
> >__________________________________
> >Do you Yahoo!?
> >Take Yahoo! Mail with you! Get it on your mobile
> phone.
> >http://mobile.yahoo.com/maildemo 
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> >
> >
> >
> >  
> >
> 
> 
> -- 
> "Great minds discuss ideas. Average minds discuss
> events. Small minds discuss people."  - Admiral
> Hyman Rickover
> 
> *******************************************
> *           Scott T. Weaver               *
> *         <we...@apache.org>             *
> *     <http://www.einnovation.com>        *
> * --------------------------------------  *
> *   Apache Jetspeed Enterprise Portal     *
> *     Apache Pluto Portlet Container      *
> *                                         *
> * OpenEdit, Website Content Management *
> *     <http://www.openedit.org>           *
> *******************************************
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> 
> 



	
		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

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


Re: Deploying custom portlet

Posted by "Scott T. Weaver" <sc...@binary-designs.net>.
APPID::portletid needs to be APPID::portletName not the id.  



miten mehta wrote:

>Hello,
>
>I have custom portlet which is packaged in war file. 
>xml files I added were:
>portlet.xml - which defines xml for my portlet
>web.xml - copied it from jetspeed dir deployed in
>tomcat (I hope thats how to package)
>
>added entry to default-page.psml as APPID::portletid
>
>I see on default page a window for my porlet but it
>does not seem to be getting called.  
>
>I dont know exactly what all I need to get a basic
>portlet working.  I added System.out.println messages
>but nothing printed to console.  Neither log4j is any
>help since I believe my portlet is not called at all.
>Some thing related to jetspeed unable to find it.
>
>Any one would like more info let me know and I can
>provide you with war file etc.
>
>Miten.
>
>
>		
>__________________________________
>Do you Yahoo!?
>Take Yahoo! Mail with you! Get it on your mobile phone.
>http://mobile.yahoo.com/maildemo 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
>  
>


-- 
"Great minds discuss ideas. Average minds discuss events. Small minds discuss people."  - Admiral Hyman Rickover

*******************************************
*           Scott T. Weaver               *
*         <we...@apache.org>             *
*     <http://www.einnovation.com>        *
* --------------------------------------  *
*   Apache Jetspeed Enterprise Portal     *
*     Apache Pluto Portlet Container      *
*                                         *
* OpenEdit, Website Content Management *
*     <http://www.openedit.org>           *
*******************************************


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