# Not a Directory w/ iText

**URL:** <https://forum.liquibase.org/t/not-a-directory-w-itext/7975>\
**Category:** General Discussion\
**Created:** [March 24, 2023, 4:07pm UTC](https://forum.liquibase.org/t/not-a-directory-w-itext/7975 "2023-03-24T16:07:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoffreywiseman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/geoffreywiseman/32/954_2.png) [@geoffreywiseman](https://forum.liquibase.org/u/geoffreywiseman)\
**Post date:** [March 24, 2023, 4:07pm UTC](https://forum.liquibase.org/t/not-a-directory-w-itext/7975/1 "2023-03-24T16:07:03Z")

</div>

While testing Liquibase 4.20.0 as part of working to resolve [this issue](https://forum.liquibase.org/t/resource-accessor-classpath-duplicates-classcastexception/7973/1), I ran a `mvn liquibase:update` and got:

```auto
[WARNING] Cannot handle classloader url file:/Users/geoffrey/.m2/repository/com/itextpdf/itext7-core/7.1.14/itext7-core-7.1.14.pom: Not a directory: /Users/geoffrey/.m2/repository/com/itextpdf/itext7-core/7.1.14/itext7-core-7.1.14.pom. Operations that need to list files from this location may not work as expected
java.lang.IllegalArgumentException: Not a directory: /Users/geoffrey/.m2/repository/com/itextpdf/itext7-core/7.1.14/itext7-core-7.1.14.pom

```

This looks to be the result of a standard iText dependency, which you can see listed here:  
[https://kb.itextpdf.com/home/it7kb/installation-guidelines/installing-itext-7-for-java](https://kb.itextpdf.com/home/it7kb/installation-guidelines/installing-itext-7-for-java)

They suggest adding a `pom` dependency on iText, which seems to result in a classpath that Liquibase doesn’t like. There won’t be files that liquibase needs, but getting a stack trace every time we run liquibase isn’t ideal. Suggestions?

---

<div class="post-metadata">

**Author:** ![PJatLiquibase](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@PJatLiquibase](https://forum.liquibase.org/u/PJatLiquibase)\
**Post date:** [March 24, 2023, 7:05pm UTC](https://forum.liquibase.org/t/not-a-directory-w-itext/7975/2 "2023-03-24T19:05:14Z")

</div>

Hi Geoffrey,

You’re right, this seems to be overly verbose. It’s worth opening an issue in GitHub.

The error message originates in [liquibase/ClassLoaderResourceAccessor.java at master · liquibase/liquibase · GitHub](https://github.com/liquibase/liquibase/blob/master/liquibase-core/src/main/java/liquibase/resource/ClassLoaderResourceAccessor.java), but the extension for maven, in MavenClassLoaderResourceAccessor, could be smarter about handling these situations.

Do you mind opening an issue [Issues · liquibase/liquibase · GitHub](https://github.com/liquibase/liquibase/issues)?

-`PJ`

---

<div class="post-metadata">

**Author:** ![geoffreywiseman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/geoffreywiseman/32/954_2.png) [@geoffreywiseman](https://forum.liquibase.org/u/geoffreywiseman)\
**Post date:** [March 24, 2023, 7:39pm UTC](https://forum.liquibase.org/t/not-a-directory-w-itext/7975/3 "2023-03-24T19:39:03Z")

</div>

Is it a duplicate of [#3520](https://github.com/liquibase/liquibase/issues/3520)? Trying to decide if I should comment on that issue or create a new one.
