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

sky info technology pvt. ltd. is a premier company engaged in it services Training, corporate training, industrial training, individual training erp oracle training, software development consultancy, recruitment. & man power outsourcing. We provide training on following modules of sap 1. Oracle 9i /10g core dba 2. Oracle apps (11i dba) 3. Oracle apps (11i technical) 4. Oracle apps (11i supply chain management) 5. Oracle apps (11i financial) 6. Release (r-12) 7. r-12 we have a independent placement cell devoted to cater to the needs of organizations looking for suitable candidates for their requirements. a full fledge hr team who has experience in placing candidates in different   More>>

sky info technology pvt. ltd. is a premier company engaged in it services
Training, corporate training, industrial training, individual training erp oracle training, software development consultancy, recruitment. & man power outsourcing.

We provide training on following modules of sap
1. Oracle 9i /10g core dba
2. Oracle apps (11i dba)
3. Oracle apps (11i technical)
4. Oracle apps (11i supply chain management)
5. Oracle apps (11i financial)
6. Release (r-12)
7. r-12
we have a independent placement cell devoted to cater to the needs of organizations looking for suitable candidates for their requirements. a full fledge hr team who has experience in placing candidates in different industries runs this dept.
salient features:
1. individual /corporate training.
2. daytime, weekends, evenings and flexible hours available.
3. Personal attentions to everyone.
4. Well experienced sap consultant to train you on erp.
Contact us today to discover a bright future in erp- oracle..
free demo session on 7 days by real time consultants. for attending the demo session, please reserve your seat in advance.

Thanks & regards,
corporate office:

Sky info technology pvt. ltd.
A-50,sec-64,noida(u.p)
contact-----------------------------------------------------
noida- 0120 4242223/24, 9717292598/9717292599
delhi – 9717292601/9717292602
gurgaon – 9810866624/9810866642


website url :-skyinfotech.in

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