Previously wrote an article recorded some of the problems encountered, this time for new machines, and encountered some problems, now solved, recorded. Because these problems are really, know people quickly can take care of, do not know the people to get to spend a lot of time, the people are depressed, or can not be confused.
Before the article, see this.
The main errors encountered are as follows:
1. After clicking on a button, invoking a. jsp file, it should normally be that the state from 1 to 2 to 3 to 4, the corresponding HTTP status values are 0 to 200 to 200 to 200, and I have an error here, state from 1 directly to the 4,http status value two is 0.
After reviewing the elements of the Web page, the following errors were found:
Although the error is reported here, no ' access-control-allow-origin ' header is present on the requested resource, but I did add the following sentence in the JSP file that I called:
Response.AddHeader ("Access-control-allow-origin", "IP Address: 8888");
Furthermore, the IP address in the back has been changed to the correct IP address for the new machine.
Click on the URL in the error message after cannot load to open the following page:
You can see that some types are not defined. So it should be an import error for the package.
In this way, I copied the required OJDBC-related jars and several imported sdoapi and Sdoutl.jar into the Lib folder under Tomcat 7.0. Note The Lib folder under the Tomcat 7.0 folder. is not in the same directory as the current JSP file or under the Lib folder in the directory where the JSP file is located. The latter two have already had the OJDBC related jar, still reported the above error. Copying to the Lib folder under Tomcat 7.0 solves the problem.
Description, the required and imported packages need to be placed in the Lib folder under Tomcat 7.0. Then restart Tomcat. (This problem should be because I'm not too familiar with the deployment of Tomcat.) )
This page is referenced, but the problem is not the same.
How the Java language operates in the backend JSP file Jgeometry objects provided by Oracle Spatial 2