Question

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..

Was it helpful?

Solution

A jar must go inside WEB-INF/lib.

OTHER TIPS

Put jar files to WEB-INF/lib directory

some more info

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top