The following comment has been added to this issue:

     Author: Andrew Stevens
    Created: Thu, 24 Feb 2005 4:29 PM
       Body:
My guess is that the ClassCastException is because validateOptions() uses
(String) getContext().getConfigParam("JaxrpcMappingFile")
and I suspect it doesn't like it if there's no JaxrpcMappingFile config 
parameter present.  I don't see anything else in the code doing a cast, so 
that's got to be it; this is backed up by the fact the CCE went away when you 
added that jaxrpcMappingFile attribute on the wseedoclet task (which is visible 
to all the subtasks).

The template should process all classes (or all classes named *Service in your 
case, given the fileset) that have a class-level @wsee.jaxrpc-mapping tag.  Can 
you show us the relevant bits from your code?

Also, does it make any difference if you use  
jaxrpcMappingFile="jaxrpc-mapping.xml" and <jaxrpc-mapping 
destdir="${basedir}\WEB-INF"/> instead?

---------------------------------------------------------------------
View this comment:
  
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1245?page=comments#action_16019

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1245

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1245
    Summary: ClassCast Exceptioni n WSEE
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Web Services Module
   Versions:
             1.2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Gurprit 

    Created: Tue, 25 Jan 2005 2:29 AM
    Updated: Thu, 24 Feb 2005 4:29 PM
Environment: Windows XP, Apache Ant1.6.2

Description:
I use the latest xdoclet (1.2 ) task definitions in my build.xml. When i run 
Wsee Task on Build.xml it throws ClassCastException. The log printed on 
Console is
It doesn't provide any information on the cause of the exception. 

genetrate.wsee:
[wseedoclet] java.lang.ClassCastException
[wseedoclet] at xdoclet.modules.wsee.JaxrpcMappingSubTask.validateOptions
(JaxrpcMappingSubTask.java:53)
[wseedoclet] at xdoclet.DocletTask.validateSubTasks(DocletTask.java:528)
[wseedoclet] at xdoclet.DocletTask.validateOptions(DocletTask.java:493)
[wseedoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:94)
[wseedoclet] at org.apache.tools.ant.UnknownElement.execute
(UnknownElement.java:275)
[wseedoclet] at org.apache.tools.ant.Task.perform(Task.java:364)
[wseedoclet] at org.apache.tools.ant.Target.execute(Target.java:341)
[wseedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[wseedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[wseedoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[wseedoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run
(InternalAntRunner.java:377)
[wseedoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main
(InternalAntRunner.java:135)
BUILD FAILED: C:\java\Workspaces\default\Wrap Tools\build.xml:66: Unexpected 
error


My Bulid.xml is like

path id="ant.classpath" description="Specific Ant classpath">
                
                <fileset dir="${ref.lib.dir}">
                        <!-- add the jars required for building only -->
                        <include name="**/*.jar"/>
                </fileset>
                <fileset dir="${xdoclet.lib.dir}">
                        <!-- add the xdoclet jars -->
                        <include name="**/*.jar"/>
                </fileset>
                <fileset dir="${jboss.client}">
                        <!-- add jboss client files -->
                        <include name="**/*.jar"/>
                </fileset>
                
                <pathelement location="bin"/>
                <!-- add compiled classes -->
        </path> 
        <taskdef resource="axis-tasks.properties" 
classpathref="ant.classpath"/>  
        <taskdef name="wseedoclet" 
classname="xdoclet.modules.wsee.WseeDocletTask" classpathref="ant.classpath"/>

<target name ="genetrate.wsee">
                <delete file="${webinf.dir}\webservices.xml"/>
                <delete file="${webinf.dir}\jaxrpc-mapping.xml"/>
                <wseedoclet     destDir = "${webinf.dir}"
                                                wsdlFile = "${wsdl.investment}"
                                                force = "true"
                                                verbose = "true">
                        <fileset dir="${src.dir}">
                        <include name="**/*.java"/>
                        </fileset>
                        
                        <deploymentdescriptor destdir="${webinf.dir}"/>
                        <jaxrpc-mapping destdir="${webinf.dir}"/>
                </wseedoclet>

Please help


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to