Troubleshooting and Solutions Summary (continuously updated)

xiaoxiao2021-03-06  39

Java

Problems that occur when you start Jboss error message: java.net.BindException: Address already in use: JVM_Bind: 80 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint (PoolTcpEndpoint.java:302) at org.apache.coyote .http11.http11protocol.init (http11protocol.java:184) ..... Cause: 80 port is occupied, analyzed because IIS started. Solution: Close IIS's HTTP service, restart JBoss.ok-- -------------------------------------------------- -------------------------------------------- Error information: java.lang .Nosuchmethoderror: javax.servlet.jsp.tagext.tagattributeinfo Cause: servlet.jar version conflict solution: Check the servlet.jar under jre / lib / ext. Jar if the version is not correct, then replace it. -------------------------------------------------- ---------------------------------------------- Error information: failed To boot jboss: org.jboss.Deployment.Deploymentexception: URL file: / d: /jboss-4.0.2/default ,all, minimal/jboss/conf/jboss-service.XML COULD NOT BE OPENED, DOES IT EXIST? diagnosis : 1. Launch JBoss is normal, indicating the error and Eclipse. 2. Discover a folder in JBoss Server directory, which is no wonder that "default, all, minimal" can't find it. It is estimated that the Server configuration is confusing in Eclipse. Workaround: In Eclipse, remove JBoss configuration, create a new Server, fill in the port number and Server Configuration correctly in the third page of the wizard (generally Select Default). Then start JBoss from Eclipse, everything is normal. -------------------------------------------------- ---------------------------------------------- use taglib tags Time to report the following error: According to TLD, TAG Test: Select Must Be Empty, But IS Not Cause: There is no correct writing when using the label in JSP.

Solve: should be written --------------------------------- -------------------------------------------------- ------------ Hibernate GetCurrentSession report NO CURRENTSESSIONCONTEXT Configured! Solution: Yes in Hibernate.cfg.xml Add Thread ------- -------------------------------------------------- --------------------------------------- Error information: org.hibernate.mappingexception: could Not DETERMINE TYPE for: STRING, For Column: [Org.Hibernate.Mapping.column (ID)] Diagnostics: Find the corresponding hbm.xml, found Solution: String here only Can be lowercase, if uppercase, will report the above mistakes, change it. -------------------------------------------------- -------------------------------------------------- ------ Spring: java.lang.classcastexception: $ proxy1 reason is that the class get the getBean must be an interface, not a normal class. Solve: Create this interface, which is also a good design. -------------------------------------------------- -------------------------------------------------- ------- Tomcat: Operator Cannot Be Applied To Java.lang.integer, int Main: This tomcat is a counterfeit goods, it looks 5.5, open CommON / lib, those JARs are 2004. Solve: Take a reintegration: Eclipse WTP, you need to set up Project Facets-> Java --- 5.02.php: Warning: Cannot Modify Header Information - Headers Already Sent By (Output Started At ... ........................ Cause: Yes in using Header ("Location: $ URL"); before you can't have output. For example, echo pay attention: There is no empty HTML line because it is an output.

Solve 1: Put the output and redirect statement; solution 2: Using JavaScript scripts: