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.