1 Reply Latest reply on Jun 11, 2010 4:36 AM by rainer knupfer

    Problem with webservice_consumer_wise*

    rainer knupfer Newbie

      Hi,

      I allways get following error while trying the samples webservice_consumer_wise*:

      18:35:11,767 INFO  [STDOUT] [ERROR] com.sun.tools.javac.Main is not  available in the classpath, requires Suns JDK version

       

      I'm using the jdk 1.6 on a 64 bit windows 7 machine. I thought about the tools.jar, in particular the path of the jdk.

       

      JBossEsb 4.8 with JBoss5.1.0.GA

       

      Any idea

       

      Thx

       

       

       

       

      /Quickstart_webservice_consumer_wise2.war/PingWSSe
      rvice1561927611798822316.wsdl
      18:35:10,161 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      18:35:10,192 INFO  [STDOUT] Request map is: {external=org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise2.Ext
      ernalObject@1c7d450[internal=org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise2.InternalObject@44056a[text=J
      imbo,number=1],date=Wed Mar 07 04:27:00 CET 2007]}
      18:35:10,192 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      18:35:10,800 INFO  [STDOUT] parsing WSDL...
      18:35:11,611 INFO  [STDOUT] generating code...
      18:35:11,643 INFO  [STDOUT] org\jboss\soa\esb\samples\quickstart\webservice_consumer_wise2\generated\ComplexObject.java
      18:35:11,658 INFO  [STDOUT] org\jboss\soa\esb\samples\quickstart\webservice_consumer_wise2\generated\ObjectFactory.java
      18:35:11,674 INFO  [STDOUT] org\jboss\soa\esb\samples\quickstart\webservice_consumer_wise2\generated\PingComplexObject.j
      ava
      18:35:11,721 INFO  [STDOUT] org\jboss\soa\esb\samples\quickstart\webservice_consumer_wise2\generated\PingComplexObjectRe
      sponse.java
      18:35:11,721 INFO  [STDOUT] org\jboss\soa\esb\samples\quickstart\webservice_consumer_wise2\generated\PingWS.java
      18:35:11,736 INFO  [STDOUT] org\jboss\soa\esb\samples\quickstart\webservice_consumer_wise2\generated\PingWSService.java
      18:35:11,736 INFO  [STDOUT] org\jboss\soa\esb\samples\quickstart\webservice_consumer_wise2\generated\package-info.java
      18:35:11,767 INFO  [STDOUT] [ERROR] com.sun.tools.javac.Main is not available in the classpath, requires Suns JDK versio
      n 5.0 or latter.
      18:35:11,767 INFO  [STDOUT] unknown location
      18:35:11,767 INFO  [STDOUT] compilation failed, errors should have been reported
      18:35:11,767 INFO  [STDOUT] Failed to invoke WsImport
      18:35:11,767 INFO  [STDOUT] java.lang.IllegalStateException: WsImport invocation failed. Try the verbose switch for more
      information
      18:35:11,783 INFO  [STDOUT]     at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:233)
      18:35:11,783 INFO  [STDOUT]     at org.jboss.wsf.spi.tools.WSContractConsumer.consume(WSContractConsumer.java:202)
      18:35:11,783 INFO  [STDOUT]     at it.javalinux.wise.core.client.WSDynamicClient.importObjectFromWsdl(WSDynamicClient.ja
      va:165)
      18:35:11,783 INFO  [STDOUT]     at it.javalinux.wise.core.client.WSDynamicClient.init(WSDynamicClient.java:125)
      18:35:11,783 INFO  [STDOUT]     at it.javalinux.wise.core.client.WSDynamicClient.init(WSDynamicClient.java:94)
      18:35:11,783 INFO  [STDOUT]     at org.jboss.soa.esb.actions.soap.wise.WSDynamicClientFactory.create(WSDynamicClientFact
      ory.java:72)
      18:35:11,799 INFO  [STDOUT]     at org.jboss.soa.esb.actions.soap.wise.SOAPClient.createClient(SOAPClient.java:277)
      18:35:11,799 INFO  [STDOUT]     at org.jboss.soa.esb.actions.soap.wise.SOAPClient.process(SOAPClient.java:238)
      18:35:11,799 INFO  [STDOUT]     at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionPr
      ocessingPipeline.java:634)
      18:35:11,799 INFO  [STDOUT]     at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionPr
      ocessingPipeline.java:588)
      18:35:11,799 INFO  [STDOUT]     at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessing
      Pipeline.java:419)
      18:35:11,799 INFO  [STDOUT]     at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(Mess
      ageAwareListener.java:540)
      18:35:11,814 INFO  [STDOUT]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      18:35:11,814 INFO  [STDOUT]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      18:35:11,814 INFO  [STDOUT]     at java.lang.Thread.run(Thread.java:619)
      18:35:11,845 WARN  [ActionProcessingPipeline] No fault address defined for fault message! To: JMSEpr [ PortReference < <

        • 1. Re: Problem with webservice_consumer_wise*
          rainer knupfer Newbie

          In fact, it is a classpath problem. I just changed run.bat in

           

          if exist "%JBOSS_HOME%\bin\run.jar" (
            if "x%JAVAC_JAR%" == "x" (
              set "RUNJAR=%JAVAC_JAR%;%JBOSS_HOME%\bin\run.jar"
            ) else (
              set "RUNJAR=%JAVAC_JAR%;%JBOSS_HOME%\bin\run.jar"
            )

           

          instead

           

          if exist "%JBOSS_HOME%\bin\run.jar" (
            if "x%JAVAC_JAR%" == "x" (
              set "RUNJAR=%JAVAC_JAR%;%JBOSS_HOME%\bin\run.jar"
            ) else (
              set "RUNJAR=%JBOSS_HOME%\bin\run.jar"
            )