[
https://issues.apache.org/jira/browse/GERONIMO-5436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Struberg updated GERONIMO-5436:
------------------------------------
Attachment: GERONIMO-5436.patch
this patch logs a warning for such cases and outputs the XmlObjects content.
In my situation I now get the following output in the console:
2010-07-07 12:16:01,532 WARN [MergeHelper] Fail: expected WebFragment but got:
org.apache.xmlbeans.impl.values.XmlAnyTypeImpl / <web-fragment
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd" version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>PrimeFaces</name>
<servlet>
<servlet-name>PrimeFaces Resource Servlet</servlet-name>
<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>PrimeFaces Resource Servlet</servlet-name>
<url-pattern>/primefaces_resource/*</url-pattern>
</servlet-mapping>
</web-fragment>
> ClassCastException in Deployer
> ------------------------------
>
> Key: GERONIMO-5436
> URL: https://issues.apache.org/jira/browse/GERONIMO-5436
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 3.0
> Reporter: Mark Struberg
> Fix For: 3.0
>
> Attachments: GERONIMO-5436.patch
>
>
> While deploying a EAR I get a ClassCastException in MergeHelper#347
> webFragment = (WebFragment) xmlObject;
> but xmlObject is actually of type
> org.apache.xmlbeans.impl.values.XmlAnyTypeImpl
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.