Re: [Resin-interest] jsp error
Sorry for that. I'm running Resin 3.1.3 and using JRE1.6u3. Perhaps this is because I'm not using the JDK? Let me try it with JDK1.6u3 and get back to you. Eric Kreiser wrote: what version of resin are you running? are you not at least using a 1.5 JDK? atomi wrote: i keep getting these errors for any jsp file I call no matter whats in it. 500 Servlet Exception || -- 1. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 12) private static final java.util.HashMapString,java.lang.reflect.Method _jsp_functionMap = new java.util.HashMapString,java.lang.reflect.Method(); ^ The type HashMap is not generic; it cannot be parameterized with arguments String, Method -- 2. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 12) private static final java.util.HashMapString,java.lang.reflect.Method _jsp_functionMap = new java.util.HashMapString, java.lang.reflect.Method(); ^^^ Syntax error, parameterized types are only available if source level is 5.0 -- 3. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 12) private static final java.util.HashMapString,java.lang.reflect.Method _jsp_functionMap = new java.util.HashMapString,java.lang.reflect.Method(); ^ The type HashMap is not generic; it cannot be parameterized with arguments String, Method -- 4. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 12) private static final java.util.HashMapString,java.lang.reflect.Method _jsp_functionMap = new java.util.HashMapString,java.lang.reflect.Method(); ^^^ Syntax error, parameterized types are only available if source level is 5.0 -- 5. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 73) public java.util.HashMap String,java.lang.reflect.Method _caucho_getFunctionMap() ^ The type HashMap is not generic; it cannot be parameterized with arguments String, Method -- 6. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 73) public java.util.HashMapString,java.lang.reflect.Method _caucho_getFunctionMap() ^^^ Syntax error, parameterized types are only available if source level is 5.0 -- 7. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 75) return _jsp_functionMap; _jsp_functionMap cannot be resolved -- 7 problems (7 errors) ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] jsp error
In Resin 3.0, we noticed that we needed to add the source argument when using the eclipse compiler Shane, This was exactly the case. Once the source argument was added Resin executed the JSP page perfectly. Thank you. Shane Cruz wrote: You will need at least version 1.5 of the JDK. Also, how is your compiler configured in resin.conf? In Resin 3.0, we noticed that we needed to add the source argument when using the eclipse compiler: javac compiler=eclipse args=-source 1.5 / Shane -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, November 05, 2007 4:25 PM To: General Discussion for the Resin application server Subject: Re: [Resin-interest] jsp error Sorry for that. I'm running Resin 3.1.3 and using JRE1.6u3. Perhaps this is because I'm not using the JDK? Let me try it with JDK1.6u3 and get back to you. Eric Kreiser wrote: what version of resin are you running? are you not at least using a 1.5 JDK? atomi wrote: i keep getting these errors for any jsp file I call no matter whats in it. 500 Servlet Exception || -- 1. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 12) private static final java.util.HashMapString,java.lang.reflect.Method _jsp_functionMap = new java.util.HashMapString,java.lang.reflect.Method(); ^ The type HashMap is not generic; it cannot be parameterized with arguments String, Method -- 2. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 12) private static final java.util.HashMapString,java.lang.reflect.Method _jsp_functionMap = new java.util.HashMapString, java.lang.reflect.Method(); ^^^ Syntax error, parameterized types are only available if source level is 5.0 -- 3. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 12) private static final java.util.HashMapString,java.lang.reflect.Method _jsp_functionMap = new java.util.HashMapString,java.lang.reflect.Method(); ^ The type HashMap is not generic; it cannot be parameterized with arguments String, Method -- 4. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 12) private static final java.util.HashMapString,java.lang.reflect.Method _jsp_functionMap = new java.util.HashMapString,java.lang.reflect.Method(); ^^^ Syntax error, parameterized types are only available if source level is 5.0 -- 5. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 73) public java.util.HashMap String,java.lang.reflect.Method _caucho_getFunctionMap() ^ The type HashMap is not generic; it cannot be parameterized with arguments String, Method -- 6. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 73) public java.util.HashMapString,java.lang.reflect.Method _caucho_getFunctionMap() ^^^ Syntax error, parameterized types are only available if source level is 5.0 -- 7. ERROR in D:\Applications\workspace\toolbox\WEB-INF\work\_jsp\_test__jsp.java (at line 75) return _jsp_functionMap; _jsp_functionMap cannot be resolved -- 7 problems (7 errors) ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Classpath problem
that works. Gary Zhu wrote: Set your class path to include all resin jar files: CLASSPATH=.;C:\resin30\resin-3.0.22\lib\resin.jar;C:\resin30\resin-3.0.22\lib\jsdk-24.jar;C:\resin30\resin-3.0.22\lib\j2ee-management-10.jar;..;C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip and then, the following command should do: java com.caucho.jsp.JspCompiler -app-dir /opt/www/foo test/foo.jsp Resin distribution does not include setenv.cmd or setenv.sh file, which allows users conveniently set environment, though usages are rare. From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Tim Manchester [EMAIL PROTECTED] Sent: Friday, June 08, 2007 2:25 PM To: resin-interest@caucho.com Subject: [Resin-interest] Classpath problem I'm trying to use the jsp compiler and I know I must be having classpath problems. When I attempt to execute the following command: C:\resin30\resin-3.0.22\libjava com.caucho.jsp.JspCompiler -app-dir /opt/www/foo test/foo.jsp I get the following exception: Exception in thread main java.lang.NoClassDefFoundError: com/caucho/jsp/JspCompiler So I modified my command to this: C:\resin30\resin-3.0.22\libjava -jar resin.jar com.caucho.jsp.JspCompiler -app-dir /opt/www/foo test/foo.jsp and got this exception instead: Exception in thread main java.lang.NoClassDefFoundError: com/caucho/server/boot/ResinBoot This is my classpath: C:\resin30\resin-3.0.22\libset classpath CLASSPATH=.;C:\resin30\resin-3.0.22\lib;C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip The root dir for resin is C:\resin30\resin-3.0.22\ and the lib directory contains the files: C:\resin30\resin-3.0.22\libls activation.jar j2ee-deploy-10.jar jca-15.jarjstl-11.jar resin-jdk15.jar aopalliance.jar j2ee-management-10.jar jms-11.jar jta-101.jar resin.jar ejb-20.jar java jmx-12.jar portlet-10.jar resinboot.jar ejb-30.jar javamail-14.jarjsdk-24.jar quercus.jar script-10.jar So, what am I missing? resinboot.jar is here. resin.jar is here. Which jar file is ResinBoot in? Regards, Tim ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Classpath problem
I'm terribly terribly, sorry, wrong thread. cheers! Gary Zhu wrote: Set your class path to include all resin jar files: CLASSPATH=.;C:\resin30\resin-3.0.22\lib\resin.jar;C:\resin30\resin-3.0.22\lib\jsdk-24.jar;C:\resin30\resin-3.0.22\lib\j2ee-management-10.jar;..;C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip and then, the following command should do: java com.caucho.jsp.JspCompiler -app-dir /opt/www/foo test/foo.jsp Resin distribution does not include setenv.cmd or setenv.sh file, which allows users conveniently set environment, though usages are rare. From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Tim Manchester [EMAIL PROTECTED] Sent: Friday, June 08, 2007 2:25 PM To: resin-interest@caucho.com Subject: [Resin-interest] Classpath problem I'm trying to use the jsp compiler and I know I must be having classpath problems. When I attempt to execute the following command: C:\resin30\resin-3.0.22\libjava com.caucho.jsp.JspCompiler -app-dir /opt/www/foo test/foo.jsp I get the following exception: Exception in thread main java.lang.NoClassDefFoundError: com/caucho/jsp/JspCompiler So I modified my command to this: C:\resin30\resin-3.0.22\libjava -jar resin.jar com.caucho.jsp.JspCompiler -app-dir /opt/www/foo test/foo.jsp and got this exception instead: Exception in thread main java.lang.NoClassDefFoundError: com/caucho/server/boot/ResinBoot This is my classpath: C:\resin30\resin-3.0.22\libset classpath CLASSPATH=.;C:\resin30\resin-3.0.22\lib;C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip The root dir for resin is C:\resin30\resin-3.0.22\ and the lib directory contains the files: C:\resin30\resin-3.0.22\libls activation.jar j2ee-deploy-10.jar jca-15.jarjstl-11.jar resin-jdk15.jar aopalliance.jar j2ee-management-10.jar jms-11.jar jta-101.jar resin.jar ejb-20.jar java jmx-12.jar portlet-10.jar resinboot.jar ejb-30.jar javamail-14.jarjsdk-24.jar quercus.jar script-10.jar So, what am I missing? resinboot.jar is here. resin.jar is here. Which jar file is ResinBoot in? Regards, Tim ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest