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

War missing web.xml in WEB_INF? #6

Open
KnowledgeGarden opened this issue Jun 21, 2019 · 8 comments
Open

War missing web.xml in WEB_INF? #6

KnowledgeGarden opened this issue Jun 21, 2019 · 8 comments

Comments

@KnowledgeGarden
Copy link

Just booted the latest war file in a fresh tomcat 8+ on 64-bit ubuntu. Tomcat cannot find it. I looked inside; while all the other apps in tomcat had a web.xml, I found none in mimir. Perhaps I'm missing something?

@ianroberts
Copy link
Member

It isn’t supposed to have a web.xml - that file is optional in the version of the servlet specification used by Grails 3 (the framework underpinning Mimir 6+). What exactly is the error you get from Tomcat?

@KnowledgeGarden
Copy link
Author

KnowledgeGarden commented Jun 21, 2019

404 not found. Tomcat opened the war, using the full name of that directory failed to boot it. The war was dropped in tomcat's webapps directory

@ianroberts
Copy link
Member

ianroberts commented Jun 21, 2019

So you dropped mimir-cloud-6.1.war into the Tomcat webapps folder, but http://localhost:8080/mimir-cloud-6.1/ gives a 404?

What (if any) errors do you see in the Tomcat log files?

@KnowledgeGarden
Copy link
Author

Catalina log says springboot is missing a dependency. I'm going to attempt to attach that log here.
catalina.2019-06-21.log

@KnowledgeGarden
Copy link
Author

other factors: maven 3.6 and openjdk-11 are installed

@greenwoodma
Copy link
Contributor

Right, that problem is because you are using jdk 11. We're not sure why it's a problem but a fix that worked in java 9 and 10v had stopped working in 11. I've fixed it in the current master of gate-core but not updated Mimir to pull that in yet.

If you can run on Java 10 the error should go away.

@ianroberts
Copy link
Member

ianroberts commented Jun 21, 2019

This is probably related to GateNLP/gate-core#83 which was fixed a couple of days ago - it seems JAXB is no longer available by default in Java 11. Mimir 6.1 will work if you run tomcat under Java 8 instead of 11 (this is what our docker image does), and I’ll mark this issue as fixed once the latest snapshot of Mimir is updated to depend on gate-core 8.7-SNAPSHOT, since that includes the JAXB dependency required by Java 11.

@KnowledgeGarden
Copy link
Author

KnowledgeGarden commented Jun 21, 2019

I'm not in a hurry to use it; it's going to become important in a few months, so I'll wait. I'm assuming this will self-resolve soon, with another release. Meanwhile, I ran into similar problems with maven projects on that nix box; the fix was adding this to the pom's <build> section:

        `<!-- required for jdk > 1.8 -->
		<plugin>
		   <groupId>org.apache.maven.plugins</groupId>
		   <artifactId>maven-compiler-plugin</artifactId>
		   <configuration>
		       <source>1.6</source>
		       <target>1.6</target>
		   </configuration>
		</plugin>`

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

3 participants