TOMCAT7 change to 6, server Tomcat v6.0 server at localhost failed to start. etc errors

Source: Internet
Author: User
Tags apache tomcat

Spent the whole morning using Java to develop a chat robot (I will be how to write the process to share to everyone), the number is: Qiubenlizi, we are interested to play. When I upload the war package to the SAE server, the result is this

Know is the server can not find the file, in the local but normal operation, Google a bit, said is SAE with jdk1.6, and I use the thing Jdk1.7,tomcat also to corresponding change to 6, the following about how to convert

First, remove the items inside the tomcat7 and close them;

Second, change the jdk1.6 (first you need to have 1.6 environment)

Follow the diagram, step by step

Step three, modify the Tomcat version


Don't forget to recompile the project clean.

To this step, seems to have been modified, good, then we will run for a while, but you will find the project has a fork, the code is not wrong, it is tangled, here I once again Google a bit, said is to modify the project root directory

Org.eclipse.wst.common.project.facet.core.xml file, I found in eclipse for half a day Leng can not find, originally in the project space, that is, the project directory location,

Find the folder where the project is located, there is a. Settings folder, open, find XML file Open with notepad++, Notepad, write this line, the code is as follows

<span style= "Font-family:microsoft yahei;font-size:14px;" ><?xml version= "1.0" encoding= "UTF-8"?><faceted-project>  <runtime name= "Apache Tomcat v7.0"/ >  <fixed facet= "Jst.web"/>  <fixed facet= "java"/>  <fixed facet= "Wst.jsdt.web"/>  <installed facet= "Jst.web" version= "3.0"/>  <installed facet= "Wst.jsdt.web" version= "1.0"/>  <installed facet= "java" version= "1.6"/></faceted-project></span>
Change the jst.web here to 2.5, here by the way to remind you, it is best to change Java to 1.5, or finally you have to modify, and then I modified the


In fact, in this interface can be the XML configuration file inside the content one by one modified ... (Rookie is a rookie after all, hehe)

Next clean again, then the mistake is gone, is not very happy?

Then Tomcat6 ran up and found Tom's cat strike, and reported such a mistake

"Server Tomcat v6.0 server at localhost failed to start."

Google to come again!

The steps to resolve are as follows

    • Enter the server interface
    • Double-click Tomcat6
    • Click on the "Open launch Configuration" link in the "General Information" module
    • In the dialog box, select Classpath Tab
    • Click the "ADD External jar" button
    • Locate the jar package in the TOMCAT6 installation directory such as:/tomcat6/bin/tomcat-juli.jar
    • Close the dialog box
    • Restart Tomcat6

Ok

At last, let Tom Cat run up, yes, running faster than a dog, I've become a dog ...... ..... ......... ............... ..... ..... ..... ..... ..... ..... ............ ........... 。。。。。。。。。。。。。。。

TOMCAT7 change to 6, server Tomcat v6.0 server at localhost failed to start. etc errors

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.