Closed rvdb closed 6 years ago
@rvdb Was this issue new in 3.1.0? If not, do you remember how far back you experienced this issue?
I think it's new, IIRC I got a 3.0 WAR working. Will check and report back.
Sorry, I've been confused in my previous comment. Apparently, it's the Tomcat version that is the determining factor. All eXist versions since 3.0-RC1 up to 3.1.0 behave the same, so no difference there. Here's a summary:
So, most likely something has changed in Tomcat that the BetterForm JAR is not prepared for. I think these specs might be useful:
Combined with these observations:
/WEB-INF/classes
in the WAR only contains 1 file infinispan.xml
, so no /WEB-INF/classes/META-INF/resources/xhtml.xsl
can ever be found there (by any Tomcat version).Perhaps something in the Betterform JAR should be updated to Java Servlet Spec version 4.0? Could there have been a change to Java Servlet Spec version 4.0 in the way paths are interpreted inside JARs that causes BetterForm to look for that file in the wrong location? Just an uneducated guess, though...
@JoernT ?
@JoernT Any comments on this please?
Ran into the same problem here, and this is what I did to resolve it:
Following their notes from here: https://betterform.wordpress.com/deploying-a-dev-version-to-exist/
Clone & build betterFORM from github: https://github.com/betterFORM/betterFORM
ant -f build-XRX.xml update-betterFORM
Then replace:
exist/WEB-INF/lib/betterform-exist-5.1-SNAPSHOT-20160615.jar
with
betterFORM/web/target/betterform.jar
And copy the contents of
betterFORM/web/target/classes/META-INF/
to:
exist/WEB-INF/classes/META-INF/
There is an xhtml.xsl
file in META-INF/resources/xsl/
so I just copied that to META-INF/resources/
and that seems to be working enough to start Tomcat 8.5, get to the eXist dashboard and use the apps.
@JoernT ? looks like a smart thing?
sorry guys - miss my notifications too often.
Yes, this seems to be nice workaround to me.
Most likely there a problem with loading the resources from the jar so putting them by the side lets Tomcat resolve them correctly.
What is the problem
Deploying an eXist-3.1.0 WAR build in Tomcat-8.5 fails due to errors caused by the XFormsFilter filter. Following errors are being reported:
I'm not sure if this missing file at
\WEB-INF\classes\META-INF\resources\xhtml.xsl
is the root of the error, but initialization of the eXist-3.1.0 WAR file is stopped, and eXist is not accessible in Tomcat.Yet, when the
XFormsFilter
sections are commented out inweb.xml
, eXist is deployed correctly. Hence, the problem most likely lies with XFormsFilter.What did you expect
Deployment without errors of the eXist WAR file in Tomcat.
Describe how to reproduce or add a test
build dist-war
commandexist-3.1.0
folder inside thewebapps
folder of Tomcat-8.5.12Context information