  | 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
|
|
|
  | | | 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)
|
|
 |