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
Name of web-fragment in moskito-webui should be "MoSKitoWebUI" #42
Comments
Hi Frank, thank you for the issue ;-) just to get it right, jetty won't start as long as one of the referenced fragments are missing? That could be a problem, since MoSKito Inspect is actually an optional package. So do you think simple renaming will help, or do we need to ensure both webapps are present? |
I think the problem is that moskito-web has an ordering after MoSKitoWebUI in it's web-fragment.xml but the name of the web-fragment in moskito-webui is "MoSKitoInspectShared" and not "MoSKitoWebUI" as I would expect. As a workaround I have configured the ordering of the web-fragments explicitly in my web.xml with the "absolute ordering" element:
|
I change the dependency of MoskitoWeb to MoSKitoInspectShared. However, I think the above ordering is the better option. Problem on my side is, that if I set the dependency to MoSKitoInspect but it isn't there (because you use remote inspect), you will have start problems. If I set it to MoSKitoInspectShared - MoSKitoInspect filters are monitored, which doesn't make sense. |
Is there actually a solution without the workaround in the web.xml? I still see this when not using the absolute-ordering tag. Shouldn't this be fixed by using ordering in the corresponding web-fragment.xml?
|
Hi @FelixJongleur42 , so you are using standalone or embedded mode? |
Yes and yes, I am using the workaround now. |
With commit 141eff7 the name of the web-fragment.xml in moskito-webui was changed from "MoSKitoWebUI" to "MoSKitoInspectShared". However the ordering in web-fragment.xml in moskito-web references "MoSKitoWebUI". So one of the names should be changed to match the other.
This leads to the problem that moskito cannot be deployed in Jetty 8. Jetty will refuse to start with a "java.lang.IllegalStateException: Circular references for fragments" message.
Tomcat 7 however has no problem deploying this..
The text was updated successfully, but these errors were encountered: