Cannot start Tomcat 7.0 in Eclipse Indigo

I need to start work on a web application project for which I installed Eclipse Indigo and Tomcat 7.0. The environment also has JRE 7, the Android SDK. But whenever I start the server, it ends!

In addition, I can start the server outside of Eclipse and successfully execute the web application in the browser. But for debugging, I would prefer it in Eclipse.

Error message:

Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. 

In the console, I get:

  Mar 14, 2012 11:51:18 PM 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\jre7\bin;C:\WINNT\Sun\Java\bin;C:\WINNT\system32;C:\WINNT;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\oracle\product\11.1.0\BIN\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Executive Software\Diskeeper\;C:\Program Files\Pointsec\Pointsec Media Encryption\Program\;C:\Program Files\Windows Imaging\;C:\oracle\product\11.1.0\BIN;C:\Program Files\Reflection\;C:\eclipse;;. Mar 14, 2012 11:51:18 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:AUDI_ASSIST_v2.0_WS_REDESIGN_Interceptor' did not find a matching property. Mar 14, 2012 11:51:18 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-9080"] Mar 14, 2012 11:51:18 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-9009"] Mar 14, 2012 11:51:18 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 504 ms Mar 14, 2012 11:51:18 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 14, 2012 11:51:18 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.26 Mar 14, 2012 11:51:18 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [109] milliseconds. Mar 14, 2012 11:51:18 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(D:\documents and settings\fahmf\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\AUDI_ASSIST_v2.0_WS_REDESIGN_Interceptor\WEB-INF\lib\com.ibm.ws.webservices.thinclient_7.0.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Mar 14, 2012 11:51:20 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-9080"] Mar 14, 2012 11:51:20 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-9009"] Mar 14, 2012 11:51:20 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1697 ms 

I tried the solutions proposed in other issues on this forum, such as increasing the timeout, changing port numbers, removing and reinstalling Tomcat, changing the "publising" option for the server, but nothing works.

Any help would be truly appreciated. Thanks in advance...

+7
source share
7 answers

Just follow the simple steps.

Double-click on the desired server in the server window. It will open a window, and the right corner of the Timout window will be available and change the time to 120. it will work :)

+9
source

For me, the reason was Eclipse. Running the IDE with the "-clean" option enabled it.

 eclipse.exe -clean 
+4
source

please follow this link configuration.it will work

+1
source

Eclipse WTP usually tries to verify that the web application is enabled by visiting the default (/) page of the application when the server starts. Until he receives an HTTP 200 (OK) response from this page, he considers that the application is not working. You have probably noticed that the server icon (from which you are launching tomcat) still says β€œstart” with a green blink.

I think that Eclipse has an error in which it cannot handle the link 302 on the page in / - which can happen if this page is redirected to another page that is redirected to the login page again.

+1
source

SOLVED: What is this !!!! For me, there was compilation with JDK6, but with Tomcat with JDK7, WST uses system properties, not eclipse settings. I also configure the same version of the JDK in eclipse and in System (check it with java -version in the cmd line)

Details: I am trying to configure eclipse as described here, but this did not solve the problem, and I noticed in the eclipse error log that tomcat was running with jre 1.7. despite my configurations.

I also try in the cmd line "java -version" and got "1.7" instead of the expected "1.6".

I also decided to configure java 1.6 (as in eclipse) on the system panel, but this did not solve the problem. I also uninstall jre 1.7 restarting eclipse AND SUCCESS AND SUCCESS! .. It was a very useful key, thanks.

+1
source

Check the deployment descriptor and check the value for <url-pattern> . This may stop tomcat loading.

+1
source

You need to edit eclipse.ini and click to use Java 1.6

 -vm c:\Program Files\Java\jdk1.6.0_25\bin\javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms40m -Xmx512m 

http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example

0
source

All Articles