History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XFIRE-482
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Mike McAngus
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XFire

"IllegalArgumentException: URI is not hierarchical" thrown for @WebService.wsdlLocation=file:path/MyService.wsdl

Created: 21/Jun/06 01:23 PM   Updated: 20/Jul/06 12:55 PM
Component/s: Annotations
Affects Version/s: 1.1.1
Fix Version/s: 1.2-RC

Time Tracking:
Not Specified

File Attachments: 1. XML File AppRelease.wsdl (13 kb)

Environment:
Windows Professional SP2
Sun Java 1.5.0_07
Tomcat 5.5.17


 Description  « Hide
Related to JIRA XFIRE-481

When the @WebService.wsdlLocation identifies a wsdl on the file path, an Exception is thrown stating, in part, "IllegalArgumentException: URI is not hierarchical"

There are no imported documents in my WSDL, so the problem must be the URI of the wsdl file itself.

I'm attaching my WSDL.

Here's the stacktrace:
--------------------------------------------------------------------------------
Allocate exception for servlet XFireServlet
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.ServiceBean' defined in class path resource [META-INF/xfire/services.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: URI is not hierarchical
java.lang.IllegalArgumentException: URI is not hierarchical
at java.io.File.<init>(Unknown Source)
at org.codehaus.xfire.util.Resolver.<init>(Resolver.java:76)
at org.codehaus.xfire.util.Resolver.<init>(Resolver.java:32)
at org.codehaus.xfire.wsdl.ResourceWSDL.<init>(ResourceWSDL.java:26)
at org.codehaus.xfire.annotations.AnnotationServiceFactory.create(AnnotationServiceFactory.java:243)
at org.codehaus.xfire.spring.ServiceBean.afterPropertiesSet(ServiceBean.java:158)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
at org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:103)
at org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:39)
at org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:75)
at org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:51)
at org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Mike McAngus - 21/Jun/06 01:28 PM
Note: If I change the annotation to "@WebService.wsdlLocation=file://path/MyService.wsdl" then I get an "UnknownHostException" (of course).

Dan Diephouse - 22/Jun/06 10:28 AM
Thanks, adding to the list for 1.1.2.

Dan Diephouse - 20/Jul/06 12:55 PM
I believe we resolved all these issues in current SVN. And for the record file://directory/foo.wsdl isn't a valid URI. You would have to just specify "directory/foo.wsdl" as your url.