This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Well, everything looks fine so it has to be a classpath issue. It's been a while since I really messed with them but I'll give it a shot.
Since it works in java_home but not in tomcat (?catalina_home??), try adding java_home to tomcat's path if it isn't already.
Another thing to doublecheck is if the spellings are lining up. I couldn't help but notice transcation in your post when I believe transaction was intended.
A good workman is known by his tools.
Joined: Jun 25, 2004
Hi,Marc thank you for your help, you point out that the 'transaction' is my real intention,that's true,It's luck that this wrong spell happen on the begin of this program,so its used later consistently,it does not result in this error.
and in you post: =========================================== Since it works in java_home but not in tomcat (?catalina_home??), try adding java_home to tomcat's path if it isn't already. ===========================================
I thought since the directory structure of servlet app is a standard,the container will know the class is in '/WEB_INF/classes/' before.
I don't know where to set the classpath of a servlet container,(web.xml,or struts_config.xml)?