Re: Not compiling JSP's
Chuck, As usual, you were spot on. Both of the references described what I was seeing. When your wife wants to leave, it is a question of when not if. I think the same applies here: the spec says something and eventually we will all comply with that. Accordingly, I bit the bullet and changed all the offending code. The number of configurations is the result of history. I am now trying to reduce them but I need servers to switch production to before I can update the production servers. We have been doing very well with a single server (God help us if it has a problem) but volume is reaching the point where we need to start thinking cluster as in a cluster of Tomcats not that other thing. Martin, thanks for your response. I think I have a handle on this now. Again, thanks to all. Carl - Original Message - From: "Caldarale, Charles R" To: "Tomcat Users List" Sent: Saturday, September 12, 2009 12:33 PM Subject: RE: Not compiling JSP's From: Carl [mailto:c...@etrak-plus.com] Subject: Re: Not compiling JSP's 1. Why the compilers on most of my computers worked fine and the newest one (test server) failed. I find it odd that you run such a variety of configurations. In any event, several fixes for quote escaping have gone into recent versions of Tomcat, such as: https://issues.apache.org/bugzilla/show_bug.cgi?id=45015 https://issues.apache.org/bugzilla/show_bug.cgi?id=45427 Also, take a look at the doc for the STRICT_QUOTE_ESCAPING system property: http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Jasper You might have been able to avoid updating so much code, but it's probably better to bring it into compliance with the standard. 2. Why I did not see any errors in any logs. That's a very good question. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Not compiling JSP's
we would need the full listing the problematic jsp (not snippets) the exact JVM/JDK you are compiling with which specific version of tomcat which OS version full display of web.xml full display of applicable servlet(s)/filter(s) source enumerated from web.xml listing of all /WEB-INF/*.tld up to the first declarator e.g. http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd";> "Struts Tags" 2.2.3 s /struts-tags thanks Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: c...@etrak-plus.com > To: users@tomcat.apache.org > Subject: Re: Not compiling JSP's > Date: Sat, 12 Sep 2009 13:11:53 -0500 > > Finally have a resolution to this problem. At best, it is weird. > > The problem: > > Certain jsp's would fail to compile on test server but ran OK on production > and development machines. > > Background: > > Development computer 1: > > Windows XP > Java version 1.6.0_11-b03 > Tomcat 6.0.16 > > Development computer 2: > > Windows XP > Java version 1.6.0_16 > Tomcat 5.5.17 > > Production server: > > Slackware Linux 12.x > Java version 1.5.0_01 > Tomcat 5.5.23 > > Test server: > > Slackware 12.x (new install... all latest updates) > Java version 1.6.0_13 > Tomcat 6.0.20 > > Tomcat on production and test servers were downloads from Tomcat downloads > page. All Java are from Sun (downloaded as tarballs.) > > I could not see anything in any of the logs (catalina, host-manager, > localhost or manager) that gave me any clues. Brought up NetBeans on the > test server and moved the code to that machine. Compiled one of the jsp's I > thought might be a problem and, sure enough, the compiler reported a problem > with: > > value="<%=request.getParameter("hidItemSerial")%>" /> > > in a . It complained about this piece "hidItemSerial" > saying that the "'s must be escaped (I had wondered about this for a number > of years but as long as it was working, I didn't take time to understand hwo > or why it worked.) As expected, these lines also failed: > > value="<%=request.getParameter("whereFrom")%>" /> > > However this line: > > value="<%=request.getParameter("person_serial")%>" /> > > worked in certain jsp's. And, this line: > > " > /> > > Always worked. > > I have fixed the 1,000+ lines it complained about but am still baffled > about: > > 1. Why the compilers on most of my computers worked fine and the newest one > (test server) failed. > > 2. Why I did not see any errors in any logs. > > Any insights are appreciated. > > TIA, > > Carl > > > > > > > > - Original Message - > From: "Martin Gainty" > To: "Tomcat Users List" > Sent: Wednesday, September 02, 2009 7:30 AM > Subject: RE: Not compiling JSP's > > > > difficult without seeing code for problem jsp,accompanying tlds and > /WEB-INF/web.xml > > Martin Gainty > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und e
RE: Not compiling JSP's
> From: Carl [mailto:c...@etrak-plus.com] > Subject: Re: Not compiling JSP's > > 1. Why the compilers on most of my computers worked fine and the > newest one (test server) failed. I find it odd that you run such a variety of configurations. In any event, several fixes for quote escaping have gone into recent versions of Tomcat, such as: https://issues.apache.org/bugzilla/show_bug.cgi?id=45015 https://issues.apache.org/bugzilla/show_bug.cgi?id=45427 Also, take a look at the doc for the STRICT_QUOTE_ESCAPING system property: http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Jasper You might have been able to avoid updating so much code, but it's probably better to bring it into compliance with the standard. > 2. Why I did not see any errors in any logs. That's a very good question. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Not compiling JSP's
Finally have a resolution to this problem. At best, it is weird. The problem: Certain jsp's would fail to compile on test server but ran OK on production and development machines. Background: Development computer 1: Windows XP Java version 1.6.0_11-b03 Tomcat 6.0.16 Development computer 2: Windows XP Java version 1.6.0_16 Tomcat 5.5.17 Production server: Slackware Linux 12.x Java version 1.5.0_01 Tomcat 5.5.23 Test server: Slackware 12.x (new install... all latest updates) Java version 1.6.0_13 Tomcat 6.0.20 Tomcat on production and test servers were downloads from Tomcat downloads page. All Java are from Sun (downloaded as tarballs.) I could not see anything in any of the logs (catalina, host-manager, localhost or manager) that gave me any clues. Brought up NetBeans on the test server and moved the code to that machine. Compiled one of the jsp's I thought might be a problem and, sure enough, the compiler reported a problem with: value="<%=request.getParameter("hidItemSerial")%>" /> in a . It complained about this piece "hidItemSerial" saying that the "'s must be escaped (I had wondered about this for a number of years but as long as it was working, I didn't take time to understand hwo or why it worked.) As expected, these lines also failed: value="<%=request.getParameter("whereFrom")%>" /> However this line: value="<%=request.getParameter("person_serial")%>" /> worked in certain jsp's. And, this line: " /> Always worked. I have fixed the 1,000+ lines it complained about but am still baffled about: 1. Why the compilers on most of my computers worked fine and the newest one (test server) failed. 2. Why I did not see any errors in any logs. Any insights are appreciated. TIA, Carl ----- Original Message - From: "Martin Gainty" To: "Tomcat Users List" Sent: Wednesday, September 02, 2009 7:30 AM Subject: RE: Not compiling JSP's difficult without seeing code for problem jsp,accompanying tlds and /WEB-INF/web.xml Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: c...@etrak-plus.com To: users@tomcat.apache.org Subject: Re: Not compiling JSP's Date: Wed, 2 Sep 2009 07:09:25 -0500 Ron, Thanks for your reply. The 'one hour off' problem was an install issue by the guy who brought up that server... wait a minute, that was me. The mystery is that Tomcat will compile some JSP's just fine but will always stop on the same ones. On the theory it was memory, I changed the Java memory options to match the current production server... no joy there. To test the theory the problrm was the last date modified, I made certain the dates on all JSP's were one day before the server date (note that the dates on the JSP's that compiled were within seconds of those that didn't)... no joy here either. If I copy .java files from development to server, the server will actually remove the .java files from the work directory so no joy there. If I copy the .java and .class files from the development build directory to the work directory on the server, that appeared to work at one point but now the server removes those files from the work directory. The JSP's that the server fails on are no larger nor no more complex than those it compiles. I am bringing Netbeans up on the server so I can step through what's happening but have not yet got that running. Thanks, Carl - Original Message - From: "Ron McNulty" To: "Tomcat Users List" Sent: Wednesday, September 02, 2009 3:04 AM Subject: Re: Not compiling JSP's > Hi Carl > > I've seen problems like this when deploying across time zones (in my > case > NZ -> San Francisco), especially if ther
RE: Not compiling JSP's
difficult without seeing code for problem jsp,accompanying tlds and /WEB-INF/web.xml Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: c...@etrak-plus.com > To: users@tomcat.apache.org > Subject: Re: Not compiling JSP's > Date: Wed, 2 Sep 2009 07:09:25 -0500 > > Ron, > > Thanks for your reply. > > The 'one hour off' problem was an install issue by the guy who brought up > that server... wait a minute, that was me. > > The mystery is that Tomcat will compile some JSP's just fine but will always > stop on the same ones. On the theory it was memory, I changed the Java > memory options to match the current production server... no joy there. To > test the theory the problrm was the last date modified, I made certain the > dates on all JSP's were one day before the server date (note that the dates > on the JSP's that compiled were within seconds of those that didn't)... no > joy here either. If I copy .java files from development to server, the > server will actually remove the .java files from the work directory so no > joy there. If I copy the .java and .class files from the development build > directory to the work directory on the server, that appeared to work at one > point but now the server removes those files from the work directory. The > JSP's that the server fails on are no larger nor no more complex than those > it compiles. > > I am bringing Netbeans up on the server so I can step through what's > happening but have not yet got that running. > > Thanks, > > Carl > > - Original Message - > From: "Ron McNulty" > To: "Tomcat Users List" > Sent: Wednesday, September 02, 2009 3:04 AM > Subject: Re: Not compiling JSP's > > > > Hi Carl > > > > I've seen problems like this when deploying across time zones (in my case > > NZ -> San Francisco), especially if there is a Windows box in the > > equation. The "1 hour off" sounds odd - daylight saving problem? > > > > Regards > > > > Ron > > > > - Original Message - > > From: "Carl" > > To: "Tomcat Users List" > > Sent: Wednesday, September 02, 2009 1:12 AM > > Subject: Re: Not compiling JSP's > > > > > >> Mark, > >> > >> Thanks for your reply. > >> > >> I checked the modification times and they are all yesterday while the > >> system date/time on the server is today (although it was one hour off.) > >> > >> I am presently bringing Netbeans up on the test server in an attempt to > >> see what is happening. > >> > >> If you have any other suggestions, I am all ears. > >> > >> Carl > >> > >> > >> - Original Message - > >> From: "Mark Thomas" > >> To: "Tomcat Users List" > >> Sent: Tuesday, September 01, 2009 3:14 AM > >> Subject: Re: Not compiling JSP's > >> > >> > >>> Carl wrote: > >>>> Odd that some JSP's get compiled and some won't. Note that it is > >>>> always > >>>> the same JSP's that will not compile. > >>> > >>> File modification times in the future on the JSPs? > >>> > >>> One way to find out what is going on is to use remote debugging and your > >>> favourite IDE to step through the JSP compilation process and see why it > >>> isn't working. > >>> > >>> Mark > >>> > >>> > >>> > >>> &
RE: Not compiling JSP's
difficult without seeing code for problem jsp,accompanying tlds and /WEB-INF/web.xml Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: c...@etrak-plus.com > To: users@tomcat.apache.org > Subject: Re: Not compiling JSP's > Date: Wed, 2 Sep 2009 07:09:25 -0500 > > Ron, > > Thanks for your reply. > > The 'one hour off' problem was an install issue by the guy who brought up > that server... wait a minute, that was me. > > The mystery is that Tomcat will compile some JSP's just fine but will always > stop on the same ones. On the theory it was memory, I changed the Java > memory options to match the current production server... no joy there. To > test the theory the problrm was the last date modified, I made certain the > dates on all JSP's were one day before the server date (note that the dates > on the JSP's that compiled were within seconds of those that didn't)... no > joy here either. If I copy .java files from development to server, the > server will actually remove the .java files from the work directory so no > joy there. If I copy the .java and .class files from the development build > directory to the work directory on the server, that appeared to work at one > point but now the server removes those files from the work directory. The > JSP's that the server fails on are no larger nor no more complex than those > it compiles. > > I am bringing Netbeans up on the server so I can step through what's > happening but have not yet got that running. > > Thanks, > > Carl > > - Original Message - > From: "Ron McNulty" > To: "Tomcat Users List" > Sent: Wednesday, September 02, 2009 3:04 AM > Subject: Re: Not compiling JSP's > > > > Hi Carl > > > > I've seen problems like this when deploying across time zones (in my case > > NZ -> San Francisco), especially if there is a Windows box in the > > equation. The "1 hour off" sounds odd - daylight saving problem? > > > > Regards > > > > Ron > > > > - Original Message - > > From: "Carl" > > To: "Tomcat Users List" > > Sent: Wednesday, September 02, 2009 1:12 AM > > Subject: Re: Not compiling JSP's > > > > > >> Mark, > >> > >> Thanks for your reply. > >> > >> I checked the modification times and they are all yesterday while the > >> system date/time on the server is today (although it was one hour off.) > >> > >> I am presently bringing Netbeans up on the test server in an attempt to > >> see what is happening. > >> > >> If you have any other suggestions, I am all ears. > >> > >> Carl > >> > >> > >> - Original Message - > >> From: "Mark Thomas" > >> To: "Tomcat Users List" > >> Sent: Tuesday, September 01, 2009 3:14 AM > >> Subject: Re: Not compiling JSP's > >> > >> > >>> Carl wrote: > >>>> Odd that some JSP's get compiled and some won't. Note that it is > >>>> always > >>>> the same JSP's that will not compile. > >>> > >>> File modification times in the future on the JSPs? > >>> > >>> One way to find out what is going on is to use remote debugging and your > >>> favourite IDE to step through the JSP compilation process and see why it > >>> isn't working. > >>> > >>> Mark > >>> > >>> > >>> > >>> &
Re: Not compiling JSP's
Ron, Thanks for your reply. The 'one hour off' problem was an install issue by the guy who brought up that server... wait a minute, that was me. The mystery is that Tomcat will compile some JSP's just fine but will always stop on the same ones. On the theory it was memory, I changed the Java memory options to match the current production server... no joy there. To test the theory the problrm was the last date modified, I made certain the dates on all JSP's were one day before the server date (note that the dates on the JSP's that compiled were within seconds of those that didn't)... no joy here either. If I copy .java files from development to server, the server will actually remove the .java files from the work directory so no joy there. If I copy the .java and .class files from the development build directory to the work directory on the server, that appeared to work at one point but now the server removes those files from the work directory. The JSP's that the server fails on are no larger nor no more complex than those it compiles. I am bringing Netbeans up on the server so I can step through what's happening but have not yet got that running. Thanks, Carl - Original Message - From: "Ron McNulty" To: "Tomcat Users List" Sent: Wednesday, September 02, 2009 3:04 AM Subject: Re: Not compiling JSP's Hi Carl I've seen problems like this when deploying across time zones (in my case NZ -> San Francisco), especially if there is a Windows box in the equation. The "1 hour off" sounds odd - daylight saving problem? Regards Ron - Original Message - From: "Carl" To: "Tomcat Users List" Sent: Wednesday, September 02, 2009 1:12 AM Subject: Re: Not compiling JSP's Mark, Thanks for your reply. I checked the modification times and they are all yesterday while the system date/time on the server is today (although it was one hour off.) I am presently bringing Netbeans up on the test server in an attempt to see what is happening. If you have any other suggestions, I am all ears. Carl - Original Message ----- From: "Mark Thomas" To: "Tomcat Users List" Sent: Tuesday, September 01, 2009 3:14 AM Subject: Re: Not compiling JSP's Carl wrote: Odd that some JSP's get compiled and some won't. Note that it is always the same JSP's that will not compile. File modification times in the future on the JSPs? One way to find out what is going on is to use remote debugging and your favourite IDE to step through the JSP compilation process and see why it isn't working. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Not compiling JSP's
Hi Carl I've seen problems like this when deploying across time zones (in my case NZ -> San Francisco), especially if there is a Windows box in the equation. The "1 hour off" sounds odd - daylight saving problem? Regards Ron - Original Message - From: "Carl" To: "Tomcat Users List" Sent: Wednesday, September 02, 2009 1:12 AM Subject: Re: Not compiling JSP's Mark, Thanks for your reply. I checked the modification times and they are all yesterday while the system date/time on the server is today (although it was one hour off.) I am presently bringing Netbeans up on the test server in an attempt to see what is happening. If you have any other suggestions, I am all ears. Carl - Original Message - From: "Mark Thomas" To: "Tomcat Users List" Sent: Tuesday, September 01, 2009 3:14 AM Subject: Re: Not compiling JSP's Carl wrote: Odd that some JSP's get compiled and some won't. Note that it is always the same JSP's that will not compile. File modification times in the future on the JSPs? One way to find out what is going on is to use remote debugging and your favourite IDE to step through the JSP compilation process and see why it isn't working. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Not compiling JSP's
Mark, Thanks for your reply. I checked the modification times and they are all yesterday while the system date/time on the server is today (although it was one hour off.) I am presently bringing Netbeans up on the test server in an attempt to see what is happening. If you have any other suggestions, I am all ears. Carl - Original Message - From: "Mark Thomas" To: "Tomcat Users List" Sent: Tuesday, September 01, 2009 3:14 AM Subject: Re: Not compiling JSP's Carl wrote: Odd that some JSP's get compiled and some won't. Note that it is always the same JSP's that will not compile. File modification times in the future on the JSPs? One way to find out what is going on is to use remote debugging and your favourite IDE to step through the JSP compilation process and see why it isn't working. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Not compiling JSP's
Carl wrote: > Odd that some JSP's get compiled and some won't. Note that it is always > the same JSP's that will not compile. File modification times in the future on the JSPs? One way to find out what is going on is to use remote debugging and your favourite IDE to step through the JSP compilation process and see why it isn't working. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Not compiling JSP's
will take a look if you can post the problematic jsp (and post the web.xml) check permissions on work folder make sure the user that started Tomcat has write,read,execute rights to work folder thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: c...@etrak-plus.com > To: users@tomcat.apache.org > Subject: Re: Not compiling JSP's > Date: Mon, 31 Aug 2009 19:04:23 -0500 > > Martin, > > On the theory that the problem was the JDK, I clean/built the war using my > development computer (Java 1.6.0_11) and deployed it to the test server > (Java 1.6.0_13). I test compiled all the JSP's on the development computer > just to be certain there wasn't some failure there. When the war is > deployed to the test server, there are essentially no files in the Tomcat > work directory (as expected). The system runs perfectly on the development > computer but shows the same problems on the test server (creates a few .java > files, compiles them properly and then stops compiling the JSP's.) > > This is the startup of Tomcat from the catalina log: > > Aug 31, 2009 5:25:57 PM org.apache.catalina.core.AprLifecycleListener init > INFO: The APR based Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: /usr/loc > al/jdk1.6.0_13/jre/lib/i386/server:/usr/local/jdk1.6.0_13/jre/lib/i386:/usr/local/jdk1.6.0_13/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib > Aug 31, 2009 5:25:57 PM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Aug 31, 2009 5:25:57 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 667 ms > Aug 31, 2009 5:25:57 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Aug 31, 2009 5:25:57 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 > Aug 31, 2009 5:25:58 PM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Aug 31, 2009 5:25:59 PM org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8008 > Aug 31, 2009 5:25:59 PM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/33 config=null > Aug 31, 2009 5:25:59 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 1465 ms > Aug 31, 2009 5:36:46 PM org.apache.catalina.startup.HostConfig > checkResources > INFO: Undeploying context [/test] > Aug 31, 2009 5:37:53 PM org.apache.catalina.startup.HostConfig deployWAR > INFO: Deploying web application archive test.war > ~ > > This looks very normal to me. > > There are no errors in the catalina.out or the localhost log. > > I have set modificationTestInterval to 0. > > Odd that some JSP's get compiled and some won't. Note that it is always the > same JSP's that will not compile. > > Have installed Tomcat several times and never had problems. > > Any help is appreciated. > > TIA, > > Carl > > > > - Original Message - > From: "Martin Gainty" > To: "Tomcat Users List" > Sent: Monday, August 31, 2009 4:13 PM > Subject: RE: Not compiling JSP's > > > > i try to sync the dev jdk with the deploy jdk so when jsps are compiled > you're compiling your generated JspServlets (with the same jdk > so class signatures will be the same) > > hth > Martin Gainty > __ > Jogi és Bizalmassági kinyilatkoztatás/Verzicht und > Vertraulichkeitanmerkung/Note de déni et de confidentialité > Ez az > üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, h
Re: Not compiling JSP's
Martin, On the theory that the problem was the JDK, I clean/built the war using my development computer (Java 1.6.0_11) and deployed it to the test server (Java 1.6.0_13). I test compiled all the JSP's on the development computer just to be certain there wasn't some failure there. When the war is deployed to the test server, there are essentially no files in the Tomcat work directory (as expected). The system runs perfectly on the development computer but shows the same problems on the test server (creates a few .java files, compiles them properly and then stops compiling the JSP's.) This is the startup of Tomcat from the catalina log: Aug 31, 2009 5:25:57 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/loc al/jdk1.6.0_13/jre/lib/i386/server:/usr/local/jdk1.6.0_13/jre/lib/i386:/usr/local/jdk1.6.0_13/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib Aug 31, 2009 5:25:57 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Aug 31, 2009 5:25:57 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 667 ms Aug 31, 2009 5:25:57 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 31, 2009 5:25:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 Aug 31, 2009 5:25:58 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Aug 31, 2009 5:25:59 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8008 Aug 31, 2009 5:25:59 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/33 config=null Aug 31, 2009 5:25:59 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1465 ms Aug 31, 2009 5:36:46 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/test] Aug 31, 2009 5:37:53 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive test.war ~ This looks very normal to me. There are no errors in the catalina.out or the localhost log. I have set modificationTestInterval to 0. Odd that some JSP's get compiled and some won't. Note that it is always the same JSP's that will not compile. Have installed Tomcat several times and never had problems. Any help is appreciated. TIA, Carl - Original Message - From: "Martin Gainty" To: "Tomcat Users List" Sent: Monday, August 31, 2009 4:13 PM Subject: RE: Not compiling JSP's i try to sync the dev jdk with the deploy jdk so when jsps are compiled you're compiling your generated JspServlets (with the same jdk so class signatures will be the same) hth Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: c...@etrak-plus.com To: users@tomcat.apache.org Subject: Re: Not compiling JSP's Date: Mon, 31 Aug 2009 16:32:54 -0500 Martin, Thanks for your quick reply. I am presently downloading the latest JDK (to the box that is building the war) to see if that makes a difference. There are no error messages in any of the logs, including the localhost*.log. Thanks, Carl - Original Message - From: "Martin Gainty" To: "Tomcat Users List" Sent: Monday, August 31, 2009 3:30 PM Subject: RE: Not compiling JSP's 1) possible incompat
RE: Not compiling JSP's
i try to sync the dev jdk with the deploy jdk so when jsps are compiled you're compiling your generated JspServlets (with the same jdk so class signatures will be the same) hth Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: c...@etrak-plus.com > To: users@tomcat.apache.org > Subject: Re: Not compiling JSP's > Date: Mon, 31 Aug 2009 16:32:54 -0500 > > Martin, > > Thanks for your quick reply. I am presently downloading the latest JDK (to > the box that is building the war) to see if that makes a difference. > > There are no error messages in any of the logs, including the > localhost*.log. > > Thanks, > > Carl > > - Original Message - > From: "Martin Gainty" > To: "Tomcat Users List" > Sent: Monday, August 31, 2009 3:30 PM > Subject: RE: Not compiling JSP's > > > > 1) > possible incompatibility in JDK versions > what happens if you upgrade your NB JDK from 1.5.0_07 to 1.6.0_13? > > 2) > > > > > > > > > i would leave that 0 for until your jsps compile cleanly > > do you see any errors/exceptions in $TOMCAT_HOME/log/localhost*.log > or Tomcat console ? > Martin Gainty > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > From: c...@etrak-plus.com > > To: users@tomcat.apache.org > > Subject: Not compiling JSP's > > Date: Mon, 31 Aug 2009 16:16:44 -0500 > > > > My environment (fresh install) (this is a backup server that can be used > > for testing and to allow us to upgrade the current production server > > running Tomcat 5.5): > > > > Slackware 12 > > Java 1.6.0_13 (Actually installed in May) > > Tomcat 6.0.18 > > > > My development system: > > > > Windows XP > > Java 1.6.0_07 > > Tomcat 6.0.16 > > NetBeans 6.5 > > > > The problem: > > > > Tomcat will compile the first few JSP's. Then, it stops compiling them. > > Nothing in the logs says there is a problem compiling the JSP. They are > > the same JSP's run in the development environment. If I copy the .java > > and .class files from the work directory on the development computer, that > > JSP
Re: Not compiling JSP's
Martin, Thanks for your quick reply. I am presently downloading the latest JDK (to the box that is building the war) to see if that makes a difference. There are no error messages in any of the logs, including the localhost*.log. Thanks, Carl - Original Message - From: "Martin Gainty" To: "Tomcat Users List" Sent: Monday, August 31, 2009 3:30 PM Subject: RE: Not compiling JSP's 1) possible incompatibility in JDK versions what happens if you upgrade your NB JDK from 1.5.0_07 to 1.6.0_13? 2) i would leave that 0 for until your jsps compile cleanly do you see any errors/exceptions in $TOMCAT_HOME/log/localhost*.log or Tomcat console ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: c...@etrak-plus.com To: users@tomcat.apache.org Subject: Not compiling JSP's Date: Mon, 31 Aug 2009 16:16:44 -0500 My environment (fresh install) (this is a backup server that can be used for testing and to allow us to upgrade the current production server running Tomcat 5.5): Slackware 12 Java 1.6.0_13 (Actually installed in May) Tomcat 6.0.18 My development system: Windows XP Java 1.6.0_07 Tomcat 6.0.16 NetBeans 6.5 The problem: Tomcat will compile the first few JSP's. Then, it stops compiling them. Nothing in the logs says there is a problem compiling the JSP. They are the same JSP's run in the development environment. If I copy the .java and .class files from the work directory on the development computer, that JSP will run just fine. The Jasper flags in web.xml (in the tomcat/conf directory) are all default except I added modificationTestInterval = 0 (didn't seem to have any effect.) The war was built using NetBeans 5.5 and Java 1.5.0_07 (I have been doing this so I didn't have to deal with the compatibility issues on the production server.) I am baffled and ready to accept help from any and all sources. TIA, Carl _ Hotmail® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Not compiling JSP's
1) possible incompatibility in JDK versions what happens if you upgrade your NB JDK from 1.5.0_07 to 1.6.0_13? 2) i would leave that 0 for until your jsps compile cleanly do you see any errors/exceptions in $TOMCAT_HOME/log/localhost*.log or Tomcat console ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: c...@etrak-plus.com > To: users@tomcat.apache.org > Subject: Not compiling JSP's > Date: Mon, 31 Aug 2009 16:16:44 -0500 > > My environment (fresh install) (this is a backup server that can be used for > testing and to allow us to upgrade the current production server running > Tomcat 5.5): > > Slackware 12 > Java 1.6.0_13 (Actually installed in May) > Tomcat 6.0.18 > > My development system: > > Windows XP > Java 1.6.0_07 > Tomcat 6.0.16 > NetBeans 6.5 > > The problem: > > Tomcat will compile the first few JSP's. Then, it stops compiling them. > Nothing in the logs says there is a problem compiling the JSP. They are the > same JSP's run in the development environment. If I copy the .java and > .class files from the work directory on the development computer, that JSP > will run just fine. The Jasper flags in web.xml (in the tomcat/conf > directory) are all default except I added modificationTestInterval = 0 > (didn't seem to have any effect.) > > The war was built using NetBeans 5.5 and Java 1.5.0_07 (I have been doing > this so I didn't have to deal with the compatibility issues on the production > server.) > > I am baffled and ready to accept help from any and all sources. > > TIA, > > Carl > _ Hotmail® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009
Not compiling JSP's
My environment (fresh install) (this is a backup server that can be used for testing and to allow us to upgrade the current production server running Tomcat 5.5): Slackware 12 Java 1.6.0_13 (Actually installed in May) Tomcat 6.0.18 My development system: Windows XP Java 1.6.0_07 Tomcat 6.0.16 NetBeans 6.5 The problem: Tomcat will compile the first few JSP's. Then, it stops compiling them. Nothing in the logs says there is a problem compiling the JSP. They are the same JSP's run in the development environment. If I copy the .java and .class files from the work directory on the development computer, that JSP will run just fine. The Jasper flags in web.xml (in the tomcat/conf directory) are all default except I added modificationTestInterval = 0 (didn't seem to have any effect.) The war was built using NetBeans 5.5 and Java 1.5.0_07 (I have been doing this so I didn't have to deal with the compatibility issues on the production server.) I am baffled and ready to accept help from any and all sources. TIA, Carl