>> From: Rocco Scappatura [mailto:[EMAIL 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 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;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 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;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@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to