I'm grasping at straws here, but are you not using Java 5? It is required.
- Dan

Alberto Labarga wrote:


thanks Dan, I downloaded Maven 2.0.3, but I got the same error

java.lang.NoSuchMethodError: com.sun.xml.bind.unmarshaller.DOMScanner.setLocator(Lorg/xml/sax/Locator;)V at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema (SchemaCompilerImpl.java:107) at org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize(JAXBSchemaSupport.java:81) at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:63)
        at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:37)


it looks like a problem with JAXB
http://fisheye5.cenqua.com/viewrep/~raw,r=1.10/jaxb2-sources/jaxb-ri/xjc/src/com/sun/tools/xjc/api/impl/s2j/SchemaCompilerImpl.java <http://fisheye5.cenqua.com/viewrep/%7Eraw,r=1.10/jaxb2-sources/jaxb-ri/xjc/src/com/sun/tools/xjc/api/impl/s2j/SchemaCompilerImpl.java>

calling

LocatorImpl loc = new LocatorImpl();
loc.setSystemId(systemId);

scanner.setLocator(loc);


when the DOMScanner
http://fisheye5.cenqua.com/viewrep/~raw,r=1.4/jaxb2-sources/jaxb-ri/runtime/src/com/sun/xml/bind/unmarshaller/DOMScanner.java
<http://fisheye5.cenqua.com/viewrep/%7Eraw,r=1.4/jaxb2-sources/jaxb-ri/runtime/src/com/sun/xml/bind/unmarshaller/DOMScanner.java>

public void setLocator( Locator loc ) {
       this.locator = loc;
   }
but I dont know the jaxb, so maybe is a problem with Ant not finding the modified jaxb libraries, I will have a look

Alberto


On 06/04/06, *Dan Diephouse* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Alberto Labarga wrote:

    > HI,
    >
    >  I just downloaded XFire and was going through the examples
    >
    > with the geoip-client project, I got this error,
    > java.lang.NoSuchMethodError:
    >
    com.sun.xml.bind.unmarshaller.DOMScanner.setLocator(Lorg/xml/sax/Locator;)
    >
    >
    > which has already appear in this list, but no solution was given
    >
    > http://lists.codehaus.org/message/20060301.194608.9af447ad.en.html
    >
    <http://lists.codehaus.org/message/20060301.194608.9af447ad.en.html
    <http://lists.codehaus.org/message/20060301.194608.9af447ad.en.html>>
    >
    My hunch (which very wel could be wrong) is that this has to do
    with the
    ant plugin in maven. I would suggest making sure that you have the
    latest version of Maven 2 and also that you follow the Errata here:

    http://xfire.codehaus.org/XFire+1.0+Release+Notes

    > also I got several warnings even with the projects that worked (book
    > and jsr181) related to the POM version
    >
    > [WARNING] POM for 'jaxen:jaxen:pom:1.1-beta-8' is invalid. It
    will be
    > ignored for artifact resolution. Reason: Not a v4.0.0 POM.
    >
    > and the unability to download files from the repository
    >
    > Downloading: http://dist.codehaus.org/jaxb/poms/jaxb-api-1.0.pom
    > [WARNING] Unable to get resource from repository codehaus (
    > http://dist.codehaus.org/)
    >
    > going to that page, I can see that the jaxb duirectory does not
    exist
    >
    > can anybody give a hand with this? thanks a lot
    >
    These are just warnings, ignore them. Its maven being stupid and
    overly
    verbose! :-)

    Regards,
    - Dan

    --
    Dan Diephouse
    (616) 971-2053
    Envoi Solutions LLC
    http://netzooid.com <http://netzooid.com>




--
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com

Reply via email to