the deploy directory for the portlets is $PORTAL_HOME/server/default/deploy/jboss-portal.sar/
Your portlet should have beside the portlet.xml file the following XML descriptor files in the WEB-INF folder:
For more information on these XML descriptors you might look at the JBoss Portal Reference Guide at: http://www.jboss.org/products/jbossportal/docs
Thank you very much gruenewa.
How should i deploy portlet app in $PORTAL_HOME/server/default/deploy/jboss-portal.sar/
1 I mean whether it should be in .war form or extracted?
2 Do need to put web.xml?If yes how to map web.xml and protlet.xml?
3 I still have one confusion..do i need to use Pluto portlet container with Jboss Portal to use pluto portlet API?
Once agian thank you very much.
1) I deploy my portlets in extracted form, for instance a helloworld portlet would be copied in the folder: $PORTAL_HOME/server/default/deploy/jboss-portal.sar/helloworld.war/
2) I don't know if web.xml is required but usually i add a minimal web.xml file to my portlet application:
3) No, i think you don't need to use the pluto portlet container to run JSR 168 portlets.
4) Which deployment descriptors to use depends on the jboss portal version. With version 2.2 some XML deployment descriptors where replaced by a new one: *-object.xml, but this is all well documented in the docs.
thank you very much gruenewa.
I tried deploying one portlet application created by me to JBoss portal server.
but i am not able to get it run.
I have used internaly Pluto Portlet api to create this portlet example it is simple Helloworl application.
Does anyone knows from where i can get Helloworld sample application given in Jboss Reference Guide.
above link takes to some other location and not able see any sample application.
I want to learn procedure to create and deploy portlet application in JBoss portal.
Want to find ans to few question like
1 how to specify context of portal.[what will be url for accessing portal application]
2 what are the files needs to be changed?
Please reply soon.
Thank you in advance.
Can anyone give link from where i can get JbossPortal based HelloWorld sample application?
the link for the HelloWorld example is:
To get it running you need JBoss Portal 2.2 !!! (NOT JBoss Portal 2.0 !!!) these steps must be done (I am using linux here, but for windows it should be similar):
1) Downloading the example
> wget http://labs.jboss.com/file-access/default/members/portletswap/downloads/portlets/miscellaneous/HelloWorldPortlet.zip
2) Unzipping the archive
> unzip HelloWorldPortlet.zip -d helloworld
3) Change the directory and compile the sources with apache ant. Package the portlet as *.ear file:
> cd helloworld
> ant all
4) Deploy the portlet, just copy the *.ear file into the jboss deploy folder:
> cp output/lib/helloworld.ear $JBOSS_PORTAL/server/default/deploy/
Hope the helps.
just a short comment: My first posting on the deployment of portlets was wrong. You should bundle your portlets as *.ear (Enterprise Application aRchive) file and deploy them in the JBoss deploy folder which is for instance JBOSS_HOME/server/default/deploy/
It depends on your jboss configuration. Sorry for that!
Thank you very much for such a gr8 help gruenewa.
Do you mean our portlet application should be in
If so how Jboss application server will understand this as portel application?
have few more query.
1 Here in our case i am going to use Pluto portlet api instead of jboss portlet api will it really make any difference?[my lib will have some other files]
2 Anyone come across any document which explaines about all xml what we are putting in web-inf folder?[i have reference guide but it is not enough],here i want to know how each xml is communicating with each other.
3 How portlet.xml and web.xml is mapped and how Jboss will can each of this xml files[sequence of xml calling]
As gruenewa told that example will work only with Jboss portal 2.2,
Does anyone has helloworld example in Jboss Portal 2.0 format?
we have some specific requierment for Jboss Portal 2.0 thts why i am asking for this.
Thank you very much once again for such gr8 help.
Yes, as far as I know you should place the portlet application (I am speaking about JBoss Portal 2.2) in the folder:
... but I cann't tell you why this works and how this works, since I am only a jboss portal user.
Thank you very much for your reply.
I have few question.
1 If i use Pluto portlet api to create portlet application and deploy it in Jboss portal 2.0 will it work?[Do i need to ship Pluto portlet container with application]
2 If i can deploy portlet application developed in pluto without keeping pluto portlet container, do i need to add pluto-api jars to lib of Jboss portal?
3 I have downloaded Jboss Portal 2.2RC1 how can i integrate that with Jboss Application server 4.0.2
thank you in advance.
I have written a small portlet application using JSR 168 API,portlet.xml and web.xml files. What is the next step of deploying my portlet in JBoss??? Please someone give me an immidiate reply...
I am very new to Portal and Portlet technology.
I have assignment where i need to deploy Portlet in Jboss Portal.
Here i have few question.
1 If i use Jboss Portal do i need to use other PortletContainer?
2 Can anyone give steps to deploy portlet in JbossPortal with location where to deploy?
3 Here as per customer requirement i need to use Pluto portlet API for creating portlet,do i need to use Pluto Portlet container with portlet to deploy it in JBoss?
Please give help me.
If anyone can give me any link where i can find steps and example would be great help.
I can help you to whatever extent I can. I am also working on the Pluto Container in addition to Jboss portal.
How did you deploy your portlet finally? Please explain how you got the EAR file created?