Hi Drew,

That is exactly what I thought was happening, the plutofication / plutotisation 
(the pluto process!) was running twice. Those were the only duplicates in that 
web.xml.

cheers,
Steve



On 09/11/2011, at 3:42 PM, Drew Wills wrote:

> Steve,
> 
> Inspecting the web.xml in my local tomcat, I'm not seeing duplicates. To me 
> this looks as though the war file generated by running >mvn package (or 
> install, etc.) from within uportal-portlets-overlay/email-preview was then 
> subsequently passed to >ant deployPortletApp.
> 
> It looks this way particularly because the 2 duplicates are for the 
> portlet-servlets (servlets that wrap portlets), whereas the 2 "normal" 
> servlets -- 'ViewRendererServlet' & 'spring' -- aren't duplicated (unless 
> your example was truncated).
> 
> AFAIK it might also be possible to get duplicates by re-overlaying the 
> uportal-portlets-overlay/email-preview (which, as the name implies, is itself 
> an overlay).
> 
> In either of these scenarios the "pluto-tization" of the webapp is happening 
> twice.  The deployPortletApp target and the maven-pluto-plugin have the same 
> effect on the web.xml:  they inject new <servlet> definitions generated from 
> the <portlet> definitions listed in portlet.xml.  If this process happens 
> twice, it's bad.
> 
> I hope this issue turns out to be what I think it is.  But if it isn't, 
> please keep me posted because I'll follow up directly.
> 
> cheers,
> 
> drew
> 
> On 11/8/2011 9:03 PM, Steve Swinsburg wrote:
>> Hi all,
>> 
>> I'm getting an error with the email-preview portlet in a current uP 4
>> trunk install. It is complaining that the web.xml for the email-preview
>> webapp contains duplicate servlet-names. Inspecting the generated
>> web.xml, it does:
>> 
>> Nov 9, 2011 2:54:17 PM org.apache.catalina.startup.ContextConfig
>> applicationWebConfig
>> SEVERE: Parse error in application web.xml file at
>> jndi:/localhost/email-preview/WEB-INF/web.xml
>> java.lang.IllegalArgumentException: addChild: Child name 'email-preview'
>> is not unique
>> at
>> org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2806)
>> ...
>> 
>> <servlet-name>*email-preview*</servlet-name>
>> <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
>> <init-param>
>> <param-name>portlet-name</param-name>
>> <param-value>email-preview</param-value>
>> </init-param>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>> <servlet>
>> <servlet-name>*demo-email-preview*</servlet-name>
>> <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
>> <init-param>
>> <param-name>portlet-name</param-name>
>> <param-value>demo-email-preview</param-value>
>> </init-param>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>> <servlet>
>> <servlet-name>*email-preview*</servlet-name>
>> <servlet-class>org.apache.pluto.container.driver.PortletServlet</servlet-class>
>> <init-param>
>> <param-name>portlet-name</param-name>
>> <param-value>email-preview</param-value>
>> </init-param>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>> <servlet>
>> <servlet-name>*demo-email-preview*</servlet-name>
>> <servlet-class>org.apache.pluto.container.driver.PortletServlet</servlet-class>
>> <init-param>
>> <param-name>portlet-name</param-name>
>> <param-value>demo-email-preview</param-value>
>> </init-param>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>> 
>> Is anyone else having this issue?
>> 
>> cheers,
>> Steve
>> 
>> --
>> 
>> You are currently subscribed to uportal-dev@lists.ja-sig.org as: 
>> awi...@unicon.net
>> To unsubscribe, change settings or access archives, see 
>> http://www.ja-sig.org/wiki/display/JSG/uportal-dev
>> 
> 
> -- 
> You are currently subscribed to uportal-dev@lists.ja-sig.org as: 
> steve.swinsb...@gmail.com
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/uportal-dev


-- 
You are currently subscribed to uportal-dev@lists.ja-sig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to