Tomcat 6 server creation using eclipse IDE on ubuntu

后端 未结 17 1663
礼貌的吻别
礼貌的吻别 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:13

    I wrote a patch for solving this problem and it has been merged in Ubuntu and Debian. Now its possible to configure tomcat6 inside Eclipse without any pains.

    In Ubuntu 11.04 you can install tomcat6-user package. Then configure a user instance of tomcat6 by running this command

    $tomcat6-instance-create ~/my-tomcat-dir

    A user instance of tomcat6 will be configured in ~/my-tomcat-dir directory.

    Now to add tomcat6 inside eclipse to setup your development environment, simply point eclipse towards this directory and you will be ready to go.

    If you are running an older version of Ubuntu, then you can simply download the latest version of tomcat6-user package from the Debian FTP: http://packages.debian.org/hu/sid/all/tomcat6-user/download

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

    I was suffering the same problem

    I've got the lattest eclipse 3.4.1 GanyMede. Changed the Ubuntu Tomcat 6 install to the plain one from tomcat.apache.org

    chmod 666 /usr/share/tomcat6/conf*

    and the problem was solved

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

    I had the same problem, i use ubuntu 9.04 and tomcat 6.

    I installed the tomcat 6 for apt-get, installed also jre, jdk. (SUN)

    In order to resolve the problem do:

    • Close the Eclipse;
    • Delete your workspace (save your files);
    • stop the tomcat6 (/etc/init.d/tomcat6 stop)
    • make a link to conf (ln -s /var/lib/tomcat6/conf /usr/share/tomcat6);
    • ln -s /var/lib/tomcat6/catalina.policy /etc/tomcat6/
    • init the eclipse
    • In server tomcat configuration (/usr/share/tomcat6)
    0 讨论(0)
  • 2020-12-22 18:16

    I you have the newer version of eclipse, try to update the Web Tool Plateform plugins in Help/software Updates... If both eclipse and WTP are up to date I don't see were the problem can be...

    PS : there is a "comment" button, do not post an answer to comment an answer ;)

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

    If you can test it with http://localhost:8080 then the server is already running, and there's nothing for Eclipse to create. try closing down the server, and then setting up eclipse to point to the installation directory.

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

    I have been having the same problem (on fedora 9). You have to change the permissions of the files inside the tomcat conf directory to rw (chmod a+rw tomcat6/conf/*). Solved it for me!

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