Hi,
I have a problem with a
struts 2 application...
I have my ear file, which has two files. jar with all the beans and war for
servlet and jsps
i used a model driven object for struts 2 and the same model is used for persistence. So both .jar file and .war file will have model driven object since it is commonly used both
in servlets and in ejbs.
now the problem is where do i put my struts 2 jar files? i tried putting them in war/WEB-INF/lib folder i got the following error
java.lang.NoClassDefFoundError: com/opensymphony/xwork2/ModelDriven
so i created another lib folder inside the jar file and put the same jar file in both jar/war files, and if do that
i am getting already loaded error..
am confused now... what am i doing wrong?
just as a general design convention, how are the jars formulated..
i put a war file with all the servlet classes, javascript, jsps, pictures etc.,
jar file has POJOs, SSB, MDB etc.,
is it the right approach? or how to go about it??
thanks a ton for your help...!
cheers!