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] Issue Comment Edited: (CXF-2926) OASISCatalogManager.loadCatalog() method is too restrictive
Date Fri, 06 Aug 2010 07:46:33 GMT

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

Richard Opalka edited comment on CXF-2926 at 8/6/10 3:44 AM:
-------------------------------------------------------------

Fixed on JBoss integration side:


      was (Author: opalka):
    Fixed on JBoss integration side:

Index: src/main/java/org/jboss/wsf/spi/tools/ant/WSConsumeTask.java
===================================================================
--- src/main/java/org/jboss/wsf/spi/tools/ant/WSConsumeTask.java	(revision 12747)
+++ src/main/java/org/jboss/wsf/spi/tools/ant/WSConsumeTask.java	(working copy)
@@ -209,7 +209,16 @@
          if (wsdlLocation != null)
             consumer.setWsdlLocation(wsdlLocation);
          if (catalog != null)
-            consumer.setCatalog(catalog);
+         {
+            if (catalog.exists() && catalog.isFile())
+            {
+               consumer.setCatalog(catalog);
+            }
+            else
+            {
+               log("Catalog file not found: " + catalog, Project.MSG_WARN);
+            }
+         }
          if (bindingFiles != null && bindingFiles.size() > 0)
             consumer.setBindingFiles(bindingFiles);
          if (target != null)
Index: src/main/java/org/jboss/wsf/spi/tools/cmd/WSConsume.java
===================================================================
--- src/main/java/org/jboss/wsf/spi/tools/cmd/WSConsume.java	(revision 12747)
+++ src/main/java/org/jboss/wsf/spi/tools/cmd/WSConsume.java	(working copy)
@@ -236,7 +236,16 @@
       }
 
       if (catalog != null)
-         consumer.setCatalog(catalog);
+      {
+         if (catalog.exists() && catalog.isFile())
+         {
+            consumer.setCatalog(catalog);
+         }
+         else
+         {
+            System.err.println("Warning: catalog file not found: " + catalog);
+         }
+      }
 
       if (targetPackage != null)
          consumer.setTargetPackage(targetPackage);
[/home/opalka][/home/opalka/svn/jbossws/spi/trunk]>svn ci -m "[CXF-2926] Unify catalog
feature behaviour for all three supported SOAP stacks - just print warning"
Sending        src/main/java/org/jboss/wsf/spi/tools/ant/WSConsumeTask.java
Sending        src/main/java/org/jboss/wsf/spi/tools/cmd/WSConsume.java
Transmitting file data ..
Committed revision 12748.

  
> 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
>         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