Tomcat 6 server creation using eclipse IDE on ubuntu

后端 未结 17 1665
礼貌的吻别
礼貌的吻别 2020-12-22 17:37

I\'m having a problem running tomcat 6 with eclipse 3 in ubuntu.

I installed tomcat 6 on my machine and when I tested it using http://localhost:8080, it

相关标签:
17条回答
  • 2020-12-22 18:20

    Have you been using the ubuntu-tomcat version (e.g. "aptitude install tomcat6")? If so, please download a plain vanilla version from tomcat.apache.org and use this. The Debian/Ubuntu version relocates some jars around and eclipse expects the "pure" version and jar locations.

    (Also: see Eclipse bug 239179)

    0 讨论(0)
  • 2020-12-22 18:21

    Remove (or edit the apache tomcat v6.0 entry in) workspace.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.jst.server.tomcat.core.prefs

    I think you also need to restart

    0 讨论(0)
  • 2020-12-22 18:23

    There’s a better workaround so you can keep Ubuntu’s Tomcat6 (taken from http://ubuntuforums.org/showthread.php?p=8541057, by DisDis)

    In a terminal:

    sudo apt-get install tomcat6
    cd /usr/share/tomcat6
    sudo ln -s /var/lib/tomcat6/conf conf
    sudo ln -s /etc/tomcat6/policy.d/03catalina.policy conf/catalina.policy
    sudo ln -s /var/log/tomcat6 log
    sudo chmod -R 777 /usr/share/tomcat6/conf
    

    There. Now just go to Window/Preferences/Sever/Runtime Environments, add the Apache Tomcat6 Server and use /usr/share/tomcat6 as the installation directory!

    0 讨论(0)
  • 2020-12-22 18:32

    Go to window > preferences -- Go to runtime environments --- you will probably find the location of the old install of Tomcat. Changing it to the current location will help.

    0 讨论(0)
  • 2020-12-22 18:33

    This one is working for me too Window -> Options -> Server -> Runtime Environments

    Edit the existing runtime environment "Apache Tomcat v6.0" and select your tomcat's location.

    0 讨论(0)
  • 2020-12-22 18:33

    Window -> Options -> Server -> Runtime Environments

    Edit the existing runtime environment "Apache Tomcat v6.0" and select your tomcat's location.

    0 讨论(0)
提交回复
热议问题