Wrong arguments new for target java lang reflect Constructor expected java net URI actual java io File

Wrong arguments new for target java lang reflect Constructor expected java net URI actual java io File

Deployment “AttachmentStore” is in error due to: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]

Above exception is bug with specific combination with JDK and Jboss:

  • Solution: Please go to jboss-version\server\default\conf\bootstrap\profile.xml and search for “AttachmentStore” and change the constructor¬†as below:

<constructor><parameter class=”java.io.File”>

Wrong arguments new for target java lang reflect Constructor expected java net URI actual java io File

Leave a Reply

Your email address will not be published. Required fields are marked *