Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 28532 invoked from network); 7 Nov 2007 22:20:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2007 22:20:03 -0000 Received: (qmail 88779 invoked by uid 500); 7 Nov 2007 22:19:37 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 88754 invoked by uid 500); 7 Nov 2007 22:19:37 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 88743 invoked by uid 99); 7 Nov 2007 22:19:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2007 14:19:37 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [80.74.176.140] (HELO av4.sttspa.it) (80.74.176.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2007 22:19:39 +0000 Received: from localhost (localhost [127.0.0.1]) by av4.sttspa.it (Postfix) with ESMTP id 8939C75035B for ; Wed, 7 Nov 2007 23:19:17 +0100 (CET) X-Quarantine-ID: X-Virus-Scanned: amavisd-new at stt.vir X-Amavis-Alert: BAD HEADER, Improper folded header field made up entirely of whitespace: References: ...bmail.sttspa.it> \n \n <2828B04F0... Received: from av4.sttspa.it ([127.0.0.1]) by localhost (av4.stt.vir [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mnXEMJxbYHSJ for ; Wed, 7 Nov 2007 23:19:10 +0100 (CET) Received: from webmail.sttspa.it (luchino.sttspa.it [80.74.176.148]) by av4.sttspa.it (Postfix) with ESMTP id 24DFE750334 for ; Wed, 7 Nov 2007 23:19:10 +0100 (CET) Received: from 10.72.4.67 (SquirrelMail authenticated user rscappat) by webmail.sttspa.it with HTTP; Wed, 7 Nov 2007 23:19:10 +0100 (CET) Message-ID: <2650.10.72.4.67.1194473950.squirrel@webmail.sttspa.it> In-Reply-To: <019a01c82056$cdd0ab20$0300000a@animal> References: <2138.10.72.4.67.1194041495.squirrel@webmail.sttspa.it> <2828B04F0113CD468E6D1D51DF4362A403E5AFF4@USEA-EXCH2.na.uis.unisys.com> <1688.10.72.4.67.1194174313.squirrel@webmail.sttspa.it> <001d01c81ef3$afc700c0$0300000a@animal> <4780.10.72.4.67.1194247543.squirrel@webmail.sttspa.it> <074a01c81f86$75d19f90$0300000a@animal> <4126.10.72.4.67.1194309479.squirrel@webmail.sttspa.it> <00aa01c82036$4b7f83f0$0300000a@animal> <1373.10.72.4.67.1194333465.squirrel@webmail.sttspa.it> <019a01c82056$cdd0ab20$0300000a@animal> Date: Wed, 7 Nov 2007 23:19:10 +0100 (CET) Subject: Re: Problems with a web application running a PHP script From: "Rocco Scappatura" To: "Tomcat Users List" User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org >> Thanks for you hints. I will disinstall all JDK/JRE versions from my PC. >> I'm dowloading JDK 6 Update 3 and I will install it. > > No problem, you got me curious about scripting... > I Tested with this > ====================================== > protected void processRequest(HttpServletRequest request, > HttpServletResponse response) > throws ServletException, IOException { > response.setContentType("text/html;charset=UTF-8"); > PrintWriter out = response.getWriter(); > > > out.println(""); > out.println(""); > out.println("Servlet NewServlet"); > out.println(""); > out.println(""); > out.println(); > out.println("

Stand Back... Script running

"); > > ScriptEngineManager scriptMgr = new ScriptEngineManager(); > ScriptEngine jsEngine = scriptMgr.getEngineByName("JavaScript"); > try { > jsEngine.eval("var meJavaScript = 'Me-Java Script!';"); > out.println("

" + jsEngine.get("meJavaScript") + "

"); > } > catch (ScriptException ex) { > out.println("

Oh Damn! Script Crashed " + ex.getMessage() + > "

"); > ex.printStackTrace(); > } > > out.println(""); > out.println(""); > out.close(); > } > Hello Chunk, I have a big news. After I have installed: java version "1.6.0_03" Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing) and set this new platform for my web appl, I get that the web app does not works under NB bundled Tomcat too (other than unnder Tomcat 5.5.25 installed by hand). At this point, I think that is almost clear that scripting (JSR223Script class) working depends on JDK version (I can't figure out if there is a particular class releases with JDK that is guilty of this incompatibility). If someone has a more technical explanationis welcomed! :-) rocsca --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org