Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 90957

Summary: New -> Web Service.. not seeing files from project on build path
Product: [WebTools] WTP Webservices Reporter: Matt Carter <matt>
Component: wst.wsAssignee: Kathy Chan <kathy>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 Keywords: Documentation
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
JAR for org.eclipse.jst.ws.axis.consumption.ui none

Description Matt Carter CLA 2005-04-11 05:39:13 EDT
I have a common project containing all of the classes used in a J2EE Web Project
except the class to publish, essentially a wrapper class, which imports various
classes from the common project.

The web project has the common project as a required project on the build path.

I'm trying to create a Web Service from the wrapper class in the web project.

When the wizard is doing it's work I get this error:

IWAB0398E Error in generating WSDL from Java java.lang.NoClassDefFoundError:
org/mycompany/common/ProcessingException

(If I change the exception used to say RemoteException, I get the same error but
for the next class referenced in the common project.)

There are no compile errors in either project in the workbench.

Running New -> Web Service... on a simple test project works fine.
Comment 1 David Williams CLA 2005-04-24 01:57:18 EDT
Just assigning to more specific component based on abstract. 
Comment 2 Chris Brealey CLA 2005-04-25 12:02:21 EDT
Kathy, would you please try this on I20050422? Flexible project support may be 
handling this scenario now, or it may still be a problem, in which case we need 
to determine if this a bug in Web services tools or in J2EE tools and assign 
the bug / pursue a fix if at all possible in M4.
Comment 3 Kathy Chan CLA 2005-04-25 15:54:59 EDT
This is a problem because the project build path is not set properly.  See 
defect 90560 (which had been targetted to m5):

https://bugs.eclipse.org/bugs/show_bug.cgi?id=90560

*** This bug has been marked as a duplicate of 90560 ***
Comment 4 Kathy Chan CLA 2005-05-16 17:38:52 EDT
A fix is provided to set classpath passed to the Axis emitter properly even 
when:

- a project depends on another project
- a module depends on other module within the same project

Please note that even with this fix, the wizard would completes successfully 
but the user would still have to manually add the dependent JARs to the 
module's WEB-INF/lib directory in order have the Web service to deploy and run 
properly.
Comment 5 Kathy Chan CLA 2005-05-16 17:45:41 EDT
Fix committed.  

Note that we are using an internal J2EE API and would have to switch to use an 
external API once the J2EE team provides one. This work will be track under 
90560.
Comment 6 Kathy Chan CLA 2005-05-16 17:47:06 EDT
Created attachment 21232 [details]
JAR for org.eclipse.jst.ws.axis.consumption.ui
Comment 7 David Williams CLA 2005-06-15 01:32:40 EDT
Changed Version field given new release numbering.
Comment 8 Matt Carter CLA 2005-07-13 05:49:54 EDT
Unable to verify on I2005 due to bug 103628; cannot create test Dynamic Web Project.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=103628

Also recently in I20050712 WST build, unable to complete Bottom-Up Web Service
wizard due to exception (in clean project but with original class for which this
bug was filed). Exception seems unrelated but prevents testing. Will reproduce
on request.

Please advise. I will re-attempt to verify as soon as above bug resolved.
Comment 9 Matt Carter CLA 2005-07-13 05:54:32 EDT
s/I2005 /I20050713-200507130840 /
Comment 10 Marc Baumgartner CLA 2005-07-15 10:50:02 EDT
I have got the same problem (using WinNT and all the newest releases; fresh
workspace):

IWAB0398E Error in generating WSDL from Java 

Comment 11 Kathy Chan CLA 2005-07-18 16:11:22 EDT
If you are still getting the problem with the latest build, please re-open the 
defect with the exact steps to reproduce the problem (including the necessary 
files).
Comment 12 Kathy Chan CLA 2005-07-19 15:26:44 EDT
I tried with Eclipse 3.1 and WTP0.7RC1.  I was able to create dynamic Web 
project successfully (with either 1 module per project or multiple modules per 
project).  I was able to run a bottom-up Web service creation scenario with 
project A depending on classes from project B.  I did not run into the 
NoClassDefFound problem going through the wizard.  This problem was 
specifically fixed on 05/16.

Please note that you need to JAR up the classes in the dependent project B and 
add it to the WEB-INF/lib directory before running the bottom-up Web service 
scenario.  Otherwise, you will get a Class Not Found exception in the server 
console when trying to deploy the Web service to Axis.  You would still be able 
to go through the wizard cleanly even if you forgot to add the JAR to the lib 
directory though.
Comment 13 David Williams CLA 2006-03-04 01:04:20 EST
This change is a bulk update of all _un_targeted, fixed, resolved bugs upon release of M5. This particular bug _might_ have been fixed earlier than M5. (Feel free to correct). 

Comment 14 Kathy Chan CLA 2006-06-15 11:08:47 EDT
As we are trying to close down WTP 1.5, please get the latest WTP 1.5 driver to verify the bug and reopen if the problem had not been fixed.  If this defect is not verified/reopened by end of day 06/16, I'll attempt to verify the defect by reproducing the problem as described in the defect.  However, since you know your scenario best, it would be more appropriate if you verify the fix.
Comment 15 femi CLA 2006-07-01 09:16:55 EDT
(In reply to comment #14)
> As we are trying to close down WTP 1.5, please get the latest WTP 1.5 driver to
> verify the bug and reopen if the problem had not been fixed.  If this defect is
> not verified/reopened by end of day 06/16, I'll attempt to verify the defect by
> reproducing the problem as described in the defect.  However, since you know
> your scenario best, it would be more appropriate if you verify the fix.
> 
Hi, I am still getting this error even while using WTP 1.5. 
Comment 16 Chris Brealey CLA 2006-09-22 10:25:09 EDT
Verified on behalf of submitter (Matt). This was fixed over a year ago, and has not resurfaced in WTP 1.5 or 1.5.1 to the best of our knowledge. Matt, if the problem recurs on WTP 1.5.1, please reopen. Thanks - CB.
Comment 17 Chris Brealey CLA 2006-09-22 10:25:18 EDT
Closed.