Results 1 to 8 of 8

Thread: Can't run airline example

Hybrid View

  1. #1

    Default Can't run airline example

    Hi:
    I have the following error when run the airline web-service:

    Error creating bean with name 'wsSecurityInterceptor' defined in class path resource [org/springframework/ws/samples/airline/security/applicationContext-security.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema ()Ljavax/xml/validation/Schema;java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema ()Ljavax/xml/validation/Schema;

    I'm completly new to web-services
    Thanks

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by javierspring
    Hi:
    I have the following error when run the airline web-service:

    Error creating bean with name 'wsSecurityInterceptor' defined in class path resource [org/springframework/ws/samples/airline/security/applicationContext-security.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema ()Ljavax/xml/validation/Schema;java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema ()Ljavax/xml/validation/Schema;

    I'm completly new to web-services
    Thanks
    I need some more information about your setup before I can answer this. What application server are you using? What JDK? Can you post the full stacktrace? You can do that either here, or create an issue at the Spring-WS JIRA.

    Cheers,
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3

    Default Xml-api problem

    Hi:
    I take out an api from a directory of tomcat in a Exadel instalation and the problem was finsh, the api was xml-apis.jar that's came with the instalation of Exadel in a global directory of tomcat.
    For the while, i want to run just a getflights client of the airline example from an ajax script, i don't has the minor idea how, if there is a possible to bring me some hints i would appreciate.

    Thanks

    Javier

  4. #4
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by javierspring
    I take out an api from a directory of tomcat in a Exadel instalation and the problem was finsh, the api was xml-apis.jar that's came with the instalation of Exadel in a global directory of tomcat.
    It might be that that xml-apis.jar is an old version of JAXP (the Java XML parsing APIs). Does it does work now?

    Quote Originally Posted by javierspring
    For the while, i want to run just a getflights client of the airline example from an ajax script, i don't has the minor idea how, if there is a possible to bring me some hints i would appreciate.
    The XwsSecurityInterceptor required Java 5 (JAXP 1.3), unfortunately. If you don't need the security stuff, you can remove it by deleting the indicated line in web.xml (line 22), and applicationContext.xml (line 10 and 23).

    Let me know if that works for you.

    Cheers,
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  5. #5

    Default It's an api problem

    Sorry for the delay in answer, the problerm was the api, if remove the security interceptor entry in xml files the service run well, but i delete de xml-apis from the directory and works almost with the security stuff

    Regards
    Javier

  6. #6

    Default

    hello,

    i use websphere 5.1 (j2se 1.4 and j2ee 1.3) with classloader configure parent_last (classes and jars of WEB-INF load first).

    In many applicationes i put the xml api's (xalan, xerces, ...) in WEB-INF\lib and works well. But with airline with XwsSecurityInterceptor doesn't works.

    the XwsSecurityInterceptor required Java 5 (JAXP 1.3), unfortunately
    if this is the problem, can it update to JAXP 1.3 using j2se 1.4???
    thanks in advance,
    César.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •