13

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,454
  • 6
  • 32
  • 65

4 Answers4

16

./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.

5

The following worked for me:

  1. Go to Build.gradle(Module: app) and enable make databinding => enable :false.
  2. Rebuild your project.
B--rian
  • 4,650
  • 8
  • 25
  • 63
Pedram
  • 67
  • 1
  • 2
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
  • 481
  • 5
  • 6
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,454
  • 6
  • 32
  • 65