16

I am trying to deploy a maven web application on my local wildfly machine. But I am getting this error:

08:55:02,595 ERROR [io.undertow.request] (default task-55) UT005023: Exception handling request to /reg-server-1.0.0-SNAPSHOT/v1/lineage: org.jboss.resteasy.spi.Unhandled
Exception: java.lang.IllegalArgumentException: Parameter 'directory' is not a directory 
aurelius
  • 3,946
  • 7
  • 40
  • 73

6 Answers6

24

./gradlew assembleDebug --rerun-tasks

This command run in the command prompt will work if you are trying to connect multiple code bases using settings.gradle and get this error.

7

The following worked for me:

  1. Go to Build.gradle(Module: app) and enable make databinding => enable :false.
  2. Rebuild your project.
B--rian
  • 5,578
  • 10
  • 38
  • 89
Pedram
  • 87
  • 1
  • 3
4

I had encountered the similar error in Android Studio. I just invalidated the cache and restarted the IDE. I suppose it has some thing to do with stale cache data which do not get updated during build processes. Thus, when you undo some changes which previously resulted in creation and deletion of packages and classes, like DataBinding classes in Android Studio. You are left with directories which do not exist and IDE never updated the caches to reflect the same in following builds. Thus, even if after cleaning and rebuilding, error persist. Hope this helps.

In Android Studio, goto FILE -> Invalidate Cache and Restart.

Market Queue
  • 581
  • 5
  • 7
3

For me it solved by deleting the .gradle folder and running the build again.

0

It seems that at deploy time, the application is looking for a directory which has not been generated at package time thus the problem. When created in the target/lib then the deployment runs ok.

aurelius
  • 3,946
  • 7
  • 40
  • 73
0

in build.gradle I changed buildFeatures.dataBinding = true to buildFeatures.dataBinding = false and it's worked for me

  • 2
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 22 '23 at 05:19