Home > Back-end >  Deployment project part of the file is not in the Tomcat webapps directory, and start the server err
Deployment project part of the file is not in the Tomcat webapps directory, and start the server err

Time:09-20

A problem encountered in the self-study for springmvc; Start tomcat HTTP status - 500




Can't find my spring MVC - files, I went to the tomcat webapps directory under the project path is really could not find the file, the spring MVC -

Often to practice a few new tomact when you run a program will appear this problem, used to run the project again run also can report this error, and then to copy a can run of success, so it should not be my code and configuration files,

Very upset the rhythm of the self-study, small white to give a big help

CodePudding user response:

Development tools are not open automatically compiled to class files in the tomcat is not complete.

CodePudding user response:

reference 1/f, "the other shore flower reply:
development tools are not open automatically compiled to class files in the tomcat incomplete.

Opened automatically compile, it is no use

CodePudding user response:

Tomcat webapps can be empty, don't put anything inside, modify server. XML can make the project run
 
& lt; The Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" & gt;

& lt; ! - SingleSignOn valve, share the authentication between web applications
Documentation at:/docs/config/valve. The HTML - & gt;
& lt; ! -
& lt; Steam the className="org. Apache. Catalina. The authenticator. SingleSignOn"/& gt;
-->

& lt; ! - Access log the processes all example.
Documentation at:/docs/config/valve. The HTML
Note: The pattern 2 is equivalent to using The pattern="common" - & gt;
& lt; Steam the className="org. Apache. Catalina. Valves. AccessLogValve" directory="logs" pattern="% % % % u l t h & amp; quot; % r& quot; "Prefix=" % s % b localhost_access_log "suffix=". TXT "/& gt;

& lt; The Context path="" the docBase=" D: \ SVN \ Java \ branch \ taock \ WebRoot "& gt; & lt;/Context>
& lt; ! - & lt; The Context path="/iam" the docBase="C: \ Users \ C - xiangjl \ git \ iam \ WebContent" & gt; & lt;/Context> -->

& lt;/Host>


The original poster can have a try, so much simpler, also there is no cold hot deployment, automatic not automatically compile
But there is a requirement: the class must be in the WEB - INF directory

CodePudding user response:

winter snow crystal reference 4 floor response:
tomcat webapps can be empty, don't put anything inside, modify server. XML can make the project run
 
& lt; The Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" & gt;

& lt; ! - SingleSignOn valve, share the authentication between web applications
Documentation at:/docs/config/valve. The HTML - & gt;
& lt; ! -
& lt; Steam the className="org. Apache. Catalina. The authenticator. SingleSignOn"/& gt;
-->

& lt; ! - Access log the processes all example.
Documentation at:/docs/config/valve. The HTML
Note: The pattern 2 is equivalent to using The pattern="common" - & gt;
& lt; Steam the className="org. Apache. Catalina. Valves. AccessLogValve" directory="logs" pattern="% % % % u l t h & amp; quot; % r& quot; "Prefix=" % s % b localhost_access_log "suffix=". TXT "/& gt;

& lt; The Context path="" the docBase=" D: \ SVN \ Java \ branch \ taock \ WebRoot "& gt; & lt;/Context>
& lt; ! - & lt; The Context path="/iam" the docBase="C: \ Users \ C - xiangjl \ git \ iam \ WebContent" & gt; & lt;/Context> -->

& lt;/Host>


The original poster can have a try, so much simpler, also there is no cold hot deployment, automatic not automatically compile
But there is a requirement: the class must be in the WEB - INF directory

Thank you very much!!!!!
  • Related