Error registering a Tomcat 7 server in Netbeans 7 (Catalina Home folder is not valid)

前端 未结 5 757
野的像风
野的像风 2020-12-10 05:44

I\'m running Netbeans 7.0.1 on Linux Mint DE. Netbeans was installed through the distro\'s repositories. I\'ve now installed the package tomcat7-user so I can create a use

相关标签:
5条回答
  • 2020-12-10 06:13

    Okay, in the absence of anything sensible anywhere on the net, I downloaded the Netbeans source code this weekend and found out the hard way.

    For some reason, Netbeans thinks I have an old version of Tomcat, so it's looking for the ${CATALINA_HOME}/common/lib folder. The following terminal commands fixed the problem:

    cd /usr/share/tomcat7
    sudo mkdir common
    sudo ln -s lib common/lib
    
    0 讨论(0)
  • 2020-12-10 06:17

    I like your research @daiscog I don't know how to run the terminal commands, so I simply created the ${CATALINA_HOME}/common/lib folder and now it works for me too.

    0 讨论(0)
  • 2020-12-10 06:22

    The following fixed Apache TomCat Server (apache-tomcat-9.0.0.M4) registration problem in NetBeans-8.0.2 on openSuSE 13.1 x86_64 linux:

    As root user,

    1. # cd /opt
    2. # ln -s apache-tomcat-9.0.0.M4 tomcat
    3. # ln -sf /opt/tomcat/lib /opt/tomcat/common/lib

    Then add server on NetBeans as per standard procedure.

    0 讨论(0)
  • 2020-12-10 06:31
    1. Delete all tomcats installations,
    2. If you have the netbeans installer with tomcat installation, run again, in customized button, clicked and check tomcat only
    3. Now, you can open netbeans and add a new tomcat server
    0 讨论(0)
  • 2020-12-10 06:36

    Maybe better:

    cd /usr/share/tomcat7
    sudo mkdir common
    sudo ln -sf /usr/share/tomcat7/lib /usr/share/tomcat7/common/lib
    
    0 讨论(0)
提交回复
热议问题