can you start your vm with -verbose:class and see if you can figure out which jar it's loaded the class from?
On Mon, Jul 24, 2023 at 5:42 PM Milan Durovic <[email protected]> wrote: > The distribution I have doesn’t include one. I downloaded “web profile” > one, version 9.1.0. This is what it has: > > apache-tomee-webprofile-9.1.0 % find . -name '*commons*' > ./bin/commons-daemon.jar > ./bin/commons-daemon-native.tar.gz > ./lib/commons-logging-1.2.jar > ./lib/commons-cli-1.5.0.jar > ./lib/commons-pool2-2.11.1.jar > ./lib/commons-dbcp2-shade-9.1.0.jar > ./lib/commons-digester-1.8.jar > ./lib/istack-commons-runtime-4.0.1.jar > ./lib/commons-collections-3.2.2.jar > ./lib/commons-codec-1.15.jar > ./lib/commons-beanutils-1.9.4.jar > ./lib/commons-lang3-3.12.0.jar > > If I don’t include the dependency below, then the loader complains it > can’t find some class that’s in that JAR. > > > On 25 Jul 2023, at 8:34 am, Kean Erickson <[email protected]> > wrote: > > > > dependency> > > <groupId>commons-fileupload</groupId> > > <artifactId>commons-fileupload</artifactId> > > <version>1.5</version> > > <scope>runtime</scope> <!-- can't find out which JAR needs it --> > > > > > > TomEE comes with this one. So you should be able to use scope "provided", > > or omit it. > > > > -- Jonathan | [email protected] Pessimists, see a jar as half empty. Optimists, in contrast, see it as half full. Engineers, of course, understand the glass is twice as big as it needs to be.
