aspose file tools
The moose likes Portals and Portlets and the fly likes Problem with two portlets in one war-file. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Problem with two portlets in one war-file." Watch "Problem with two portlets in one war-file." New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with two portlets in one war-file.
 
Similar Threads
servlets
how to deploy portlet in pluto portal with tomcat server
Problem in Deploying JSR168 Portlet in Apache Pluto1.1.7 with Tomcat 5.5.20
JSF based Portlet with MyFaces bridge
problems showing a very simple portlet in pluto