[GraphHopper] Build war file

Peter K peathal at yahoo.de
Thu Jun 6 12:25:02 UTC 2013


Hey,

I did not try tomcat although it should work as it is just a servlet
container like jetty. What version are you using? If it is an older
version you'll have to switch to an older servlet api like 2.3 and not
3.0.1 as it is specified in the web pom.xml!

> I make war file from this project. I add simple plugin to pom.xml file

For me it even works without the plugin and you command.

Peter.


> I make war file from this project. I add simple plugin to pom.xml file
>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <webXml>/home/andrey/graphhopper-master/web/src/main/webapp/WEB-INF/web.xml</webXml>
> </configuration>
> </plugin>
>
>
>
>
>
> and run mvn war:war.  But when  I am trying to runwar project in
> tomcat it stoped with error  
>
> INFO: Deploying web application archive
> D:\opt\tomcat\webapps\graphhopper-web-0.1-SNAPSHOT (2).war
>  06, 2013 4:01:10 PM org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO:
> validateJarFile(D:\opt\tomcat\webapps\graphhopper-web-0.1-SNAPSHOT
> (2)\WEB-INF\lib\javax.servlet-api-3.0.1.jar) -
> jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
> javax/servlet/Servlet.class
>
>
> I've tryed a lot of ways to create working war file but all of them
> was wrong. Maybe somebodyknows how to makeworking war file.  
>
>  
>
>
>
>  
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130606/89693e5d/attachment-0001.html>


More information about the GraphHopper mailing list