• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Problem with two portlets in one war-file.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you cannot have the two similar class name in a war file
 
Frederick Wilson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
What does a metric clock look like? I bet it is nothing like this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic