Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: RE: Problems with a web application running a PHP script

Subject: RE: Problems with a web application running a PHP script

2007-11-04       - By Rocco Scappatura

 Back



>> From: Rocco Scappatura [mailto:Rocco.Scappatura@(protected)]
>> Subject: Problems with a web application running a PHP script
>>
>> Under Netbeans it works. But wen deploy it under Tomcat
>> 5.5.25 I get this error when I try to access at a PHP page:
>>
>> java.lang.NoSuchMethodError:
>> javax.script.ScriptEngineManager.getEngineFactories()
>> [Ljavax/script/ScriptEngineFactory;
>>
>> I cant figure out what I'm missing..
>
> Possibly the correct JRE/JDK for Tomcat.  The above class and method
> exist only in Java SE 6; what JVM are you trying to run Tomcat with?

Thanks Chunck,

I'm a newbie with Tomcat and I'm not experencied with Java programming...

Anyway, the version of Java I'm using is:

C:\Documents and Settings\rocco>java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode)

Moreover, I have noticed that in there is an INFO in catalina logs of both
Tomcat - The one used by Netbeans (5.5.17) and the separate one installed
by me (5.5.25) - that reports the java.lib.path:

- On Tomcat 5.5.17 catalina logs: 2-nov-2007 (See http://nov-2007.ora-code.com) 21.38.51
org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
C:\Programmi\Java\jdk1.5.0_13\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\bin
;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\PC-Doctor
for Windows\services;C:\Programmi\QuickTime\QTSystem\;C:\Programmi\IDM
Computer
Solutions\UltraEdit-32 (See http://dit-32.ora-code.com);C:\Programmi\WinSCP\;C:\Programmi\ZipGenius
6\;C:\php5;C:\Programmi\MySQL\MySQL Server 5.0\bin

- On Tomcat 5.5.25 catalina logs: 2-nov-2007 (See http://nov-2007.ora-code.com) 22.03.49
org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
C:\Tomcat\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl
\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\PC
-Doctor
for Windows\services;C:\Programmi\QuickTime\QTSystem\;C:\Programmi\IDM
Computer
Solutions\UltraEdit-32 (See http://dit-32.ora-code.com);C:\Programmi\WinSCP\;C:\Programmi\ZipGenius
6\;C:\php5;C:\Programmi\MySQL\MySQL Server 5.0\bin

Remember that on Tomcat 5.5.17 PHP works fine while on Tomcat 5.5.25 an
error occour whenever I try to access to a PHP page.

Please note that 'C:\WINDOWS\Sun\Java\bin' is an inexistent path and that
I have tried to set the correct path of java binary in PATH environment
variable but get always the same error (indeed it seemes that Tomcat has
not read the new value of PATH environment variable. Maybe do I had had to
restart my computer?).

The last question: how I have to do to take away the message " The Apache
Tomcat Native library which allows optimal performance.."?

Thanks,

rocsca


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.