tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Not compiling JSP's
Date Sat, 12 Sep 2009 17:52:51 GMT

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 <tag> declarator e.g.
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="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">
  <description><![CDATA["To make it easier to access dynamic data;
                    the Apache Struts framework includes a library of custom tags.
                    The tags interact with the framework's validation and internationalization
features;
                    to ensure that input is correct and output is localized.
                    The Struts Tags can be used with JSP FreeMarker or Velocity."]]></description>
  <display-name>"Struts Tags"</display-name>
  <tlib-version>2.2.3</tlib-version>
  <short-name>s</short-name>
  <uri>/struts-tags</uri>
<tag>
....

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: carl@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:
> 
>  <jsp:param name="personSerialForHistory" 
> value="<%=request.getParameter("hidItemSerial")%>" />
> 
> in a <jsp:forward ... >.  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:
> 
>    <jsp:param name="whereFrom" 
> value="<%=request.getParameter("whereFrom")%>" />
> 
> However this line:
> 
>    <jsp:param name="person_serial" 
> value="<%=request.getParameter("person_serial")%>" />
> 
> worked in certain jsp's.  And, this line:
> 
>     <jsp:param name="txtTitle" value="<%=request.getParameter("txtTitle")%>"

> />
> 
> 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" <mgainty@hotmail.com>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> 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: carl@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" <rmcnulty@xtra.co.nz>
> > To: "Tomcat Users List" <users@tomcat.apache.org>
> > 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" <carl@etrak-plus.com>
> > > To: "Tomcat Users List" <users@tomcat.apache.org>
> > > 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" <markt@apache.org>
> > >> To: "Tomcat Users List" <users@tomcat.apache.org>
> > >> 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-unsubscribe@tomcat.apache.org
> > >>> For additional commands, e-mail: users-help@tomcat.apache.org
> > >>>
> > >>>
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > >> For additional commands, e-mail: users-help@tomcat.apache.org
> > >>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> 
> _________________________________________________________________
> With Windows Live, you can organize, edit, and share your photos.
> http://www.windowslive.com/Desktop/PhotoGallery 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message