tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rocco Scappatura" <Rocco.Scappat...@sttspa.it>
Subject Running a Script in a web application
Date Wed, 07 Nov 2007 20:02:26 GMT
Hello,

I'm tring to run a script inside a web application using JSR223Script class.

I get an error and I get to do so that JSR223Script is visible to Tomcat,
but I'm not experienced with Java.

Here the relative Tomcat log I get:

7-nov-2007 20.41.27 org.apache.catalina.core.ApplicationContext log INFO:
Marking servlet JSR223Script as unavailable
7-nov-2007 20.41.27 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Allocate exception for servlet JSR223Script
java.lang.NoSuchMethodError:
javax.script.ScriptEngineManager.getEngineFactories()[Ljavax/script/ScriptEngineFactory;
        at
com.sun.script.http.ScriptServlet$EngineRepository.<init>(ScriptServlet.java:106)
        at com.sun.script.http.ScriptServlet.<init>(ScriptServlet.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
        at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:619)


Could somebody help me?

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


Mime
View raw message