You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Håkon T Sønderland <ht...@antares.no> on 2006/05/29 13:29:18 UTC

[Axis2 1.0] File Encoding causes problem

Environment:

JDK 1.4.2
Orion Server 2.0.7
Axis2 1.0
Windows XP
Eclipse 3.1

Generating java code from hand coded WSDL file.

Problem 1:

The WSDL file is encoded with Unicode/UTF-8.  The WSDL2Java tool will
not recognise this as a valid WSDL file.

Changing the file encoding to US-ASCII fixes this error.

Problem 2:

Generating a server application from a wsdl produces a new wsdl file
in the resources folder.  This file has Unicode/UTF-8 encoding.

When deploying the resulting .aar archive in the Axis2 container the
following error is logged:

- Invalid service  CreateLeasingApplication.aar due to null; nested 
exception is:
         java.lang.ClassCastException
org.apache.axis2.deployment.DeploymentException: null; nested exception is:
         java.lang.ClassCastException
         at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:124)
         at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620)
         at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
         at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
         at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)
         at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:199)
         at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(SchedulerTask.java:61)
         at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68)
         at 
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76)
         at java.util.TimerThread.mainLoop(Timer.java:432)
         at java.util.TimerThread.run(Timer.java:382)
Caused by: java.lang.ClassCastException
         at 
org.apache.axis2.deployment.DescriptionBuilder.loadMessageReceiver(DescriptionBuilder.java:159)
         at 
org.apache.axis2.deployment.DescriptionBuilder.processMessageReceivers(DescriptionBuilder.java:140)
         at 
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:123)
         at 
org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:91)
         at 
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:84)
         at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:118)
         ... 10 more

Changing the encoding of this generated wsdl to US-ASCII fixes this error.

Both of these errors seems like bugs to me, are they or am I doing
something wrong?

Håkon
-- 
Antares Gruppen AS
Dir.phone: +47 - 23 29 05 75
Mobile: +47 - 911 79 505
http://www.antares.no


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org