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.
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.
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.
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.
It's actually enough to touch the web.xml to "re-hot-deploy" your portlet app (like an ordinary webapp).
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
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.
Can you please explain me in detail how to create and deploy a SAR file.
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.
I have the same problem as Niki600. I recieve the same massage "Object not found HelloWorldPortletInstance".
can somebody help us?
Thank you very much.
I followed your advise and deployed a SAR file. Now, the potlets are redeployed with out restarting the server.
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.