Problems encountered during testing with myeclipse + Struts + hibernate [original]

Source: Internet
Author: User
After reading about Hibernate and struts, and using myeclipse 4.0.2, I tried to use myeclipse to create a web aplication, add hibernate capabilities and add struts capabilities, and then run resin 3.0.14, the error is displayed. At first, it is a log4j problem. This is a hibernate problem. copy the properties file to and hibernate. cfg. the same directory in XML does not have this problem. The remaining problems are as follows: 21: 13: 32,500 error digester: 686-digester. getparser:
Org. xml. Sax. saxnotrecognizedexception: http://apache.org/xml/features/validation/dynamic
At com. Caucho. xml. parsers. xmlsaxparserfactory. setfeature (xmlsaxparserfactory. Java: 94)
At org. Apache. commons. digester. parser. xercesparser. configurexerces (xercesparser. Java: 185)
At org. Apache. commons. digester. parser. xercesparser. newsaxparser (xercesparser. Java: 138)

The reason why xercesimpl. Jar cannot be found is checked online. The solution is as follows:
Method 1: In the % java_home % \ JRE \ Lib folder, create a JAXP. the properties file contains only one javax. XML. parsers. saxparserfactory: Org. apache. xerces. JAXP. saxparserfactoryimpl

Solve the problem.
Method 2: Find xercesimpl. jar and copy it to % java_home % \ JRE \ Lib \ endorsed (this directory is created without this directory). The problem is solved.
After the problem was solved, I did not pay much attention to it. However, when I started eclipse next time, I reported an error. I used the first method, namely the transfer method, so I had to switch to method 2, however, another eclipse error is reported, which is related to XML parsing. It is depressing to change the name of the endorsed folder first, and then change it back to eclipse, so that resin runs normally, eclipse is okay ~
I almost forgot to mention it. I used jdk1.4.2 in eclipse version 3.1.1, myeclipse version 4.0.2, Struts version 1.2, hibernate3, and resin 3.0.14. Why ~
If you forget it later, write it here.

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.