[jboss-dev-forums] [JBoss AS 7 Development] - 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 do-not-reply at jboss.com
Thu Mar 15 13:51:07 EDT 2012


Maycon Oliveira [https://community.jboss.org/people/FuinhaAzul] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/724101#724101

--------------------------------------------------------------
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??
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/724101#724101]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120315/3ebb091d/attachment.html 


More information about the jboss-dev-forums mailing list