13 Replies Latest reply: Oct 16, 2012 7:49 AM by dragos.n RSS

AS7 7.1.1.Final:  java.lang.ClassCastException: org.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory cannot be cast to javax.xml.crypto.dsig.XMLSignatureFactory

Maycon Oliveira Newbie

Hi again,

 

 

Sorry to post a question again, but Im trying to migrate an application to AS 7 and Im getting a lot of errors.

 

 

On the JBoss AS 7.1.0 CR1 the above declaration works:

 

private static XMLSignatureFactory fac = XMLSignatureFactory.getInstance("DOM");

 

 

 

And on the jboss-as-7.1.1.Final doesn´t . I get:

 

 

 

java.lang.ClassCastException: org.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory cannot be cast to javax.xml.crypto.dsig.XMLSignatureFactory

    at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

    at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

    at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

    at javax.faces.component.UIData.getValue(UIData.java:731) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

 

 

Any ideas??