5 Replies Latest reply on Aug 21, 2002 12:08 PM by scharlau

    Problem with HelloWorld example

    sgturner

      I'm running JBoss 3.0.1RC1 on Win2000 with jdk 1.3.1

      I deployed a simple HelloWorld.wsr. No errors in log file. Browsing http://localhost:8080/axis/servlet/AxisServlet does not show my service. However, browsing http://localhost:8080/axis/services/HelloWorld?wsdl does display a wsdl that looks well formed.

      I run my client program and get this exception

      java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
      at org.apache.axis.configuration.DefaultEngineConfigurationFactory.(DefaultEngineConfigurationFactory.java:85)
      at org.apache.axis.client.Service.(Service.java:107)
      at com.tes.webservice.Client.main(Client.java:25)

      Now the LogFactory.class is located commons-logging.jar which is in all/lib. Here is log file message for that:

      2002-07-23 21:28:06,753 INFO [org.jboss.deployment.MainDeployer] Package: file:/C:/JBoss/build/output/JBoss/server/all/lib/commons-logging.jar is already deployed
      2002-07-23 21:28:06,753 DEBUG [org.jboss.deployment.SARDeployer] deployed classes for file:/C:/JBoss/build/output/JBoss/server/all/lib/commons-logging.jar

      So I am wondering why this class can not be found. Any help would be appreciated. Thanks

        • 1. Re: Problem with HelloWorld example
          sgturner

          Its been a long day and I'm being dumb. Figured it out. Scratch this problem !!

          • 2. Re: Problem with HelloWorld example
            sleepi

            I seem to occure this situation.
            When I build and deploy the HelloWorld wsr to Jboss, no error it displayed.
            And I run the client program and get some error message as follows.

            ##########################################################
            Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lo
            gging/LogFactory
            at org.apache.axis.configuration.DefaultEngineConfigurationFactory.<clin
            it>(DefaultEngineConfigurationFactory.java:85)
            at org.apache.axis.client.Service.(Service.java:107)
            at testClient1.main(testClient1.java:30)
            ##########################################################

            Maybe I have to put the commons-logging.jar in classpath, and retry again.
            it happened the other exception.


            ##########################################################
            Exception in thread "main" java.lang.NoClassDefFoundError: com/techtrader/module
            s/tools/bytecode/BCEntity
            at org.apache.axis.encoding.Hex.(Hex.java:102)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:130)
            at org.apache.axis.encoding.DefaultTypeMappingImpl.(DefaultTypeMap
            pingImpl.java:168)
            at org.apache.axis.encoding.DefaultTypeMappingImpl.create(DefaultTypeMap
            pingImpl.java:119)
            at org.apache.axis.encoding.TypeMappingRegistryImpl.(TypeMappingRe
            gistryImpl.java:178)
            at org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.
            java:494)
            at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java
            :109)
            at org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
            er.java:205)
            at org.apache.axis.AxisEngine.init(AxisEngine.java:189)
            at org.apache.axis.AxisEngine.(AxisEngine.java:174)
            at org.apache.axis.client.AxisClient.(AxisClient.java:83)
            at org.apache.axis.client.Service.getAxisClient(Service.java:125)
            at org.apache.axis.client.Service.(Service.java:134)
            at testClient1.main(testClient1.java:30)
            ##########################################################

            It's not to work. Any somebody can help??

            Thinks!!

            • 3. Re: Problem with HelloWorld example

              You need the tt-bytecode.jar in your server//lib directory per the errors in the file.

              cheers,

              Bruce

              • 4. Re: Problem with HelloWorld example
                sleepi

                So excited!! It's to work. Thanks Bruce your help.

                Have some question. When I put the wsr into the server/default/deploy directory, the jboss does not deploy it. And puts into the /server/all/deploy directory, it's work. Why?

                • 5. Re: Problem with HelloWorld example

                  It depends upon how you start JBoss. If you start with 'run' it uses server/default/ files. If you start with 'run -c all' then it uses the configuration under server/all.

                  Glad to hear you got it all working ok!

                  cheers

                  Bruce