This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I downloaded and installed struts 1.2.9 into my computer, then copied struts webapps WAR files into tomcat_home/webapps folder, and they were deployed by the server, but when I run struts-blank and struts-mailreader, I got the following exception:
type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
and here is my classpath: CLASSPATH = C:\Tomcat\bin;C:\Program Files\Java\jdk1.5.0_06\bin; C:\Tomcat\common\lib\servlet-api.jar; C:\mysql-connector-java-3.1.12\mysql-connector-java-3.1.12-bin.jar;C:\struts\lib\struts.jar
and all struts jar files are in the WEB-INF/lib folder of each webapps. Any jar files I should add to the classpath? Tnank you in advance for any advises.
The class identified in the error message is in jsp-api.jar, so this needs to be in your classpath. If you're using the default Tomcat configuration, this should already be in the classpath while you're running Tomcat.
Also, it's not a good idea to have struts.jar in your CLASSPATH variable. It's much better to have it in the /lib directory of the application. This is explained in this link.
You will notice the last entry loads all jar files in the common/lib directory. By default, this directory contains both the servlet-api.jar file and the jsp-api.jar file.
Make sure that your catalina.properties file has similar entries.
Joined: Jan 17, 2002
I have the same entries like yours. Here are the jar files in common/lib folder: commons-el,japer-compiler,jsper-compiler-jdt,jsper-runtime,jsp-api,naming-factory,naming-factory-dbcp,naming-resources, servlet-api.
However, when I start Tomcat server, I got a "Tomcat Native library not found in java.library.path" error message, don't know have anything to do with the exception problem or not.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com