java - Struts error - can not find package -
having error:
com.opensymphony.xwork2.actionsupport; package not exist i using struts2.3.8 , not using eclipse or net beans, have made directory structure:
code\chapter\struts2application\web-inf\src\comm\kognet\action\clientaction.java and unzipped struts2 , copied , stored jar files in:
code\chapter\struts2application\web-inf\lib common-logging1-1-1 freemarker-2.3.19 ognl3.0.6 xwork core-2.3.8 struts2 core-2.3.8 i have set catalina_home as:
c:\program files\java\jdk1.7.0_07\apache-tomcat-7.0.37 path as:
c:\program files\java\jdk1.7.0_07 classpath .
i new struts , first program. please help
- you're missing commons-io , commons-fileupload, and...
- ...please don't try dependency management hand: use maven, ivy, etc. and...
- ...please don't builds hand, use maven, ant, etc.
- setting classpath (using either preferred
-classpathor-cporclasspathenvironment variable, imo should avoided).insufficient. need add dependent jars explicitly, or via wildcard, and... - ...you should add output directory of compilation own classes available well.
- don't put source
web-inf, use directory outside of deployable artifacts. toy development it's okay, imo it's bad habit.
Comments
Post a Comment