java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When using SimpleJaxWsServiceExporter into a .war application deployed in Weblogic, it never can start-up due to the following exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter#0' defined in ServletContext resource [/WEB-INF/webmvc-config.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Cannot create URL for this address /MyService. [........] java.lang.IllegalArgumentException: Cannot create URL for this address /MyService at weblogic.wsee.jaxws.spi.WLSEndpoint.publish(WLSEndpoint.java:133) at org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter.publishEndpoint(SimpleJaxWsServiceExporter.java:67) at org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter.publishEndpoints(AbstractJaxWsServiceExporter.java:125) at org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter.afterPropertiesSet(AbstractJaxWsServiceExporter.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory .java:1369) Truncated. see log file for complete stacktrace The problem is that the Weblogic JAX-WS implementation that is being called by SimpleJaxWsServiceExporter to publish the service doesn't accept URIs without a trailing slash '/'. I have found out that patching the following method in SimpleJaxWsServiceExporter by adding the required slash character enables the webservice publication: protected void publishEndpoint(Endpoint endpoint, WebService annotation) { String fullAddress = this.baseAddress + annotation.serviceName() + '/'; // Added slash for Weblogic 10.3 endpoint.publish(fullAddress); } Indeed, I'm not sure is this patch is appliable for different application servers that Weblogic 10.3
    via by F. Daniel Parra Vizcaíno,
  • When using SimpleJaxWsServiceExporter into a .war application deployed in Weblogic, it never can start-up due to the following exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter#0' defined in ServletContext resource [/WEB-INF/webmvc-config.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Cannot create URL for this address /MyService. [........] java.lang.IllegalArgumentException: Cannot create URL for this address /MyService at weblogic.wsee.jaxws.spi.WLSEndpoint.publish(WLSEndpoint.java:133) at org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter.publishEndpoint(SimpleJaxWsServiceExporter.java:67) at org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter.publishEndpoints(AbstractJaxWsServiceExporter.java:125) at org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter.afterPropertiesSet(AbstractJaxWsServiceExporter.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory .java:1369) Truncated. see log file for complete stacktrace The problem is that the Weblogic JAX-WS implementation that is being called by SimpleJaxWsServiceExporter to publish the service doesn't accept URIs without a trailing slash '/'. I have found out that patching the following method in SimpleJaxWsServiceExporter by adding the required slash character enables the webservice publication: protected void publishEndpoint(Endpoint endpoint, WebService annotation) { String fullAddress = this.baseAddress + annotation.serviceName() + '/'; // Added slash for Weblogic 10.3 endpoint.publish(fullAddress); } Indeed, I'm not sure is this patch is appliable for different application servers that Weblogic 10.3
    via by F. Daniel Parra Vizcaíno,
    • java.lang.IllegalArgumentException: Cannot create URL for this address /MyService at weblogic.wsee.jaxws.spi.WLSEndpoint.publish(WLSEndpoint.java:133) at org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter.publishEndpoint(SimpleJaxWsServiceExporter.java:67) at org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter.publishEndpoints(AbstractJaxWsServiceExporter.java:125) at org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter.afterPropertiesSet(AbstractJaxWsServiceExporter.java:104)
    No Bugmate found.