JSP Compilation Problem
Hi! When I create a new JSP file in tomcat 5.0.24 and try to run it, the Tomcat send me this error: 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/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/intranet/org/apache/jsp/web/Test_jsp.java:7: org.apache.jsp.web.Test_jsp is not abstract and does not override abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase public final class Test_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:306) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398) [...] The jsp file is Test.jsp. I don try to compile it manually; that error appear when Tomcat try to compile it. I try clean work/ directory; no sucess. I try to change to newest Tomcat binary: no sucess. And, it occur in only one context. If I create another context, create a new .jsp file, all works ok. I make searches in Google, but nothing resolve my problem. Thanks the attention! -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Compilation Problem
1) try a newer version 2) you might have older jasper libraries in your path -Tim Rodrigo Avila wrote: Hi! When I create a new JSP file in tomcat 5.0.24 and try to run it, the Tomcat send me this error: 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/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/intranet/org/apache/jsp/web/Test_jsp.java:7: org.apache.jsp.web.Test_jsp is not abstract and does not override abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase public final class Test_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:306) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398) [...] The jsp file is Test.jsp. I don try to compile it manually; that error appear when Tomcat try to compile it. I try clean work/ directory; no sucess. I try to change to newest Tomcat binary: no sucess. And, it occur in only one context. If I create another context, create a new .jsp file, all works ok. I make searches in Google, but nothing resolve my problem. Thanks the attention! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Compilation Problem
Oh, my God... Idiot! I have in my classpath the jasper-runtime.jar (I use it in the Eclipse classpath)... duh! Clouse, it works now! Thanks the attention! On Thu, 03 Feb 2005 09:25:29 -0500, Tim Funk [EMAIL PROTECTED] wrote: 1) try a newer version 2) you might have older jasper libraries in your path -Tim Rodrigo Avila wrote: Hi! When I create a new JSP file in tomcat 5.0.24 and try to run it, the Tomcat send me this error: 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/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/intranet/org/apache/jsp/web/Test_jsp.java:7: org.apache.jsp.web.Test_jsp is not abstract and does not override abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase public final class Test_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:306) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398) [...] The jsp file is Test.jsp. I don try to compile it manually; that error appear when Tomcat try to compile it. I try clean work/ directory; no sucess. I try to change to newest Tomcat binary: no sucess. And, it occur in only one context. If I create another context, create a new .jsp file, all works ok. I make searches in Google, but nothing resolve my problem. Thanks the attention! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: JSP compilation problem
As QM mentioned, Tomcat 5.0 doesn't support Java 5.0 out of the box, so to speak. I believe there's a patch you need to make them play nicely. Tomcat 5.5, as he pointed out, is very tight with Java 5.0. -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Users Listtomcat-user@jakarta.apache.org Date: Sun Jan 02 11:46:49 PST 2005 Subject: Re: JSP compilation problem Very interesting... Switching to JDK 1.4.2 solved the problem. I didn't even do an uninstall/reinstall... I always install my SDK to c:\java, so all I did was rename it and copy the directory over from another PC, so any paths and registry settings should still be valid, there's just an older version in it's place. I made sure to delete the Tomcat work folder for the app, started up Tomcat and tried it, everything worked fine... JSP class was generared, servlet compiled, and page came up, no problem. So... Is there actually a problem using JDK 5.0 with Tomcat 5.0.29? If so, what version of Tomcat is OK with 5.0? (assuming any are, which I DO assume). Or is this just some sort of fluke situation? In any case, my problem is solved, and that was the resolution. ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
Very interesting... Switching to JDK 1.4.2 solved the problem. I didn't even do an uninstall/reinstall... I always install my SDK to c:\java, so all I did was rename it and copy the directory over from another PC, so any paths and registry settings should still be valid, there's just an older version in it's place. I made sure to delete the Tomcat work folder for the app, started up Tomcat and tried it, everything worked fine... JSP class was generared, servlet compiled, and page came up, no problem. So... Is there actually a problem using JDK 5.0 with Tomcat 5.0.29? If so, what version of Tomcat is OK with 5.0? (assuming any are, which I DO assume). Or is this just some sort of fluke situation? In any case, my problem is solved, and that was the resolution. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Ryan Stewart wrote: First, I apologize if I came of sounding rude before. As an infrequent visitor to this list, I wasn't aware that you are a frequent contributor. I also don't seem to have received the other reply you mention. My next thought is that you might have two versions of Java installed. If so, which version is Tomcat using? Are you sure you compiled the servlet with the same one? -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Users Listtomcat-user@jakarta.apache.org Date: Sat Jan 01 07:22:09 PST 2005 Subject: Re: JSP compilation problem I did not post twice Ryan. If two posts appeared, it is the same problem with the list processor that we've been seeing for weeks now. I did post a reply however... I tried your suggestion and manually compiled. I have NO classpath variable in the environment (I thought this might have been a classpath issue, and I guess it could still be, but I don't see how at this point). I manually put servlet-api.jar, jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the classpath and compiled, and it compiles cleanly. So the problem would not appear to be a problem with the generated servlet. Any other ideas? Thank you! ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - 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: JSP compilation problem
On Sun, Jan 02, 2005 at 02:46:49PM -0500, Frank W. Zammetti wrote: : So... Is there actually a problem using JDK 5.0 with Tomcat 5.0.29? Perhaps... I have a vague recollection of seeing such posts a long time ago. : so, what version of Tomcat is OK with 5.0? (assuming any are, which I DO : assume). The 5.5 series is not only OK with JDK 1.5, it requires it. =) (OK, there's the JDK 1.4 compat package, but that didn't sound as cool) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
I answered you yesterday on this. There's generally no reason to post the same question two days in a row. Just wait and see if an answer shows up. Your problem is (still) that you have one or more errors in your JSP. If you can't figure out where the compiler output is, then go and compile the translated servlet manually. -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Usertomcat-user@jakarta.apache.org Date: Thu Dec 30 06:53:31 PST 2004 Subject: JSP compilation problem Hello. I'm using Tomcat 5.0.29. Working from home today and trying to run a working application on my laptop, and I'm seeing an exception when trying to access the first JSP of the app. Here's the on-screen display: [...] exception org.apache.jasper.JasperException: Unable to compile class for JSP [...] ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
I did not post twice Ryan. If two posts appeared, it is the same problem with the list processor that we've been seeing for weeks now. I did post a reply however... I tried your suggestion and manually compiled. I have NO classpath variable in the environment (I thought this might have been a classpath issue, and I guess it could still be, but I don't see how at this point). I manually put servlet-api.jar, jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the classpath and compiled, and it compiles cleanly. So the problem would not appear to be a problem with the generated servlet. Any other ideas? Thank you! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Ryan Stewart wrote: I answered you yesterday on this. There's generally no reason to post the same question two days in a row. Just wait and see if an answer shows up. Your problem is (still) that you have one or more errors in your JSP. If you can't figure out where the compiler output is, then go and compile the translated servlet manually. -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Usertomcat-user@jakarta.apache.org Date: Thu Dec 30 06:53:31 PST 2004 Subject: JSP compilation problem Hello. I'm using Tomcat 5.0.29. Working from home today and trying to run a working application on my laptop, and I'm seeing an exception when trying to access the first JSP of the app. Here's the on-screen display: [...] exception org.apache.jasper.JasperException: Unable to compile class for JSP [...] ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - 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: JSP compilation problem
Frank, Forgive me if this has already been suggested, I just came into this thread, midpoint (left my machine on at work ;)). Just for kicks, have you tried a fresh install of Tomcat on that machine? Ryan, I agree with you 100% about people not posting the same question twice and about netiquette in general. However, in this case, the rant is misdirected. After watching this list for the last several years (as well as the dev list), I can say that Mr, Zammetti has never been anything but helpful, knowledgeable, and respectful. I've also been seeing issues with this list in the last few weeks. There were days when it's taken 45 minutes or more for my posts to show up. -Ben On Sat, 2005-01-01 at 10:22, Frank W. Zammetti wrote: I did not post twice Ryan. If two posts appeared, it is the same problem with the list processor that we've been seeing for weeks now. I did post a reply however... I tried your suggestion and manually compiled. I have NO classpath variable in the environment (I thought this might have been a classpath issue, and I guess it could still be, but I don't see how at this point). I manually put servlet-api.jar, jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the classpath and compiled, and it compiles cleanly. So the problem would not appear to be a problem with the generated servlet. Any other ideas? Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: JSP compilation problem
First, I apologize if I came of sounding rude before. As an infrequent visitor to this list, I wasn't aware that you are a frequent contributor. I also don't seem to have received the other reply you mention. My next thought is that you might have two versions of Java installed. If so, which version is Tomcat using? Are you sure you compiled the servlet with the same one? -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Users Listtomcat-user@jakarta.apache.org Date: Sat Jan 01 07:22:09 PST 2005 Subject: Re: JSP compilation problem I did not post twice Ryan. If two posts appeared, it is the same problem with the list processor that we've been seeing for weeks now. I did post a reply however... I tried your suggestion and manually compiled. I have NO classpath variable in the environment (I thought this might have been a classpath issue, and I guess it could still be, but I don't see how at this point). I manually put servlet-api.jar, jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the classpath and compiled, and it compiles cleanly. So the problem would not appear to be a problem with the generated servlet. Any other ideas? Thank you! ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
Quite simply, you have an error in your JSP that is preventing the translated servlet from compiling. If you don't know where to look for the compiler output, then just go and manually compile the servlet. -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Usertomcat-user@jakarta.apache.org Date: Thu Dec 30 06:53:31 PST 2004 Subject: JSP compilation problem [...] HTTP Status 500 - 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 [...] root cause Compile failed; see the compiler error output for details. [...] ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
Interesting response... The exact same JSP is compiling on two other machines. Your right though, manually compiling it is a good next step (one that I'm ashamed to say I didn't think of myself), so I'm off to do that now. Maybe I have a corrupt file in some minor, hard-to-detect way that is causing a problem on this one Tomcat instance. Thanks for the suggestion, it's a logical course of action. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Ryan Stewart wrote: Quite simply, you have an error in your JSP that is preventing the translated servlet from compiling. If you don't know where to look for the compiler output, then just go and manually compile the servlet. -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Usertomcat-user@jakarta.apache.org Date: Thu Dec 30 06:53:31 PST 2004 Subject: JSP compilation problem [...] HTTP Status 500 - 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 [...] root cause Compile failed; see the compiler error output for details. [...] ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - 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]
JSP compilation problem
Hello. I'm using Tomcat 5.0.29. Working from home today and trying to run a working application on my laptop, and I'm seeing an exception when trying to access the first JSP of the app. Here's the on-screen display: HTTP Status 500 - 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 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:434) org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) 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:802) root cause Compile failed; see the compiler error output for details. org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:402) org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) 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:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.29 logs. Apache Tomcat/5.0.29 And here's the entire catalina log: StandardContext[/toa]default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 StandardContext[/manager]default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:402) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at
JSP Compilation Problem
Hi. I just upgrade tomcat server from 4.1.12 to Tomcat-dev (I get sources from CVS and compile it yesterday) But I have a problem with one jsp. So, such code % String fullname = Anatol Pomazau; % a target=newForm href=\\epmsa007\applForm\new_applicant_form\%=fullname%.doc%=fulln ame%/a Works fine in old version but in new Tomcat generates a target=newForm href=\\epmsa007\applForm\new_applicant_form\%=fullname%.docAnatol Pomazau/a Insead of a target=newForm href=\\epmsa007\applForm\new_applicant_form\Anatol Pomazau.docAnatol Pomazau/a I have looked JSP Spec 2.0 and I have not found any remarks about such quoting. What I do wrong? Please help me. epam EPAM Systems, Minsk, Belarus work: +375 17 210 1662, ext. #1373 icq uin: 138182429 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Compilation Problem
It looks like a bug. I will follow up to tomcat-dev with more detail. -Tim Anatol Pomazau wrote: Hi. I just upgrade tomcat server from 4.1.12 to Tomcat-dev (I get sources from CVS and compile it yesterday) But I have a problem with one jsp. So, such code % String fullname = Anatol Pomazau; % a target=newForm href=\\epmsa007\applForm\new_applicant_form\%=fullname%.doc%=fulln ame%/a Works fine in old version but in new Tomcat generates a target=newForm href=\\epmsa007\applForm\new_applicant_form\%=fullname%.docAnatol Pomazau/a Insead of a target=newForm href=\\epmsa007\applForm\new_applicant_form\Anatol Pomazau.docAnatol Pomazau/a I have looked JSP Spec 2.0 and I have not found any remarks about such quoting. What I do wrong? Please help me. epam EPAM Systems, Minsk, Belarus work: +375 17 210 1662, ext. #1373 icq uin: 138182429 - 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]
JSP compilation problem with tc-4.1.27 if reloadable=true
Hi, I have just moved from tc-4.1.24 to 27 and have the following problem: In Context .../Context I set reloadable=true. After a Java class file re-compiled and I try to use any JSP pages I always get compilation error messages saying the some classes cannot be found in the classpath. When I restart tomcat everything works fine. I have been using 4.1.24 very long and have never had this problem. Any ideas? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem with tc-4.1.27 if reloadable=true
Probably this: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096 -Tim Zsolt Koppany wrote: Hi, I have just moved from tc-4.1.24 to 27 and have the following problem: In Context .../Context I set reloadable=true. After a Java class file re-compiled and I try to use any JSP pages I always get compilation error messages saying the some classes cannot be found in the classpath. When I restart tomcat everything works fine. I have been using 4.1.24 very long and have never had this problem. Any ideas? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP compilation problem with jboss-3.0.3_tomcat-4.1.12
Hello, I have an EJB User like wich interface is: package com.alkinos.kernel.user ; import javax.ejb.EJBLocalObject ; import java.util.Collection ; /** * This interface defines the local interface for the User Bean */ public interface User extends EJBLocalObject { public Integer getId() ; public String getName() ; public String getPassword() ; public void setPassword(String password) ; public Collection getProfiles() ; public boolean verifyPassword(String password) ; } and a JSP which use this EJB: String name = user.getName() ; String password = user.getPassword() ; At the compilation I have this error: jboss-3.0.3_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/userwebui/components/editUser_jsp.java:131: cannot resolve symbol symbol : method getPassword () location: interface com.alkinos.kernel.user.User form.setPassword(user.getPassword()) ; ^ 1 error I found that strange, so I changed my JSP code by: ava.lang.reflect.Method method = user.getClass().getMethod(getPassword, null); System.out.println(method: + method) ; String password = (String)method.invoke(user, null) ; And this works fine. It's clear that there is a compilation problem but at the execution all works fine. Could this be a jasper problem ? Iris -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Tomcato4.0.4 and included jsp compilation problem
Hi, I m using tomcat4.0.4 , i found out today that when i modify the included jsp , tomcat does not recompile it. i.e. I have suppose a jsp called test.jsp and i include a jsp called test1.jsp. If for some reason i modify test1.jsp and dont modify test.jsp. tomcat does not recompile test.jsp so it is as if i am using old test1.jsp, but if i modify test.jsp (just add some space to make it look new) it works, so is this the correct way of working?? how does other app server behave, or is this a bug, or need to do some settings??? Ashish __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcato4.0.4 and included jsp compilation problem
There are 2 kinds of includes, one is compile time, one is runtime. If you're using a compile time include, i.e. %@ include file=include.jsp% then you need to update the file that is calling the include. For example, 'touch file_that_includes_something.jsp'. This is not a bug. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 10:31 AM To: Tomcat Users List Subject: Tomcato4.0.4 and included jsp compilation problem Hi, I m using tomcat4.0.4 , i found out today that when i modify the included jsp , tomcat does not recompile it. i.e. I have suppose a jsp called test.jsp and i include a jsp called test1.jsp. If for some reason i modify test1.jsp and dont modify test.jsp. tomcat does not recompile test.jsp so it is as if i am using old test1.jsp, but if i modify test.jsp (just add some space to make it look new) it works, so is this the correct way of working?? how does other app server behave, or is this a bug, or need to do some settings??? Ashish __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcato4.0.4 and included jsp compilation problem
With static includes, that's Tomcat's normal operation. The reason being that recursively checking timestamps on all includes could become very expensive. You can use the touch utility if you don't want to edit the file. Another option is to use dynamic includes with jsp:include... if it's a major problem, but there's a performance impact. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com On Thu, 25 Jul 2002 08:31:12 -0700 (PDT), Ashish Kulkarni wrote: Hi, I m using tomcat4.0.4 , i found out today that when i modify the included jsp , tomcat does not recompile it. i.e. I have suppose a jsp called test.jsp and i include a jsp called test1.jsp. If for some reason i modify test1.jsp and dont modify test.jsp. tomcat does not recompile test.jsp so it is as if i am using old test1.jsp, but if i modify test.jsp (just add some space to make it look new) it works, so is this the correct way of working?? how does other app server behave, or is this a bug, or need to do some settings??? Ashish __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcato4.0.4 and included jsp compilation problem
Hi, About the performance, if i use runtime include, does it mean the each time that page it called it compiles the included jsp??? is there any good documentation of what is the difference between these two type of includes?? Also where can i get this touch utility?? is there any documentation of it Thanx for the help Ashish Thanx for the reply, i think it is better to use compile time include, for performance.. --- Jason Koeninger [EMAIL PROTECTED] wrote: With static includes, that's Tomcat's normal operation. The reason being that recursively checking timestamps on all includes could become very expensive. You can use the touch utility if you don't want to edit the file. Another option is to use dynamic includes with jsp:include... if it's a major problem, but there's a performance impact. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com On Thu, 25 Jul 2002 08:31:12 -0700 (PDT), Ashish Kulkarni wrote: Hi, I m using tomcat4.0.4 , i found out today that when i modify the included jsp , tomcat does not recompile it. i.e. I have suppose a jsp called test.jsp and i include a jsp called test1.jsp. If for some reason i modify test1.jsp and dont modify test.jsp. tomcat does not recompile test.jsp so it is as if i am using old test1.jsp, but if i modify test.jsp (just add some space to make it look new) it works, so is this the correct way of working?? how does other app server behave, or is this a bug, or need to do some settings??? Ashish __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcato4.0.4 and included jsp compilation problem
No, it doesn't compile the included JSP every time. The difference is that with static includes, the code is included directly into the servlet created by the JSP. With dynamic includes, the output of the included JSP is generated at the point you include it and sent to the client. It's a very slight difference in performance unless, of course, you have a lot of nested static includes that you convert to dynamic. Looking at the .java files generated in the work directory of Tomcat for your web application makes it more clear how static vs. dynamic works. Touch utilities are generally included in most Unix/Linux systems. Do man touch to get more information. If you're on Windows, I'm not sure what the equivalent would be. Best Regards, Jason Koeninger JJ Computer Consulting http;//www.jjcc.com On Thu, 25 Jul 2002 08:46:26 -0700 (PDT), Ashish Kulkarni wrote: Hi, About the performance, if i use runtime include, does it mean the each time that page it called it compiles the included jsp??? is there any good documentation of what is the difference between these two type of includes?? Also where can i get this touch utility?? is there any documentation of it Thanx for the help Ashish Thanx for the reply, i think it is better to use compile time include, for performance.. --- Jason Koeninger [EMAIL PROTECTED] wrote: With static includes, that's Tomcat's normal operation. The reason being that recursively checking timestamps on all includes could become very expensive. You can use the touch utility if you don't want to edit the file. Another option is to use dynamic includes with jsp:include... if it's a major problem, but there's a performance impact. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com On Thu, 25 Jul 2002 08:31:12 -0700 (PDT), Ashish Kulkarni wrote: Hi, I m using tomcat4.0.4 , i found out today that when i modify the included jsp , tomcat does not recompile it. i.e. I have suppose a jsp called test.jsp and i include a jsp called test1.jsp. If for some reason i modify test1.jsp and dont modify test.jsp. tomcat does not recompile test.jsp so it is as if i am using old test1.jsp, but if i modify test.jsp (just add some space to make it look new) it works, so is this the correct way of working?? how does other app server behave, or is this a bug, or need to do some settings??? Ashish __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jsp compilation problem, Timeout too quick
I was trying to regenerate and compile all the JSPs I had to make sure everything is up-to-date. I am now finding a different behavior. I am chaining to my JSPs from my servlet, running under Redhat 7.1, Apache, Tomcat 3.24, using AJP13. What I am finding is that rather than waiting for the JSP to compile and return output, the user is quickly ( ~ 1 sec) returned to an Apache error page. If I press Refresh enough times, the page will properly show. Is there some sort of timeout setting I'm missing in Tomcat or Apache that was introduced post 3.23? Whn I was running 3.23, I didn't have this problem. Thanks in Advance. jchuang -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: jsp compilation problem, Timeout too quick
Did you just upgrade to ajp13? I just noticed this problem when upgrading from 3.2.1 and ajp12 as well. I'm thinking there might be some kind of setting we can change... see the thread about needing to refresh jsp page around 5 times - Original Message - From: James Chuang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 3:23 PM Subject: jsp compilation problem, Timeout too quick I was trying to regenerate and compile all the JSPs I had to make sure everything is up-to-date. I am now finding a different behavior. I am chaining to my JSPs from my servlet, running under Redhat 7.1, Apache, Tomcat 3.24, using AJP13. What I am finding is that rather than waiting for the JSP to compile and return output, the user is quickly ( ~ 1 sec) returned to an Apache error page. If I press Refresh enough times, the page will properly show. Is there some sort of timeout setting I'm missing in Tomcat or Apache that was introduced post 3.23? Whn I was running 3.23, I didn't have this problem. Thanks in Advance. jchuang -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Strange JSP Compilation Problem
I have a JSP page that calls some objects that are in a package... When I try to view the JSP, it generates a compile error: org.apache.jasper.JasperException: Unable to compile class for JSP/server/jakarta-tomcat-3.2.1/work/localhost_8080%2Fgroundswell/_0002fnews _0002fbackend_0005flabel_0005fnews_0005fedit_00031_0002ejspbackend_0005flabe l_0005fnews_0005fedit1_jsp_0.java:178: Undefined variable or class name: currentNewsBean out.print( currentNewsBean.getRecNum() ); Okay, this looks very simple... Like I just forgot to instantiate it... The thing is I didn't... The object gets instantiated prior to being called... Is there anything else that could be wrong? Hunter Hillegas, MCP Web Engineer / System Administrator - Jacob Stern Sons, Inc. [EMAIL PROTECTED] 805-565-1411 PH * 805-565-8684 FAX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Strange JSP Compilation Problem
Hunter, I am a super-newbie, so I'm probably not fully qualified to answer your question. But I previously had a similar problem, and no one *more* qualified has answered your post, so I'll tell you what I had to learn the hard way. It's a pretty basic concept that is re-iterated throughout the spec, but sometimes the most basic concepts elude me until I've done my own head-banging... Declarations, directives, actions and custom tags are executed at translation time (when the JSP page is turned into a servlet class). Expressions and scriptlets are executed at request time. (There are exceptions in JSP 1.2, where an attribute in an action tag can have a request-time value; these exceptions are listed in the 1.2 spec). So, anyway, is it possible you are trying to call an object at translation time that actually doesn't get instantiated until the request? You might also want to check the spec regarding page, request, session, and application scope. This was helpful to me in understanding when and where objects were available to me. Hopefully, if this is a totally off-base answer, it will encourage someone more in-the-know to enlighten us both :-) Regards, Amy [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hunter Hillegas Sent: Monday, February 12, 2001 2:00 PM To: '[EMAIL PROTECTED]' Subject: Strange JSP Compilation Problem I have a JSP page that calls some objects that are in a package... When I try to view the JSP, it generates a compile error: org.apache.jasper.JasperException: Unable to compile class for JSP/server/jakarta-tomcat-3.2.1/work/localhost_8080%2Fgroundswell/_0002fnews _0002fbackend_0005flabel_0005fnews_0005fedit_00031_0002ejspbackend_0005flabe l_0005fnews_0005fedit1_jsp_0.java:178: Undefined variable or class name: currentNewsBean out.print( currentNewsBean.getRecNum() ); Okay, this looks very simple... Like I just forgot to instantiate it... The thing is I didn't... The object gets instantiated prior to being called... Is there anything else that could be wrong? Hunter Hillegas, MCP Web Engineer / System Administrator - Jacob Stern Sons, Inc. [EMAIL PROTECTED] 805-565-1411 PH * 805-565-8684 FAX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ tomcat-users mailing list [EMAIL PROTECTED] https://mailman.real-time.com/mailman/listinfo/tomcat-users - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Strange JSP Compilation Problem
I think this is the right direction... you need to declare your variable, not just instantiate it. %! NewsBean currentNewsBean; % // note the ! This *declaration* will allow this variable to be "in scope" when you break out of %script-mode% and back into HTML mode with %=expressions% Original Message On 2/12/01, 11:55:35 PM, "Amy Boyett" [EMAIL PROTECTED] wrote regarding RE: Strange JSP Compilation Problem: Hunter, I am a super-newbie, so I'm probably not fully qualified to answer your question. But I previously had a similar problem, and no one *more* qualified has answered your post, so I'll tell you what I had to learn the hard way. It's a pretty basic concept that is re-iterated throughout the spec, but sometimes the most basic concepts elude me until I've done my own head-banging... Declarations, directives, actions and custom tags are executed at translation time (when the JSP page is turned into a servlet class). Expressions and scriptlets are executed at request time. (There are exceptions in JSP 1.2, where an attribute in an action tag can have a request-time value; these exceptions are listed in the 1.2 spec). So, anyway, is it possible you are trying to call an object at translation time that actually doesn't get instantiated until the request? You might also want to check the spec regarding page, request, session, and application scope. This was helpful to me in understanding when and where objects were available to me. Hopefully, if this is a totally off-base answer, it will encourage someone more in-the-know to enlighten us both :-) Regards, Amy [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hunter Hillegas Sent: Monday, February 12, 2001 2:00 PM To: '[EMAIL PROTECTED]' Subject: Strange JSP Compilation Problem I have a JSP page that calls some objects that are in a package... When I try to view the JSP, it generates a compile error: org.apache.jasper.JasperException: Unable to compile class for JSP/server/jakarta-tomcat-3.2.1/work/localhost_8080%2Fgroundswell/_0002fne ws _0002fbackend_0005flabel_0005fnews_0005fedit_00031_0002ejspbackend_0005fla be l_0005fnews_0005fedit1_jsp_0.java:178: Undefined variable or class name: currentNewsBean out.print( currentNewsBean.getRecNum() ); Okay, this looks very simple... Like I just forgot to instantiate it... The thing is I didn't... The object gets instantiated prior to being called... Is there anything else that could be wrong? Hunter Hillegas, MCP Web Engineer / System Administrator - Jacob Stern Sons, Inc. [EMAIL PROTECTED] 805-565-1411 PH * 805-565-8684 FAX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ tomcat-users mailing list [EMAIL PROTECTED] https://mailman.real-time.com/mailman/listinfo/tomcat-users - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
jsp compilation problem
Hi all, Here is a snippet of jsp code that I am having trouble in compiling jsp pages: jsp:usebean id="traverser" scope="session" class="com.ss8networks.smp.sms.provisioning.jsp.Service800NumberBean" / % QuestionnaireTreeModel model = traverser.getModel(); if (model != null){ model.clearProvisionedData(model.getRoot().getInstanceID()); } % I get the following error: Error: 500 Location: /provision/service800number_start.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPD:\jakarta-tomcat\work\localhost_8080%2Fprovision\_0002fservice_00038_000 30_00030number_0005fstart_0002ejspservice800number_0005fstart_jsp_0.java:60: Undefined variable or class name: traverser QuestionnaireTreeModel model = traverser.getModel(); ^ 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j ava:163) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:357) at _0002flogin_0002ejsplogin_jsp_0._jspService(_0002flogin_0002ejsplogin_jsp_0. java:75) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) The problem seem to happen with only TomCat but when I run the same page under weblogic it runs smoothly. Can somebody please let me know what I am doing wrong or is it a bug in TOMcat jsp engine. Cheers, Sibon.