IT TIP

우분투에서 Eclipse IDE를 사용하여 Tomcat 6 서버 생성

itqueen 2020. 12. 13. 11:33
반응형

우분투에서 Eclipse IDE를 사용하여 Tomcat 6 서버 생성


우분투에서 eclipse 3으로 tomcat 6을 실행하는 데 문제가 있습니다.

내 컴퓨터에 tomcat 6을 설치했고를 사용하여 테스트했을 때 http://localhost:8080제대로 작동했습니다.

하지만 이클립스에서 서버를 만들고 싶을 때마다 Tomcat 6을 선택하면 다음 메시지가 표시 "Cannot create a server using the selected type"되고 다음을 클릭 할 수 없습니다.

왜 그런지 아세요?


더 나은 해결 방법이 있으므로 Ubuntu의 Tomcat6을 유지할 수 있습니다 ( http://ubuntuforums.org/showthread.php?p=8541057 , DisDis에서 가져옴).

터미널에서 :

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

그곳에. 이제 Window / Preferences / Sever / Runtime Environments로 이동하여 Apache Tomcat6 서버를 추가하고 / usr / share / tomcat6을 설치 디렉토리로 사용하십시오!


좋아, 그래서 여기에 나를 위해 일한 것이 있습니다. 창> 환경 설정으로 이동해야합니다.

여기에서 서버> 런타임 환경으로 이동하십시오.

이전 서버를 제거하거나 서버를 추가하거나 서버 위치를 변경하십시오 ...

(제 경우에는 바람둥이 서버 위치를 변경할 때이 문제가 발생했습니다)

이제 환경에 새 서버를 추가 할 수 있습니다. :)


ubuntu-tomcat 버전 (예 : "aptitude install tomcat6")을 사용하고 계십니까? 그렇다면 tomcat.apache.org 에서 일반 바닐라 버전을 다운로드 하여 사용하십시오. Debian / Ubuntu 버전은 일부 jar를 재배치하고 Eclipse는 "순수한"버전과 jar 위치를 예상합니다.

(또한 : Eclipse 버그 239179 참조 )


workspace.metadata.plugins \ org.eclipse.core.runtime.settings \ org.eclipse.jst.server.tomcat.core.prefs 제거 (또는 apache tomcat v6.0 항목 편집)

다시 시작해야 할 것 같아요


이 문제를 해결하기위한 패치를 작성했으며 Ubuntu와 Debian에 병합되었습니다. 이제 아무런 고통없이 Eclipse 내부에서 tomcat6을 구성 할 수 있습니다.

Ubuntu 11.04에서는 tomcat6-user 패키지를 설치할 수 있습니다. 그런 다음이 명령을 실행하여 tomcat6의 사용자 인스턴스를 구성합니다.

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

tomcat6의 사용자 인스턴스는 ~ / my-tomcat-dir 디렉토리에 구성됩니다.

이제 개발 환경을 설정하기 위해 eclipse 내부에 tomcat6을 추가하려면이 디렉토리를 이클립스로 지정하기 만하면됩니다.

이전 버전의 Ubuntu를 실행중인 경우 Debian FTP에서 최신 버전의 tomcat6-user 패키지를 다운로드 할 수 있습니다. http://packages.debian.org/hu/sid/all/tomcat6-user/download


나는 같은 문제가 있었지만 바람둥이 5.5를 사용했습니다. /etc/tomcat5.5/conf(/usr/share/tomcat5.5/conf의 심볼릭 링크)에 대한 권한 변경이 작동했습니다. 감사!


나는 같은 문제를 겪고 있었다

나는 최신 이클립스 3.4.1 GanyMede를 가지고 있습니다. Ubuntu Tomcat 6 설치를 tomcat.apache.org에서 일반 설치로 변경했습니다.

chmod 666 / usr / share / tomcat6 / conf *

문제가 해결되었습니다


나는 같은 문제가 있었지만 모든 피드백 덕분에 해결되었습니다. 요약하자면...

Ubuntu 9.04, Eclipse Galileo (Java EE 개발자 플랫폼 3.5.1)가 있습니다.

다음과 같이 Tomcat을 설치했습니다.

sudo tar zxvf apache-tomcat-6.0.20.tar.gz

sudo cp -R apache-tomcat-6.0.20 / usr / share / tomcat6

http://www.ubuntugeek.com/tomcat-6-installation-on-ubuntu-feisty.html에 설명 된대로

그런 다음 conf 폴더 / usr / share / tomcat6 / conf $ sudo chmod a + rw *에 대한 권한을 변경합니다.

Windows-> Preferences-> Server-> Runtime Environment에서 제거했습니다 (하지만 결국이 단계가 필요하다고 생각하지 않습니다).

짜잔!


창> 환경 설정으로 이동하십시오.-런타임 환경으로 이동하십시오. --- 이전 Tomcat 설치 위치를 찾을 수 있습니다. 현재 위치로 변경하면 도움이됩니다.


http : // localhost : 8080으로 테스트 할 수 있다면 서버가 이미 실행 중이며 Eclipse에서 만들 수있는 것이 없습니다. 서버를 닫은 다음 설치 디렉토리를 가리 키도록 eclipse를 설정하십시오.


최신 버전의 eclipse를 가지고 있습니다. 도움말 / 소프트웨어 업데이트에서 Web Tool Plateform 플러그인을 업데이트 해보십시오. eclipse와 WTP가 모두 최신 버전이면 문제가 될 수 있습니다.

추신 : "댓글"버튼이 있습니다. 답변에 대한 답변을 게시하지 마십시오.)


이것은 나에게도 작동합니다. 창-> 옵션-> 서버-> 런타임 환경

기존 런타임 환경 "Apache Tomcat v6.0"을 편집하고 Tomcat의 위치를 ​​선택하십시오.


파일 시스템에 흩어져있는 다양한 폴더를 원하는 tomcat6 기본 (또는 설치) 폴더로 심볼릭 링크해야합니다.

tsaid는 / usr / share / tomcat6에 대한 심볼릭 링크를 제안했으며, 오히려 / var / lib / tomcat6을 사용합니다.

내 / var / lib / tomcat6 디렉토리 (내가 만든 심볼릭 링크 참조) :

$ ls -g -o /var/lib/tomcat6
lrwxrwxrwx 1   22 2010-07-20 18:15 bin -> /usr/share/tomcat6/bin
drwxr-xr-x 3 4096 2010-07-20 12:22 common
lrwxrwxrwx 1   12 2010-07-20 12:22 conf -> /etc/tomcat6
lrwxrwxrwx 1   22 2010-07-20 18:14 lib -> /usr/share/tomcat6/lib
lrwxrwxrwx 1   17 2010-07-20 12:22 logs -> ../../log/tomcat6
drwxr-xr-x 3 4096 2010-07-20 12:22 server
drwxr-xr-x 3 4096 2010-07-20 12:22 shared
drwxrwxr-x 3 4096 2010-07-20 12:22 webapps
lrwxrwxrwx 1   19 2010-07-20 12:22 work -> ../../cache/tomcat6

Also, don't forget to give full rw permission to your configuration files, in my case in /etc/tomcat6. Since you'll also need to symlink catalina.policy from Catalina/localhost/catalina.policy, don't forget giving execute permission to those folders. You can simplify with full permission to the conf folder, but it's only advised if you're the only user of the computer.

cd /var/lib/tomcat6/conf
chmod -R a+xrw *

Now, delete the entry in Eclipse under Window -> Preferences -> Server -> Runtime Environment and add a new server through Run on Server or anywhere else.


Not sure, but maybe your version of Eclipse does not support the latest Tomcat version? Try to update Eclipse. I have Eclipse 3.4 and there's no problem.


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!


Window -> Options -> Server -> Runtime Environments

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


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)

참고URL : https://stackoverflow.com/questions/447289/tomcat-6-server-creation-using-eclipse-ide-on-ubuntu

반응형