3 Replies Latest reply on Oct 26, 2004 8:04 AM by 807581

    Java runtime setting for application server

    807581
      Hi,

      I have developed a web service using jax-rpc. I use a HP package Jena2.1 to do onotology file parsing. When I build my web service and compile it there is no problem. I finds all the necessary classes in the Jena package installed on my machine.

      Once I deploy the web service and the client makes a call to the method that uses the classes in Jena package, I get the following error on the server.
      [#|2004-10-22T16:30:19.201-0400|SEVERE|sun-appserver-pe8.1|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=16;|caught throwable
      java.lang.NoClassDefFoundError: com/hp/hpl/jena/ontology/OntModelSpec
           at ontocmp.OntoImpl.ontoCompare(OntoImpl.java:40)
           at ontocmp.OntoIF_Tie.invoke_ontoCompare(OntoIF_Tie.java:92)
           at ontocmp.OntoIF_Tie.processingHook(OntoIF_Tie.java:184)
           at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:321)
           at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:443)
           at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
           at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:273)
           at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
           at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
           at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
           at java.security.AccessController.doPrivileged(Native Method)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:262)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
           at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
           at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
           at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:618)
           at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:500)
           at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:375)
           at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)

      The client can access all other methods in the web service except for the method that uses Jena classes.

      Could you please let me know the problems I am running into. How come the web service classes can compile and recognize the class but not run later?

      Infact I am able to parse files in a java application but as a web services after deployment it fails.
      Thanks for any help!!