I tried switching from 2.0.4 to 2.0.5-20080311.140539-8,
but I have a problem with WSDLToJava. In 2.0.4 it generated
*Service.java class with a relative path like "wsdl/Tx.wsdl"
but in 2.0.5 it generates it with an absolute path like
"file:/C:/projects/trunk/bc/ws/template/wsdl/Tx.wsdl"
I tried adding the -wsdlLocation flag, and it fixed the problem
in the @WebServiceClient annotation but not in the URL defined
in the static block of the service class, which looks like this
static {
URL url = null;
try {
url = new
URL("file:/C:/projects/trunk/bc/ws/template/wsdl/Tx.wsdl");
} catch (MalformedURLException e) {
System.err.println("Can not initialize the default wsdl from
file:/C:/projects/trunk/bc/ws/template/wsdl/Tx.wsdl");
// e.printStackTrace();
}
WSDL_LOCATION = url;
}
So is this a bug in wsdl2java in 2.0.5?
If not is there a way around it?
I also get this when I startup JBoss 4.2.2 with 2.0.5.
Do I need to worry about this? What does this mean?
...
2008-03-13 13:58:10,260 ERROR [STDERR] - Mar 13, 2008 1:58:10 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://www.foobar.com/Tx}TxService from WSDL:
wsdl/Tx.wsdl
2008-03-13 13:58:10,432 ERROR [STDERR] - Mar 13, 2008 1:58:10 PM
org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /Tx
2008-03-13 13:58:10,432 ERROR [STDERR] - Mar 13, 2008 1:58:10 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://www.foobar.com/WorkOrder}WorkOrderService
from WSDL: wsdl/WorkOrder.wsdl
2008-03-13 13:58:10,682 ERROR [STDERR] - Mar 13, 2008 1:58:10 PM
org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /WorkOrder
...
Thanks,
Dan