aspose file tools
The moose likes Web Services and the fly likes Webservice not running on Glassfish server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice not running on Glassfish server" Watch "Webservice not running on Glassfish server" New topic
Author

Webservice not running on Glassfish server

bikkie bansal
Greenhorn

Joined: Oct 14, 2008
Posts: 17
Hello ,

I have developed a web service which is using some native C++ application and dlls. After deploying the webservice on Glassfish server, I am trying to test webservice by launcing it from netbeans.
I have set the system environment path to dll location and copied the dlls in Glassfish Lib folder, glassfish current running directory i.e., E:\openesb\glassfish-v2-ur2-b04-patch-20080603\domains\domain1\config folder in my system. But still its not running giving the below error.......

Servlet web service endpoint 'VRServer' failure
java.lang.UnsatisfiedLinkError: com.sun.tec.mf.vr.ivCanvas.initialSetup()V
at com.sun.tec.mf.vr.ivCanvas.initialSetup(Native Method)
at com.sun.tec.mf.vr.ivCanvas.initialize(ivCanvas.java:61)
at com.sun.tec.mf.vr.MainFrame.<init>(MainFrame.java:52)
at com.sun.tec.mf.vr.CStartEngine.<init>(CStartEngine.java:34)
at com.sun.tec.mf.vr.VRServer.<init>(VRServer.java:20)
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 com.sun.xml.ws.api.server.InstanceResolver.createNewInstance(InstanceResolver.java:215)
at com.sun.enterprise.webservice.InstanceResolverImpl.<init>(InstanceResolverImpl.java:69)
at com.sun.enterprise.webservice.JAXWSServlet.registerEndpoint(JAXWSServlet.java:434)
at com.sun.enterprise.webservice.JAXWSServlet.doInit(JAXWSServlet.java:296)
at com.sun.enterprise.webservice.JAXWSServlet.init(JAXWSServlet.java:113)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1178)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:832)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

initialSetup() is a method in ivCanvas.dll, which I am loading first using LoadLibrary() and then calling initalSetup() method.

Please suggest how to make glassfish reference these dlls.

Thanks in advance.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Webservice not running on Glassfish server