Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate Spring MVC web app using Eclipse, Tomcat and Gradle
    primarykey
    data
    text
    <p>[EDIT : Added Tomcat logs and more details on what I did] </p> <p>Learning about Spring MVC and the different tools out there. I am following this tutorial for building a simple Spring MVC Web app using Gradle and Eclipse : <a href="http://codetutr.com/2013/03/24/simple-spring-mvc-web-application-using-gradle/" rel="nofollow">http://codetutr.com/2013/03/24/simple-spring-mvc-web-application-using-gradle/</a></p> <p>Now I would like to run my application, not on the Jetty web server but on Tomcat, via Eclipse. What I did is go to Eclipse -> create new Tomcat server -> add my application to the server. It first refused saying <code>Project facet Java version 1.7 is not supported.</code>. So I then changed it in the build path configuration to Java 1.6. Then I could create the server.</p> <p>After that, when I start my Tomcat server from Eclipse, and type in localhost:8080/home in my browser, I got a 404 not found from Tomcat. The project name is <code>spring-mvc</code>, and the tomcat logs are the following : </p> <p><code> Dec 22, 2013 11:36:07 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files\Gradle\gradle-1.10\bin;C:\Program Files\Java\jdk1.7.0_45\bin;C:\Program Files\maven\bin;C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin;C:\Program Files\PostgreSQL\9.1\bin;C:\Python27\Scripts;C:\Program Files\Gradle\gradle-1.10;C:\Program Files\Java\jdk1.7.0_45\bin;C:\Program Files\spring-maven\maven\bin;. Dec 22, 2013 11:36:07 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:spring-mvc' did not find a matching property. Dec 22, 2013 11:36:07 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Dec 22, 2013 11:36:07 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Dec 22, 2013 11:36:07 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 675 ms Dec 22, 2013 11:36:07 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Dec 22, 2013 11:36:07 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.47 Dec 22, 2013 11:36:08 AM org.apache.tomcat.websocket.server.WsSci onStartup INFO: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. Dec 22, 2013 11:36:09 AM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Dec 22, 2013 11:36:09 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Dec 22, 2013 11:36:09 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Dec 22, 2013 11:36:09 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1638 ms </code></p> <p>I am assuming that there are some settings to be made, but which ones? It doesn't seem like the app is "detected" properly. Has anybody done this before ? Some help would be much appreciated. </p> <p>Happy holidays, Myna</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload