You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Vy Ho (JIRA)" <ji...@apache.org> on 2010/03/08 19:45:27 UTC

[jira] Commented: (AXIS2-4647) java2wsdl throwing java.lang.RuntimeException when running through command line.

    [ https://issues.apache.org/jira/browse/AXIS2-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842766#action_12842766 ] 

Vy Ho commented on AXIS2-4647:
------------------------------

Would you mind trying on newer version of Axis?  For example, 1.5.1?  The version you're using is so old that I think people just don't even want to go back and fix something that old.  It may still happens in 1.5.1, but people can then try to produce it and fix it.

Also, if you can produce a small sample class that you try to generate, narrow down to 1 or 2 methods, and include it here.

> java2wsdl throwing java.lang.RuntimeException when running through command line.
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-4647
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4647
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>            Reporter: shruthi
>
> Here is my ant task:
> <taskdef name="java2WSDL" classname="org.apache.axis2.tool.ant.Java2WSDLTask">
> <classpath>
> <path refid="axis2.classpath" />
> </classpath>
> </taskdef>
> <java2WSDL 
> classname="webservice.sampleService" 
> serviceName="sampleService" 
> style="document"	
> targetNamespace="http://webservice"
> outputLocation="${path}">
> <classpath>
> <path refid="class.path" />
> <path refid="axis2.classpath" />
> </classpath>
> </java2WSDL>
> java.lang.RuntimeException: java.lang.ClassCastException
>         at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java
> :108)
>         at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.<init>(Java2WSDLCodege
> nEngine.java:51)
>         at org.apache.axis2.tool.ant.Java2WSDLTask.execute(Java2WSDLTask.java:26
> 7)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>         at org.apache.tools.ant.Main.runBuild(Main.java:758)
>         at org.apache.tools.ant.Main.startAnt(Main.java:217)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Caused by: java.lang.ClassCastException
>         at org.apache.axis2.deployment.DescriptionBuilder.loadMessageReceiver(De
> scriptionBuilder.java:192)
>         at org.apache.axis2.deployment.DescriptionBuilder$1.run(DescriptionBuild
> er.java:145)
>         at org.apache.axis2.java.security.AccessController.doPrivileged(AccessCo
> ntroller.java:132)
>         at org.apache.axis2.deployment.DescriptionBuilder.processMessageReceiver
> s(DescriptionBuilder.java:141)
>         at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConf
> igBuilder.java:102)
>         at org.apache.axis2.context.ConfigurationContextFactory.createBasicConfi
> gurationContext(ConfigurationContextFactory.java:317)
>         at org.apache.axis2.context.ConfigurationContextFactory.createDefaultCon
> figurationContext(ConfigurationContextFactory.java:304)
>         at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java
> Any help is appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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