Java web part problem and solution
The
error is based on the number of errors that occur in the writing process. Careful examination, rigorous scholarship!
JSP images cannot display properly?
found problem: path problem, path is incomplete.
shows a serious error, how many lines:
is generally in the select statement related character input error, carefully check.
request-getparameter (” ID “) where the parameter comes from
where the JSP page jumps over, the ID is the ID from the jump join of that page.
solve the import project, add Tomcat and JDK after the project appears Red Cross : modify the JDK version of the project and eclipse version of the JDK version. J compiler and project facts in
project (JAVA, WWM, and runtimes modified Tomcat version on the right).
Java web project, after starting Tomcat, display:
information.
describes a source server that was unable to find a representation of the target resource or was unwilling to expose an existing representation of the resource.
tries to find that since there was a related shop project originally, although the name was changed later, the new import project named shop was affected. When adding to Tomcat, the Path name was shop3 in web modules, and when accessing with the browser, it should be noted that the Path name was shop3 instead of shop.
2020.10.18
eclipse json file error, because eclipse thinks that json file does not need annotation, so compile error.
address: Prefrences, validation, json validator, cancel manual, build. Again, right click and validation on the json file that is in error.
valicat trial expires, modify system time before the probation period: strong>
address: https://jingyan.baidu.com/article/adc815133376b6b622bf7354.html p>
Publishing to Tomcat v9.0 Server at localhost… strong>
Publishing the configuration…
Error file to E:/download/apache-tomcat-9.0.38-windows-x64/apache-tomcat-9.0.38/backup\ sys_loginmapper.xml :
E:\ Download \ Apache-Tomcat-9.0.38-Windows-x64 \ Apache-Tomcat-9.0.38 \conf\ SYs_loginmapper.xml (the system cannot find the specified file)
E:\download\apache-tomcat-9.0.38-windows-x64\apache-tomcat-9.0.38\conf\ sys_loginmapper.xml (the system could not find the specified file)
OK
resolve in eclipse-> Project Explorer-> Servers-> Under Tomcat, sys_loginmapper. XML file was found and copied to:
Error file to E:/download/apache-tomcat-9.0.38-windows-x64/apache-tomcat-9.0.38/backup to solve the problem.
start Tomcat anomalies: Java. Lang. NoClassDefFoundError: javax.mail/XML/bind/is thrown.
j is the JDK version problem, I used jdk11, changed to jdk8 can be used normally, the reason for the error should be the introduction of JDK 9 and the version of Java modularity mechanism.
start Tomcat error:
Could not publish server configuration for Tomcat v9.0 server at localhost. Multiple Contexts have a path of “/ MRBBS”. Project Explorer-> Servers-> Server.xml file was found under Tomcat, and found at the bottom:
< The Context the docBase = “MRBBS” path = “/ MRBBS” reloadable = “true” source = “org. Eclipse. JST. Jee. Server: MRBBS”/& gt;
delete duplicate content, you can.
start Tomcat outbreak exception:
Could not get JDBC Connection;
Request processing failed; Nested exception is org. Mybatis. Spring. MyBatisSystemException: nested exception is
org. Apache. Ibatis. Exceptions. PersistenceException: strong>
why strong> : When the Spring container manages the PropertySource, not only does it read its own properties file, but it also reads both JVM system properties and
JVM system env properties into the container.
so at this point the username read in spring-transaction.xml is not the username above JDBC.
solution , change the username on jdbc.properties to user (as long as it is not called username), and change the values in the spring-transaction.xml corresponding to
to correspond:
When Tomcat is started, an exception occurs:
serverTimezone problem. strong>
JDBC in the configuration file. The properties of add after url:
url = JDBC: mysql:// 127.0.0.1:3306/MRBBS
url = JDBC: mysql:// 127.0.0.1:3306/MRBBS?ServerTimezone =Asia/Shanghai
change to east area 8 time.
Read More:
- Linux common problems and Solutions
- Eclipse package explorer related problems and Solutions
- Phpcms development problems and Solutions
- Chrome setting — Disable web security to solve cross domain problems
- Possible causes and solutions of 404 problems in accessing servlet pages
- Common problems and solutions under Linux
- Java:Error:Open registry key software \ JavaSoft \ Java Runtime Environment Problems
- Some uncommon problems and solutions of cookie
- OpenGL learning notes: Problems and Solutions
- Solutions to the problems of unsuccessful installation of winpcap4.13 under win10
- Problems and solutions in using Linux
- Problems and solutions of installing Ubuntu 12.04 in win7
- The corresponding solutions to the problems of various external symbols that cannot be resolved
- Solve the problems of (deployment descriptor: project name) and (jax-ws web services) under the new eclipse project
- Write about the problems and solutions when configuring OpenGL in vs2015
- Solutions to problems encountered when installing isc-dhcp-server on debian9.6
- Solutions to some problems encountered in programming with vs2017
- Problems and solutions in learning opengl
- Solutions to network connection problems in Ubuntu 16.04.3
- Configuration of OpenGL under CodeBlocks and solutions to problems encountered