Struts Start Error javassist library is missing

Source: Internet
Author: User

Long time no struts2, recently in the configuration, start the server error

caused by:java.lang.ExceptionInInitializerError at Com.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer (Ognlvaluestackfactory.java:84)    ... 64morecaused by:java.lang.IllegalArgumentException:Javassist Library is missing in Classpath! Please add missed dependency!At Ognl. Ognlruntime.<clinit> (ognlruntime.java:168)    ... 65morecaused by:java.lang.ClassNotFoundException:javassist. Classpool at Org.apache.catalina.loader.WebappClassLoader.loadClass (Webappclassloader.java:1680) at Org.apache.catalina.loader.WebappClassLoader.loadClass (Webappclassloader.java:1526) at Java.lang.ClassLoader.loadClassInternal (Classloader.java:320At JAVA.LANG.CLASS.FORNAME0 (Native Method) at Java.lang.Class.forName (Class.java:169) at OGNL. Ognlruntime.<clinit> (ognlruntime.java:165)    ... More

My struts2 is 2.3.20 is a very new version.

See description is missing such a dependency: Java.lang.IllegalArgumentException:Javassist library is missing in classpath! Please add missed dependency! This dependent name is called Javassist this is because Xwork migrated to Apache after the use of the new OGNL 3.x, the new OGNL 3.x to remove the dependency of javassist, So you have to add the jar or Maven dependency the simplest way to find this dependent jar package is to go to the app directory in Struts's full compression package and find the Javassist-3.11.0.ga.jar dependency plus.

Struts Start Error javassist library is missing

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.