How the Java language operates in the backend JSP file Jgeometry objects provided by Oracle Spatial 2

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.