Calling a C Program from Servlet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dhanesh_Prabha
Posted On:   Monday, February 20, 2006 04:22 AM

I am using jboss-4.0.2 and j2sdk1.4.2_10 in UNIX. From servlet i am calling the C program(I have created the shared library). When I have done the same thing in stand alone machine it works. But when i am using JBoss server it throwing error. I have setted the LD_LIBRARY_PATH... The error is shown below 02:25:21,969 ERROR [[AccessctrlServlet]] Servlet.service() for servlet AccessctrlServlet threw exception java.lang.UnsatisfiedLinkError: /opt/jboss-4.0.2/lib/libdataupload.so: /opt/jboss-4.0.2/lib/libdataupload.so: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) at jav   More>>

I am using jboss-4.0.2 and j2sdk1.4.2_10 in UNIX.
From servlet i am calling the C program(I have created the shared library). When I have done the same thing in stand alone machine it works. But when i am using JBoss server it throwing error. I have setted the LD_LIBRARY_PATH...

The error is shown below


02:25:21,969 ERROR [[AccessctrlServlet]] Servlet.service() for servlet AccessctrlServlet threw exception
java.lang.UnsatisfiedLinkError: /opt/jboss-4.0.2/lib/libdataupload.so: /opt/jboss-4.0.2/lib/libdataupload.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at com.accessctrl.access.accesscontrol. (accesscontrol.java:4)
at com.accessctrl.servlet.AccessctrlServlet.success(AccessctrlServlet.java:150)
at com.accessctrl.servlet.AccessctrlServlet.defaultAction(AccessctrlServlet.java:62)
at com.accessctrl.servlet.AccessctrlServlet.doPost(AccessctrlServlet.java:38)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)


Anyone pls help me

Thanks and Regards
Dhanesh

   <<Less

Re: Calling a C Program from Servlet

Posted By:   ankush_purwar  
Posted On:   Monday, February 20, 2006 02:09 PM

Make sure your DLL must exists in the system path.
About | Sitemap | Contact