Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MoskitoUIFilter / VersionUtil should not imply that /WEB-INF/lib and /META-INF exist #116

Open
FelixJongleur42 opened this issue Sep 23, 2016 · 4 comments

Comments

@FelixJongleur42
Copy link

Servlet Container with no \WEB-INF\lib or no \META-INF\ produces this.
Source code already states "this is pretty hacky now"
see http://fossies.org/dox/moskito-moskito-2.7.6/VersionUtil_8java_source.html

2016-08-08 10:22:51,351 ERROR [main] webui.MoskitoUIFilter:49 init(org.eclipse.jetty.servlet.FilterHolder$Config@75d1477a)
java.lang.IllegalArgumentException: Directory <path-to>\WEB-INF\lib doesn't exists.
    at net.anotheria.util.maven.MavenVersionReader.findJarInDirectory(MavenVersionReader.java:120)
    at net.anotheria.moskito.webui.util.VersionUtil.getWebappLibVersion(VersionUtil.java:24)
    at net.anotheria.moskito.webui.MoskitoUIFilter.init(MoskitoUIFilter.java:41)
@dvayanu
Copy link
Member

dvayanu commented Sep 23, 2016

Hi Felix,
just out of interest, do you use standalone jetty or embedded in your IDE?

@FelixJongleur42
Copy link
Author

the latter

@dvayanu
Copy link
Member

dvayanu commented Sep 25, 2016

so is this something that means that it "doesn't work for you" or "just annoying log spam"? Because obviously in embedded environment its not possible to determine the version (neither its needed, since you know it anyway)

@FelixJongleur42
Copy link
Author

It's irritating when the log gets spammed with the full stack trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants