JBoss Community

Error: Unsupported Java encoding for writing wsdl file: 'ISO8859_15'.

created by Hugo Silva in JBoss Web Services - View the full discussion

Hello,

 

I'm having problems publishing a Web Service on JBoss AS 4.2.3 with jbossws-native-3.1.1.GA

 

This is the code:

 

 




@WebService
public interface ZDepTestWSInterface {     @WebMethod     Integer getZValue(@WebParam(name="value") Integer value);}

@Stateless@WebService(endpointInterface="hugo.deptest.a.api.ZDepTestWSInterface")public class ZDepWS implements ZDepTestInterfaceRemote, ZDepTestWSInterface {          public Integer getZValue(Integer value) {          return value + 2;     }     }


 

 

@WebService
public interface ZDepTestWSInterface {
@WebMethod
Integer getZValue(@WebParam(name="value") Integer value);
}

I'm deploying on a Linux machine.

If the locale is en_US.UTF-8 everything works ok.

But if the locale is pt_PT@euro, i get the following exception:

 

---

org.jboss.ws.WSException: Cannot publish wsdl to: /home/jboss/jboss-4.2.3.GA/server/all/data/wsdl/ZTest.ear/ZTest-EJB.jar/ZDepWSService2420312176256736548.wsdl

at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:142)

at org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect.start(PublishContractDeploymentAspect.java:50)

at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:129)

at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95)

at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:88)

...

Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=CONFIGURATION_ERROR: Unsupported Java encoding for writing wsdl file: 'ISO8859_15'.

at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)

at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlImports(WSDLFilePublisher.java:188)

at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:125)

... 35 more

 

---

This only happens if i use the endpointInterface on the WebService annotation.

If i expose the getZValue as a WebMethod on the Staless bean class everything works ok.

 

I don't know what is wrong. Can you please help ?

Thank you

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community