2 Replies Latest reply: Jun 24, 2008 4:49 PM by 666705 RSS

    AssertionError: java.io.IOException when executing jwsc

    666705
      Hi gents,
      I am trying to build Spring On WebLogic Kit on my Linux Fedora 3 machine. ( http://commerce.bea.com/showproduct.jsp?family=SPRING&major=1.2.5&minor=0 ) After some fiddling with bundled in the kit Ant I've eventually managed to pass EJB generation and moved to web services. There I am executing the following task
      <target name="build.sync.ws">
              <jwsc
                  srcdir="${basedir}/webservice/com/bea/medrec/webservice"
                  sourcepath="${basedir}/webservice"
                  destdir="${dest.dir}"
                  applicationXml="${src.dir}/medrecEar/META-INF/application.xml"
                  classpath="${jsr.jar};${antlr.jar};${weblogic.jar};${java.class.path};${app-inf.dest.classes};${app-inf.src.lib}/${log.jar};${app-inf.src.lib}/${spring.jar}"
                  keepGenerated="true"
                  deprecation="false"
                  debug="true"
                  failonerror="false"
                  verbose="true">
                  <jws file="MedRecWebServices.java" explode="true" />
              </jwsc>
          </target>
      No luck though. I am getting
      BUILD FAILED
      /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build.xml:35: The following error occurred while executing this line:
      /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/src/build.xml:29: The following error occurred while executing this line:
      java.lang.AssertionError: java.io.IOException

      Argh! That's it - java.lang.AssertionError: java.io.IOException
      I badly need a tip why is it happening and what should be done to make my service generated. Any ideas, gents? Is it known issue? Is it WebLogic or Fedora? It might be Fedora as I am using v.3. But I am running various Java things on this v.3 Fedora for years on end and had no complaints as it is. I suspect, it is WebLogic jwsc task implementation.
      I am attaching my CLI output. JDK 1.5.0_04, Ant 1.6.5

      Please, have a look. Please, help me out.
      Yet, have a great weekend, gents!
      Iouri

      build.sync.ws:
           [echo] /home/iouri/java/server/BEA/real_time/server/lib/weblogic.jar
           [jwsc] 1 JWS files will be processed.
           [jwsc] Processing JWS: /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/src
      /medrecEar/webservice/com/bea/medrec/webservice/MedRecWebServices.java
           [jwsc] JWS: /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/src/medrecEar/
      webservice/com/bea/medrec/webservice/MedRecWebServices.java Validated.
           [jwsc] Compiling 1 source file to /tmp/_ptaghb
           [jwsc] [parsing started /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/sr
      c/medrecEar/webservice/com/bea/medrec/webservice/MedRecWebServices.java]
           [jwsc] [parsing completed 2ms]
           [jwsc] [search path for source files: [/home/iouri/java/server/BEA/real_time/samples/domains/m
      edrec-spring/src/medrecEar/webservice]]
           [jwsc] [search path for class files: [/home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar, /home/iouri
      /java/jdk1.5.0_04/jre/lib/jsse.jar, /home/iouri/java/jdk1.5.0_04/jre/lib/jce.jar, /home/iouri/java/
      jdk1.5.0_04/jre/lib/charsets.jar, /home/iouri/java/jdk1.5.0_04/jre/lib/ext/sunpkcs11.jar, /home/iou
      ri/java/jdk1.5.0_04/jre/lib/ext/sunjce_provider.jar, /home/iouri/java/jdk1.5.0_04/jre/lib/ext/dnsns
      .jar, /home/iouri/java/jdk1.5.0_04/jre/lib/ext/localedata.jar, /tmp/_ptaghb, /home/iouri/java/ws/jw
      sdp/jaxws/lib/jsr181-api.jar, /home/iouri/java/lib/ant/antlr-2.7.5.jar, /home/iouri/java/server/BEA
      /real_time/server/lib/weblogic.jar, /home/iouri/java/server/BEA/real_time/server/lib/schema/weblogi
      c-container-binding.jar, /home/iouri/java/server/BEA/real_time/server/lib/schema/weblogic-domain-bi
      nding.jar, /home/iouri/java/server/BEA/real_time/server/lib/schema/diagnostics-binding.jar, /home/i
      ouri/java/server/BEA/real_time/server/lib/schema/diagnostics-image-binding.jar, /home/iouri/java/se
      rver/BEA/real_time/server/lib/wlcipher.jar, /home/iouri/java/server/BEA/real_time/server/lib/jsafeF
      IPS.jar, /home/iouri/java/server/BEA/real_time/server/lib/webservices.jar, /home/iouri/java/server/
      BEA/real_time/server/lib/xmlx.jar, /home/iouri/java/server/BEA/real_time/server/lib/ojdbc14.jar, /h
      ome/iouri/java/server/BEA/real_time/server/lib/jconn2.jar, /home/iouri/java/server/BEA/real_time/se
      rver/lib/jConnect.jar, /home/iouri/java/server/BEA/real_time/server/lib/EccpressoAsn1.jar, /home/io
      uri/java/server/BEA/real_time/server/lib/EccpressoCore.jar, /home/iouri/java/server/BEA/real_time/s
      erver/lib/EccpressoJcae.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant.jar, /home/io
      uri/java/server/BEA/real_time/server/lib/ant/ant-nodeps.jar, /home/iouri/java/server/BEA/real_time/
      server/lib/ant/ant-antlr.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-jakarta-bcel
      .jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-junit.jar, /home/iouri/java/server/B
      EA/real_time/server/lib/ant/ant-vaj.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-a
      pache-bsf.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-jakarta-log4j.jar, /home/io
      uri/java/server/BEA/real_time/server/lib/ant/ant-launcher.jar, /home/iouri/java/server/BEA/real_tim
      e/server/lib/ant/ant-weblogic.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-apache-
      resolver.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-jakarta-oro.jar, /home/iouri
      /java/server/BEA/real_time/server/lib/ant/ant-netrexx.jar, /home/iouri/java/server/BEA/real_time/se
      rver/lib/ant/ant-xalan1.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-commons-loggi
      ng.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-jakarta-regexp.jar, /home/iouri/ja
      va/server/BEA/real_time/server/lib/ant/ant-xalan2.jar, /home/iouri/java/server/BEA/real_time/server
      /lib/ant/ant-commons-net.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-javamail.jar
      , /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-starteam.jar, /home/iouri/java/server/BE
      A/real_time/server/lib/ant/ant-xslp.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-c
      ontrib-1.0b1.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-jdepend.jar, /home/iouri
      /java/server/BEA/real_time/server/lib/ant/ant-stylebook.jar, /home/iouri/java/server/BEA/real_time/
      server/lib/ant/ant-icontract.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-jmf.jar,
       /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-swing.jar, /home/iouri/java/server/BEA/re
      al_time/server/lib/ant/ant-jai.jar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-jsch.j
      ar, /home/iouri/java/server/BEA/real_time/server/lib/ant/ant-trax.jar, /home/iouri/java/server/BEA/
      real_time/server/lib/ant/jakarta-oro-2.0.7.jar, /home/iouri/java/server/BEA/real_time/server/lib/an
      t/commons-net-1.1.0.jar, /home/iouri/java/server/BEA/real_time/server/lib/wlbase.jar, /home/iouri/j
      ava/server/BEA/real_time/server/lib/wlutil.jar, /home/iouri/java/server/BEA/real_time/server/lib/wl
      sqlserver.jar, /home/iouri/java/server/BEA/real_time/server/lib/wldb2.jar, /home/iouri/java/server/
      BEA/real_time/server/lib/wlsybase.jar, /home/iouri/java/server/BEA/real_time/server/lib/wloracle.ja
      r, /home/iouri/java/server/BEA/real_time/server/lib/wlinformix.jar, /home/iouri/java/server/BEA/rea
      l_time/server/lib/wlw-langx.jar, /home/iouri/java/server/BEA/real_time/server/lib/../../javelin/lib
      /javelinx.jar, /home/iouri/java/server/BEA/real_time/server/lib/../../javelin/lib/bcel-5.1.jar, /ho
      me/iouri/java/server/BEA/real_time/server/lib/../../javelin/lib/../../common/lib/wlw-util.jar, /hom
      e/iouri/java/server/BEA/real_time/server/lib/../../javelin/lib/../../server/lib/xbean.jar, /home/io
      uri/java/server/BEA/real_time/server/lib/logkit/logkit.jar, /home/iouri/java/server/BEA/real_time/s
      erver/lib/../../common/lib/pdev.jar, /home/iouri/java/server/BEA/real_time/server/lib/../../common/
      lib/., /home/iouri/java/server/BEA/real_time/server/lib/../../common/lib/3rdparty.jar, /home/iouri/
      java/server/BEA/real_time/server/lib/../../common/lib/plugin-wizard.jar, /home/iouri/java/server/BE
      A/real_time/server/lib/../../common/lib/comdev.jar, /home/iouri/java/server/BEA/real_time/server/li
      b/../../common/lib/wizard.jar, /home/iouri/java/server/BEA/real_time/server/lib/../../common/lib/pl
      ugin.jar, /home/iouri/java/server/BEA/real_time/server/lib/../../common/lib/oxy-cci.jar, /home/iour
      i/java/server/BEA/real_time/server/lib/../../common/lib/config.jar, /home/iouri/java/server/BEA/rea
      l_time/server/lib/../../common/lib/wlw-plaf.jar, /home/iouri/java/server/BEA/real_time/server/lib/.
      ./../common/lib/upgradeplugin.jar, /home/iouri/java/server/BEA/real_time/server/lib/../../common/li
      b/jython.jar, /home/iouri/java/server/BEA/real_time/server/lib/debugging.jar, /home/iouri/java/serv
      er/BEA/real_time/server/lib/wlw-system.jar, /home/iouri/java/server/BEA/real_time/server/lib/wlxbea
      n.jar, /home/iouri/java/server/BEA/real_time/server/lib/jcom.jar, /home/iouri/java/apache-ant/lib/a
      nt-launcher.jar, /home/iouri/java/apache-ant/lib/ant-trax.jar, /home/iouri/java/apache-ant/lib/ant-
      apache-bsf.jar, /home/iouri/java/apache-ant/lib/ant-vaj.jar, /home/iouri/java/apache-ant/lib/ant-an
      tlr.jar, /home/iouri/java/apache-ant/lib/ant-nodeps.jar, /home/iouri/java/apache-ant/lib/ant-styleb
      ook.jar, /home/iouri/java/apache-ant/lib/ant-jai.jar, /home/iouri/java/apache-ant/lib/ant-swing.jar
      , /home/iouri/java/apache-ant/lib/ant-commons-logging.jar, /home/iouri/java/apache-ant/lib/ant-comm
      ons-net.jar, /home/iouri/java/apache-ant/lib/ant.jar, /home/iouri/java/apache-ant/lib/ant-netrexx.j
      ar, /home/iouri/java/apache-ant/lib/ant-apache-bcel.jar, /home/iouri/java/apache-ant/lib/ant-jmf.ja
      r, /home/iouri/java/apache-ant/lib/ant-javamail.jar, /home/iouri/java/apache-ant/lib/ant-jsch.jar,
      /home/iouri/java/apache-ant/lib/ant-apache-regexp.jar, /home/iouri/java/apache-ant/lib/xercesImpl.j
      ar, /home/iouri/java/apache-ant/lib/ant-junit.jar, /home/iouri/java/apache-ant/lib/ant-jdepend.jar,
       /home/iouri/java/apache-ant/lib/ant-xalan1.jar, /home/iouri/java/apache-ant/lib/xml-apis.jar, /hom
      e/iouri/java/apache-ant/lib/ant-apache-oro.jar, /home/iouri/java/apache-ant/lib/ant-xslp.jar, /home
      /iouri/java/apache-ant/lib/ant-icontract.jar, /home/iouri/java/apache-ant/lib/ant-starteam.jar, /ho
      me/iouri/java/apache-ant/lib/ant-apache-log4j.jar, /home/iouri/java/apache-ant/lib/ant-weblogic.jar
      , /home/iouri/java/apache-ant/lib/ant-apache-resolver.jar, /home/iouri/java/jdk1.5.0_04/lib/tools.j
      ar, /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medrecEar/APP-INF/cla
      sses, /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/src/medrecEar/APP-INF/lib
      /log4j-1.2.8.jar, /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/src/medrecEar
      /APP-INF/lib/spring-1.2.5.jar]]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/util/ArrayList.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/util/List.class)]
           [jwsc] [loading /home/iouri/java/ws/jwsdp/jaxws/lib/jsr181-api.jar(javax/jws/WebMethod.class)]
           [jwsc] [loading /home/iouri/java/ws/jwsdp/jaxws/lib/jsr181-api.jar(javax/jws/WebService.class)
      ]
           [jwsc] [loading /home/iouri/java/ws/jwsdp/jaxws/lib/jsr181-api.jar(javax/jws/soap/SOAPBinding.
      class)]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/src/medrec
      Ear/APP-INF/lib/log4j-1.2.8.jar(org/apache/log4j/Logger.class)]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/server/lib/weblogic.jar(weblogic/jws/WLH
      ttpTransport.class)]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medr
      ecEar/APP-INF/classes/com/bea/medrec/domain/Patient.class]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medr
      ecEar/APP-INF/classes/com/bea/medrec/domain/Record.class]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medr
      ecEar/APP-INF/classes/com/bea/medrec/domain/RecordsSummary.class]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medr
      ecEar/APP-INF/classes/com/bea/medrec/exceptions/MedRecException.class]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medr
      ecEar/APP-INF/classes/com/bea/medrec/utils/MedRecLog4jFactory.class]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medr
      ecEar/APP-INF/classes/com/bea/medrec/webservice/MedRecBaseWebServices.class]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/io/Serializable.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Object.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Integer.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Exception.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/annotation/Retention.cla
      ss)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/annotation/RetentionPoli
      cy.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/annotation/Target.class)
      ]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/annotation/ElementType.c
      lass)]
           [jwsc] [loading /home/iouri/java/ws/jwsdp/jaxws/lib/jsr181-api.jar(javax/jws/soap/SOAPBinding$
      Style.class)]
           [jwsc] [loading /home/iouri/java/ws/jwsdp/jaxws/lib/jsr181-api.jar(javax/jws/soap/SOAPBinding$
      Use.class)]
           [jwsc] [loading /home/iouri/java/ws/jwsdp/jaxws/lib/jsr181-api.jar(javax/jws/soap/SOAPBinding$
      ParameterStyle.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/annotation/Annotation.cl
      ass)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/String.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Deprecated.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/SuppressWarnings.class)]
           [jwsc] [checking com.bea.medrec.webservice.MedRecWebServices]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Class.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Throwable.class)]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/src/medrec
      Ear/APP-INF/lib/log4j-1.2.8.jar(org/apache/log4j/Category.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Number.class)]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medr
      ecEar/APP-INF/classes/com/bea/medrec/service/MedRecServiceFacade.class]
           [jwsc] [loading /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medr
      ecEar/APP-INF/classes/com/bea/medrec/domain/Entity.class]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/util/AbstractList.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/util/AbstractCollection.class
      )]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/util/Collection.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Iterable.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Error.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/RuntimeException.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/StringBuilder.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/AbstractStringBuilder.cl
      ass)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/CharSequence.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/Comparable.class)]
           [jwsc] [loading /home/iouri/java/jdk1.5.0_04/jre/lib/rt.jar(java/lang/StringBuffer.class)]
           [jwsc] [wrote /tmp/_ptaghb/com/bea/medrec/webservice/MedRecWebServices.class]
           [jwsc] [total 1117ms]
           [jwsc] Note: /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/src/medrecEar
      /webservice/com/bea/medrec/webservice/MedRecWebServices.java uses unchecked or unsafe operations.
           [jwsc] Note: Recompile with -Xlint:unchecked for details.
           [jwsc] Copying 1 file to /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/b
      uild/medrecEar/MedRecWebServices/WEB-INF/classes
           [jwsc] Created JWS deployment directory: /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build/medrecEar/MedRecWebServices
      [AntUtil.deleteDir] Deleting directory /tmp/_ptaghb
      
      BUILD FAILED
      /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/build.xml:35: The following error occurred while executing this line:
      /home/iouri/java/server/BEA/real_time/samples/domains/medrec-spring/src/build.xml:29: The following error occurred while executing this line:
      java.lang.AssertionError: java.io.IOException
      
      Total time: 41 seconds
      [iouri@fedora medrec-spring]$
      Message was edited by:
      IouriLeonov@yahoo.com