| Author |
Problem with two portlets in one war-file.
|
Frederick Wilson
Greenhorn
Joined: Apr 08, 2008
Posts: 2
|
|
Hello, I have developed two portlets to be used under WAS 5.0.2, and put them in the same .war-file to ease the installation and one less project to maintain. The problem is that they do not work when I try to put them on a page. I get an error, in the wps_<date_time>.log saying: Both portlets are shown (they are not on the same page), but there is no content in them. They both work when I test them on my local machine using Pluto. I'm suspecting that there is something with my web.xml file that is causing the trouble, and maybe some of the init params. This is my web.xml I've been googling about, and found something about the portlet-class, and that you can't have the same portlet-class for two portlets in the same .war? Is this true? As both my portlets rely on the characteristics of the MvcPortlet, they must have this. Any suggestions on how to solve this?
|
 |
Ajith Prasad
Ranch Hand
Joined: Aug 22, 2006
Posts: 66
|
|
|
Yes you cannot have the two similar class name in a war file
|
 |
Frederick Wilson
Greenhorn
Joined: Apr 08, 2008
Posts: 2
|
|
I've tried changing the portlet-class to something else for both portlets. and But still no luck. These classes just inherit from my MvcPortlet-class, and just do some very simple init stuff. Both portlets have worked before, but when I merged them into a single project they started not working.
|
 |
 |
|
|
subject: Problem with two portlets in one war-file.
|
|
|