axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Linus Kamb <li...@iris.washington.edu>
Subject Re: useOriginalWsdl generates error when set to true.
Date Fri, 25 Apr 2008 19:53:15 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I have a similar problem, but with a slight twist.<br>
<br>
(cc'ing jibx list in case it's related.)<br>
<br>
normal wsdl2java generation produces services.xml with
useOriginalwsdl=true.<br>
<br>
The service runs fine, but it produces the "Unable to generate WSDL 1.1
for this service" error when hitting the ?wsdl.<br>
<br>
If I *manually* change the useOriginalwsdl to false through the admin
interface, then I get generated wsdl out.&nbsp;&nbsp;&nbsp; Ok, I could live with
that
wsdl, probably.<br>
<br>
*But*, if I set useOriginalwsdl=false in services.xml, I get a
deployment error:<br>
<br>
<font color="#000000">This Web axisService has deployment faults<br>
<br>
</font><font color="red"><font color="#000000">Error:
java.lang.NoClassDefFoundError:
org/jibx/runtime/impl/UnmarshallingContext at
java.lang.Class.getDeclaredMethods0(Native Method) at
java.lang.Class.privateGetDeclaredMethods(Class.java:2395) at
java.lang.Class.getDeclaredMethods(Class.java:1763) at
org.codehaus.jam.internal.reflect.ReflectClassBuilder.populate(ReflectClassBuilder.java:105)
at
org.codehaus.jam.internal.elements.ClassImpl.ensureLoaded(ClassImpl.java:674)
at
org.codehaus.jam.internal.elements.ClassImpl.getSuperclass(ClassImpl.java:147)
at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.isDataHandler(DefaultSchemaGenerator.java:693)
at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaForType(DefaultSchemaGenerator.java:658)
at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.processMethods(DefaultSchemaGenerator.java:307)
at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:181)
at
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:352)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:350)
at
org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:103)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:137)
at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:78)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220)
at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:312)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:64)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:71)
at
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:83)
at java.util.TimerThread.mainLoop(Timer.java:512) at
java.util.TimerThread.run(Timer.java:462)<br>
<br>
I don't think it's reasonable to have to&nbsp; manually change the
useOriginalwsdl param by hand every time the service is reloaded.<br>
<br>
I am using axis2 1.3 with JiBX in tomcat 5.5.25.<br>
<br>
I originally thought the "cannot generate wsdl" error was due to the
wsdl importing schema from relative locations, but I've removed all of
that and it still fails.<br>
<br>
<br>
thanks,<br>
Linus<br>
<br>
ps, is there an option to control whether useOriginalwsdl is true or
false in services.xml when generated through wsdl2java?<br>
<br>
</font></font>
</body>
</html>

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


Mime
View raw message