-
1. Re: Reload a portlet without restarting the server
merlith Jun 8, 2006 9:45 AM (in response to jaymuthus)hi,
if you have a portlet in external .war file, you shold only delete old-version .war file from deploy directory, and copy new-version without restart jboss. After second`s jboss will fire new version.
reg.
MB -
2. Re: Reload a portlet without restarting the server
kalvinklein Jun 9, 2006 4:41 AM (in response to jaymuthus)It's not working, jaymuthus!!! :(((
I have an ant generated *.sar file. I have to restart JBoss every time I copy the new *.sar version. -
3. Re: Reload a portlet without restarting the server
danny_hon Jun 9, 2006 10:01 AM (in response to jaymuthus)I am not sure what is the correct way to reload a portlet. What we do is to touch the jboss-service.xml of our portal. Our portal is deployed as a separate sar file from the jboss-portal.sar. It reloads our portal, and whatever portlets it is using. The good thing is it only takes couple seconds. Hope this helps.
-
4. Re: Reload a portlet without restarting the server
rali.genova Jun 9, 2006 10:26 AM (in response to jaymuthus)for hot deploy use a war format - your clean target should delete it which will trigger undeploy and when you copy over the new war in the deploy directory, it should be picked up by the server deployers. Try and see if this works.
-
5. Re: Reload a portlet without restarting the server
aron.gombas Jun 9, 2006 11:03 AM (in response to jaymuthus)It's actually enough to touch the web.xml to "re-hot-deploy" your portlet app (like an ordinary webapp).
-
6. Re: Reload a portlet without restarting the server
niki600 Jun 11, 2006 8:11 AM (in response to jaymuthus)I would be gratefull if anyone could help me to solve my portal problem.
Well I am new in using JBoss Portal, I downloaded JBoss Portal 2.4.0-BETA1
with Application Server.Also I have downloaded HelloWorldPortlet.zip from
PortalSwap.com. When I extract HelloWorldPortlet.zip I can find helloworldportlet.war ,
When I deploy my .war file in the deploy directory, and when I run server and portal on the
localhost:8080/portal the strange message appears on the portal page
it says
Cannot render
Object not found HelloWorldPortletInstance
I tried to run ant deploy to make a .war from the source, but the message still appears when I redeploy HelloWorldPortlet.war. -
7. Re: Reload a portlet without restarting the server
jaymuthus Jun 15, 2006 2:36 AM (in response to jaymuthus)hai danny_hon
Can you please explain me in detail how to create and deploy a SAR file. -
8. Re: Reload a portlet without restarting the server
danny_hon Jun 16, 2006 9:58 AM (in response to jaymuthus)The sar file is really nothing specific. Our jboss-service.xml is also empty. It is just a wrapper of our war files, which includes our portal, portlets, layouts, themes, libraries, config files, etc.). We think this is the best way to decouple our code from what is inside JBP. We do modify jboss-portal.sar, but we try to keep it as minimal as possible to make upgrade easier.
In addition, it is much easier to manage it from deployment standpoint. We only need to deploy 2 files: jboss-portal.sar and our sar file. Well, if you use other modules such as forum, you may need other packaged files. -
9. Re: Reload a portlet without restarting the server
hamsol Jun 18, 2006 6:36 AM (in response to jaymuthus)I have the same problem as Niki600. I recieve the same massage "Object not found HelloWorldPortletInstance".
can somebody help us?
thanks -
10. Re: Reload a portlet without restarting the server
silicio Jun 19, 2006 8:59 PM (in response to jaymuthus)try with this example i created
http://www.overmodding.org/files/SimplePortlet.war
bye -
11. Re: Reload a portlet without restarting the server
jaymuthus Jun 22, 2006 8:24 AM (in response to jaymuthus)hai danny_hon,
Thank you very much.
I followed your advise and deployed a SAR file. Now, the potlets are redeployed with out restarting the server.
thanks, -
12. Re: Reload a portlet without restarting the server
jaymuthus Jun 22, 2006 8:28 AM (in response to jaymuthus)hai hamsol,
1. Check your portlet.xml for the declaration of the portlet.
2. Check your porlet-instances.xml for the declaration of portlet instances.
3. check your jboss-portlet.xml for the declaration of the porlet use
4. check your *-object.xml for the declaration of portlet page and window declaration.
5. ensure the class path for the potlet are correct.
Thanks,