On 9/5/07, Linus Kamb <[EMAIL PROTECTED]> wrote:
>
> So, am I doing something wrong?  Or is this a bug?


Axis2 supports xsd file if they are directly under the META-INF. as I saw
you xsd file are in different directories.
So I am not saying the thing you do is wrong. But I think this a an axis2
limitation. So please log a jira.

Amila.

Thanks,
> Linus
>
>
> Linus Kamb wrote:
> > Thanks a lot for looking.
> >
> > wsdl2java seems to run successfully:
> >
> > ant target is:
> >
> >    <target name="w2j" depends="clean"  >
> >        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
> >        failonerror="true">
> >            <classpath>
> >                <path refid="axis-classpath"/>
> >                <path refid="jibx-classpath"/>
> >            </classpath>
> >            <arg value="-o"/>
> >            <arg value="w2j"/>
> >            <arg value="-p"/>
> >            <arg value="${package-name}"/>
> >            <arg value="-d"/>
> >            <arg value="jibx"/>
> >            <arg value="-Ebindingfile"/>
> >            <arg value="${binding-file}"/>
> >            <arg value="-uw"/>
> >            <!-- -ss parameter says generate server code -->
> >            <arg value="-ss"/>
> >            <!-- -sd parameter says generate server deployment files -->
> >            <arg value="-sd"/>
> >            <!-- -ssi parameter says generate Java interface
> > definition. -->
> >            <arg value="-ssi"/>
> >            <arg value="-uri"/>
> >            <arg value="${wsdl-path}"/>
> >        </java>
> >    </target>
> >
> > output:
> > $ ant w2j
> > Buildfile: build.xml
> >
> > clean:
> >   [delete] Deleting directory
> > /Users/linus/workspace/ESPortalCDI/server/gen
> >
> > w2j:
> >     [java] Retrieving schema at
> > 'http://www.iris.edu/schema/esdp/esdp-0.1.xsd', relative to
> > 'file:/Users/linus/workspace/ESPortalCDI/resources/META-INF/'.
> >     [java] Retrieving schema at
> > 'http://schemas.opengis.net/filter/1.1.0/filter.xsd', relative to
> > 'http://www.iris.edu/schema/esdp/esdp-0.1.xsd'.
> >     [java] Retrieving schema at
> > '../../gml/3.1.1/base/geometryAggregates.xsd', relative to
> > 'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
> >     [java] Retrieving schema at 'geometryPrimitives.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd'.
> >     [java] Retrieving schema at 'geometryBasic2d.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/geometryPrimitives.xsd'.
> >     [java] Retrieving schema at 'geometryBasic0d1d.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/geometryBasic2d.xsd'.
> >     [java] Retrieving schema at 'measures.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd'.
> >     [java] Retrieving schema at 'units.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/measures.xsd'.
> >     [java] Retrieving schema at 'dictionary.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/units.xsd'.
> >     [java] Retrieving schema at 'gmlBase.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/dictionary.xsd'.
> >     [java] Retrieving schema at '../../../xlink/1.0.0/xlinks.xsd',
> > relative to 'http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd'.
> >     [java] Retrieving schema at 'basicTypes.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd'.
> >     [java] Retrieving schema at 'expr.xsd', relative to
> > 'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
> >     [java] Retrieving schema at 'sort.xsd', relative to
> > 'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
> >     [java] Retrieving schema at 'expr.xsd', relative to
> > 'http://schemas.opengis.net/filter/1.1.0/sort.xsd'.
> >     [java] Retrieving schema at 'filterCapabilities.xsd', relative to
> > 'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
> >     [java] Retrieving schema at
> > 'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd', relative to
> > 'http://www.iris.edu/schema/esdp/esdp-0.1.xsd'.
> >     [java] Retrieving schema at 'geometryBasic2d.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd'.
> >     [java] Retrieving schema at 'temporal.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd'.
> >     [java] Retrieving schema at 'gmlBase.xsd', relative to
> > 'http://schemas.opengis.net/gml/3.1.1/base/temporal.xsd'.
> >     [java] log4j:WARN No appenders could be found for logger
> > (org.apache.axis2.description.AxisService).
> >     [java] log4j:WARN Please initialize the log4j system properly.
> >
> > BUILD SUCCESSFUL
> > Total time: 15 seconds
> >
> > generated classes:
> > $ find w2j/
> > w2j/
> > w2j//build.xml
> > w2j//resources
> > w2j//resources/ESPortalCDI.wsdl
> > w2j//resources/services.xml
> > w2j//resources/xsd0.xsd
> > w2j//resources/xsd1.xsd
> > w2j//resources/xsd10.xsd
> > w2j//resources/xsd11.xsd
> > w2j//resources/xsd12.xsd
> > w2j//resources/xsd13.xsd
> > w2j//resources/xsd14.xsd
> > w2j//resources/xsd15.xsd
> > w2j//resources/xsd16.xsd
> > w2j//resources/xsd2.xsd
> > w2j//resources/xsd3.xsd
> > w2j//resources/xsd4.xsd
> > w2j//resources/xsd5.xsd
> > w2j//resources/xsd6.xsd
> > w2j//resources/xsd7.xsd
> > w2j//resources/xsd8.xsd
> > w2j//resources/xsd9.xsd
> > w2j//src
> > w2j//src/edu
> > w2j//src/edu/iris
> > w2j//src/edu/iris/ws
> > w2j//src/edu/iris/ws/esdp
> > w2j//src/edu/iris/ws/esdp/ESPortalCDIMessageReceiverInOut.java
> > w2j//src/edu/iris/ws/esdp/ESPortalCDISkeleton.java
> > w2j//src/edu/iris/ws/esdp/ESPortalCDISkeletonInterface.java
> >
> > I wonder, should those various downloaded xsd's be packaged in the
> > aar?   Seems not right to me, if that's the case.  I can try that, but
> > where should they go?
> > Thanks,
> > Linus
> >
> > Amila Suriarachchi wrote:
> >> Can you try with this,
> >> can you use wsdl2java tool to with your wsdl.
> >>
> >> the idea is wsdl2java tool uses the same code which deployer use to
> >> build the axis object structure.
> >>
> >> Amila.
> >>
> >> On 8/31/07, *Linus Kamb* <[EMAIL PROTECTED]
> >> <mailto:[EMAIL PROTECTED]>> wrote:
> >>
> >>     I am running Axis2 1.3 on Tomcat 5.5.23 on Mac OSX.
> >>
> >>     I get the following in catalina.out:
> >>
> >>     [INFO] AARBasedWSDLLocator: Unable to resolve
> >>     http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd
> >>     [INFO] Trouble processing wsdl file :WSDLException (at
> >>     /wsdl:definitions/wsdl:types/schema/xs:schema/xsd:schema):
> >>     faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> >>     referenced at '../../gml/3.1.1/base/geometryAggregates.xsd'
> >>     relative to
> >>     document base 'http://schemas.opengis.net/filter/1.1.0/filter.xsd '
> >>
> >>     This, I believe, causes the request for the service wsdl to come
> >> back
> >>     with an error:
> >>     <error>
> >>     <description>Unable to generate WSDL 1.1 for this
> >>     service</description>
> >>         <reason>
> >>     If you wish Axis2 to automatically generate the WSDL 1.1, then
> >> please
> >>     +set useOriginalwsdl as false in your services.xml
> >>     </reason>
> >>     </error>
> >>
> >>     I do not want Axis2 to automatically generate the WSDL.  I want
> >> it to
> >>     use the original WSDL, which is available.  useOriginalwsdl is set
> >>     to true.
> >>
> >>     There are a number Jira issues about finding wsdl schemas at
> >> relative
> >>     URLs which are all said to be resolved.  Obviously, this is not
> >>     the case.
> >>
> >>     The above schema which the locator fails to find does indeed
> >> exist at
> >>     that URL.
> >>
> >>     In this scenario, the wsdl imports a schema via complete URL.  That
> >>     schema in turn imports schemas via complete URL.  These other
> >>     schemas,
> >>     however, import additional schemas via relative URLs, and that is
> >>     where
> >>     the failure occurs.  These outside schemas are public and
> permanent.
> >>
> >>     Is this going to be fixed, or should I reopen one or many of the
> >> Jira
> >>     issues?
> >>
> >>     This failure happens in both 1.2 and in 1.3.
> >>
> >>
> >>     Thanks,
> >>     Linus
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >>     To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>     <mailto:[EMAIL PROTECTED]>
> >>     For additional commands, e-mail: [EMAIL PROTECTED]
> >>     <mailto:[EMAIL PROTECTED]>
> >>
> >>
> >>
> >>
> >> --
> >> Amila Suriarachchi,
> >> WSO2 Inc.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Reply via email to