1 Reply Latest reply on Sep 9, 2008 11:27 AM by socallag

    unable to run wsdl_first sample application in servelt container

    amarnath.gajula

      when i want to run wsdl_first in samples using servlet container(tomcat 5.5), i created war file and deployed in tomcat. Using java, i executed the command "java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties

             demo.hw.client.Client http://localhost:8080/helloworld/services/hello_world?wsdl ". but i am getting an  error message like"

      Exception in thread "main" java.lang.NoClassDefFoundError: demo/hw/client/Client

       

      Caused by: java.lang.ClassNotFoundException: demo.hw.client.Client

              at java.net.URLClassLoader$1.run(Unknown Source)

              at java.security.AccessController.doPrivileged(Native Method)

              at java.net.URLClassLoader.findClass(Unknown Source)

              at java.lang.ClassLoader.loadClass(Unknown Source)

              at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

              at java.lang.ClassLoader.loadClass(Unknown Source)

              at java.lang.ClassLoader.loadClassInternal(Unknown Source)"

       

      can you help me what might have went wrong? and even if open any tomcat browser and select the hello_world.war resource in the server, am getting an error page like "The requested resource (/helloworld/) is not available". kindly guide me.

        • 1. Re: unable to run wsdl_first sample application in servelt container
          socallag

          You will need to set the classpath as indicated in the README and also make sure that you are running the command from the base directory, that is, the directory containing the README.

           

          Note the command you use will not run the client against the servlet, you will need to pass the URL of the service deployed on tomcat, this is detailed in the README.

           

          I would advise you to download ant and use it as the ant commands implicitly take care of classpath issues.