3 Replies Latest reply on Sep 11, 2017 6:15 AM by pepouwek

    java.lang.NoClassDefFoundError: com/ctc/wstx/io/CharsetNames during deployment

    apatispelikan

      Hello,

       

      previously I updated a deployed ear via webadmin-console ("Manage Deployments"). I had to remove an old version of my application in "Server Group Deployments" and add the new version (previously uploaded using "Add Content") to my server-group "Add to groups" (by the way: this is a cluster of two nodes and I use domain-mode). I've done this several times before but this time deploying the new version failed:

      16:09:17,271 INFO  [org.jboss.as.server] (host-controller-connection-threads - 6) JBAS015870: Deploy of deployment "diginews-v1.8.3b.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"diginews-v1.8.3b.ear\".\"diginews.jar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"diginews-v1.8.3b.ear\".\"diginews.jar\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"diginews.jar\" of deployment \"diginews-v1.8.3b.ear\" Caused by: java.lang.NoClassDefFoundError: com/ctc/wstx/io/CharsetNames"},"JBAS014771: Services with missing/unavailable dependencies" => [.....

       

      Reactivating the old version didn't work either. I had to stop and start all servers of this group. Then my ear deployed without an error.

       

      No I'm wondering:

      • I'm not using the missing class within my project
      • As you can see by the version of the ear-file (1.8.3b), this was not the first upgrade I did and all others worked perfectly
      • Restarting the servers helped, so the ear seems to be fine

       

      What might this be - or in other words: How can I avoid this? I was lucky that restarting the servers did fix it, but if not I would have an interuption of the service much longer then some seconds I expect for a redeployment. Unfortunately (but otherwise not) this is not reproducable!? Any suggestions?

       

      Thanks,

      Stephan