简体   繁体   中英

how to add jar files into the WEB-INF/classes directory?

I am trying to learn how to create a web application and I am using xwork and webwork. Freemarker for front end. my application(MyTestApp.war) works fine if I put the .class files into the classes/ directory as it is. in this manner - classe/com/prg/hworld/HelloWorld.class but the same file, when i create a jar and put it in classes/ directory, I get this error.

Action class [com.prg.hworld.HelloWorld] not found, skipping action [hello] java.lang.ClassNotFoundException: com.prg.hworld.HelloWorld at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)

I hav added the jar name in the manefest.mf but stil i am getting the same error.. pls help me her..

Put jar files to WEB-INF/lib directory

some more info

一个jar必须放在WEB-INF / lib中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM