Eclipse + lomboz + tomcat6-painful configuration experience-Linux Enterprise Application-Linux server application information. See the following for details. Original: Miscellaneous, chaos, Wu, Chapter
To learn JSP, install and configure the JSP development environment. It is very easy to install tomcat 6. Search in the installation source and you will be able to install tomcat and its api smoothly.
To manually enable Tomcat 6, you can use the script file dtomcat6 or/etc/init in/usr/bin. d/tomcat6 can start the server like other services.
Next, install the development environment. Eclipse and its plug-in lomboz are used. After downloading lomboz, decompress it to the eclipse installation directory. However, starting eclipse does not work, even if you add the parameter-clean at startup. It may be because of version issues. The lomboz version is earlier, and the latest version only supports eclipse3.3. It is 3.3.1.1 on my computer. No way, I downloaded the lomboz all in one package online, so that a 3.3 eclipse was integrated. (However, the startup image of eclipse has been modified, and it does not look good .)
Open eclipse and have the server tag in Window -- preferences. After this label is selected, you can add the Tomcat server to the installed runtime label.
Select apache tomcat6 and click next. In tomcat installation directory, select the location where tomcat is installed. (Because you directly use the software package in the source, you do not know where to install it. Later, you can use the command: rpm-ql tomcat6 to install it in/usr/share/tomcat6 .) May be in the selection of tomcat installation directory will prompt the lack of servlet-api.jar this file, find and find the new tomcat has named this file as a tomcat-servlet-api.jar, therefore, you need to create a soft link (ln-s) for this file so that ecplise can find this file.
In this way, the server is added, but the test server finds that eclipse cannot enable or disable the tomcat server, and the juli. logging. logfactory class cannot be found when it is enabled. In fact, this class already exists in the/usr/share/tomcat6/bin/folder, but eclipse cannot find this class because the Startup Program does not provide its location. I found a discussion on the Fedora Forum. The final solution is to install TOMCATINSTALL/bin/bootstrap. jar (different versions) unpackage, modify the MANIFEST in the extracted META-INF folder. MF file.
Class-Path: bootstrap. jar tomcat-juli.jar
Then re-use the jar command to compress it, copy to the TOMCATINSTALL/bin/folder so that eclipse can find the tomcat-juli.jar package normally.
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