Re: strange Jasper2 + JSTL behavior after upgrading from TC 5.0.29 to TC 5.5.7 [SOLVED]
http://issues.apache.org/bugzilla/show_bug.cgi?id=33373 On Wed, 23 Mar 2005 19:32:00 +0100, Thomas Chille <[EMAIL PROTECTED]> wrote: > Hi, > > i declared an anttask which precompiles my JSPs. All works fine with TC > 5.0.29. > > After upgrading to TC 5.5.7 i got this error: > > BUILD FAILED: C:\eclipse3\eclipse\workspace\ecs2\build.xml:134: > org.apache.jasper.JasperException: The absolute uri: > http://java.sun.com/jsp/jstl/fmt cannot be resolved in either web.xml > or the jar files deployed with this application > > Only one JSP would be precompiled. This was the first page (error.jsp) > in my JSP-hierarchy and makes no use of JSTL. > > After simply changing my TOMCAT_HOME environment variable back to TC > 5.0.29's home it works again for all JSPs. > > Now i tried to localize the root of this behavior by simply adding > this taglib directive to my error.jsp: > > <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"; %> > > I would excpect that now error.jsp could not be precompiled too. But > oh wonder after this all JSPs could be precompiled correct. > > I think this behavior is not correct or did i something wrong? > > regards and thanks in advance, > thomas > > build.xml fragment > > > > > > > > > > > > > > > > > > > > > > > > > > > > validateXml="false" > uriroot="${basedir}/web" > webXmlFragment="${basedir}/jspc/generated_web.xml" > addWebXmlMappings="true" > outputDir="${basedir}/jspc" /> > -- Thomas Chille Kastanienallee 5 - 10435 Berlin mob +49 179-5 90 72 57 fon +49 30-81 79 87 65 work + 49 30-27 90 72 04 mail [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
strange Jasper2 + JSTL behavior after upgrading from TC 5.0.29 to TC 5.5.7
Hi, i declared an anttask which precompiles my JSPs. All works fine with TC 5.0.29. After upgrading to TC 5.5.7 i got this error: BUILD FAILED: C:\eclipse3\eclipse\workspace\ecs2\build.xml:134: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/fmt cannot be resolved in either web.xml or the jar files deployed with this application Only one JSP would be precompiled. This was the first page (error.jsp) in my JSP-hierarchy and makes no use of JSTL. After simply changing my TOMCAT_HOME environment variable back to TC 5.0.29's home it works again for all JSPs. Now i tried to localize the root of this behavior by simply adding this taglib directive to my error.jsp: <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"; %> I would excpect that now error.jsp could not be precompiled too. But oh wonder after this all JSPs could be precompiled correct. I think this behavior is not correct or did i something wrong? regards and thanks in advance, thomas build.xml fragment - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loading System Library After Reloading Webapp
Nobody out there who could help me, please? Could this this eventuelly be a solution: Is it possible to register a class on tomcat wich is listening to tomcat startup and then loads the native library? Can i then access their native functions from every webapp? regards and thanks in advance, thomas On Wed, 16 Mar 2005 17:01:54 +0100, Thomas Chille <[EMAIL PROTECTED]> wrote: > Hi, > > in our webapp we are using a native c sytem library. after reloading > this webapp via the manager app i step into the following error: > > java.lang.UnsatisfiedLinkError: Native Library > C:\eclipse3\eclipse\workspace\Phoenix\etc\bin\resmgr.dll already > loaded in another classloader > > I know that for every webapp would be one classloader used. > > 1. > Would be different classloaders used for every loaded instance of a webapp? > > 2. > Could i register a listener to unloading (is this possible in java?) > the library if tomcat unloading the webapp? > > I am using tomcat 5.0.29 > > regards, > thomas > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Loading System Library After Reloading Webapp
Hi, in our webapp we are using a native c sytem library. after reloading this webapp via the manager app i step into the following error: java.lang.UnsatisfiedLinkError: Native Library C:\eclipse3\eclipse\workspace\Phoenix\etc\bin\resmgr.dll already loaded in another classloader I know that for every webapp would be one classloader used. 1. Would be different classloaders used for every loaded instance of a webapp? 2. Could i register a listener to unloading (is this possible in java?) the library if tomcat unloading the webapp? I am using tomcat 5.0.29 regards, thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unexpected Signal : 11
Hi, we are using a reporting webapp wich is deployed on 20 client systems in different companies. all is working fine except for one customer. if he generates an long report, the report will displayed correct, but after finishing the request tomcat is crashing. the error is there replicable but no where else. the diffenrent installations were created by cloning one master-harddrive-image, so i can assume the same software environment for all installations. the hardware ist identically too. has someone experienced the same error? Error dump attached CPU: 2.6 Ghz Intel Celeron i686 OS: Red Hat 9b Kernel: 2.4.20-18.9 JVM: 1.4.2_02_b03 RAM: 768MB DDR-Ram Tomcat: 4.0.6 regards, thomas Unexpected Signal : 11 occurred at PC=0x400FAFF8 Function=(null)+0x400FAFF8 Library=/home/pos/jdk/jre/lib/i386/client/libjvm.so NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Dynamic libraries: 08048000-0804e000 r-xp 03:03 131062 /home/pos/jdk/bin/java 0804e000-0804f000 rw-p 5000 03:03 131062 /home/pos/jdk/bin/java 4000-40015000 r-xp 03:03 65419 /lib/ld-2.3.2.so 40015000-40016000 rw-p 00014000 03:03 65419 /lib/ld-2.3.2.so 40017000-4001f000 r-xp 03:03 752793 /home/pos/jdk/jre/lib/i386/native_threads/libhpi.so 4001f000-4002 rw-p 7000 03:03 752793 /home/pos/jdk/jre/lib/i386/native_threads/libhpi.so 4002-40024000 rw-s 03:03 2158827/tmp/hsperfdata_pos/3124 40024000-4002a000 r--s 03:03 768948 /home/pos/phoenix/tomcat/bin/bootstrap.jar 4002a000-4002b000 r--p 00979000 03:03 474222 /usr/lib/locale/locale-archive 4002b000-40036000 r-xp 03:03 1177357/lib/tls/libpthread-0.34.so 40036000-40037000 rw-p a000 03:03 1177357/lib/tls/libpthread-0.34.so 40039000-4003c000 r-xp 03:03 65432 /lib/libdl-2.3.2.so 4003c000-4003d000 rw-p 2000 03:03 65432 /lib/libdl-2.3.2.so 4003e000-40438000 r-xp 03:03 2583962 /home/pos/jdk/jre/lib/i386/client/libjvm.so 40438000-40454000 rw-p 003f9000 03:03 2583962 /home/pos/jdk/jre/lib/i386/client/libjvm.so 40466000-40478000 r-xp 03:03 65436 /lib/libnsl-2.3.2.so 40478000-40479000 rw-p 00011000 03:03 65436 /lib/libnsl-2.3.2.so 4047b000-4049c000 r-xp 03:03 1177355/lib/tls/libm-2.3.2.so 4049c000-4049d000 rw-p 0002 03:03 1177355/lib/tls/libm-2.3.2.so 4049d000-404ad000 r-xp 03:03 2796795 /home/pos/jdk/jre/lib/i386/libverify.so 404ad000-404af000 rw-p f000 03:03 2796795 /home/pos/jdk/jre/lib/i386/libverify.so 404af000-404b1000 r--s 03:03 1341331 /home/pos/phoenix/tomcat/server/lib/servlets-invoker.jar 404b1000-404bc000 r-xp 03:03 65452 /lib/libnss_files-2.3.2.so 404bc000-404bd000 rw-p a000 03:03 65452 /lib/libnss_files-2.3.2.so 404bd000-404dd000 r-xp 03:03 2796796 /home/pos/jdk/jre/lib/i386/libjava.so 404dd000-404df000 rw-p 0001f000 03:03 2796796 /home/pos/jdk/jre/lib/i386/libjava.so 404df000-404f3000 r-xp 03:03 2796798 /home/pos/jdk/jre/lib/i386/libzip.so 404f3000-404f6000 rw-p 00013000 03:03 2796798 /home/pos/jdk/jre/lib/i386/libzip.so 404f6000-406b1000 r--s 03:03 1733815 /home/pos/phoenix/tomcat/common/lib/xerces.jar 406b1000-406fb000 r--s 03:03 1733817 /home/pos/phoenix/tomcat/common/lib/tyrex-0.9.7.0.jar 406fb000-4070f000 r--s 03:03 1733818 /home/pos/phoenix/tomcat/common/lib/servlet.jar 4070f000-40718000 r--s 03:03 1733819 /home/pos/phoenix/tomcat/common/lib/naming-resources.jar 40718000-4071f000 r--s 03:03 1733820 /home/pos/phoenix/tomcat/common/lib/naming-common.jar 4071f000-40764000 r--s 03:03 1733821 /home/pos/phoenix/tomcat/common/lib/mail.jar 40764000-40767000 r--s 03:03 1733822 /home/pos/phoenix/tomcat/common/lib/jta-spec1_0_1.jar 40767000-4078 r--s 03:03 1733823 /home/pos/phoenix/tomcat/common/lib/jndi.jar 4078-40795000 r--s 03:03 1733824 /home/pos/phoenix/tomcat/common/lib/jdbc2_0-stdext.jar 40795000-407a1000 r--s 03:03 1733825 /home/pos/phoenix/tomcat/common/lib/activation.jar 407eb000-40801000 r--s 03:03 4497401 /home/pos/jdk/jre/lib/sunrsasign.jar 40801000-408dc000 r--s 03:03 4497433/home/pos/jdk/jre/lib/jsse.jar 408dc000-408ed000 r--s 03:03 4497402/home/pos/jdk/jre/lib/jce.jar 408ed000-40e46000 r--s 03:03 4497434 /home/pos/jdk/jre/lib/charsets.jar 410f1000-412f1000 r--p 03:03 474222 /usr/lib/locale/locale-archive 412f1000-412f7000 r--p 008d 03:03 474222 /usr/lib/locale/locale-archive 412f7000-4132b000 r--p 00942000 03:03 474222 /usr/lib/locale/locale-archive 4152f000-4154b000 r--s 03:03 4268464 /home/pos/jdk/jre/lib/ext/sunjce_provider.jar 4154b0
Re: Running heavily loaded tomcat sites.
> For me it refuses to open under IE6 but FF works perfectly fine - no > passwords required. closing the -tag in html-source make it readable on ie6 too ... lg t - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to run servlet for every 30 minutes in Tomcat 4.1.30
On Tue, 21 Dec 2004 20:24:25 -0800, Dwayne Ghant <[EMAIL PROTECTED]> wrote: > The alarm is configured as any other servlet, with the addition of the > run-at tag. The following configuration runs the servlet every 15 > minutes. If the hour is missing, e.g. :15 the service is run at the > specified minute. > 15 minute configuration > > > :00, :15, :30, :45 > Will be the the RUN-AT-paramter evaluated by Tomcat 5.0x or by anybody else? I implemeted a small testscenario but get no log-output for the service-method: ... timerTest de.spoon.report.TimerTestServlet :01, :02, :03, :05, :06 1 ... ... public class TimerTestServlet extends HttpServlet { private final static Logger logger = Logger.getLogger(TimerTestServlet.class); public void init(ServletConfig config) throws ServletException { super.init(config); logger.info("INIT: " + new Date()); } public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { logger.info("SERVICE: " + new Date()); } } Did i something wrong? Regards, Thomas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with including JspC generated web.xml fragment
On Tue, 18 Jan 2005 17:00:54 +0100, Andreas Schildbach <[EMAIL PROTECTED]> wrote: > Sorry, it still does not work. You have still to specify the webXmlFragment-attribute. Without this i'm getting a NullpointerException too. @Tim: i found your snippet and now its works for me too :) It's funny how many people work around this problem on different ways and it could be so easy. Maybe the jasper-howto on apache.org don't tell all secrets. Regards, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with including JspC generated web.xml fragment
On Tue, 18 Jan 2005 06:43:16 -0500, Tim Funk <[EMAIL PROTECTED]> wrote: > My snippet does 2 things. > > 1) Merges the servlet names and mappings into web.xml > 2) creates a file containing all the mappings done in 1 Hi Tim, can you please provide this snippet, maybe direct to me? I googled around a little bit and found an easy solution wich works for me: http://marc.theaimsgroup.com/?l=ant-user&m=106153992631697&w=2 A copy-task is replacing a token in web.xml with the generated content. Regards, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with including JspC generated web.xml fragment
<[EMAIL PROTECTED]> wrote:> JspC can acually edit web.xml? Where is this documented? I can't find > any documentation of the jasper2 task except the old outdated jspc task > (including all the options/attributes) that is included with Ant. Hi, i think JSPC can not merge the web.xml-fragment into the the orginate web.xml-file. You can doit manually, i.e. before every commit to cvs. This it what we are doing here. But Peter Roßbach presents in his column in Javamagazin an xsl-stylsheet to merge it via an ant task using saxon: http://tomcat.objektpark.org/kolumne/kolumneArchiv.html#11.2004+JSPs+optimieren+mit+dem+Tomcat+JSP+Container+Jasper+-+JSPs+das+Springen+beibringen (It's in German, but should be no problem for you :) If i get enough time i wanna change our buildprocess this way too. Regards, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP expressions are displayed as string
On Tue, 14 Dec 2004 12:09:12 -, Allistair Crossley <[EMAIL PROTECTED]> wrote: > it instructs tomcat to use the expression language engine I *think* hmm..., but before (TC 4.0.6 - JSTL1.0 - DTD 2.3) all works fine. Upgrading only the Tomcat, the JSTL-Jars, the JSTL-URIs in the JSPs without upgrading the web.xml to 2.4 let stop the server excecuting the JSTL-Expressions *SOMETIMES*. I like to understand what i do, thatswhy my question. But the problem is solved and if i get no more answer i can live with that. regards, thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP expressions are displayed as string
Hi, last night i stepped during the upgrade from TC4 to TC5 and from JSTL1.0 to JSTL1.1 into the same problem. And fortunately changing the 2.3er DTD entry to an 2.4er Schema entry solved my problem. But i dont know why. What has this entry to do with the execution of JSTL-Expressions? Thanks in advice for any hint, thomas! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]