cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Opalka (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2926) OASISCatalogManager.loadCatalog() method is too restrictive
Date Wed, 04 Aug 2010 05:33:18 GMT

    [ https://issues.apache.org/jira/browse/CXF-2926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895153#action_12895153
] 

Richard Opalka commented on CXF-2926:
-------------------------------------

We just found section #4.4 at JAX-WS 2.2 spec but it doesn't cover tools behaviour at all
:(

However OASISCatalogManager is inconsistent in it's behaviour.
While some of it's methods are just logging WARNings, e.g.:
---
    public final void loadContextCatalogs(String name) {
        try {                                                                     
            loadCatalogs(Thread.currentThread().getContextClassLoader(), name);   
        } catch (IOException e) {                                                 
            LOG.log(Level.WARNING, "Error loading " + name + " catalog files", e);
        }                                                                         
    }
---
other methods are throwing exceptions:
---
public final void loadCatalog(URL catalogURL) throws IOException {
   ...
   try {
      File file = new File(catalogURL.toURI());
      if (!file.exists()) {
         throw new FileNotFoundException(file.getAbsolutePath());
      }
   ...
}
---

Why the behaviour is different for loadContextCatalogs() vs. loadCatalog()?

> OASISCatalogManager.loadCatalog() method is too restrictive
> -----------------------------------------------------------
>
>                 Key: CXF-2926
>                 URL: https://issues.apache.org/jira/browse/CXF-2926
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.2.9
>            Reporter: Richard Opalka
>             Fix For: 2.3, 2.2.10
>
>         Attachments: cxf2926.patch
>
>
> wsdl2java -b /home/opalka/svn/tck6/trunk-cxf/src/com/sun/ts/tests/jws/handlerchain/client/customfile.xml
-catalog /home/opalka/svn/tck6/trunk-cxf/bin/catalog/META-INF/jax-ws-catalog.xml -compile
-exsh false -d /home/opalka/svn/tck6/trunk-cxf/classes_vi_built/com/sun/ts/tests/jws/handlerchain/client/generated_sources
-wsdlLocation @wsdlLocation@ -verbose -classdir /home/opalka/svn/tck6/trunk-cxf/classes_vi_built/com/sun/ts/tests/jws/handlerchain/client/generated_classes
file:/home/opalka/svn/tck6/trunk-cxf/bin/xml/../../src/com/sun/ts/tests/jws/handlerchain/client/HandlerChainWebServiceService.wsdl
> wsdl2java - Apache CXF 2.3.0-SNAPSHOT
> java.io.FileNotFoundException: /home/opalka/svn/tck6/trunk-cxf/bin/catalog/META-INF/jax-ws-catalog.xml
> 	at org.apache.cxf.catalog.OASISCatalogManager.loadCatalog(OASISCatalogManager.java:128)
> 	at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:196)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:158)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:128)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:271)
> 	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
> 	at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:235)
> 	at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:258)
> 	at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:92)
> Failed to invoke WSDLToJava
> org.apache.cxf.tools.common.ToolException: FOUND_NO_FRONTEND
> 	at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:199)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:158)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:128)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:271)
> 	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
> 	at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:235)
> 	at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:258)
> 	at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:92)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message