Ok, I can start my webapps now, by using JVM 1.6. (The mistakes was that I configured tomcat to point to the jre1.4 directory. )
However, I encounter a new problem, when I go to http://localhost:8080/struts2-blank-2.0.6/, I get the following error. I read compile each java src files and restart tomcat again, still give me the same problem. ============================================================== javax.servlet.ServletException: Unable to compile class for JSP Generated servlet error: C:\Tomcat5\work\Catalina\localhost\struts2-blank-2.0.6\org\apache\jsp\exampl e\HelloWorld_jsp.java:7: cannot access java.lang.Object Generated servlet error: bad class file: C:\jdk1.5.0_11\jre\lib\rt.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public final class HelloWorld_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error.... =================================================================== -----Original Message----- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, May 07, 2007 3:03 PM To: Struts Users Mailing List Subject: Re: problem with Struts 2 setup -The requested resource (/struts2-blank-2.0.6/) is not available That problem is definitely a jvm version issue. Run: java -showversion to see what version you have in the path and make sure it is 1.5 (1.6 should be fine also) musachy On 5/7/07, Jack Yu <[EMAIL PROTECTED]> wrote: > > Ok, > > I'm using JDK 1.6 and JVM 1.6 now, and I still have the same problem. > > I also tried to use JDK 1.5, but still have the same problem. > > =================================================================== > 007-05-07 14:55:21 StandardContext[/manager]HTMLManager: start: Starting > web > application at '/struts2-blank-2.0.6' > 2007-05-07 14:55:21 StandardContext[/struts2-blank-2.0.6]Exception > starting > filter struts2 > java.lang.UnsupportedClassVersionError: > org/apache/struts2/dispatcher/FilterDispatcher (Unsupported major.minor > version 49.0) > at java.lang.ClassLoader.defineClass0(Native Method) > > ============================================================================ > === > > > > -----Original Message----- > From: Patrick J Kobly [mailto:[EMAIL PROTECTED] > Sent: Monday, May 07, 2007 1:09 PM > To: Struts Users Mailing List > Subject: Re: problem with Struts 2 setup -The requested resource > (/struts2-blank-2.0.6/) is not available > > Download a more recent JVM for Tomcat to use. Looks like struts needs > 1.5+... > > PK > Jack Yu wrote: > > Ok, I found the error from the log > > ========================================================== > > 2007-05-07 12:51:55 StandardContext[/manager]HTMLManager: start: > Starting > > web application at '/struts2-blank-2.0.6' > > 2007-05-07 12:51:56 StandardContext[/struts2-blank-2.0.6]Exception > starting > > filter struts2 > > java.lang.UnsupportedClassVersionError: > > org/apache/struts2/dispatcher/FilterDispatcher (Unsupported major.minor > > version 49.0) > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]