4 Replies Latest reply on Aug 6, 2009 12:33 PM by karypid

    Baby steps: test suite problems

      Hi,

      JBossWS development 101:

      Step 1: Checkout / compile according to http://jbossws.jboss.org/mediawiki/index.php?title=Building_From_Source.... DONE.

      Step 2: Run the test suites according to http://jbossws.jboss.org/mediawiki/index.php?title=Running_The_Test_Suites.... FAILED.

      Here is the output:

      generate-sources:
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] An Ant BuildException has occured: The following error occurred while executing this line:
      D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests\scripts\antrun-wstools.xml:44: The following error occurred while executing this line:
      D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests\scripts\antrun-wstools.xml:99: Error running jbossws:
      
      Cannot load wsdl: D\:\\aiq\\jbossws\\work\\jbossws-native\\modules\\testsuite\\native-tests\\target/test-resources/../wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/wsdl/hello-service.wsdl


      Here is some more context:

      D:\aiq\jbossws\work\jbossws-native>mvn -Psmoketest,jboss510 test
      
      ...
      wsconsume:
      [wsconsume] Consuming wsdl: D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests/src/test/resources/benchmark/jaxws/doclit/WEB-INF/wsdl/BenchmarkWebService.wsdl
      [wsconsume] Consuming wsdl: D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests/src/test/resources/interop/soapwsdl/BaseDataTypesDocLitB/WEB-INF/wsdl/service.wsdl
      [wsconsume] Consuming wsdl: D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests/src/test/resources/interop/soapwsdl/BaseDataTypesDocLitW/WEB-INF/wsdl/service.wsdl
      [wsconsume] Consuming wsdl: D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests/src/test/resources/interop/soapwsdl/BaseDataTypesRpcLit/WEB-INF/wsdl/service.wsdl
      [wsconsume] Consuming wsdl: D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests/src/test/resources/jaxws/samples/wssecuritypolicy/WEB-INF/wsdl/HelloService.wsdl
      [wsconsume] Consuming wsdl: D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests/src/test/resources/jaxws/samples/wssecurityAnnotatedpolicy/META-INF/wsdl/HelloService.wsdl
      [wsconsume] Consuming wsdl: D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests/src/test/resources/jaxws/samples/wssecurity/META-INF/wsdl/HelloService.wsdl
      [INFO] Executed tasks
      [INFO] [build-helper:add-test-source {execution: add-source}]
      [INFO] Test Source directory: D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests\target\wsconsume\java added.
      [INFO] [resources:resources {execution: default-resources}]
      [WARNING] Using platform encoding (Cp1253 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests\src\main\resources
      [INFO] [compiler:compile {execution: default-compile}]
      [INFO] No sources to compile
      [INFO] [resources:testResources {execution: default-testResources}]
      [WARNING] File encoding has not been set, using platform encoding Cp1253, i.e. build is platform dependent!
      [WARNING] Using platform encoding (Cp1253 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] Copying 3 resources
      [INFO] Copying 7 resources to ../test-classes
      [INFO] Copying 1725 resources to ../test-resources
      [INFO] Copying 582 resources to ../test-resources
      [INFO] [compiler:testCompile {execution: default-testCompile}]
      [INFO] Compiling 90 source files to D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests\target\test-classes
      [INFO] [antrun:run {execution: wstools}]
      [INFO] Executing tasks
      
      generate-sources:
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] An Ant BuildException has occured: The following error occurred while executing this line:
      D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests\scripts\antrun-wstools.xml:44: The following error occurred while executing this line:
      D:\aiq\jbossws\work\jbossws-native\modules\testsuite\native-tests\scripts\antrun-wstools.xml:99: Error running jbossws:
      
      
      Cannot load wsdl: D\:\\aiq\\jbossws\\work\\jbossws-native\\modules\\testsuite\\native-tests\\target/test-resources/../wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/wsdl/hello-service.wsdl
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 42 seconds
      [INFO] Finished at: Thu Aug 06 12:38:46 EEST 2009
      [INFO] Final Memory: 52M/94M
      [INFO] ------------------------------------------------------------------------

      Can somebody help? I am using:

      - Sun JDK 1.6.0_14
      - Ant 1.7.0
      - Maven 2.2.0
      - JBoss AS 5.1.0.GA (not head of development trunk, the release tag)
      - JBossWS-Native 3.2.0 (head of development trunk).

      Here is verification that the stack was installed successfully in the server I built:

      12:20:50,599 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      12:20:50,599 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200908042216)
      ...
      12:20:56,066 INFO [ServerInfo] Java version: 1.6.0_14,Sun Microsystems Inc.
      12:20:56,066 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
      12:20:56,066 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 14.0-b16,Sun Microsystems Inc.
      12:20:56,066 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      ...
      12:21:22,588 INFO [AbstractServerConfig] JBoss Web Services - Native Server
      12:21:22,588 INFO [AbstractServerConfig] 3.2.0-SNAPSHOT
      12:21:24,368 INFO [AttributeCallbackItem] Owner callback not implemented.
      ...



        • 1. Re: Baby steps: test suite problems
          asoldano

          mmh... that's strange. Can you check if that hello-service.wsdl is actually generated?
          Besides that I don't see anything special wrong here... perhaps you can try again after temporary moving your locale from Cp1253 to UTF-8?

          Besides this issue, if you are in hurry and need to go on, you might want to comment out that call to wstools for wsbpel stuff in antrun-wstools.xml:44.

          • 2. Re: Baby steps: test suite problems
            ropalka

            I see:

            "karypid" wrote:

            12:21:22,588 INFO [AbstractServerConfig] 3.2.0-SNAPSHOT
            


            Why do you use JBossWS trunk?
            I suggest you to use JBossWS 3.1.2 if you don't need to develop on JBossWS trunk.

            The problem is you didn't configure your maven settings properly, please follow these maven intructions.
            My ~/.m2/setting.xml file looks like this.


            • 3. Re: Baby steps: test suite problems

               

              "alessio.soldano@jboss.com" wrote:
              mmh... that's strange. Can you check if that hello-service.wsdl is actually generated?


              The file is there and looks fine.

              "alessio.soldano@jboss.com" wrote:
              Besides that I don't see anything special wrong here... perhaps you can try again after temporary moving your locale from Cp1253 to UTF-8?


              I'm not sure there's an easy way to do that on Windows XP...

              In any case, I downloaded and compiled JBossWS-Native 3.1.2 sources as suggested by richard.opalka@jboss.com in the post above and got the exact same error.

              "alessio.soldano@jboss.com" wrote:
              Besides this issue, if you are in hurry and need to go on, you might want to comment out that call to wstools for wsbpel stuff in antrun-wstools.xml:44.


              This is what I ended up doing and of course the error went away. The tests have started running and are still running as I write these lines.


              • 4. Re: Baby steps: test suite problems

                 

                "alessio.soldano@jboss.com" wrote:
                Besides this issue, if you are in hurry and need to go on, you might want to comment out that call to wstools for wsbpel stuff in antrun-wstools.xml:44.


                Ok, after skipping that one I got the test suite to run:

                Tests run: 1445, Failures: 3, Errors: 116, Skipped: 0


                I suppose I should get no failures (especially with 3.1.2.GA), but it's ok. There's no point in wasting anyone's time at this point to find out what's wrong.

                Anyway, I'll be going over the code to get acquainted and will probably annoy you guys over the following days with some questions... Any pointers on how to walk through the code are appreciated. The packages in modules/core/src/main/java seem like a good starting point to me, so I'll start there...