dcsimg
calling native method in a jsp
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ozgur_Sah
Posted On:   Friday, February 7, 2003 07:44 AM

I wrote a java class that call C functions in libX.so under Unix. Then add this class in my webApp project and I use this class in a x.jsp.deploy my WebApp to Tomcat 4.1.2. I can call the native methods --java sample.java but in my WebApp I can't call. in X.jsp file I get the fallowing exception: org.apache.jasper.JasperException: deneme at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:161) at org.apache.jasper.JasperException.(JasperException.java:88) at org.apache.jasper.servlet   More>>

I wrote a java class that call C functions in libX.so under Unix. Then add this class in my webApp project and I use this class in a x.jsp.deploy my WebApp to Tomcat 4.1.2.
I can call the native methods --java sample.java but in my WebApp I can't call.
in X.jsp file I get the fallowing exception:

			
org.apache.jasper.JasperException: deneme
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at javax.servlet.ServletException.(ServletException.java:161)
at org.apache.jasper.JasperException.(JasperException.java:88)
at org.apache.jasper.servlet.JspServletWrapper.service(Compiled Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compiled Code)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled Code)
at org.apache.catalina.core.StandardWrapperValve.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Compiled Code)
at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(Compiled Code)
at org.apache.catalina.core.StandardContextValve.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Compiled Code)
at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(Compiled Code)
at org.apache.catalina.core.StandardContext.invoke(Compiled Code)
at org.apache.catalina.core.StandardHostValve.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Compiled Code)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Compiled Code)
at org.apache.catalina.valves.ErrorReportValve.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Compiled Code)
at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(Compiled Code)
at org.apache.catalina.core.StandardEngineValve.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Compiled Code)
at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(Compiled Code)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(Compiled Code)
at org.apache.coyote.http11.Http11Processor.process(Compiled Code)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Compiled Code)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)


   <<Less
About | Sitemap | Contact