0 Replies Latest reply: Apr 6, 2012 2:01 AM by 923382 RSS

    Error While building the Sample Example

    923382
      Hi,

      I'm trying to run the first example in the following tutorial:
      http://docs.oracle.com/cd/E17904_01/web.1111/e13758/toc.htm

      Getting the following error:

      java.lang.NoClassDefFoundError: com/sun/xml/ws/model/RuntimeModeler
      at weblogic.wsee.util.ClassUtil.getNamespaceFromClass(ClassUtil.java:151
      *)*
      at weblogic.wsee.jws.WebServiceRuntimeDecl.initNamespaces(WebServiceRunt
      imeDecl.java:253)
      at weblogic.wsee.jws.WebServiceRuntimeDecl.<init>(WebServiceRuntimeDecl.
      java:77)
      at weblogic.wsee.tools.jws.decl.WebServiceDecl.<init>(WebServiceDecl.jav
      a:48)
      at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDe
      cl.java:81)
      at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDe
      cl.java:68)
      at weblogic.wsee.tools.jws.decl.WebServiceDeclFactory.newInstance(WebSer
      viceDeclFactory.java:54)
      at weblogic.wsee.tools.anttasks.JwsModule.buildAndValidate(JwsModule.jav
      a:583)
      at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java
      *:574)*
      at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:369)
      at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:256)
      at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:184)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
      a:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
      cutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
      at org.apache.tools.ant.Main.runBuild(Main.java:758)
      at org.apache.tools.ant.Main.startAnt(Main.java:217)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
      Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.model.RuntimeModeler

      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      *... 29 more*

      Kindly help me out in how to run the example, please let me know where I'm going wrong.
      I'm beginning to feel oracle has the most pathetic documentation, even when u following exactly as told in the tutorial, still its code does not work, personally I feel oracle products are the most complex and most useless while at the same time very expensive.