Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 81168 invoked from network); 27 Nov 2005 04:04:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Nov 2005 04:04:19 -0000 Received: (qmail 13701 invoked by uid 500); 27 Nov 2005 04:04:10 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 13688 invoked by uid 500); 27 Nov 2005 04:04:10 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 13677 invoked by uid 99); 27 Nov 2005 04:04:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2005 20:04:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.17] (HELO relay03.pair.com) (209.68.5.17) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 26 Nov 2005 20:05:40 -0800 Received: (qmail 48046 invoked from network); 27 Nov 2005 04:03:45 -0000 Received: from unknown (HELO ?222.165.175.131?) (unknown) by unknown with SMTP; 27 Nov 2005 04:03:45 -0000 X-pair-Authenticated: 222.165.175.131 Message-ID: <4389300E.3000709@opensource.lk> Date: Sun, 27 Nov 2005 10:03:26 +0600 From: Eran Chinthaka Reply-To: chinthaka@opensource.lk User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: [axis2] "TypeSystemHolder does not exist" help needed - solved References: <200511250900.18555.iksrazal@gmail.com> <200511261427.11719.iksrazal@gmail.com> In-Reply-To: <200511261427.11719.iksrazal@gmail.com> X-Enigmail-Version: 0.93.0.0 Content-Type: multipart/alternative; boundary="------------080907090302020708080202" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------080907090302020708080202 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Iksrazal, This was a known issue. I think Ajith once wrote a small ant script to copy the generated stuff to correct places and generate a jar file. Anyway, since this is a well know problem and a solution, can you please open a JIRA on this and close it giving your solution. This will be useful for tracking purposes. And one other thing, seems like you are using the data binding stuff a lot. So if you can write a small article on, using Axis2 data binding, from your experience, I'm happy to host that in Axis2 web site itself. I think others also can help you with that. This will be useful for all the new comers to Axis2 and its a good time for you to give something back to the community :-) Hope you don't have any intellectual property problems with the company in doing that. ;-) Chinthaka iksrazal wrote: >In case anyone gets this same error, here is how I solved it: > >Buried in all those .xsb files, the WSDL2Java command creates a compiled >class, like so: > >schemaorg_apache_xmlbeans/system/sA83263C4583E5B147EF2C07FFFC6DFF2/TypeSystemHolder.class > >That class needs to be in the classpath used to compile the java source files >which WSDL2Java produced. Here's how the relevant parts of my build.xml >turned out: > > > > > > > > > > > > > > > > srcdir="wise" > destdir="${build.classes}" > deprecation="true" > failonerror="true" debug="true" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >iksrazal > >Em Sexta 25 Novembro 2005 09:00, escreveu: > > >>Hi all, >> >>I 'm getting strange errors when trying to compile my WSDL2Java code with >>ant: >> >>./WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p >>com.siemens.swa.plugins.webservices.types >> >>[javac] >>/home/iksrazal/white3/wise/com/siemens/swa/plugins/webservices/types/databi >>nding/org/xmlsoap/schemas/TimeDocument.java:19: package >>schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSyst >>emHolder does not exist >> [javac] public static final org.apache.xmlbeans.SchemaType type = >>(org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sECC7940C4 >>012EB2293D5238A794D458D.TypeSystemHolder.typeSystem.resolveHandle("timea4a3d >>octype"); >> >>I think what I need to do is put the >>'schemaorg_apache_xml' dir generated by WSDL2Java in the classpath. After >>several attempts, however, I'm not having any luck. >> >>My classpath is: >> >> >> >> >> >> >> >> >> >> >> >> >> > classpathref="axis.classpath" /> >> >>My target is: >> >> >> >> >> > srcdir="wise" >> destdir="${build}" >> deprecation="true" >> failonerror="true" debug="true" >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>Please help, >>iksrazal >> >> > > > --------------080907090302020708080202 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Iksrazal,

This was a known issue. I think Ajith once wrote a small ant script to copy the generated stuff to correct places and generate a jar file.

Anyway, since this is a well know problem and a solution, can you please open a JIRA on this and close it giving your solution. This will be useful for tracking purposes.

And one other thing, seems like you are using the data binding stuff a lot. So if you can write a small article on, using Axis2 data binding, from your experience, I'm happy to host that in Axis2 web site itself. I think others also can help you with that. This will be useful for all the new comers to Axis2 and its a good time for you to give something back to the community :-)

Hope you don't have any intellectual property problems with the company in doing that. ;-)

Chinthaka

iksrazal wrote:
In case anyone gets this same error, here is how I solved it: 

Buried in all those .xsb files, the WSDL2Java command creates a compiled 
class, like so: 

schemaorg_apache_xmlbeans/system/sA83263C4583E5B147EF2C07FFFC6DFF2/TypeSystemHolder.class

That class needs to be in the classpath used to compile the java source files 
which WSDL2Java produced. Here's how the relevant parts of my build.xml 
turned out: 

   <path id="axis.classpath">
      <pathelement location="build/classes" />
      <fileset dir="${axis.home}/lib">
        <include name="**/*.jar" />
      </fileset>
      <fileset dir="lib">
        <include name="*.jar"/>
      </fileset>
      <pathelement location="${build.classes}" />
   </path>

   <target name="compile_wsdl2" depends="wsdl2">
    <echo message="Compiling wsdl2 files"/>

    <javac
     srcdir="wise"
     destdir="${build.classes}"
     deprecation="true"
     failonerror="true" debug="true"
    >

     <include name="**/*.java"/>
      <classpath refid="axis.classpath"/> 
    </javac>

    <copy todir="${build.classes}" >
      <fileset dir="wise" >
        <include name="**/*.properties"/>
        <!-- any XML/XSL file -->
        <include name="**/*.x*"/>
      </fileset>
    </copy>
  </target>

  <!-- ./WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p 
com.siemens.swa.plugins.webservices.types -->
  <target name="wsdl2" depends="clean,prepare">
      <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
          <classpath refid="axis.classpath"/> 
          <arg value="-uri"/>
          <arg file="wsdl/service.wsdl"/>
          <arg value="-ss"/>
          <arg value="-sd"/>
          <arg value="-o"/>
          <arg file="wise"/>
          <arg value="-p"/>
          <arg value="com.siemens.swa.plugins.webservices.types"/>
      </java>

      <!-- Move the schema folder to classpath-->
      <move todir="${build.classes}">
          <fileset dir="wise">
              <include name="**/*schema*/**/*.class"/>
              <include name="**/*schema*/**/*.xsb"/>
          </fileset>
      </move>

  </target>

iksrazal

Em Sexta 25 Novembro 2005 09:00, escreveu:
  
Hi all,

I 'm getting strange errors when trying to compile my WSDL2Java code with
ant:

./WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p
com.siemens.swa.plugins.webservices.types

[javac]
/home/iksrazal/white3/wise/com/siemens/swa/plugins/webservices/types/databi
nding/org/xmlsoap/schemas/TimeDocument.java:19: package
schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSyst
emHolder does not exist
    [javac] public static final org.apache.xmlbeans.SchemaType type =
(org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sECC7940C4
012EB2293D5238A794D458D.TypeSystemHolder.typeSystem.resolveHandle("timea4a3d
octype");

I think what I need to do is put the
'schemaorg_apache_xml' dir generated by WSDL2Java in the classpath. After
several attempts, however, I'm not having any luck.

My classpath is:

  <path id="axis.classpath">
      <pathelement location="build/classes" />
      <fileset dir="${axis.home}/lib">
        <include name="**/*.jar" />
      </fileset>
      <fileset dir="lib">
        <include name="*.jar"/>
      </fileset>
      <pathelement location="wise/schemaorg_apache_xml" />
   </path>

   <taskdef resource="axis-tasks.properties"
      classpathref="axis.classpath" />

My target is:

<target name="compile_wsdl2" depends="clean,prepare">
    <echo message="Compiling wsdl2 files"/>

    <javac
     srcdir="wise"
     destdir="${build}"
     deprecation="true"
     failonerror="true" debug="true"


     <include name="**/*.java"/>
      <classpath refid="axis.classpath"/>
    </javac>

    <copy todir="${build}" >
      <fileset dir="wise" >
        <include name="**/*.properties"/>
        <include name="**/*.x*"/>
      </fileset>
    </copy>
  </target>

Please help,
iksrazal
    

  
--------------080907090302020708080202--