Hi,

I have a similar problem, but with a slight twist.

(cc'ing jibx list in case it's related.)

normal wsdl2java generation produces services.xml with useOriginalwsdl=true.

The service runs fine, but it produces the "Unable to generate WSDL 1.1 for this service" error when hitting the ?wsdl.

If I *manually* change the useOriginalwsdl to false through the admin interface, then I get generated wsdl out.    Ok, I could live with that wsdl, probably.

*But*, if I set useOriginalwsdl=false in services.xml, I get a deployment error:

This Web axisService has deployment faults

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)

I don't think it's reasonable to have to  manually change the useOriginalwsdl param by hand every time the service is reloaded.

I am using axis2 1.3 with JiBX in tomcat 5.5.25.

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.


thanks,
Linus

ps, is there an option to control whether useOriginalwsdl is true or false in services.xml when generated through wsdl2java?

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to