This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 161508 - Generating wsdl from a java class fais to load classes from dependent projects
Summary: Generating wsdl from a java class fais to load classes from dependent projects
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Axis2 (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-30 18:26 UTC by sandi_ro
Modified: 2009-04-03 20:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sandi_ro 2009-03-30 18:26:26 UTC
Hi,

I have folowing Setup : 
Project A ( Java Library with data clasess common to server and client ) 
Project B Web contains a class used for web service, methods uses clases from Project A that is added as dependency for
project B . Still right click on the project tree and "Generate Wsdl" fails with java.lang.NoClassDefFoundError.
I am expecting that "java2wsdl-A" task in project B/build.xml to consider the clases from dependent projects automagicaly. 

Thanks.
Comment 1 Milan Kuchtiak 2009-03-31 17:20:32 UTC
Yes,

The classpath in java2wsdl task (nbproject/axis2-build.xml) should be specified as :

            <classpath>
                <pathelement path="${javac.classpath}"/>
                <pathelement location="${build.dir}/classes"/>
            </classpath>

to involve what's on project's classpath.
Comment 2 Milan Kuchtiak 2009-04-01 12:36:19 UTC
Fixed:

details:
http://hg.netbeans.org/main?cmd=changeset;node=fe21c1ea6d71
Comment 3 Quality Engineering 2009-04-03 20:09:34 UTC
Integrated into 'main-golden', will be available in build *200904031400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fe21c1ea6d71
User: mkuchtiak@netbeans.org
Log: #161508 : add project classpath to java2wsdl class path