message java.lang.IllegalStateException: No output folder

前端 未结 11 1147
野性不改
野性不改 2020-12-06 04:01

I am new to Tomcat on Windows. I am trying to deploy my Java project which I have made in RHEL 5 using Tomcat. Now I want to run that project on window. So I copied and past

相关标签:
11条回答
  • 2020-12-06 04:28

    I was facing the similar problem on ubuntu 14.04. I was doing some analysis and dropped the work folder manually. Then while running the tomcat server I was getting same exception. The issue was, when we access the manager application of tomcat, it requires jsp page to display the content, and JSP page is rendered from the generated class file which resides in work/Catalina/localhost/.... folder.

    I created the work directory manually, however the problem was still not solved.

    Then I realized that, because I manually created the work directory tomcat7 user didn't have the permission to write on that directory. Changed the owner for work directory from root to tomcat7

    sudo chown tomcat7 work

    restart tomcat service tomcat restart.

    Problem solved.

    Hope this helps

    0 讨论(0)
  • 2020-12-06 04:28

    Grant all permissions to the tomcat directory.

    sudo chmod -R 777 /path/to/tomcat/directory
    

    mine was "/opt/tomcat/"

    It worked for me. Hope it helps.

    Note : Don't forget sudo

    0 讨论(0)
  • 2020-12-06 04:31

    I have given complete access to my Tomcat Directory. Now i am not getting this error. Thanks !!

    0 讨论(0)
  • 2020-12-06 04:31

    I have changed the permissions for the work directory and it's working...

    Steps:
    1. Go to the directory where tomcat is present
    2. Execute the command:
    sudo chmod 777 work

    0 讨论(0)
  • 2020-12-06 04:32

    As your start tomcat as the root account firstly, the work folder was already created. You run tomcat as the account tomcat, as tomcat account has no permission to the folder ./work, so throw the exception. To solve it, ps remove ./work, and then restart tomcat by the tomcat user.

    0 讨论(0)
  • 2020-12-06 04:33

    give the full permission to tomcat directory and then restart the service.It will works for me ,I hope this will work you as well.

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