The first day of entry encountered this tomcat configuration issue, Eclipse started Tomcat normal, but the page is still 404.

Source: Internet
Author: User
Tags session id win32 apache tomcat

This two days to see Eclipse 3.7 (code-named Indigo) official version of the release, so I would like to try the latest version of what changes, so began to prepare to try, and finally in today's download good also unpacked, everything is normal, casually wrote a Web project, added a tomcat service in the server , deploy the project, start Tomcat, and the console prints out the startup information, all of which are normal, starting normally.

Tomcat log:

2011-6-26 13:05:23 Org.apache.catalina.core.AprLifecycleListener Init
Info: The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found O n the Java.library.path:d:\genuitec\common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;.; C:\WINDOWS\Sun\Java\bin; C:\WINDOWS\system32; c:\windows;d:/genuitec/common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/bin/.. /jre/bin/client;d:/genuitec/common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/bin/.. /jre/bin;d:/genuitec/common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/bin/.. /jre/lib/i386; F:\oracle\product\10.2.0\db_1\bin; C:\WINDOWS\system32; C:\WINDOWS; C:\windows\system32\wbem;d:\genuitec\common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin; C:\Program Files\Common Files\thunder Network\kankan\codecs; C:\Program Files\sinovoice\jtts 5.0 Desktop\bin;d:\mingw\bin;d:\djgpp\bin; C:\windows\system32\windowspowershell\v1.0;d:\program FILES\IDM Computer solutions\ultraedit\;D: \Program Files\ Icyplayer\codecs\;D: \eclipse-jee-indigo-win32\eclipse;
2011-6-26 13:05:23 Org.apache.tomcat.util.digester.SetPropertiesRule begin
Warning: [Setpropertiesrule]{server/service/engine/host/context} Setting ' source ' to ' org.eclipse.jst.jee.server : Web ' did not find a matching property.
2011-6-26 13:05:24 Org.apache.coyote.AbstractProtocol Init
Info: Initializing Protocolhandler ["http-bio-8080"]
2011-6-26 13:05:24 Org.apache.coyote.AbstractProtocol Init
Info: Initializing Protocolhandler ["ajp-bio-8009"]
2011-6-26 13:05:24 Org.apache.catalina.startup.Catalina Load
Info: Initialization processed in 1273 MS
2011-6-26 13:05:24 Org.apache.catalina.core.StandardService startinternal
Info: Starting service Catalina
2011-6-26 13:05:24 Org.apache.catalina.core.StandardEngine startinternal
Info: Starting Servlet engine:apache tomcat/7.0.16
2011-6-26 13:05:24 Org.apache.catalina.util.SessionIdGenerator Createsecurerandom
Info: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [172] milliseconds.
2011-6-26 13:05:24 Org.apache.catalina.startup.HostConfig deploydirectory
Info: Deploying Web application Directory Docs
2011-6-26 13:05:25 Org.apache.catalina.startup.HostConfig deploydirectory
Info: Deploying Web application directory Examples
2011-6-26 13:05:25 Org.apache.catalina.core.ApplicationContext Log
Info: contextlistener:contextinitialized ()
2011-6-26 13:05:25 Org.apache.catalina.core.ApplicationContext Log
Info: sessionlistener:contextinitialized ()
2011-6-26 13:05:25 Org.apache.catalina.core.ApplicationContext Log
Info: contextlistener:attributeadded (' Org.apache.jasper.compiler.TldLocationsCache ', ' Org.apache.jasper.compiler.tldlocationscache@1867df9 ')
2011-6-26 13:05:25 Org.apache.catalina.startup.HostConfig deploydirectory
Info: Deploying Web application Directory Host-manager
2011-6-26 13:05:26 Org.apache.catalina.startup.HostConfig deploydirectory
Info: Deploying Web application Directory Manager
2011-6-26 13:05:26 Org.apache.catalina.startup.HostConfig deploydirectory
Info: Deploying Web application Directory ROOT
2011-6-26 13:05:26 Org.apache.coyote.AbstractProtocol Start
Info: Starting Protocolhandler ["http-bio-8080"]
2011-6-26 13:05:26 Org.apache.coyote.AbstractProtocol Start
Info: Starting Protocolhandler ["ajp-bio-8009"]
2011-6-26 13:05:26 Org.apache.catalina.startup.Catalina Start
Info: Server Startup in 2085 MS

When I open IE, input http://localhost:8080/unexpected is, but reported 404 of the Fault.

This is not the case, the time to repeat the operation several times, the results are the same, very strange, I think is not what the problem tomcat, so I was out of Eclipse, start Tomcat, start up, refresh the page, the normal Tomcat page out.

Here's the question, it's definitely eclipse, it's not a bug in the software, it might be a problem somewhere, from this point of view, it turns out that the eclipse defaults are a little bit problematic when you add a new service to the server in Eclipse.

The specific actions are as follows:

1, find the Server Operation window, double-click the following Tomcat service


2. In the open settings, select the server locations option as the second "Use Tomcat installation (takes control ...)"


Now refresh the page has been good, you can normally appear familiar with the page, then you have to do, you understand.


Conclusion: If this option is gray, can not be changed, please delete, and then try again, do not start the service, just add tomcat when you switch to the window for the following two steps, you can. Eclipse chooses this default value as the first option. Led to today's problems, hoping to help people with the same problems. From: http://hi.baidu.com/%D7%CF%DC%B0%B7%C9%BA%E8/blog/item/bf4ce61d6f4d64ed1ad57665.html#0

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.