关于Java中的报错问题

1、关于the mothod() is not applicable for the arguments

      方法的传参不对 

2、ajax提交本页面的时候在out.print()后再加一个return,sucess中也能获取data的值,否则一直走error;

3、关于tomcat的status为redeploy

  解决方法:右键tomcat点击redeploy/reload application

4、http://localhost:8080/Test/报错

  The requested resource (/Test/) is not available.

  原因:将web.xml文件中的welcome-file中的jsp页面放在了WEB-INF目录下,

  解决办法:将文件已到WebRoot的根目录下。

5、项目已经启动,在登录时报错:The Network Adapter could not establish the connection

  原因:可能是因为服务器未启动,一般是在启动时报错,也有可能会在登录时报错。

  解决办法:启动服务器。

6、Tomcat启动时报错

  报错:1》Content is not allowed in prolog

       2》No UserDatabase component found under key UserDatabase

  原因:可能因为非法关机等导致tomcat-user.xml丢失或破坏

  解决方法:替换tomcat/config/tomcat-user.xml文件

原文地址:https://www.cnblogs.com/zying3/p/9407771.html