Unexpected Jasper Exception
Hi there! I'm developing a web application covered inside a security manager. The problem is that I left the right permissions to the commons libraries and now the jasper compiler can not initialize the tlds cache. This the exception: org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/tlds/displaytag-el-12.tld org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:252) org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:223) org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) java.security.AccessController.doPrivileged(Native Method) com.interlogical.portal.security.WebappSecurityFilter.doFilter(WebappSecurityFilter.java:51) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) I'm using Tomcat 5.5.9 and JVM 1.5.0. The catalina.policy file looks like: ... grant codeBase file:/home/domains/i/interlogical.com/htdocs/- { permission java.net.SocketPermission jakarta.apache.org:80 http://jakarta.apache.org:80, connect; permission java.net.SocketPermission jakarta.apache.org:80 http://jakarta.apache.org:80, resolve; permission java.util.PropertyPermission file.encoding, read; permission java.util.PropertyPermission java.class.path, read; permission java.util.PropertyPermission java.compiler, read; permission java.util.PropertyPermission java.ext.dirs, read; permission java.util.PropertyPermission java.io.tmpdir, read; permission java.util.PropertyPermission java.library.path, read; permission java.util.PropertyPermission java.runtime.name http://java.runtime.name, read; permission java.util.PropertyPermission java.runtime.version, read; permission java.util.PropertyPermission java.vm.info http://java.vm.info, read; permission java.util.PropertyPermission user.country, read; permission java.util.PropertyPermission user.region, read; permission java.util.PropertyPermission user.dir, read; permission java.util.PropertyPermission user.home, read; permission java.util.PropertyPermission user.language, read; permission java.util.PropertyPermission user.name http://user.name, read; permission java.lang.RuntimePermission accessClassInPackage.org.apache.tomcat.util.buf; permission java.lang.RuntimePermission accessClassInPackage.org.apache.tomcat.util.buf.*; permission java.io.FilePermission /WEB-INF/tlds/*, read
RE: jasper jsp precompilation error
This method was added in Servlet API version 2.3. Can you check if you are using that version ? Have a look at whats in your classpath at JSP precompilation time !!! -Original Message- From: Aaron Phillips [mailto:[EMAIL PROTECTED] Sent: 06 September 2005 23:27 To: tomcat-user@jakarta.apache.org Subject: jasper jsp precompilation error Hi I am trying to do JSP precompilation as described at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. I can run the application fine if I do not precompile, but when I do attempt to precompile the JSP, I get the message: BUILD FAILED /home/aaron/projects/cdquery/build.xml:307: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getResourcePaths (Ljava/lang/String;)Ljava/util/Set; I am using Tomcat 5.0.30 Ant 1.6.2. Does anyone have an idea what I should do? Below is my ant target XML. Thanks, Aaron target name=jspc taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${catalina.home}/bin include name=*.jar/ /fileset fileset dir=${catalina.home}/server/lib include name=*.jar/ /fileset fileset dir=${catalina.home}/common/lib include name=*.jar/ /fileset /classpath /taskdef jasper2 validateXml=false uriroot=${web.home} webXmlFragment=${web.home}/WEB-INF/generated_web.xml outputDir=${web.home}/WEB-INF/src / /target ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Another Jasper precompile question
Hi! I also use (or try to use) that tomcat-delivered jspc-task with tomcat 5.5.9. My problem is that whenever there is a character reference (like #160;) in a jsp file, the compiled jsp contains nonsense at that location, and compile errors follow in javac. Is there a fix/update available or another soluteion except for removing the character references? Why does everything compile well at runtime? Are there different libraries used for each of the two compile scenarios? Thank you! sonja -- Sonja Löhr [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jasper jsp precompilation error
Hi I am trying to do JSP precompilation as described at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. I can run the application fine if I do not precompile, but when I do attempt to precompile the JSP, I get the message: BUILD FAILED /home/aaron/projects/cdquery/build.xml:307: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getResourcePaths (Ljava/lang/String;)Ljava/util/Set; I am using Tomcat 5.0.30 Ant 1.6.2. Does anyone have an idea what I should do? Below is my ant target XML. Thanks, Aaron target name=jspc taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${catalina.home}/bin include name=*.jar/ /fileset fileset dir=${catalina.home}/server/lib include name=*.jar/ /fileset fileset dir=${catalina.home}/common/lib include name=*.jar/ /fileset /classpath /taskdef jasper2 validateXml=false uriroot=${web.home} webXmlFragment=${web.home}/WEB-INF/generated_web.xml outputDir=${web.home}/WEB-INF/src / /target
[jasper] compiling jsp in an osgi context
hi- resending a mail i inadvertently sent to commons-user.. i'm trying to execute jsp in an osgi context with no luck as of today. i've embedded jetty as an osgi bundle and registered a BundleListener which registers installed bundles as webapp if they contain a web descriptor file. so far so good. it plays nice with simple html files. however i'm encountering troubles when it comes to jsp. generated servlets don't compile anything because javax.servlet.* classes are not found (please note that the transformation process is successfull). in the manifest i declare javax.servlet as Import-Package (most prolly this seems to cause the issue) and jetty, jasper and related dependencies as bundled libs. Also as jasper seems to require an urlclassloader i've come up with a (pretty simple) custom urlclassloader which delegates all calls to either the target bundle (i.e. the installed bundle which wraps the webapp) or the current bundle. jasper classes are succesfully loaded, but not the javax.servlet.* classes. googling about this using various criteria gives me in only three relevant results : 1/ embedded pagebox whose earlier version (2001) targets the same problematic as me. since it is released under lgpl i've tried to use it to match my specific needs, however it pretty quick became total hackery - 2000 lines src files not maintained since 2001 or so and they duplicate lot of services already provided by containers. 2/ a thread on oscar user list with no anwer 3/ a wiki page (entitled 'Tomcat as osgi bundles' and hosted on safehaus - with just a listing of bundles i'm unable to find) so i thought i could ask here if someone came to a solution to this problem. Has it already be done yet ? below are the relevant manifest entries and webapp registration code. the target bundle as no Import-Package and no classes (just the simplest hello world). webapp registration [1] assigns the currentThead contextClassLoader to the simple delegating classloader discussed above - needed to start the webapp, and [2] sets the WebApplicationContext ClassLoader to the exact same ClassLoader - which i thought would have provided javax.servlet.* classes. this may not be the best list for this question (should i rather ask on jetty or [EMAIL PROTECTED] user lists ?), anyway thanks for any input. Import-Package: org.osgi.service.http,javax.servlet, javax.servlet.http,org.osgi.framework,net.joss.utils Bundle-Classpath: ., org.mortbay.jetty-5.1.4.jar, commons-logging-1.0.4.jar, servlet-api-2.4.jar, xerces-2.4.0.jar, xmlParserAPIs-2.6.2.jar, xml-apis-2.0.2.jar, jsp-api-2.0.jar, jasper-compiler-5.5.9.jar, jasper-runtime-5.5.9.jar, commons-el-1.0.jar, ant-1.6.2.jar class JettyWrapper { public void createApplication(final String appName, final File app, final Bundle fromBundle) { Thread thread = new Thread() { public void run() { try { ClassLoader loader = new DelegatingClassLoader( fromBundle, this.getClass().getClassLoader()); Thread.currentThread().setContextClassLoader(loader);[1] String location = app.getAbsolutePath(); WebApplicationContext context = jetty.addWebApplication(/ + appName, location); context.setClassLoader(loader);[2] ... context.start(); } catch (Exception e) { LOG.error(Unable to start ' + appName + ' context, e); } } }; thread.start(); } } -- gd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Jasper-Need your help
Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:544) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Jasper-Need your help
%= request.getParameter(testParam) % may trow a null pointer so try %= request.getParameter(testParam) == null ? : request.getParameter(testParam) % Regards Guru -Original Message- From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:23 To: tomcat-user@jakarta.apache.org Subject: Problem with Jasper-Need your help Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 44) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - 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]
Re: Problem with Jasper-Need your help
It didn't work again! I have almost the same problem with all my JSP pages(Servlets work ok). I think is a Tomcat problem;The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) I went to servlet code produced and I changed catch(Throwable t) with catch(Exception t) and the java file was compiled succesfully with javac. Thanks for help Panagiotis On 7/27/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: %= request.getParameter(testParam) % may trow a null pointer so try %= request.getParameter(testParam) == null ? : request.getParameter(testParam) % Regards Guru -Original Message- From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:23 To: tomcat-user@jakarta.apache.org Subject: Problem with Jasper-Need your help Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 44) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Jasper-Need your help
So is there anybody that can help me? Please guys...I don't know what to do. On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote: It didn't work again! I have almost the same problem with all my JSP pages(Servlets work ok). I think is a Tomcat problem;The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) I went to servlet code produced and I changed catch(Throwable t) with catch(Exception t) and the java file was compiled succesfully with javac. Thanks for help Panagiotis On 7/27/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: %= request.getParameter(testParam) % may trow a null pointer so try %= request.getParameter(testParam) == null ? : request.getParameter(testParam) % Regards Guru -Original Message- From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:23 To: tomcat-user@jakarta.apache.org Subject: Problem with Jasper-Need your help Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 44) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Jasper-Need your help
I found the solution; The method handlePage(Throwable) was introduced in JSP 2.0 The problem was that I had in my classpath a servlet.jar older where this method was not defined.I deleted it and everything works fine now. Thanks for support Panagiotis On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote: So is there anybody that can help me? Please guys...I don't know what to do. On 7/27/05, Panagiotis Karvounis [EMAIL PROTECTED] wrote: It didn't work again! I have almost the same problem with all my JSP pages(Servlets work ok). I think is a Tomcat problem;The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) I went to servlet code produced and I changed catch(Throwable t) with catch(Exception t) and the java file was compiled succesfully with javac. Thanks for help Panagiotis On 7/27/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: %= request.getParameter(testParam) % may trow a null pointer so try %= request.getParameter(testParam) == null ? : request.getParameter(testParam) % Regards Guru -Original Message- From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:23 To: tomcat-user@jakarta.apache.org Subject: Problem with Jasper-Need your help Hi.I am new with Tomcat and JSP and I need your help. I am trying the following simple jsp: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD TITLEJSP Expressions/TITLE /HEAD BODY H2JSP Expressions/H2 UL LICurrent time: %= new java.util.Date() % LIYour hostname: %= request.getRemoteHost() % LIYour session ID: %= session.getId() % LIThe CODEtestParam/CODE form parameter: %= request.getParameter(testParam) % /UL /BODY /HTML And I get this error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable) org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 44) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.1 logs. Can you help me? Thanks Panagiotis - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Jasper/Orion] compile JSP servlets
I'm trying to write an ant task to pre-compile JSP pages, but I have the following problem. Here is a piece of page : # form:input type=hidden name=idy value=%= itlBean.getIdy() %/ (itlBean.getIdy() returns a Long.) Then I try to transform the JSP page into a servlet with the jasper task, which gives the following java code : # _jspx_th_form_input_0.setParent(null); # _jspx_th_form_input_0.setType(hidden); # _jspx_th_form_input_0.setName(idy); # _jspx_th_form_input_0.setValue( itlBean.getIdy() ); But the value field in the tag handler is a String and so the setter is void setValue(String value), therefore javac refuses to compile the corresponding servlet. Unlike jasper, Orion (the server I'm using) generate the following java code for the same page : #__tag1.setParent(null); #__tag1.setName(idy); #__tag1.setType(hidden); #__tag1.setValue(com.orionserver.util.ObjectUtils.toString( itlBean.getIdy() )); Great ! Orion recognized the problem and convert the Long to a String. And now my question : Is jasper able to do that ? How ? If not, does this way of proceeding conforms exactly to JSP spec. ? Can my problem be solved ? Thanks for your help. Romain Thouvenin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I using Jasper 2 JSP Engine back-compile the java file to jsp file?
I deleted all my project files by misoperation. Using the FinalDate+GoogleDesktop makes all java and xml files back. But some jsp ... ;-( Thanks In Advance
Jasper introspectHelper Error
I'm attempting to migrate an application from Orion to Tomcat and have encountered my first error. It is as follows: An error occurred at line: 27 in the jsp file: /index.jsp Generated servlet error: The method introspecthelper(Object, String, String, ServletRequest) in the type JspRuntimeLibrary is not applicable for the arguments (Object, String, String, null, null, boolean) An error occurred at line: 28 in the jsp file: /index.jsp Generated servlet error: The method introspecthelper(Object, String, String, ServletRequest) in the type JspRuntimeLibrary is not applicable for the arguments (Object, String, String, null, null, boolean) Line 27 and 28 are the jsp:setProperty in the following declaration: jsp:useBean id=vitamins class=com.telesoft.util.AppConfig scope=application jsp:setProperty name=vitamins property=location value=-Dvitamins/ jsp:setProperty name=vitamins property=configobject value=com.telesoft.database.DbConfig/ /jsp:useBean I've recently migrated two larger application and have not encountered this error. Any ideas? Thanks. -- Regards, Scott Dudley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper generating garbage? new String() in generated code?
This is another smaller issue. c:set var=foo value=bar/ yields: _jspx_th_c_set_0.setValue(new String(bar)); If this is a constant string why does it need to continually call new String(bar) here? This is just going to waste CPU and cause more garbage to be generated which the GC will eventually have to reclaim (slowing down page throughput). Of course it could be claimed that modern VMs would optimize this away but I just did a quick benchmark and using a constant string was 3x faster... This included GC time. So all and all it might yield to faster JSP time for pages that uses static strings in JSP vars. Kevin -- Use Rojo (RSS/Atom aggregator)! - visit http://rojo.com. See irc.freenode.net #rojo if you want to chat. Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html Kevin A. Burton, Location - San Francisco, CA AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
5.5.9 jasper ant compile options
I want to compile my jsps before depolying my war, so I'm using the standalone deployer build.xml. In the web.xml (for the jsp servlet) I can set some options eg. genStrAsCharArray or trimSpaces. How can I set these compile options in the ant task? Thx Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper throws ExceptionInInitializerError?!
Good morning, I am migrating an automated build process from a Windows 2K system to a RedHat EL 3 system, with some trouble. When I run a particular build via Ant, that uses the JSP precompiling task (jasper2), it fails, but somehow, not immediately. When I go into the output or destination directory for the jasper task, the first .java file is created ... it bombs out, though, at the place in the JSP where the Struts html:html tag is first encountered. What's more frustrating, is that on the RHEL3 system, I have tomcat4 and tomcat5 installed (4.1.31 and 5.0.30). When I provide a tomcat.home property that points to Tomcat4 (so the common/lib JARs from tomcat4 are used), it builds fine. When I specify a tomcat.home pointing to tomcat5, it fails. The Tomcat packages were installed from the JPackage project and are running against IBM's 1.4.2 JDK (Intel/x86). I've spent many hours on this, tried a variety of things, all with no success. It seems that either (a) something is missing from a CLASSPATH or (b) there is a conflict somehow. Note, the project (with the same build.xml file) runs just fine on our local systems ... my local development platform is a dual G5 (Mac) w/ Tomcat 5.0.28 - no problems here. We also use the MyEclipse plug-in to Eclipse which pre-compiles JSPs in the background for syntax checking, and it doesn't have any problem with the project configuration. Moreover, on the Win 2K box, this was all working fine, albeit compiling for a Tomcat4 target, not Tomcat5. I am at my wits end here. Any help or pointers would be most appreciated. Here's the error from the Ant build: jspc: [copy] Copying 1 file to /opt/build/checkout/Imagebank/WebRoot/WEB-INF [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /opt/build/build-Imagebank.xml:9: The following error occurred while executing this line: /opt/build/checkout/Imagebank/build.xml:201: java.lang.ExceptionInInitializerError I can turn on the debugging output for Ant if more verbosity is necessary. p.s. Another project builds just fine on this platform, against tomcat5, using the same frameworks (Struts, etc.). Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc.
RE: Jasper throws ExceptionInInitializerError?!
One thing I forgot to mention - when I do turn on debug for Ant, the root cause that's shown is a NullPointerException. java.lang.ExceptionInInitializerError at java.lang.Class.forName1(Native Method) at java.lang.Class.forName(Class.java:180) at org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.class$(ELHtmlTagBeanIn fo.java:88) at org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.getPropertyDescriptors (ELHtmlTagBeanInfo.java:88) at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:477) at java.beans.Introspector.getBeanInfo(Introspector.java:390) at java.beans.Introspector.getBeanInfo(Introspector.java:159) at org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav a:3684) at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G enerator.java:2102) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1583) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) ... Caused by: java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResou rces.java:577) at org.apache.struts.taglib.html.HtmlTag.clinit(HtmlTag.java:96) Googling on getMessageResources and NullPointerException gets me a bunch of hits about Struts not being configured right, etc. Basically, that Struts can't find the Resources bundle configured in struts-config.xml. Yet, if that were truly a config problem, then it wouldn't work when compiling against Tomcat4, right? And it wouldn't compile correctly on my G5 w/ Tomcat 5.0.28, right? That's my train of thought, at least ... I've gone through the source now, starting with ELHtmlTagBeanInfo as well as MessageResources.getMessageResources - stepping back through other source as needed, and I haven't come across anything that would appear to be a smoking gun. Please advise! Best, Brice Ruth -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 11:21 AM To: tomcat-user@jakarta.apache.org Subject: Jasper throws ExceptionInInitializerError?! Good morning, I am migrating an automated build process from a Windows 2K system to a RedHat EL 3 system, with some trouble. When I run a particular build via Ant, that uses the JSP precompiling task (jasper2), it fails, but somehow, not immediately. When I go into the output or destination directory for the jasper task, the first .java file is created ... it bombs out, though, at the place in the JSP where the Struts html:html tag is first encountered. What's more frustrating, is that on the RHEL3 system, I have tomcat4 and tomcat5 installed (4.1.31 and 5.0.30). When I provide a tomcat.home property that points to Tomcat4 (so the common/lib JARs from tomcat4 are used), it builds fine. When I specify a tomcat.home pointing to tomcat5, it fails. The Tomcat packages were installed from the JPackage project and are running against IBM's 1.4.2 JDK (Intel/x86). I've spent many hours on this, tried a variety of things, all with no success. It seems that either (a) something is missing from a CLASSPATH or (b) there is a conflict somehow. Note, the project (with the same build.xml file) runs just fine on our local systems ... my local development platform is a dual G5 (Mac) w/ Tomcat 5.0.28 - no problems here. We also use the MyEclipse plug-in to Eclipse which pre-compiles JSPs in the background for syntax checking, and it doesn't have any problem with the project configuration. Moreover, on the Win 2K box, this was all working fine, albeit compiling for a Tomcat4 target, not Tomcat5. I am at my wits end here. Any help or pointers would be most appreciated. Here's the error from the Ant build: jspc: [copy] Copying 1 file to /opt/build/checkout/Imagebank/WebRoot/WEB-INF [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /opt/build/build-Imagebank.xml:9: The following error occurred while executing this line: /opt/build/checkout/Imagebank/build.xml:201: java.lang.ExceptionInInitializerError I can turn on the debugging output for Ant if more verbosity is necessary. p.s. Another project builds just fine on this platform, against tomcat5, using the same frameworks (Struts, etc.). Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jasper throws ExceptionInInitializerError?!
More info. Finally got Eclipse to attach to the Ant build process. Now, I find that the root problem (after stepping through a few levels) is a ClassNotFoundException for org.apache.struts.util.PropertyMessageResourcesFactory. How odd ... yet against tomcat4, this works fine, but tomcat5, it fails. What the heck?! Is this a classloader issue?! -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 11:57 AM To: Tomcat Users List Subject: RE: Jasper throws ExceptionInInitializerError?! One thing I forgot to mention - when I do turn on debug for Ant, the root cause that's shown is a NullPointerException. java.lang.ExceptionInInitializerError at java.lang.Class.forName1(Native Method) at java.lang.Class.forName(Class.java:180) at org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.class$(ELHtmlTagBeanIn fo.java:88) at org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.getPropertyDescriptors (ELHtmlTagBeanInfo.java:88) at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:477) at java.beans.Introspector.getBeanInfo(Introspector.java:390) at java.beans.Introspector.getBeanInfo(Introspector.java:159) at org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav a:3684) at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G enerator.java:2102) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1583) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) ... Caused by: java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResou rces.java:577) at org.apache.struts.taglib.html.HtmlTag.clinit(HtmlTag.java:96) Googling on getMessageResources and NullPointerException gets me a bunch of hits about Struts not being configured right, etc. Basically, that Struts can't find the Resources bundle configured in struts-config.xml. Yet, if that were truly a config problem, then it wouldn't work when compiling against Tomcat4, right? And it wouldn't compile correctly on my G5 w/ Tomcat 5.0.28, right? That's my train of thought, at least ... I've gone through the source now, starting with ELHtmlTagBeanInfo as well as MessageResources.getMessageResources - stepping back through other source as needed, and I haven't come across anything that would appear to be a smoking gun. Please advise! Best, Brice Ruth -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 11:21 AM To: tomcat-user@jakarta.apache.org Subject: Jasper throws ExceptionInInitializerError?! Good morning, I am migrating an automated build process from a Windows 2K system to a RedHat EL 3 system, with some trouble. When I run a particular build via Ant, that uses the JSP precompiling task (jasper2), it fails, but somehow, not immediately. When I go into the output or destination directory for the jasper task, the first .java file is created ... it bombs out, though, at the place in the JSP where the Struts html:html tag is first encountered. What's more frustrating, is that on the RHEL3 system, I have tomcat4 and tomcat5 installed (4.1.31 and 5.0.30). When I provide a tomcat.home property that points to Tomcat4 (so the common/lib JARs from tomcat4 are used), it builds fine. When I specify a tomcat.home pointing to tomcat5, it fails. The Tomcat packages were installed from the JPackage project and are running against IBM's 1.4.2 JDK (Intel/x86). I've spent many hours on this, tried a variety of things, all with no success. It seems that either (a) something is missing from a CLASSPATH or (b) there is a conflict somehow. Note, the project (with the same build.xml file) runs just fine on our local systems ... my local development platform is a dual G5 (Mac) w/ Tomcat 5.0.28 - no problems here. We also use the MyEclipse plug-in to Eclipse which pre-compiles JSPs in the background for syntax checking, and it doesn't have any problem with the project configuration. Moreover, on the Win 2K box, this was all working fine, albeit compiling for a Tomcat4 target, not Tomcat5. I am at my wits end here. Any help or pointers would be most appreciated. Here's the error from the Ant build: jspc: [copy] Copying 1 file to /opt/build/checkout/Imagebank/WebRoot/WEB-INF [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /opt/build/build-Imagebank.xml:9: The following error occurred while executing this line: /opt/build/checkout/Imagebank/build.xml:201: java.lang.ExceptionInInitializerError I can turn on the debugging output for Ant if more verbosity is necessary. p.s. Another project builds just fine on this platform, against tomcat5, using the same frameworks (Struts, etc.). Brice D. Ruth Sr
Re: Jasper throws ExceptionInInitializerError?!
It could be conflicting versions of struts. -Tim Ruth, Brice wrote: More info. Finally got Eclipse to attach to the Ant build process. Now, I find that the root problem (after stepping through a few levels) is a ClassNotFoundException for org.apache.struts.util.PropertyMessageResourcesFactory. How odd ... yet against tomcat4, this works fine, but tomcat5, it fails. What the heck?! Is this a classloader issue?! -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 11:57 AM To: Tomcat Users List Subject: RE: Jasper throws ExceptionInInitializerError?! One thing I forgot to mention - when I do turn on debug for Ant, the root cause that's shown is a NullPointerException. java.lang.ExceptionInInitializerError at java.lang.Class.forName1(Native Method) at java.lang.Class.forName(Class.java:180) at org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.class$(ELHtmlTagBeanIn fo.java:88) at org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.getPropertyDescriptors (ELHtmlTagBeanInfo.java:88) at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:477) at java.beans.Introspector.getBeanInfo(Introspector.java:390) at java.beans.Introspector.getBeanInfo(Introspector.java:159) at org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav a:3684) at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G enerator.java:2102) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1583) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) ... Caused by: java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResou rces.java:577) at org.apache.struts.taglib.html.HtmlTag.clinit(HtmlTag.java:96) Googling on getMessageResources and NullPointerException gets me a bunch of hits about Struts not being configured right, etc. Basically, that Struts can't find the Resources bundle configured in struts-config.xml. Yet, if that were truly a config problem, then it wouldn't work when compiling against Tomcat4, right? And it wouldn't compile correctly on my G5 w/ Tomcat 5.0.28, right? That's my train of thought, at least ... I've gone through the source now, starting with ELHtmlTagBeanInfo as well as MessageResources.getMessageResources - stepping back through other source as needed, and I haven't come across anything that would appear to be a smoking gun. Please advise! Best, Brice Ruth -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 11:21 AM To: tomcat-user@jakarta.apache.org Subject: Jasper throws ExceptionInInitializerError?! Good morning, I am migrating an automated build process from a Windows 2K system to a RedHat EL 3 system, with some trouble. When I run a particular build via Ant, that uses the JSP precompiling task (jasper2), it fails, but somehow, not immediately. When I go into the output or destination directory for the jasper task, the first .java file is created ... it bombs out, though, at the place in the JSP where the Struts html:html tag is first encountered. What's more frustrating, is that on the RHEL3 system, I have tomcat4 and tomcat5 installed (4.1.31 and 5.0.30). When I provide a tomcat.home property that points to Tomcat4 (so the common/lib JARs from tomcat4 are used), it builds fine. When I specify a tomcat.home pointing to tomcat5, it fails. The Tomcat packages were installed from the JPackage project and are running against IBM's 1.4.2 JDK (Intel/x86). I've spent many hours on this, tried a variety of things, all with no success. It seems that either (a) something is missing from a CLASSPATH or (b) there is a conflict somehow. Note, the project (with the same build.xml file) runs just fine on our local systems ... my local development platform is a dual G5 (Mac) w/ Tomcat 5.0.28 - no problems here. We also use the MyEclipse plug-in to Eclipse which pre-compiles JSPs in the background for syntax checking, and it doesn't have any problem with the project configuration. Moreover, on the Win 2K box, this was all working fine, albeit compiling for a Tomcat4 target, not Tomcat5. I am at my wits end here. Any help or pointers would be most appreciated. Here's the error from the Ant build: jspc: [copy] Copying 1 file to /opt/build/checkout/Imagebank/WebRoot/WEB-INF [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /opt/build/build-Imagebank.xml:9: The following error occurred while executing this line: /opt/build/checkout/Imagebank/build.xml:201: java.lang.ExceptionInInitializerError I can turn on the debugging output for Ant if more verbosity is necessary. p.s. Another project builds just fine on this platform, against tomcat5
RE: Jasper throws ExceptionInInitializerError?!
OK, I searched the entire system for struts JAR files. The only difference I found betw. this project and the one that works is that WEB-INF/lib contained struts-legacy.jar. So, I moved that out, tried again, same problem. I checked the struts.jar and struts-el.jar files for an instance of PropertyMessageResourcesFactory and found that struts.jar did in fact contain this. I'm at a loss. The class is there, the JAR files in WEB-INF/lib are included in the jspc.classpath for the jasper taskdef. And I keep coming back to the fact that this works against the tomcat4 libs and not against the tomcat5 libs! Here's my taskdef: taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath fileset dir=${tomcat.home}/common/lib include name=*jasper*.jar/ include name=*jsp*.jar/ include name=*servlet*.jar/ include name=*commons-el*.jar/ /fileset fileset dir=${webroot}/WEB-INF/lib include name=*.jar/ /fileset pathelement path=${build.dir}/ pathelement location=${env.JAVA_HOME}/lib/tools.jar/ /classpath /taskdef In the fileset for /common/lib, I was including *.jar, but I thought that something in there may be conflicting, so I enumerated just the ones I figured it needed. You can see, *.jar from WEB-INF/lib is included in the CLASSPATH. As mentioned previously, the JDK is IBM's, 1.4.2 - so JAVA_HOME is /usr/lib/jvm/java-1.4.2-ibm. Help?! -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 12:36 PM To: Tomcat Users List Subject: Re: Jasper throws ExceptionInInitializerError?! It could be conflicting versions of struts. -Tim Ruth, Brice wrote: More info. Finally got Eclipse to attach to the Ant build process. Now, I find that the root problem (after stepping through a few levels) is a ClassNotFoundException for org.apache.struts.util.PropertyMessageResourcesFactory. How odd ... yet against tomcat4, this works fine, but tomcat5, it fails. What the heck?! Is this a classloader issue?! -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 11:57 AM To: Tomcat Users List Subject: RE: Jasper throws ExceptionInInitializerError?! One thing I forgot to mention - when I do turn on debug for Ant, the root cause that's shown is a NullPointerException. java.lang.ExceptionInInitializerError at java.lang.Class.forName1(Native Method) at java.lang.Class.forName(Class.java:180) at org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.class$(ELHtmlTagBean In fo.java:88) at org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.getPropertyDescripto rs (ELHtmlTagBeanInfo.java:88) at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:477) at java.beans.Introspector.getBeanInfo(Introspector.java:390) at java.beans.Introspector.getBeanInfo(Introspector.java:159) at org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.j av a:3684) at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo (G enerator.java:2102) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.j av a:1583) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) ... Caused by: java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageRes ou rces.java:577) at org.apache.struts.taglib.html.HtmlTag.clinit(HtmlTag.java:96) Googling on getMessageResources and NullPointerException gets me a bunch of hits about Struts not being configured right, etc. Basically, that Struts can't find the Resources bundle configured in struts-config.xml. Yet, if that were truly a config problem, then it wouldn't work when compiling against Tomcat4, right? And it wouldn't compile correctly on my G5 w/ Tomcat 5.0.28, right? That's my train of thought, at least ... I've gone through the source now, starting with ELHtmlTagBeanInfo as well as MessageResources.getMessageResources - stepping back through other source as needed, and I haven't come across anything that would appear to be a smoking gun. Please advise! Best, Brice Ruth -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 11:21 AM To: tomcat-user@jakarta.apache.org Subject: Jasper throws ExceptionInInitializerError?! Good morning, I am migrating an automated build process from a Windows 2K system
Re: Pre-Compilation in Tomcat Jasper
there is one jspc.bat in bin directory or an Ant task - JspC is available for pre compiling jsp. Using this you can compile JSP to Servlets and put it in WEB-INF/classes directory. It has parameter to generate the required web.xml mappings. Note : In Tomcat 4.1.x the task by default compiles all classes into org.apache.jsp. rgds Antony Paul On Mon, 28 Feb 2005 12:25:46 +0530, BV Karthik [EMAIL PROTECTED] wrote: Hi, Is there anything in Tomcat which will pre-compile our JSP's? What jasper has to do with Tomcat? Pls help. Thanks in advance. Regards, Karthik BV - 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]
RE: Pre-Compilation in Tomcat Jasper
Hi Karthik, A build file I modified from the sample that comes with tomcat documentation, hope it's still working (I removed some private stuff from the original file) You will need to set the properties webapp.name (eg. myWebapp) and tomcat.home (eg. d:/tomcat) in the file build.properties and run the task all (ant all). Basically, the script will pre-compile all JSPs into the work folder of tomcat and not the WEB-INF/classes directory. Also you don't have to change web.xml to include the generated servlets. project name=Webapp Precompilation default=all basedir=. property name=propFile value=build.properties / property file=${propFile} / !-- property name=tomcat.home value=path to tomcat / -- property name=webapp.path value=${tomcat.home}/webapps/${webapp.name} / property name=src.dest.dir value=${tomcat.home}/work/Catalina/localhost/${webapp.name} / property name=class.dest.dir value=${tomcat.home}/work/Catalina/localhost/${webapp.name} / target name=jspc taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${tomcat.home}/bin include name=*.jar/ /fileset fileset dir=${tomcat.home}/server/lib include name=*.jar/ /fileset fileset dir=${tomcat.home}/common/lib include name=*.jar/ /fileset /classpath /taskdef jasper2 validateXml=false uriroot=${webapp.path} webXmlFragment=${webapp.path}/WEB-INF/generated_web.xml outputDir=${src.dest.dir} / /target target name=compile mkdir dir=${class.dest.dir}/ mkdir dir=${webapp.path}/WEB-INF/lib/ javac destdir=${class.dest.dir} optimize=off debug=on failonerror=false srcdir=${src.dest.dir} excludes=**/*.smap memoryMaximumSize=256M fork=true classpath pathelement location=${webapp.path}/WEB-INF/classes/ pathelement location=${class.dest.dir}/ fileset dir=${webapp.path}/WEB-INF/lib include name=*.jar/ /fileset pathelement location=${tomcat.home}/common/classes/ fileset dir=${tomcat.home}/common/lib include name=*.jar/ /fileset pathelement location=${tomcat.home}/shared/classes/ fileset dir=${tomcat.home}/shared/lib include name=*.jar/ /fileset fileset dir=${tomcat.home}/bin include name=*.jar/ /fileset /classpath include name=** / exclude name=tags/** / /javac /target target name=print-info echo message=*** Precompiling all JSPs for webapp: ${webapp.name} *** / /target target name=all depends=print-info, jspc, compile /target !-- Removed compiled JSP source and classes. -- target name=clean depends= echo message=Deleting compiled JSP source from directory ${src.dest.dir}/org/apache/jsp / delete includeEmptyDirs=true fileset dir=${src.dest.dir}/org/apache/jsp includes=**/*.java / /delete echo message=Deleting compiled JSP class from directory ${class.dest.dir}/org/apache/jsp / delete includeEmptyDirs=true fileset dir=${class.dest.dir}/org/apache/jsp includes=**/*.class / /delete /target /project - Jim -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 4:29 PM To: Tomcat Users List; BV Karthik Subject: Re: Pre-Compilation in Tomcat Jasper there is one jspc.bat in bin directory or an Ant task - JspC is available for pre compiling jsp. Using this you can compile JSP to Servlets and put it in WEB-INF/classes directory. It has parameter to generate the required web.xml mappings. Note : In Tomcat 4.1.x the task by default compiles all classes into org.apache.jsp. rgds Antony Paul On Mon, 28 Feb 2005 12:25:46 +0530, BV Karthik [EMAIL PROTECTED] wrote: Hi, Is there anything in Tomcat which will pre-compile our JSP's? What jasper has to do with Tomcat? Pls help. Thanks in advance. Regards, Karthik BV - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com
Pre-Compilation in Tomcat Jasper
Hi, Is there anything in Tomcat which will pre-compile our JSP's? What jasper has to do with Tomcat? Pls help. Thanks in advance. Regards, Karthik BV - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper 2 problem with core taglibs in 5.5.7?
Hi folks, I have a Ant build which includes pre-compilation of JSPs. This has been working happily during prototyping with Tomcat 5.5.4, but has broken now that we have moved to Tomcat 5.5.7 as the latest stable build, which worries me a lot. The error I get during the build is: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application The Ant task: target name=define-jasper2-task taskdef name=jasper2 classname=org.apache.jasper.JspC classpath path id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar / fileset dir=${tomcat.dir}/server/lib include name=*.jar / /fileset fileset dir=${tomcat.dir}/common/lib include name=*.jar / /fileset fileset dir=${lib-dir} include name=*.jar / /fileset /path /classpath /taskdef /target ${lib-dir} contains jstl.jar and standard.jar, and the line in the JSPs causing trouble is: %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % I understand this sort of error to be typically to do with JSTL1.0/1.1, but I don't think this is an issue here, especially as 5.5.4 works fine. The ONLY thing I change is the value of ${tomcat.dir}. Has anyone seen this, or can anyone suggest a resolution? Thanks, David Kennedy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper 2 problem with core taglibs in 5.5.7?
On Wed, 16 Feb 2005 16:40:25 +, David Kennedy [EMAIL PROTECTED] wrote: Hi folks, I have a Ant build which includes pre-compilation of JSPs. This has been working happily during prototyping with Tomcat 5.5.4, but has broken now that we have moved to Tomcat 5.5.7 as the latest stable build, which worries me a lot. The error I get during the build is: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application The Ant task: target name=define-jasper2-task taskdef name=jasper2 classname=org.apache.jasper.JspC classpath path id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar / fileset dir=${tomcat.dir}/server/lib include name=*.jar / /fileset fileset dir=${tomcat.dir}/common/lib include name=*.jar / /fileset fileset dir=${lib-dir} include name=*.jar / /fileset /path /classpath /taskdef /target ${lib-dir} contains jstl.jar and standard.jar, and the line in the JSPs causing trouble is: %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % I understand this sort of error to be typically to do with JSTL1.0/1.1, but I don't think this is an issue here, especially as 5.5.4 works fine. The ONLY thing I change is the value of ${tomcat.dir}. Has anyone seen this, or can anyone suggest a resolution? http://issues.apache.org/bugzilla/show_bug.cgi?id=33373 -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper 2 problem with core taglibs in 5.5.7?
Remy Maucherat wrote: On Wed, 16 Feb 2005 16:40:25 +, David Kennedy [EMAIL PROTECTED] wrote: I have a Ant build which includes pre-compilation of JSPs. This has been working happily during prototyping with Tomcat 5.5.4, but has broken now that we have moved to Tomcat 5.5.7 [snip] http://issues.apache.org/bugzilla/show_bug.cgi?id=33373 Many thanks for the prompt response, but I'm a little unclear on the resolution. The bug is marked as resolved, but was reported in 5.5.7 so I guess there's no stable build available which can support pre-compiled JSPs which use any core tags? Is this correct, and if so, is there an approximate timescale for 5.5.8 or should I request that our project roll back to an older version? (I suspect this is a stupid/annoying question, but changing versions is difficult for logistical reasons, and I couldn't find an upcoming release timeline on the main Tomcat website.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper 2 problem with core taglibs in 5.5.7?
David Kennedy wrote: Remy Maucherat wrote: On Wed, 16 Feb 2005 16:40:25 +, David Kennedy [EMAIL PROTECTED] wrote: I have a Ant build which includes pre-compilation of JSPs. This has been working happily during prototyping with Tomcat 5.5.4, but has broken now that we have moved to Tomcat 5.5.7 [snip] http://issues.apache.org/bugzilla/show_bug.cgi?id=33373 Many thanks for the prompt response, but I'm a little unclear on the resolution. The bug is marked as resolved, but was reported in 5.5.7 so I guess there's no stable build available which can support pre-compiled JSPs which use any core tags? Is this correct, and if so, is there an approximate timescale for 5.5.8 or should I request that our project roll back to an older version? Bad form following up on my own mail, I know, but just realised my case doesn't really fit the bug report. In particular, the bug report states that if aaa.jsp does NOT reference an absolute URI taglib, then no JSP will compile, but my first JSP alphabetically (authenticate.jsp) DOES reference a URI ... and fails. Just a data point. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jasper: PageContextImpl.include(String, boolean) method blocks?
I'm using Tomcat 5.0.28 and WindowsXP. The PageContext.include(String, boolean) method seems to just block in the Jasper impl (goes off into never never land) irrespective of whether I pass true or false as the second argument. Can someone confirm this? If someone has encountered this before, please let me know. The PageContext.include(String) method does just fine. Thanks! -Al _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper extension
Is Jasper designed so that it could be used to compile JSP files into other contexts? I am a MyFaces developer (we are in the incubator right now, but will soon be moving to a top-level). Currently, development and maintanence of custom JSF tags is pain for the same reasons that development of Servlets were painful before JSPs. I would like to try to extend Jasper so that it could compile JSPs into JSF Renderer. Is this something that could be accomplished in my free time after work? Is this just a crazy idea? -- -Heath Borders-Wing [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.28 - How to stop Jasper JSP compiler from evaluting JSTL expressions
Jerry Rodgers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Oh so close : I thought you had it. Now my Tomcat JSP generated code looks a bit more like I would expect: _jspx_th_core_forEach_0.setItems(new String(${topnav})); However by setting that variable now the jstl tags do not evaluate the expression either. The tags must key off that attribute too to know whether to run the expression evaluator. I guess my first email must be clarified to be how do I stop jsp from evaluating rtexpressions and yet still allow jstl to evaluate them within their tags With isELIgnored set to it's default value of false, the following should evaluate to the string you want: core:forEach var=menuItem varStatus=status items=${'${'topnav} -Jerry -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Saturday, December 04, 2004 12:17 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.28 - How to stop Jasper JSP compiler from evaluting JSTL expressions Try: [EMAIL PROTECTED] isELIgnored=true % Jerry Rodgers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am having a problem where the parameter this is passed to my setItems() method of the jstl forEach tag is actually the .toString() version of my collection. This appears to be because the servlet code generated by Tomcat - Jasper actually evaluates the expression and then use the coerce to string on my collection. I was under the impression that the generated jsp code should only set the items property to the runtime expression and then the tag is actually the one that evaluates the expression. Here is the problem/question. How do I make Tomcat NOT evaluate my expression in the JSP because the jstl for:each tags actually have the expression evaluation built into them. Just as a test when I changed the value of the parameter in the setItems() back to my expression ${topnav} - then hit resume my page works correctly. What I am currently passed by Jasper is a long string that is the .toString() on all my items. // Tomcat generated this _jspx_th_core_forEach_0.setItems((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(${topnav}, java.lang.String.class, (PageContext)_jspx_page_context, null, false)); // Weblogic generated this, _core_forEach0.setItems(weblogic.utils.StringUtils.valueOf(${topnav})); //[ /layout/nav/top/default.jsp; Line: 13] When I tried to set the rtexpressionfalse/rtexpression in the tld for the items attribute then of course jasper complained and gave me this exception. org.apache.jasper.JasperException: /layout/default.jsp(14,4) According to TLD or attribute directive in tag file, attribute items does not accept any expressions I need jasper to allow the expression but not execute it. How do I do this? Other details. - my jsp page tiles:importAttribute / core:forEach var=menuItem varStatus=status items=${topnav} html:message name=menuItem property=value/ /core:forEach I have tested this with both version 1.0.6 and 1.1. of the jstl tags. Same behavior in both. It doesn't appear to be the tags fault but rather Jasper. Thanks everyone, Jerry - 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]
RE: Tomcat 5.0.28 - How to stop Jasper JSP compiler from evaluting JSTL expressions
Geez, after 10 hours on a Sunday I finally figured this out. It has to do with Tomcat 5.0.28 - or rather the Servlet 2.4 spec JSP 1.2 vs 2.0. I found this on the internet which led me to the answer: This is about the isELIgnored page attribute. If your web.xml specifies servlets 2.3 (corresponding to JSP 1.2) or earlier, the default is true But it is still legal to change the default-you are permitted to use this attribute in a JSP-2.0-compliant server regardless of the web.xml version. If your web.xml specifies servlets 2.4 (corresponding to JSP 2.0), the default is false Being that I started from scratch on this project my web.xml specified the version as 2.4 in the web-app which means you better be using the jstl 1.1 tags because those tags in the c.tld point to the RT - runtime versions of the tags versus the EL - evaluation language versions (which expand the expression in the tag versus in the JSP - in the JSP is the default for 2.4) Wow! - this one sent me for a loop for quite some time. Thanks for everyones help - you led me in the right direction. -Jerry -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Sunday, December 05, 2004 3:46 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.28 - How to stop Jasper JSP compiler from evaluting JSTL expressions Jerry Rodgers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Oh so close : I thought you had it. Now my Tomcat JSP generated code looks a bit more like I would expect: _jspx_th_core_forEach_0.setItems(new String(${topnav})); However by setting that variable now the jstl tags do not evaluate the expression either. The tags must key off that attribute too to know whether to run the expression evaluator. I guess my first email must be clarified to be how do I stop jsp from evaluating rtexpressions and yet still allow jstl to evaluate them within their tags With isELIgnored set to it's default value of false, the following should evaluate to the string you want: core:forEach var=menuItem varStatus=status items=${'${'topnav} -Jerry -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Saturday, December 04, 2004 12:17 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.28 - How to stop Jasper JSP compiler from evaluting JSTL expressions Try: [EMAIL PROTECTED] isELIgnored=true % Jerry Rodgers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am having a problem where the parameter this is passed to my setItems() method of the jstl forEach tag is actually the .toString() version of my collection. This appears to be because the servlet code generated by Tomcat - Jasper actually evaluates the expression and then use the coerce to string on my collection. I was under the impression that the generated jsp code should only set the items property to the runtime expression and then the tag is actually the one that evaluates the expression. Here is the problem/question. How do I make Tomcat NOT evaluate my expression in the JSP because the jstl for:each tags actually have the expression evaluation built into them. Just as a test when I changed the value of the parameter in the setItems() back to my expression ${topnav} - then hit resume my page works correctly. What I am currently passed by Jasper is a long string that is the .toString() on all my items. // Tomcat generated this _jspx_th_core_forEach_0.setItems((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(${topnav}, java.lang.String.class, (PageContext)_jspx_page_context, null, false)); // Weblogic generated this, _core_forEach0.setItems(weblogic.utils.StringUtils.valueOf(${topnav})); //[ /layout/nav/top/default.jsp; Line: 13] When I tried to set the rtexpressionfalse/rtexpression in the tld for the items attribute then of course jasper complained and gave me this exception. org.apache.jasper.JasperException: /layout/default.jsp(14,4) According to TLD or attribute directive in tag file, attribute items does not accept any expressions I need jasper to allow the expression but not execute it. How do I do this? Other details. - my jsp page tiles:importAttribute / core:forEach var=menuItem varStatus=status items=${topnav} html:message name=menuItem property=value/ /core:forEach I have tested this with both version 1.0.6 and 1.1. of the jstl tags. Same behavior in both. It doesn't appear to be the tags fault but rather Jasper. Thanks everyone, Jerry - 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
Tomcat 5.0.28 - How to stop Jasper JSP compiler from evaluting JSTL expressions
Hi, I am having a problem where the parameter this is passed to my setItems() method of the jstl forEach tag is actually the .toString() version of my collection. This appears to be because the servlet code generated by Tomcat - Jasper actually evaluates the expression and then use the coerce to string on my collection. I was under the impression that the generated jsp code should only set the items property to the runtime expression and then the tag is actually the one that evaluates the expression. Here is the problem/question. How do I make Tomcat NOT evaluate my expression in the JSP because the jstl for:each tags actually have the expression evaluation built into them. Just as a test when I changed the value of the parameter in the setItems() back to my expression ${topnav} - then hit resume my page works correctly. What I am currently passed by Jasper is a long string that is the .toString() on all my items. // Tomcat generated this _jspx_th_core_forEach_0.setItems((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(${topnav}, java.lang.String.class, (PageContext)_jspx_page_context, null, false)); // Weblogic generated this, _core_forEach0.setItems(weblogic.utils.StringUtils.valueOf(${topnav})); //[ /layout/nav/top/default.jsp; Line: 13] When I tried to set the rtexpressionfalse/rtexpression in the tld for the items attribute then of course jasper complained and gave me this exception. org.apache.jasper.JasperException: /layout/default.jsp(14,4) According to TLD or attribute directive in tag file, attribute items does not accept any expressions I need jasper to allow the expression but not execute it. How do I do this? Other details. - my jsp page tiles:importAttribute / core:forEach var=menuItem varStatus=status items=${topnav} html:message name=menuItem property=value/ /core:forEach I have tested this with both version 1.0.6 and 1.1. of the jstl tags. Same behavior in both. It doesn't appear to be the tags fault but rather Jasper. Thanks everyone, Jerry
Re: Tomcat 5.0.28 - How to stop Jasper JSP compiler from evaluting JSTL expressions
Try: [EMAIL PROTECTED] isELIgnored=true % Jerry Rodgers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am having a problem where the parameter this is passed to my setItems() method of the jstl forEach tag is actually the .toString() version of my collection. This appears to be because the servlet code generated by Tomcat - Jasper actually evaluates the expression and then use the coerce to string on my collection. I was under the impression that the generated jsp code should only set the items property to the runtime expression and then the tag is actually the one that evaluates the expression. Here is the problem/question. How do I make Tomcat NOT evaluate my expression in the JSP because the jstl for:each tags actually have the expression evaluation built into them. Just as a test when I changed the value of the parameter in the setItems() back to my expression ${topnav} - then hit resume my page works correctly. What I am currently passed by Jasper is a long string that is the .toString() on all my items. // Tomcat generated this _jspx_th_core_forEach_0.setItems((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(${topnav}, java.lang.String.class, (PageContext)_jspx_page_context, null, false)); // Weblogic generated this, _core_forEach0.setItems(weblogic.utils.StringUtils.valueOf(${topnav})); //[ /layout/nav/top/default.jsp; Line: 13] When I tried to set the rtexpressionfalse/rtexpression in the tld for the items attribute then of course jasper complained and gave me this exception. org.apache.jasper.JasperException: /layout/default.jsp(14,4) According to TLD or attribute directive in tag file, attribute items does not accept any expressions I need jasper to allow the expression but not execute it. How do I do this? Other details. - my jsp page tiles:importAttribute / core:forEach var=menuItem varStatus=status items=${topnav} html:message name=menuItem property=value/ /core:forEach I have tested this with both version 1.0.6 and 1.1. of the jstl tags. Same behavior in both. It doesn't appear to be the tags fault but rather Jasper. Thanks everyone, Jerry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.28 - How to stop Jasper JSP compiler from evaluting JSTL expressions
Oh so close : I thought you had it. Now my Tomcat JSP generated code looks a bit more like I would expect: _jspx_th_core_forEach_0.setItems(new String(${topnav})); However by setting that variable now the jstl tags do not evaluate the expression either. The tags must key off that attribute too to know whether to run the expression evaluator. I guess my first email must be clarified to be how do I stop jsp from evaluating rtexpressions and yet still allow jstl to evaluate them within their tags -Jerry -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Saturday, December 04, 2004 12:17 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.28 - How to stop Jasper JSP compiler from evaluting JSTL expressions Try: [EMAIL PROTECTED] isELIgnored=true % Jerry Rodgers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am having a problem where the parameter this is passed to my setItems() method of the jstl forEach tag is actually the .toString() version of my collection. This appears to be because the servlet code generated by Tomcat - Jasper actually evaluates the expression and then use the coerce to string on my collection. I was under the impression that the generated jsp code should only set the items property to the runtime expression and then the tag is actually the one that evaluates the expression. Here is the problem/question. How do I make Tomcat NOT evaluate my expression in the JSP because the jstl for:each tags actually have the expression evaluation built into them. Just as a test when I changed the value of the parameter in the setItems() back to my expression ${topnav} - then hit resume my page works correctly. What I am currently passed by Jasper is a long string that is the .toString() on all my items. // Tomcat generated this _jspx_th_core_forEach_0.setItems((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(${topnav}, java.lang.String.class, (PageContext)_jspx_page_context, null, false)); // Weblogic generated this, _core_forEach0.setItems(weblogic.utils.StringUtils.valueOf(${topnav})); //[ /layout/nav/top/default.jsp; Line: 13] When I tried to set the rtexpressionfalse/rtexpression in the tld for the items attribute then of course jasper complained and gave me this exception. org.apache.jasper.JasperException: /layout/default.jsp(14,4) According to TLD or attribute directive in tag file, attribute items does not accept any expressions I need jasper to allow the expression but not execute it. How do I do this? Other details. - my jsp page tiles:importAttribute / core:forEach var=menuItem varStatus=status items=${topnav} html:message name=menuItem property=value/ /core:forEach I have tested this with both version 1.0.6 and 1.1. of the jstl tags. Same behavior in both. It doesn't appear to be the tags fault but rather Jasper. Thanks everyone, Jerry - 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]
Tomcat 5.0.28 Jasper compiler error SimpleMenuItem?
Hi, I have a jsp page that I am trying to run on Tomcat that works in Weblogic. It appears Tomcat is generating code when compiling the JSP that isn't aware of the type of class the org.apache.struts.tiles.beans.SimpleMenuItem is - it looks like at run time it thinks it is a String. my JSP looks like this (jstl tags - partial): core:forEach var=menuItem varStatus=status items=${topnav} core:choose core:when test=${menuItem.tooltip=='help'} my tiles def looks like this (partial): putList name=topnav item value=nav.item1 tooltip=impersonationItem link=/myaction.do classtype=org.apache.struts.tiles.beans.SimpleMenuItem/ and the generated servlet code looks like this - Is Jasper not compiling this correctly??? _jspx_th_core_when_0.setTest((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(${menuItem.to oltip=='help'}, java.lang.String.class, (PageContext)_jspx_page_context, null, false)); And when the page runs I get this serlet exception: ServletException in:/menu.do?menu=topnav] Unable to find a value for tooltip in object of class java.lang.String using operator .' Help please : Thanks, Jerry Rodgers
Jasper SMAP and JSP-Java line info
Hi! I'm trying to use jasper for converting jsp-s to java to run some java seach on jsp. For that I need exact java element position in JSP(line nr, column number). In some old jasper version there was JspLineMap and JspLineMapItem classes and I could get linemap for jsp from ServletWriter. Seems tha it was removed later and currently(in Tomcat 5 jasper) there is SMAP generator. I haven't digged into it deeply but I read that SMAP doesn't contain enough info for doing such exact java elements mapping anymore, is it right? If so is there another way to do line mapping with jasper? great thanks Tonis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper and Axis
I'm using Axis to connect to some soap services but when I try to instantiate the locator from a JSP I get the exception: // Axis locator call CoiDWACLApiServiceLocator coiDWLocator = new CoiDWACLApiServiceLocator(); I get: org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 54) ... root cause javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:536) This service work great outside of Tomcat but when called from the JSP I get the exception. I don't know where to go with this does anyone know what I might do to find the problem?
Precompiling jsps in different directories does not produce right servlet mappings (jasper issue)
Hi all, I have tried to google to find solution to my problem, but had no luck, and thus I am writing to this list. Also, I tried to search through archives and did not hit on any solution yet. I am using these two tasks (shown at the end of this email) in the ant file with Tomcat version 4.1.31 for precompiling jsps. I am using this because I want my jsps to be precompiled and also because I want the web.xml file to be populated automatically with all the servlet mappings for the jsps. It works fine for all the jsp files which are under the directory ${basedir}/web (one specified as uriroot for the jasper2 task). But I have a jsp in directory as file ${basedir}/web/level1/level2/bookreg_error.jsp. For this jsp file, the class is built in the right hierarchy, the class file is in location ${basedir}/war/WEB-INF/classes/${app.name}/level1/level2/bookreg_error.c lass. (which is what i expected) But the servlet mapping is still as follows (which I did not expect) in the generated_web.xml file. servlet servlet-namesic.bookreg_error_jsp/servlet-name servlet-classsic.bookreg_error_jsp/servlet-class /servlet servlet-mapping servlet-namesic.bookreg_error_jsp/servlet-name url-pattern/bookreg_error.jsp/url-pattern /servlet-mapping There is actually no class called sic.bookreg_error_jsp but only class is sic.level1.level2.bookreg_error_jsp. Instead I was expecting the generated_web.xml file to have following entry. servlet servlet-namesic.level1.level2.bookreg_error_jsp/servlet-name servlet-classsic.level1.level2.bookreg_error_jsp/servlet-class /servlet servlet-mapping servlet-namesic.level1.level2.bookreg_error_jsp/servlet-name url-pattern/level1/level2/bookreg_error.jsp/url-pattern /servlet-mapping Can somebody please help me here. Normally, I think jsps should all be in one directory. Does this org.apache.jasper.JspC assume that all jsps should be only in the uriroot level to create the servlet mappings. Thanks in advance... Shweta XML snippet from my ant build file.. --- target name=jspc taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${tomcat.home}/server/lib include name=*.jar/ /fileset fileset dir=${tomcat.home}/common/lib include name=*.jar/ /fileset pathelement location=${basedir}/WEB-INF/classes/ /classpath /taskdef jasper2 validateXml=false package=${app.name} uriroot=${basedir}/web webXmlFragment=${basedir}/WEB-INF/generated_web.xml outputDir=${basedir}/jsp_generated / loadfile property=generated_web.xml srcFile=${basedir}/WEB-INF/generated_web.xml / replace file=${basedir}/WEB-INF/web.xml value=${generated_web.xml} token=lt;!-- GEN_JSP_TOKEN --gt;/ delete file=${basedir}/WEB-INF/generated_web.xml / javac srcdir=${basedir}/jsp_generated destdir=${basedir}/war/WEB-INF/classes include name=**/*.java/ classpath refid=classpath/ /javac /target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jasper error compiling jsp
thanks for your replay. But i am using linux ! No i got what went wrong. Actually it a Java Error. When we use classes with out package in jsp file, Jasper will create import statement with out class name. If we are using jdk1.4 it will through error since after 1.4 Java is more strict about packages. You can find it in jdk compatibility docs. Also look previous reply to my questions. references: <>http://java.sun.com/j2se/1.4/compatibility.html#incompatibilities1.4 http://forum.java.sun.com/thread.jsp?thread=466368forum=31message=2145193forum=31message=2145193 thanks every body Sarath Sheetal Dabadghav wrote: Jasper errors are seen very commonly when it encounters a space in the filepath. Is the Tomcat on your machince installed inside Program Files ? If yes, You can try: 1) Instead of having your application in webapps folder, keep it on a local directory elsewhere (no spaces in the filepath please). Point your applications context in web.xml to that directory. This must work.. If not you can try to 2) Uninstall Tomcat from Progeam Files and reinstall it on the root say D:\ Hope this helps. -Sheetal -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED]] Sent: Friday, October 22, 2004 12:34 PM To: [EMAIL PROTECTED] Subject: jasper error compiling jsp hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp .java:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl er.java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java: 315) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jasper error compiling jsp
hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.java:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sv: jasper error compiling jsp
Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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]
Re: Sv: jasper error compiling jsp
hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jasper error compiling jsp
It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jasper error compiling jsp
Thanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards, Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED]] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev "Sarath PS" [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - 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]
RE: jasper error compiling jsp
I wouldn't think so. The changes necessary to the app are likely to be pretty trivial, although you never know what else might be lurking in there. -Original Message-From: Sarath PS [mailto:[EMAIL PROTECTED]Sent: 22 October 2004 11:06To: Tomcat Users ListSubject: Re: jasper error compiling jspThanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards,Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED]] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev "Sarath PS" [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated
Re: jasper error compiling jsp
then alan, could you please give me any hints ? The library i'm about to use is proprietory and i don't have the source code. So refactoring the classes is not possible! Flisch, Alan wrote: I wouldn't think so. The changes necessary to the app are likely to be pretty trivial, although you never know what else might be lurking in there. -Original Message- *From:* Sarath PS [mailto:[EMAIL PROTECTED] *Sent:* 22 October 2004 11:06 *To:* Tomcat Users List *Subject:* Re: jasper error compiling jsp Thanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards, Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential
RE: jasper error compiling jsp
Scroll down to point 8 under Incompatibilities Between Java 2 Platform, Standard Edition, v1.4.0 and v1.3, read the second bullet. This confirms Alan's comments. http://forum.java.sun.com/thread.jsp?thread=466368 http://forum.java.sun.com/thread.jsp?thread=466368forum=31message=2145193 forum=31message=2145193 -Original Message- From: Flisch, Alan [mailto:[EMAIL PROTECTED] Sent: Friday 22 October 2004 12:23 To: Tomcat Users List Subject: RE: jasper error compiling jsp I wouldn't think so. The changes necessary to the app are likely to be pretty trivial, although you never know what else might be lurking in there. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 11:06 To: Tomcat Users List Subject: Re: jasper error compiling jsp Thanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards, Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp .j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 15 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 74 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] _ Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998
RE: jasper error compiling jsp
Sorry - ignore my last post, it contained the wrong link. Try this instead. Go to point 8, second bullet: http://java.sun.com/j2se/1.4/compatibility.html#incompatibilities1.4 -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Friday 22 October 2004 12:55 To: 'Tomcat Users List' Subject: RE: jasper error compiling jsp Scroll down to point 8 under Incompatibilities Between Java 2 Platform, Standard Edition, v1.4.0 and v1.3, read the second bullet. This confirms Alan's comments. http://forum.java.sun.com/thread.jsp?thread=466368 http://forum.java.sun.com/thread.jsp?thread=466368forum=31m essage=2145193 forum=31message=2145193 -Original Message- From: Flisch, Alan [mailto:[EMAIL PROTECTED] Sent: Friday 22 October 2004 12:23 To: Tomcat Users List Subject: RE: jasper error compiling jsp I wouldn't think so. The changes necessary to the app are likely to be pretty trivial, although you never know what else might be lurking in there. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 11:06 To: Tomcat Users List Subject: Re: jasper error compiling jsp Thanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards, Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache /jsp/index_jsp .j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa ultErrorHandle r. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis patcher.java:3 15 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilation Context.java:5 11 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:2 74 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] _ Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly
Jasper compilation of included files
I'm trying to get Jasper to pre-compile my JSP pages. I've got an Ant task (swiped from the manual) kicking this off, and it works pretty well up to a point. However... This application has a number of pages that are built out of JSP fragments. Something like this: !-- File A -- % String s = foo; % %@ include file=B.jsp % !-- File B -- % if( s.equalsIgnoreCase(FOO) ) { % PFoo/P % } % Obviously file B isn't valid on its own - it has an undefined label s. On the other hand, A is entirely valid. I can't figure out a way to tell Jasper (via the Ant task) NOT to try to compile B.jsp on its own, without making B unavailable as an include to A. Is there a way to do this? Alternatively is there a reason why I shouldn't be doing this in the first place? Thanks, Dave. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper compilation of included files
File A should *not* be called fileA.jsp. It should be called fileA.jspf An added advanatage is you know what what all your incoded fragment files are by looking at the file name. -Tim Dave Minter wrote: I'm trying to get Jasper to pre-compile my JSP pages. I've got an Ant task (swiped from the manual) kicking this off, and it works pretty well up to a point. However... This application has a number of pages that are built out of JSP fragments. Something like this: !-- File A -- % String s = foo; % %@ include file=B.jsp % !-- File B -- % if( s.equalsIgnoreCase(FOO) ) { % PFoo/P % } % Obviously file B isn't valid on its own - it has an undefined label s. On the other hand, A is entirely valid. I can't figure out a way to tell Jasper (via the Ant task) NOT to try to compile B.jsp on its own, without making B unavailable as an include to A. Is there a way to do this? Alternatively is there a reason why I shouldn't be doing this in the first place? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper compilation of included files
On Friday 15 October 2004 13:52, Dave Minter wrote: I'm trying to get Jasper to pre-compile my JSP pages. I've got an Ant task (swiped from the manual) kicking this off, and it works pretty well up to a point. However... This application has a number of pages that are built out of JSP fragments. Something like this: [snipped] Obviously file B isn't valid on its own - it has an undefined label s. On the other hand, A is entirely valid. I can't figure out a way to tell Jasper (via the Ant task) NOT to try to compile B.jsp on its own, without making B unavailable as an include to A. I've given JSP segments (fragments) a .jspf extension and that does the trick for me. See the spec JSP.1.1.8. Michael -- Michael Schuerig Nothing is as brilliantly adaptive mailto:[EMAIL PROTECTED] as selective stupidity. http://www.schuerig.de/michael/--A.O. Rorty, The Deceptive Self - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper compilation of included files
On Fri, 15 Oct 2004 14:11:54 +0200, Michael Schuerig [EMAIL PROTECTED] wrote: On Friday 15 October 2004 13:52, Dave Minter wrote: [snip] I've given JSP segments (fragments) a .jspf extension and that does the trick for me. See the spec JSP.1.1.8. Michael And indeed that seems to work for me too. Thanks to Michael and Tim for swift and effective responses. Reference from the spec particularly appreciated as I like to know if I'm doing things by the book or not. Dave. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper Exception unable to rewrite URL
Hi I have this error when running my JSP. Any advise? javax.servlet.ServletException: Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of forward, href, page or action Thanks Sebastian Ho - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp:useBean problem (bug?) with Jasper
Just replying to myself here, upgrading to 5.0.28 solved the problem. If anyone else is having this problem with 5.0.25, please note that the jasper that comes with that release is 'borken'. Sing with me: happy, happy, happy, joy, joy, joy Michiel Michiel Toneman wrote: We are using an ant task to precompile our JSP's. Since we have switched from 5.0.19 to 5.0.25 on our development environment, many JSP files that use the jsp:useBean tag no longer compile. The error I'm getting is: BUILD FAILED: /compile/project/build.xml:209: org.apache.jasper.JasperException: file:/tmp/output/ROOT/jsp/monitor/monitor.jsp(6,0) The value for the useBean class attribute com.example.AccountingBean is invalid. I know that this kind of error occurs when there is no no-argument constructor in the Bean. The AccountingBean does have a constructor, but it is a no-argument constructor. If I remove the constructor from the Bean, the JSP can be compiled normally. If I use the jasper-compiler.jar from 5.0.19 instead of the one that comes with 5.0.25, everything compiles normally. Am I right to conclude that this is a bug in jasper-compiler? Michiel Example code: monitor.jsp -- jsp:useBean id=widget scope=request class=nl.bibit.internal.accounting.admin.AccountingWidgetBean / -- com.example.AccountingBean.java - public class AccountingBean { public AccountingBean() { isTest = true; } ... } - -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper JSP Loading
Hello, what is the best way (if there is one) to make Jasper Load JSP sources from a database? Thank you Massimo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper JSP Loading
Hi! I guess the only way is this: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/resources.html Regards, Viktor On Sun, 05 Sep 2004 09:14:41 +0200, Massimo Ferrari [EMAIL PROTECTED] wrote: Hello, what is the best way (if there is one) to make Jasper Load JSP sources from a database? Thank you Massimo - 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]
Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))
Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's from? They are not here, this looks like the 5.0 brach. http://cvs.apache.org/builds Where can I get the new 5.5s from? Do I have to go to cvs and build? tia, .V Vic wrote: Yes, but where? What URL? (the commons download link I think is for the 5.0 trunk? or is that 5.5?) .V ps: Thax tomcat team on very nice product! Remy Maucherat wrote: On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED] wrote: Where can we get 5.5.1? Or 5.5 nightlies? Don't worry: since this is heavy development mode, new binaries are going to be released often (unless Yoav doesn't have time to do the releases). -- Please post on Rich Internet Applications User Interface (RiA/SoA) http://www.portalvu.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))
Hi, 5.5 releases are on the normal download pages, right above 5.0 releases. Yoav Shapira Millennium Research Informatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Sent: Friday, September 03, 2004 6:53 AM To: [EMAIL PROTECTED] Subject: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)) Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's from? They are not here, this looks like the 5.0 brach. http://cvs.apache.org/builds Where can I get the new 5.5s from? Do I have to go to cvs and build? tia, .V Vic wrote: Yes, but where? What URL? (the commons download link I think is for the 5.0 trunk? or is that 5.5?) .V ps: Thax tomcat team on very nice product! Remy Maucherat wrote: On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED] wrote: Where can we get 5.5.1? Or 5.5 nightlies? Don't worry: since this is heavy development mode, new binaries are going to be released often (unless Yoav doesn't have time to do the releases). -- Please post on Rich Internet Applications User Interface (RiA/SoA) http://www.portalvu.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))
That is 5.5.0. But 5.5.1 has bug fixes, where is that? And where can I get the 5.5.x nighlies? tia, .V Shapira, Yoav wrote: Hi, 5.5 releases are on the normal download pages, right above 5.0 releases. Yoav Shapira Millennium Research Informatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Sent: Friday, September 03, 2004 6:53 AM To: [EMAIL PROTECTED] Subject: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)) Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's from? They are not here, this looks like the 5.0 brach. http://cvs.apache.org/builds Where can I get the new 5.5s from? Do I have to go to cvs and build? tia, .V Vic wrote: Yes, but where? What URL? (the commons download link I think is for the 5.0 trunk? or is that 5.5?) .V ps: Thax tomcat team on very nice product! Remy Maucherat wrote: On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED] wrote: Where can we get 5.5.1? Or 5.5 nightlies? Don't worry: since this is heavy development mode, new binaries are going to be released often (unless Yoav doesn't have time to do the releases). -- Please post on Rich Internet Applications User Interface (RiA/SoA) http://www.portalvu.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- Please post on Rich Internet Applications User Interface (RiA/SoA) http://www.portalvu.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))
Hi, How many times do I have to post this? ;) 5.5.1 is NOT AVAILABLE YET. It's looking like I'll cut it Tuesday. Nightlies are available at the usual place, http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/, but they're use at your own risk of course. Note that the above URL is nicely linked from the normal Jakarta download pages, it's not hard to find ;) Yoav Shapira Millennium Research Informatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Sent: Friday, September 03, 2004 12:08 PM To: [EMAIL PROTECTED] Subject: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)) That is 5.5.0. But 5.5.1 has bug fixes, where is that? And where can I get the 5.5.x nighlies? tia, .V Shapira, Yoav wrote: Hi, 5.5 releases are on the normal download pages, right above 5.0 releases. Yoav Shapira Millennium Research Informatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Sent: Friday, September 03, 2004 6:53 AM To: [EMAIL PROTECTED] Subject: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)) Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's from? They are not here, this looks like the 5.0 brach. http://cvs.apache.org/builds Where can I get the new 5.5s from? Do I have to go to cvs and build? tia, .V Vic wrote: Yes, but where? What URL? (the commons download link I think is for the 5.0 trunk? or is that 5.5?) .V ps: Thax tomcat team on very nice product! Remy Maucherat wrote: On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED] wrote: Where can we get 5.5.1? Or 5.5 nightlies? Don't worry: since this is heavy development mode, new binaries are going to be released often (unless Yoav doesn't have time to do the releases). -- Please post on Rich Internet Applications User Interface (RiA/SoA) http://www.portalvu.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- Please post on Rich Internet Applications User Interface (RiA/SoA) http://www.portalvu.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))
Shapira, Yoav wrote: Hi, How many times do I have to post this? ;) 5.5.1 is NOT AVAILABLE YET. It's looking like I'll cut it Tuesday. A. OK! Nightlies are available at the usual place, http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/, but they're use at your own risk of course. Note that the above URL is nicely linked from the normal Jakarta download pages, it's not hard to find ;) So the niglies are not 5.0 branch, they are 5.5. THNX,sorry to be slow on the uptake. .V Yoav Shapira Millennium Research Informatics -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))
Hi, So the niglies are not 5.0 branch, they are 5.5. Yup, nightlies are always built from CVS HEAD, which is the latest 5.5 stuff. If someone wanted to do a latest 5.0 build they'd use the TOMCAT_5_0 CVS branch, not HEAD. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
Hi Guys Decided to give TC 5.5 / JDK 5 B2 a whirl today with our web application on my local machine and am having some teething troubles; 1/ Jasper has an issue with JSP page imports where the imported packages are not used. This is throwing an exception. 2/ Had the error mentioned earlier about ROOT child '' cannot be deployed because it was shared by another context. I just removed the ROOT folder from webapps to get rid of that problem. 3/ None of my JNDI resources configured in tomcat.home/conf/Catalina/localhost/mywebapp.xml are being recognised. This was copied direct from my TC 5.0.25 installation ... should this still work? Database JAR is in common/lib. Getting lots of Cannot create JDBC driver of class '' for connect URL 'null' errors and also in STDOUT WARNING: Error during context /mywebapp restart java.lang.NullPointerException at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1031) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1123) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:729) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1511) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1520) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1500) at java.lang.Thread.run(Thread.java:595) 4/ The logging suggestion at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/logger.html did not work for me. I have log4j.properties in my webapp classes ... does this override any other log4j config like in this example? Cheers for any insight into the JNDI problem :) ADC. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
On Thu, 2 Sep 2004 14:32:18 +0100, Allistair Crossley [EMAIL PROTECTED] wrote: Hi Guys Decided to give TC 5.5 / JDK 5 B2 a whirl today with our web application on my local machine and am having some teething troubles; 1/ Jasper has an issue with JSP page imports where the imported packages are not used. This is throwing an exception. Did you look at the generated source ? 2/ Had the error mentioned earlier about ROOT child '' cannot be deployed because it was shared by another context. I just removed the ROOT folder from webapps to get rid of that problem. Does everyone really think it's a good idea to have Context elements in server.xml ? 3/ None of my JNDI resources configured in tomcat.home/conf/Catalina/localhost/mywebapp.xml are being recognised. This was copied direct from my TC 5.0.25 installation ... should this still work? Database JAR is in common/lib. Getting lots of Cannot create JDBC driver of class '' for connect URL 'null' errors and also in STDOUT I noticed the ResourceLink element didn't work at all in 5.5.0: the digester rule was simply missing. Besides that, there could be an issue with the tweaked DBCP, but that would be surprising. WARNING: Error during context /mywebapp restart java.lang.NullPointerException at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1031) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1123) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:729) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1511) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1520) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1500) at java.lang.Thread.run(Thread.java:595) Which happens if the host doesn't have a child with that name, which is not normal. How can you possibly get that ? 4/ The logging suggestion at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/logger.html did not work for me. I have log4j.properties in my webapp classes ... does this override any other log4j config like in this example? That doc page is gone now (it was still linked from very few places). -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
1/ Jasper has an issue with JSP page imports where the imported packages are not used. This is throwing an exception. Did you look at the generated source ? No, I just removed the imports from my JSP that it was complaining about and it went away. Would you like me to put them back in and then look at the generated source for you? 2/ Had the error mentioned earlier about ROOT child '' cannot be deployed because it was shared by another context. I just removed the ROOT folder from webapps to get rid of that problem. Does everyone really think it's a good idea to have Context elements in server.xml ? I don't and I have not. This error occurred with an out of the box server.xml with _no_ Context elements. All I did was have ROOT and my own webapp in the webapps folder and then add mywebapp.xml into the conf/C/l/ folder. I think the clash came because my webapp using a path of which seems to be what ROOT tries to do also. Just removing ROOT from webapps sorts this out. 3/ None of my JNDI resources configured in tomcat.home/conf/Catalina/localhost/mywebapp.xml are being recognised. This was copied direct from my TC 5.0.25 installation ... should this still work? Database JAR is in common/lib. Getting lots of Cannot create JDBC driver of class '' for connect URL 'null' errors and also in STDOUT I noticed the ResourceLink element didn't work at all in 5.5.0: the digester rule was simply missing. Besides that, there could be an issue with the tweaked DBCP, but that would be surprising. Is there anything I can do to get Resources working in the meantime again or shall I wait for the next TC 5.5 release. Which happens if the host doesn't have a child with that name, which is not normal. How can you possibly get that ? No idea :) Like I say I have not touched the server.xml _one bit_ after installation. All I did was add my webapp into webapps and put its config file which just defines jndi resources into conf/C/l. 4/ The logging suggestion at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/logger. html did not work for me. I have log4j.properties in my webapp classes ... does this override any other log4j config like in this example? I'm going to try adding log4j.logger.org.apache.catalina.=debug, STDOUT into my webapp log4j and see what that does but first I need my webapp to work :) If I can be of any help please let me know what you want me to find out.. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
I ran into the same issue with DBCP and JNDI. Jon - Original Message - From: Allistair Crossley [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 02, 2004 8:32 AM Subject: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) Hi Guys Decided to give TC 5.5 / JDK 5 B2 a whirl today with our web application on my local machine and am having some teething troubles; 1/ Jasper has an issue with JSP page imports where the imported packages are not used. This is throwing an exception. 2/ Had the error mentioned earlier about ROOT child '' cannot be deployed because it was shared by another context. I just removed the ROOT folder from webapps to get rid of that problem. 3/ None of my JNDI resources configured in tomcat.home/conf/Catalina/localhost/mywebapp.xml are being recognised. This was copied direct from my TC 5.0.25 installation ... should this still work? Database JAR is in common/lib. Getting lots of Cannot create JDBC driver of class '' for connect URL 'null' errors and also in STDOUT WARNING: Error during context /mywebapp restart java.lang.NullPointerException at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1031) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1123) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:729) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1511) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1520) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1500) at java.lang.Thread.run(Thread.java:595) 4/ The logging suggestion at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/logger.html did not work for me. I have log4j.properties in my webapp classes ... does this override any other log4j config like in this example? Cheers for any insight into the JNDI problem :) ADC. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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]
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
Quoting Allistair Crossley [EMAIL PROTECTED]: 4/ The logging suggestion at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/logger. html did not work for me. I have log4j.properties in my webapp classes ... does this override any other log4j config like in this example? I'm going to try adding log4j.logger.org.apache.catalina.=debug, STDOUT into my webapp log4j and see what that does but first I need my webapp to work :) If I can be of any help please let me know what you want me to find out.. There are two solutions to avoid having the Log4j config in common/classes be separate from your own webapp logging: 1. Include log4j.jar in WEB-INF/lib. This works because Tomcat implements servlet-spec recommended classloading behavior where webapps look locally first to find classes to load before looking to the parent. So, your app will be using one instance of Log4j while Tomcat itself will be using another. 2. Use a repository selector. This is more involved, but greatly simplified in Log4j-1.3 (not released yet). Tomcat could set a repository selector for all applications to use making solution #1 unnecessary. To do it on your own, see (Note that all referenced code supports Log4j-1.2.x, not 1.3 where the design and useage of repository selectors has changed significantly)... http://wiki.apache.org/logging-log4j/AppContainerLogging Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
Hi Remy, 1/ Jasper has an issue with JSP page imports where the imported packages are not used. This is throwing an exception. Did you look at the generated source ? No, I just removed the imports from my JSP that it was complaining about and it went away. Would you like me to put them back in and then look at the generated source for you? Were the imports not actually used if you were able to remove them without problems ? What was the error output ? (why do I have to ask this question ?) OK. The JSP in question is my error page (e.g isErrorPage=true) which prints out the exception in a more aesthetic manner. The reason this page was being thrown at me is because of all the other issues with the JNDI connectivity. Initially when I first started 5.5 the error message was a JasperException telling me that various package imports were not being used. Now, I never thought that was a crime (just not very good programming) but 5.5 decided to blow up because of these imports. Since the imports were not actually used, I decided to remove them from the JSP and this solved the error, and now I can see my nice error page - but remember I am seeing it in the first place because all my database connectivity is broken. I am guessing that as soon as JNDI is fixed and my webapp can proceed to fully start up, quite a number of my JSPs will break due to unused package imports. I am guessing this must be a change in Jasper because 5.0 was happy to render JSPs with unused package imports (as is any Java application code). 2/ Had the error mentioned earlier about ROOT child '' cannot be deployed because it was shared by another context. I just removed the ROOT folder from webapps to get rid of that problem. Does everyone really think it's a good idea to have Context elements in server.xml ? I don't and I have not. This error occurred with an out of the box server.xml with _no_ Context elements. All I did was have ROOT and my own webapp in the webapps folder and then add mywebapp.xml into the conf/C/l/ folder. I think the clash came because my webapp using a path of which seems to be what ROOT tries to do also. Just removing ROOT from webapps sorts this out. You really need to describe issues accurately (I always find your reports extremely weird, unfortunately). I think what you did is that you copied over your existing configuration, which will cause problems. I'm sorry you find my posts weird. I've been unlucky with some of the problems I have had with TC I guess. I do try and do everything properly. Here is an exact description of what I did to cause this problem including my stdout after starting TC. 1. Downloaded 5.5 as zip, installed Java 5 SDK 2. Unzipped to c:\jakarta-tomcat 3. Copied c:\jakarta-tomcat-5.0.25\conf\Catalina\localhost\iq.xml to c:\jakarta-tomcat-5.5.0\conf\Catalina\localhost\iq.xml (this iq.xml file is my web application. It contains my Context as the following header + all my JNDI resources ...) Context path= docBase=/iq reloadable=true 4. Copied c:\jakarta-tomcat-5.0.25\webapps\iq to c:\jakarta-tomcat\webapps\iq 5. Copied my database jTDS JAR into c:\jakarta-tomcat\common\lib\jtds.jar 6. Ran c:\jakarta-tomcat\bin\service.bat ensuring use of new Java 5 SDK 7. Started TC service. 8. Opened STDOUT log ... 02-Sep-2004 16:34:55 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 02-Sep-2004 16:34:55 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1532 ms 02-Sep-2004 16:34:56 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 02-Sep-2004 16:34:56 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.0 02-Sep-2004 16:34:56 org.apache.catalina.core.StandardHost start INFO: XML validation disabled **Start of LogManager static initializer *** configurationOptionStr=log4j.properties log4j:INFO Using URL [file:/C:/jakarta-tomcat/webapps/iq/WEB-INF/classes/log4j.properties] for automatic log4j configuration of repository named [default]. log4j:ERROR Could not find value for key log4j.appender.CoreLogicA log4j:ERROR Could not instantiate appender named CoreLogicA. log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender. log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-email.log log4j:INFO sdf is [EMAIL PROTECTED] log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-stats-content-access.log log4j:INFO sdf is [EMAIL PROTECTED] log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender. log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-app-admin.log log4j:INFO sdf is [EMAIL PROTECTED] log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-dto.log log4j:INFO sdf is [EMAIL PROTECTED] log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender. log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-app-holiday-forms.log
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
As regards the JasperException, I have just placed an unused package import to org.apache.struts back into my error page so that I can post it to you; org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The import org.apache.struts is never used org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:354) org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) org.apache.jasper.compiler.Compiler.compile(Compiler.java:259) org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:538) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637) org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:785) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758) org.apache.jsp.layout.application_jsp._jspService(org.apache.jsp.layout.application_jsp:314) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254) org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.qas.newmedia.common.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:146) -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 02 September 2004 16:15 To: Allistair Crossley Subject: Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) On Thu, 2 Sep 2004 15:11:38 +0100, Allistair Crossley [EMAIL PROTECTED] wrote: 1/ Jasper has an issue with JSP page imports where the imported packages are not used. This is throwing an exception. Did you look at the generated source ? No, I just removed the imports from my JSP that it was complaining about and it went away. Would you like me to put them back in and then look at the generated source for you? Were the imports not actually used if you were able to remove them without problems ? What was the error output ? (why do I have to ask this question ?) 2/ Had the error mentioned earlier about ROOT child '' cannot be deployed because it was shared by another context. I just removed the ROOT folder from webapps to get rid of that problem. Does everyone really think it's a good idea to have Context elements in server.xml ? I don't and I have not. This error occurred with an out of the box server.xml with _no_ Context elements. All I did was have ROOT and my own webapp in the webapps folder and then add mywebapp.xml into the conf/C/l/ folder. I think the clash came because my webapp using a path of which seems to be what ROOT tries to do also. Just removing ROOT from webapps sorts this out. You really need to describe issues accurately (I always find your reports extremely weird, unfortunately). I think what you did is that you copied over your existing configuration, which will cause problems. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com
Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
On Thu, 2 Sep 2004 16:41:14 +0100, Allistair Crossley [EMAIL PROTECTED] wrote: Hi Remy, 1/ Jasper has an issue with JSP page imports where the imported packages are not used. This is throwing an exception. Did you look at the generated source ? No, I just removed the imports from my JSP that it was complaining about and it went away. Would you like me to put them back in and then look at the generated source for you? Were the imports not actually used if you were able to remove them without problems ? What was the error output ? (why do I have to ask this question ?) OK. The JSP in question is my error page (e.g isErrorPage=true) which prints out the exception in a more aesthetic manner. The reason this page was being thrown at me is because of all the other issues with the JNDI connectivity. Initially when I first started 5.5 the error message was a JasperException telling me that various package imports were not being used. Now, I never thought that was a crime (just not very good programming) but 5.5 decided to blow up because of these imports. Since the imports were not actually used, I decided to remove them from the JSP and this solved the error, and now I can see my nice error page - but remember I am seeing it in the first place because all my database connectivity is broken. I am guessing that as soon as JNDI is fixed and my webapp can proceed to fully start up, quite a number of my JSPs will break due to unused package imports. I am guessing this must be a change in Jasper because 5.0 was happy to render JSPs with unused package imports (as is any Java application code). I think the warnings are interpreted as errors then. 2/ Had the error mentioned earlier about ROOT child '' cannot be deployed because it was shared by another context. I just removed the ROOT folder from webapps to get rid of that problem. Does everyone really think it's a good idea to have Context elements in server.xml ? I don't and I have not. This error occurred with an out of the box server.xml with _no_ Context elements. All I did was have ROOT and my own webapp in the webapps folder and then add mywebapp.xml into the conf/C/l/ folder. I think the clash came because my webapp using a path of which seems to be what ROOT tries to do also. Just removing ROOT from webapps sorts this out. You really need to describe issues accurately (I always find your reports extremely weird, unfortunately). I think what you did is that you copied over your existing configuration, which will cause problems. I'm sorry you find my posts weird. I've been unlucky with some of the problems I have had with TC I guess. I do try and do everything properly. Here is an exact description of what I did to cause this problem including my stdout after starting TC. 1. Downloaded 5.5 as zip, installed Java 5 SDK 2. Unzipped to c:\jakarta-tomcat 3. Copied c:\jakarta-tomcat-5.0.25\conf\Catalina\localhost\iq.xml to c:\jakarta-tomcat-5.5.0\conf\Catalina\localhost\iq.xml (this iq.xml file is my web application. It contains my Context as the following header + all my JNDI resources ...) Context path= docBase=/iq reloadable=true 4. Copied c:\jakarta-tomcat-5.0.25\webapps\iq to c:\jakarta-tomcat\webapps\iq 5. Copied my database jTDS JAR into c:\jakarta-tomcat\common\lib\jtds.jar 6. Ran c:\jakarta-tomcat\bin\service.bat ensuring use of new Java 5 SDK 7. Started TC service. 8. Opened STDOUT log ... 02-Sep-2004 16:34:55 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 02-Sep-2004 16:34:55 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1532 ms 02-Sep-2004 16:34:56 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 02-Sep-2004 16:34:56 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.0 02-Sep-2004 16:34:56 org.apache.catalina.core.StandardHost start INFO: XML validation disabled **Start of LogManager static initializer *** configurationOptionStr=log4j.properties log4j:INFO Using URL [file:/C:/jakarta-tomcat/webapps/iq/WEB-INF/classes/log4j.properties] for automatic log4j configuration of repository named [default]. log4j:ERROR Could not find value for key log4j.appender.CoreLogicA log4j:ERROR Could not instantiate appender named CoreLogicA. log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender. log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-email.log log4j:INFO sdf is [EMAIL PROTECTED] log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-stats-content-access.log log4j:INFO sdf is [EMAIL PROTECTED] log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender. log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-app-admin.log log4j:INFO sdf is [EMAIL PROTECTED] log4j:INFO fileane is c:/jakarta
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
Did you change the jdk (vendor/version) ? As this looks more like an error message that's generated by the java compiler (jvac, jikes, ...). -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 5:47 PM To: Remy Maucherat; [EMAIL PROTECTED] Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) As regards the JasperException, I have just placed an unused package import to org.apache.struts back into my error page so that I can post it to you; org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The import org.apache.struts is never used - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
yes, TC 5.5 needs Java 5.0 SDK. Remy also suggested privately that this must be the cause, that the warnings given by the compiler are being interpreted by Jasper as exceptions... About that, I think it's that the warnings are reported as issues by the compiler, and so Jasper thinks the compilation failed (new compiler = brand new integration = a few stupid bugs). ADC -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: 02 September 2004 17:05 To: Tomcat Users List Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) Did you change the jdk (vendor/version) ? As this looks more like an error message that's generated by the java compiler (jvac, jikes, ...). -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 5:47 PM To: Remy Maucherat; [EMAIL PROTECTED] Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) As regards the JasperException, I have just placed an unused package import to org.apache.struts back into my error page so that I can post it to you; org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The import org.apache.struts is never used - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
Hi, Well, Tomcat 5.5 uses the Eclipse JDT compiler for JSPs. I think we mistakenly treat the compiler warnings as errors in 5.5.0, and Remy's fixed it for 5.5.1. Yoav Shapira Millennium Research Informatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 12:05 PM To: Tomcat Users List Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) Did you change the jdk (vendor/version) ? As this looks more like an error message that's generated by the java compiler (jvac, jikes, ...). -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 5:47 PM To: Remy Maucherat; [EMAIL PROTECTED] Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) As regards the JasperException, I have just placed an unused package import to org.apache.struts back into my error page so that I can post it to you; org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The import org.apache.struts is never used - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
:p cool, thanks Remy! ADC -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 02 September 2004 17:01 To: [EMAIL PROTECTED] Subject: Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) On Thu, 2 Sep 2004 16:41:14 +0100, Allistair Crossley [EMAIL PROTECTED] wrote: Hi Remy, 1/ Jasper has an issue with JSP page imports where the imported packages are not used. This is throwing an exception. Did you look at the generated source ? No, I just removed the imports from my JSP that it was complaining about and it went away. Would you like me to put them back in and then look at the generated source for you? Were the imports not actually used if you were able to remove them without problems ? What was the error output ? (why do I have to ask this question ?) OK. The JSP in question is my error page (e.g isErrorPage=true) which prints out the exception in a more aesthetic manner. The reason this page was being thrown at me is because of all the other issues with the JNDI connectivity. Initially when I first started 5.5 the error message was a JasperException telling me that various package imports were not being used. Now, I never thought that was a crime (just not very good programming) but 5.5 decided to blow up because of these imports. Since the imports were not actually used, I decided to remove them from the JSP and this solved the error, and now I can see my nice error page - but remember I am seeing it in the first place because all my database connectivity is broken. I am guessing that as soon as JNDI is fixed and my webapp can proceed to fully start up, quite a number of my JSPs will break due to unused package imports. I am guessing this must be a change in Jasper because 5.0 was happy to render JSPs with unused package imports (as is any Java application code). I think the warnings are interpreted as errors then. 2/ Had the error mentioned earlier about ROOT child '' cannot be deployed because it was shared by another context. I just removed the ROOT folder from webapps to get rid of that problem. Does everyone really think it's a good idea to have Context elements in server.xml ? I don't and I have not. This error occurred with an out of the box server.xml with _no_ Context elements. All I did was have ROOT and my own webapp in the webapps folder and then add mywebapp.xml into the conf/C/l/ folder. I think the clash came because my webapp using a path of which seems to be what ROOT tries to do also. Just removing ROOT from webapps sorts this out. You really need to describe issues accurately (I always find your reports extremely weird, unfortunately). I think what you did is that you copied over your existing configuration, which will cause problems. I'm sorry you find my posts weird. I've been unlucky with some of the problems I have had with TC I guess. I do try and do everything properly. Here is an exact description of what I did to cause this problem including my stdout after starting TC. 1. Downloaded 5.5 as zip, installed Java 5 SDK 2. Unzipped to c:\jakarta-tomcat 3. Copied c:\jakarta-tomcat-5.0.25\conf\Catalina\localhost\iq.xml to c:\jakarta-tomcat-5.5.0\conf\Catalina\localhost\iq.xml (this iq.xml file is my web application. It contains my Context as the following header + all my JNDI resources ...) Context path= docBase=/iq reloadable=true 4. Copied c:\jakarta-tomcat-5.0.25\webapps\iq to c:\jakarta-tomcat\webapps\iq 5. Copied my database jTDS JAR into c:\jakarta-tomcat\common\lib\jtds.jar 6. Ran c:\jakarta-tomcat\bin\service.bat ensuring use of new Java 5 SDK 7. Started TC service. 8. Opened STDOUT log ... 02-Sep-2004 16:34:55 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 02-Sep-2004 16:34:55 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1532 ms 02-Sep-2004 16:34:56 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 02-Sep-2004 16:34:56 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.0 02-Sep-2004 16:34:56 org.apache.catalina.core.StandardHost start INFO: XML validation disabled **Start of LogManager static initializer *** configurationOptionStr=log4j.properties log4j:INFO Using URL [file:/C:/jakarta-tomcat/webapps/iq/WEB-INF/classes/log4j.prop erties] for automatic log4j configuration of repository named [default]. log4j:ERROR Could not find value for key log4j.appender.CoreLogicA log4j:ERROR Could not instantiate appender named CoreLogicA. log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender. log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-email.log log4j:INFO sdf is [EMAIL PROTECTED
Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
On Thu, 2 Sep 2004 12:05:13 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Well, Tomcat 5.5 uses the Eclipse JDT compiler for JSPs. I think we mistakenly treat the compiler warnings as errors in 5.5.0, and Remy's fixed it for 5.5.1. Right, it's fixed now. Thanks for the testing. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
Where can we get 5.5.1? Or 5.5 nightlies? .V Shapira, Yoav wrote: Hi, Well, Tomcat 5.5 uses the Eclipse JDT compiler for JSPs. I think we mistakenly treat the compiler warnings as errors in 5.5.0, and Remy's fixed it for 5.5.1. Yoav Shapira Millennium Research Informatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 12:05 PM To: Tomcat Users List Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) Did you change the jdk (vendor/version) ? As this looks more like an error message that's generated by the java compiler (jvac, jikes, ...). -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 5:47 PM To: Remy Maucherat; [EMAIL PROTECTED] Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) As regards the JasperException, I have just placed an unused package import to org.apache.struts back into my error page so that I can post it to you; org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The import org.apache.struts is never used - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- Please post on Rich Internet Applications User Interface (RiA/SoA) http://www.portalvu.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
Hi, It needs JRE 5.0 (not SDK or JDK, this is a big difference), and can run on 1.4. 5.5.1 is not out yet, give it a couple of days as we fix this first round of bugs reported for 5.5.0 and add more enhancements. Changes are being committed to CVS HEAD if you want to build a release yourself of course. For people who want nightlies or Gump builds, check http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/ and http://brutus.apache.org/gump/public/buildLog.html, but you're on your own with these pretty much ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 12:07 PM To: Tomcat Users List Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) yes, TC 5.5 needs Java 5.0 SDK. Remy also suggested privately that this must be the cause, that the warnings given by the compiler are being interpreted by Jasper as exceptions... About that, I think it's that the warnings are reported as issues by the compiler, and so Jasper thinks the compilation failed (new compiler = brand new integration = a few stupid bugs). ADC -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: 02 September 2004 17:05 To: Tomcat Users List Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) Did you change the jdk (vendor/version) ? As this looks more like an error message that's generated by the java compiler (jvac, jikes, ...). -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 5:47 PM To: Remy Maucherat; [EMAIL PROTECTED] Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) As regards the JasperException, I have just placed an unused package import to org.apache.struts back into my error page so that I can post it to you; org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The import org.apache.struts is never used - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED] wrote: Where can we get 5.5.1? Or 5.5 nightlies? Don't worry: since this is heavy development mode, new binaries are going to be released often (unless Yoav doesn't have time to do the releases). -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
Hi, For this, I have time -- I figure on at least one release per week ;) But it's only been one day since 5.5.0 ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 1:31 PM To: Tomcat Users List Subject: Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging) On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED] wrote: Where can we get 5.5.1? Or 5.5 nightlies? Don't worry: since this is heavy development mode, new binaries are going to be released often (unless Yoav doesn't have time to do the releases). -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
Yes, but where? What URL? (the commons download link I think is for the 5.0 trunk? or is that 5.5?) .V ps: Thax tomcat team on very nice product! Remy Maucherat wrote: On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED] wrote: Where can we get 5.5.1? Or 5.5 nightlies? Don't worry: since this is heavy development mode, new binaries are going to be released often (unless Yoav doesn't have time to do the releases). -- Please post on Rich Internet Applications User Interface (RiA/SoA) http://www.portalvu.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with Jasper and ojspc
Hello folks, i´ve just compiled all my jsp pages in a jar file, in tomcat-4.1.29 its fine as usual, but if i try to deploy my webappication in Oracle Application Server-10g, it doesn´t execute my pages properly. I don´t know what is going wrong, the JDK is the same ( j2sdk1.4.2-05b ), OS ( linux ), the specification Servlets 2.2, but OAS cannot run a Jasper pre-compiled page ( even a very simple Hello World ). Doe anyone here know why? Regards, Edson
RE: Problems with Jasper and ojspc
Hi, Tomcat 4.x implements the Servlet Specification v2.3 and the JSP Specification v1.1. It's not guaranteed that code produced on Jasper on Tomcat 4.x will run on a servlet container that doesn't support those specification versions. Yoav Shapira Millennium Research Informatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:44 PM To: Tomcat-User List (E-mail) Subject: Problems with Jasper and ojspc Hello folks, i´ve just compiled all my jsp pages in a jar file, in tomcat-4.1.29 its fine as usual, but if i try to deploy my webappication in Oracle Application Server-10g, it doesn´t execute my pages properly. I don´t know what is going wrong, the JDK is the same ( j2sdk1.4.2-05b ), OS ( linux ), the specification Servlets 2.2, but OAS cannot run a Jasper pre-compiled page ( even a very simple Hello World ). Doe anyone here know why? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jasper exception in jsp -- please help..
org.apache.jasper.JasperException: /BillingInfo.jsp(1,16) quote symbol expected I am getting the above error, i am using struts tags in my BillingInfo.jsp. Below is my BillingInfo.jsp... %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html head titleBilling User Registration/title /head body h1Customer Billing Information/h1 html:errors/ table html:form action=BillingInfo tr td bean:message key=BillingInfo.firstName /* /td td html:text property=firstName / /td /tr td bean:message key=BillingInfo.lastName /* /td td html:text property=lastName / /td tr td html:submit / /td td html:cancel / /td /tr /html:form /table /body == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jasper exception in jsp -- please help..
Hmm the jsp appears to be alright. What's in your application.properties file for properties used in the html:errors/ tag? Shilpa Nalgonda wrote: org.apache.jasper.JasperException: /BillingInfo.jsp(1,16) quote symbol expected I am getting the above error, i am using struts tags in my BillingInfo.jsp. Below is my BillingInfo.jsp... %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html head titleBilling User Registration/title /head body h1Customer Billing Information/h1 html:errors/ table html:form action=BillingInfo tr td bean:message key=BillingInfo.firstName /* /td td html:text property=firstName / /td /tr td bean:message key=BillingInfo.lastName /* /td td html:text property=lastName / /td tr td html:submit / /td td html:cancel / /td /tr /html:form /table /body == - 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]
RE: jasper exception in jsp -- please help..
this is my application.properties file.. == # -- standard errors -- errors.header=UL errors.prefix=LI errors.suffix=/LI errors.footer=/UL # -- validator -- errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. errors.byte={0} must be an byte. errors.date={0} is not a date. errors.double={0} must be an double. errors.float={0} must be an float. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.short={0} must be an short. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. # -- other -- errors.cancel=Operation cancelled. errors.detail={0} errors.general=The process did not complete. Details should follow. errors.token=Request could not be completed. Operation is not in sequence. # -- welcome -- welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's webapp folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.) BillingInfo.firstName=First Name BillingInfo.lastName=Last Name === -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:02 AM To: Tomcat Users List Subject: Re: jasper exception in jsp -- please help.. Hmm the jsp appears to be alright. What's in your application.properties file for properties used in the html:errors/ tag? Shilpa Nalgonda wrote: org.apache.jasper.JasperException: /BillingInfo.jsp(1,16) quote symbol expected I am getting the above error, i am using struts tags in my BillingInfo.jsp. Below is my BillingInfo.jsp... %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html head titleBilling User Registration/title /head body h1Customer Billing Information/h1 html:errors/ table html:form action=BillingInfo tr td bean:message key=BillingInfo.firstName /* /td td html:text property=firstName / /td /tr td bean:message key=BillingInfo.lastName /* /td td html:text property=lastName / /td tr td html:submit / /td td html:cancel / /td /tr /html:form /table /body == - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jasper exception in jsp -- please help..
Well... worth a shot. This appears to be the stock, standard application.properties file. Got me. I even ran this snippet through an XML validator and other than missing tr.../tr around the row for lastname and a missing /html ending tag, everything is good. Maybe check the original file for fancy curly quotes in a place that should have straight double quotes. I'm willing to bet it's a something really small that didn't translate to your email post. --David Shilpa Nalgonda wrote: this is my application.properties file.. == # -- standard errors -- errors.header=UL errors.prefix=LI errors.suffix=/LI errors.footer=/UL # -- validator -- errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. errors.byte={0} must be an byte. errors.date={0} is not a date. errors.double={0} must be an double. errors.float={0} must be an float. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.short={0} must be an short. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. # -- other -- errors.cancel=Operation cancelled. errors.detail={0} errors.general=The process did not complete. Details should follow. errors.token=Request could not be completed. Operation is not in sequence. # -- welcome -- welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's webapp folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.) BillingInfo.firstName=First Name BillingInfo.lastName=Last Name === -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:02 AM To: Tomcat Users List Subject: Re: jasper exception in jsp -- please help.. Hmm the jsp appears to be alright. What's in your application.properties file for properties used in the html:errors/ tag? Shilpa Nalgonda wrote: org.apache.jasper.JasperException: /BillingInfo.jsp(1,16) quote symbol expected I am getting the above error, i am using struts tags in my BillingInfo.jsp. Below is my BillingInfo.jsp... %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html head titleBilling User Registration/title /head body h1Customer Billing Information/h1 html:errors/ table html:form action=BillingInfo tr td bean:message key=BillingInfo.firstName /* /td td html:text property=firstName / /td /tr td bean:message key=BillingInfo.lastName /* /td td html:text property=lastName / /td tr td html:submit / /td td html:cancel / /td /tr /html:form /table /body == - 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] - 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]
RE: jasper exception in jsp -- please help..
yeah, that helped just by adding closing html and missing tr tags...thanks for ur help. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:33 AM To: Tomcat Users List Subject: Re: jasper exception in jsp -- please help.. Well... worth a shot. This appears to be the stock, standard application.properties file. Got me. I even ran this snippet through an XML validator and other than missing tr.../tr around the row for lastname and a missing /html ending tag, everything is good. Maybe check the original file for fancy curly quotes in a place that should have straight double quotes. I'm willing to bet it's a something really small that didn't translate to your email post. --David Shilpa Nalgonda wrote: this is my application.properties file.. == # -- standard errors -- errors.header=UL errors.prefix=LI errors.suffix=/LI errors.footer=/UL # -- validator -- errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. errors.byte={0} must be an byte. errors.date={0} is not a date. errors.double={0} must be an double. errors.float={0} must be an float. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.short={0} must be an short. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. # -- other -- errors.cancel=Operation cancelled. errors.detail={0} errors.general=The process did not complete. Details should follow. errors.token=Request could not be completed. Operation is not in sequence. # -- welcome -- welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's webapp folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.) BillingInfo.firstName=First Name BillingInfo.lastName=Last Name === -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:02 AM To: Tomcat Users List Subject: Re: jasper exception in jsp -- please help.. Hmm the jsp appears to be alright. What's in your application.properties file for properties used in the html:errors/ tag? Shilpa Nalgonda wrote: org.apache.jasper.JasperException: /BillingInfo.jsp(1,16) quote symbol expected I am getting the above error, i am using struts tags in my BillingInfo.jsp. Below is my BillingInfo.jsp... %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html head titleBilling User Registration/title /head body h1Customer Billing Information/h1 html:errors/ table html:form action=BillingInfo tr td bean:message key=BillingInfo.firstName /* /td td html:text property=firstName / /td /tr td bean:message key=BillingInfo.lastName /* /td td html:text property=lastName / /td tr td html:submit / /td td html:cancel / /td /tr /html:form /table /body == - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jasper exception in jsp -- please help..
Cool. I would never have suspected missing tags to cause that error. Glad to help. --David Shilpa Nalgonda wrote: yeah, that helped just by adding closing html and missing tr tags...thanks for ur help. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:33 AM To: Tomcat Users List Subject: Re: jasper exception in jsp -- please help.. Well... worth a shot. This appears to be the stock, standard application.properties file. Got me. I even ran this snippet through an XML validator and other than missing tr.../tr around the row for lastname and a missing /html ending tag, everything is good. Maybe check the original file for fancy curly quotes in a place that should have straight double quotes. I'm willing to bet it's a something really small that didn't translate to your email post. --David Shilpa Nalgonda wrote: this is my application.properties file.. == # -- standard errors -- errors.header=UL errors.prefix=LI errors.suffix=/LI errors.footer=/UL # -- validator -- errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. errors.byte={0} must be an byte. errors.date={0} is not a date. errors.double={0} must be an double. errors.float={0} must be an float. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.short={0} must be an short. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. # -- other -- errors.cancel=Operation cancelled. errors.detail={0} errors.general=The process did not complete. Details should follow. errors.token=Request could not be completed. Operation is not in sequence. # -- welcome -- welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's webapp folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.) BillingInfo.firstName=First Name BillingInfo.lastName=Last Name === -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:02 AM To: Tomcat Users List Subject: Re: jasper exception in jsp -- please help.. Hmm the jsp appears to be alright. What's in your application.properties file for properties used in the html:errors/ tag? Shilpa Nalgonda wrote: org.apache.jasper.JasperException: /BillingInfo.jsp(1,16) quote symbol expected I am getting the above error, i am using struts tags in my BillingInfo.jsp. Below is my BillingInfo.jsp... %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html head titleBilling User Registration/title /head body h1Customer Billing Information/h1 html:errors/ table html:form action=BillingInfo tr td bean:message key=BillingInfo.firstName /* /td td html:text property=firstName / /td /tr td bean:message key=BillingInfo.lastName /* /td td html:text property=lastName / /td tr td html:submit / /td td html:cancel / /td /tr /html:form /table /body == - 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] - 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] - 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]
RE: jasper exception in jsp -- please help..
Missing tags/end tags can wreak havoc on a page. When I first got started on this, I admit to being a tad sloppy. Hey, it worked in BrandXBrowser, move on. Well, not good... Now I try to express everything, if doc says such-and-such tag is assumed or default or something I put it in anyway. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:57 To: Tomcat Users List Subject: Re: jasper exception in jsp -- please help.. Cool. I would never have suspected missing tags to cause that error. Glad to help. --David Shilpa Nalgonda wrote: yeah, that helped just by adding closing html and missing tr tags...thanks for ur help. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:33 AM To: Tomcat Users List Subject: Re: jasper exception in jsp -- please help.. Well... worth a shot. This appears to be the stock, standard application.properties file. Got me. I even ran this snippet through an XML validator and other than missing tr.../tr around the row for lastname and a missing /html ending tag, everything is good. Maybe check the original file for fancy curly quotes in a place that should have straight double quotes. I'm willing to bet it's a something really small that didn't translate to your email post. --David Shilpa Nalgonda wrote: this is my application.properties file.. == # -- standard errors -- errors.header=UL errors.prefix=LI errors.suffix=/LI errors.footer=/UL # -- validator -- errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. errors.byte={0} must be an byte. errors.date={0} is not a date. errors.double={0} must be an double. errors.float={0} must be an float. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.short={0} must be an short. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. # -- other -- errors.cancel=Operation cancelled. errors.detail={0} errors.general=The process did not complete. Details should follow. errors.token=Request could not be completed. Operation is not in sequence. # -- welcome -- welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's webapp folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.) BillingInfo.firstName=First Name BillingInfo.lastName=Last Name === -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:02 AM To: Tomcat Users List Subject: Re: jasper exception in jsp -- please help.. Hmm the jsp appears to be alright. What's in your application.properties file for properties used in the html:errors/ tag? Shilpa Nalgonda wrote: org.apache.jasper.JasperException: /BillingInfo.jsp(1,16) quote symbol expected I am getting the above error, i am using struts tags in my BillingInfo.jsp. Below is my BillingInfo.jsp... %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html head titleBilling User Registration/title /head body h1Customer Billing Information/h1 html:errors/ table html:form action=BillingInfo tr td bean:message key=BillingInfo.firstName /* /td td html:text property=firstName / /td /tr td bean:message key=BillingInfo.lastName /* /td td html:text property=lastName / /td tr td html:submit / /td td html:cancel / /td /tr /html:form /table /body = = - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail
Jasper XML encoding support
Hi I'm using tomcat-4.1.30 on a Japanese windows machine. I believe I found a problem with the way XML JSP syntax is handled in Jasper. It seems the 'encoding' attribute in the ?xml declaration is not taken into account. I searched the lists for no avail on this specific pb, and then dug into the code: In org.apache.jasper.compiler.ParserController#figureOutJspDocument() there is this comment: // Figure out the encoding of the page // FIXME: We assume xml parser will take care of // encoding for page in XML syntax. Correct? This is correct if you feed the XML parser with a bare InputStream (i.e. if your InputSource is built around an InputStream). However, the ParserController build an InputStreamReader based on the default encoding (ISO-8859-1), which ends up beeing the InputSource base stream (see JspDocumentParser#parse). In this case, it seems that the XML parser (Xerces in my case) assumes the encoding of the stream is correct, instead of trying to figure it out of the xml declaration. Also, it seems the jsp:directive.page encoding=.../ is not properly taken into account. The Compiler#generateJava method will first setup the ServletWriter with the default encoding (UTF-8) and then call Validator#validate() which is responsible for handling the page directives. So the writer is already configured with UTF-8 at the time the real encoding is read. Am I mis-unterpreting the specs or code ? Anybody had problems with encodings in Jasper ? /zog _ Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
obtaining Jasper errors
Hi, Sometimes when I include a JSP file like so: try { getServletConfig().getServletContext().getRequestDispatcher(jsp).include(request, response); } catch (Exception e) { log.errror(Unable to include JSP); } I get an error during JSP page compilation or including and the error is usually in the logs/localhost_log... file not in catalina.out. I would like to programatically get the exception to display on the screen-- is there a special variable that is passed with this information that I can retrieve? Thanks, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
%@ include % files and Jasper/Ant
I'm trying to use Ant (in stand-alone fashion) to build a set of JSPs. The JSPs compile, execute and serve up HTML fine when compiled under Tomcat 5.0.25; only the root JSPs generate .java files. Eg. FileA.jsp contains a %@ include=FileB.jsp % directive. When requested through the Tomcat web server, only FileA_jsp.java and FileA_jsp.class are created. However, when I run Ant (or JspC) from the command line (using the sample from http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Web Application Compilation for build.xml), it creates both FileA_jsp.java and FileB_jsp.java. The build then fails because FileB_jsp.java's compilation, by itself fails without having the context of being code included in FileA. How do Jasper/Ant running behind the scenes under the Tomcat webserver know not to emit and compile the dependent files? And why would Jasper/Ant running standalone (I'm using Ant 1.6.1 as-is from the .ZIP distribution) NOT produce same output? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: %@ include % files and Jasper/Ant
This is an ant script I wrote to precompile JSPs for tomcat, the benefit of this script, vs the regular precompile, is that is compiles files into the tomcat work folder, so there are no additions needed in web.xml and you can reload JSP files, and at the same time have the benefit of precompiled performance. http://cvs.apache.org/~fhanik/precompile.html we have tons of include statements and they work fine. Not that this answers your question, but it may give you a better alternative Filip - Original Message - From: Robert Hunt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 08, 2004 2:27 PM Subject: %@ include % files and Jasper/Ant I'm trying to use Ant (in stand-alone fashion) to build a set of JSPs. The JSPs compile, execute and serve up HTML fine when compiled under Tomcat 5.0.25; only the root JSPs generate .java files. Eg. FileA.jsp contains a %@ include=FileB.jsp % directive. When requested through the Tomcat web server, only FileA_jsp.java and FileA_jsp.class are created. However, when I run Ant (or JspC) from the command line (using the sample from http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Web Application Compilation for build.xml), it creates both FileA_jsp.java and FileB_jsp.java. The build then fails because FileB_jsp.java's compilation, by itself fails without having the context of being code included in FileA. How do Jasper/Ant running behind the scenes under the Tomcat webserver know not to emit and compile the dependent files? And why would Jasper/Ant running standalone (I'm using Ant 1.6.1 as-is from the .ZIP distribution) NOT produce same output? - 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]
Re: %@ include % files and Jasper/Ant
Thanks for the reply Filip, but no, that doesn't answer the question nor does it solve the issue; the emitted dependent files still trigger compilation problems. However, I *do* like how your tomcat-precompile-jsp.xml handily precompiles JSPs as Tomcat would. Very nice. So, the question remains: How do Jasper/Ant running behind the scenes under the Tomcat webserver know *NOT* to emit (and thus compile) the dependent files? And why would Jasper/Ant running standalone (I'm using Ant 1.6.1 as-is from the .ZIP distribution) NOT produce same output? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: %@ include % files and Jasper/Ant
Tomcat compiles pages as needed. So if someone hits File.jsp, the FileA_jsp.java file is created and compiled. If you were to hit FileB.jsp, Tomcat would try to compile it and get the compile errors. Your ant job is no doubt trying to compile all the .jsp files, causing your compile errors. Try giving FileB.jsp a different extension. Layton -Original Message- From: Robert Hunt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 11:28 AM To: [EMAIL PROTECTED] Subject: %@ include % files and Jasper/Ant Importance: High I'm trying to use Ant (in stand-alone fashion) to build a set of JSPs. The JSPs compile, execute and serve up HTML fine when compiled under Tomcat 5.0.25; only the root JSPs generate .java files. Eg. FileA.jsp contains a %@ include=FileB.jsp % directive. When requested through the Tomcat web server, only FileA_jsp.java and FileA_jsp.class are created. However, when I run Ant (or JspC) from the command line (using the sample from http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Web Application Compilation for build.xml), it creates both FileA_jsp.java and FileB_jsp.java. The build then fails because FileB_jsp.java's compilation, by itself fails without having the context of being code included in FileA. How do Jasper/Ant running behind the scenes under the Tomcat webserver know not to emit and compile the dependent files? And why would Jasper/Ant running standalone (I'm using Ant 1.6.1 as-is from the .ZIP distribution) NOT produce same output? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: %@ include % files and Jasper/Ant
Thanks Layton. Makes sense. Looking back now, when I read the Jasper How-to page (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html) the implication (at least, how I comprehended it) was that Jasper would produce the same output including the seemingly prescient ability of compiling only what's needed. I'll change the extensions or place them in a subdir (adding the appropriate exclusions to the build xml). Now, if only someone would pay attention to Classloader behavior in 5.0.25 5.0.16 (104699) -- RH From: Berry, Layton Tomcat compiles pages as needed. So if someone hits File.jsp, the FileA_jsp.java file is created and compiled. If you were to hit FileB.jsp, Tomcat would try to compile it and get the compile errors. Your ant job is no doubt trying to compile all the .jsp files, causing your compile errors. Try giving FileB.jsp a different extension. Layton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: %@ include % files and Jasper/Ant
Filip Hanik - Dev wrote: This is an ant script I wrote to precompile JSPs for tomcat, http://cvs.apache.org/~fhanik/precompile.html I have an ant script very similar to this but it does not report JSP errors in the same way as when compiled under tomcat. Is there any way to get jasper to report errors when used in standalone mode? Cheers, -- simon colston - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp:useBean problem (bug?) with Jasper
We are using an ant task to precompile our JSP's. Since we have switched from 5.0.19 to 5.0.25 on our development environment, many JSP files that use the jsp:useBean tag no longer compile. The error I'm getting is: BUILD FAILED: /compile/project/build.xml:209: org.apache.jasper.JasperException: file:/tmp/output/ROOT/jsp/monitor/monitor.jsp(6,0) The value for the useBean class attribute com.example.AccountingBean is invalid. I know that this kind of error occurs when there is no no-argument constructor in the Bean. The AccountingBean does have a constructor, but it is a no-argument constructor. If I remove the constructor from the Bean, the JSP can be compiled normally. If I use the jasper-compiler.jar from 5.0.19 instead of the one that comes with 5.0.25, everything compiles normally. Am I right to conclude that this is a bug in jasper-compiler? Michiel Example code: monitor.jsp -- jsp:useBean id=widget scope=request class=nl.bibit.internal.accounting.admin.AccountingWidgetBean / -- com.example.AccountingBean.java - public class AccountingBean { public AccountingBean() { isTest = true; } ... } - -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat compile vs. jspc/jasper compile (was: 0 length .java files generated by jspc?)
Hi, way. The bug fix seems to indicate the any exception should be rethrown so I expected to see it. It seems that the old -v option (for verbose ouput, i.e. -v4, -v9, etc.) for jspc is no longer valid. Is there a new option that will possibly produce more output? I don't know, you'd have to look through the JSPC code (it's in the jakarta-tomcat-jasper CVS module). Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat compile vs. jspc/jasper compile (was: 0 length .java files generated by jspc?)
First off, the 0 length Java files are due to a bug in the Tomcat jspc compiler documented in this post: http://junlu.com/msg/41035.html Secondly I discovered that if I keep the JSP around and then simply access it through a browser Tomcat compiles the JSP correctly and I end up with a valid .java and .class file. So I have two questions: 1. Is there a way to see the exact command syntax that Tomcat uses to compile the JSP (classpath and all)? I'm assuming it doesn't used the jspc.sh script since that is what I'm using to precompile it and it keeps failing. 2. Is there another way, besides the method listed in the post above (which didn't seem to work), to see the compile errors generated by jspc? None print out when I submit my compile command and even with the options used above all I get is a file stating Error in File: /RecordJSPs/DOM/QMNUSRC/PWRLOCK/PWRLOCK.jsp which isn't very helpful. Thanks, Jason __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]