[英]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. 我正在尝试学习如何创建Web应用程序,并且正在使用xwork和webwork。 Freemarker for front end.
前端的Freemarker。 my application(MyTestApp.war) works fine if I put the .class files into the classes/ directory as it is.
如果将.class文件原样放置在classes /目录中,则我的应用程序(MyTestApp.war)可以正常工作。 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.
以这种方式-classe / com / prg / hworld / HelloWorld.class但文件相同,当我创建一个jar并将其放在classes /目录中时,出现此错误。
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) 找不到动作类[com.prg.hworld.HelloWorld],跳过动作[hello] java.lang.ClassNotFoundException:com.prg.hworld.HelloWorld位于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.. 我已经在manefest.mf中添加了jar的名称,但是仍然出现相同的错误..请帮助我。
Put jar files to WEB-INF/lib directory 将jar文件放入WEB-INF / lib目录
一个jar必须放在WEB-INF / lib中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.