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

Bug 146910

Summary: Java class with more than 1 package segment does not get published correctly
Product: [WebTools] WTP Java EE Tools Reporter: Kathy Chan <kathy>
Component: wst.webAssignee: wst.web <wst.web-inbox>
Status: CLOSED DUPLICATE QA Contact: Chuck Bridgham <cbridgha>
Severity: blocker    
Priority: P3 CC: deboer, jlanuti
Version: 1.5   
Target Milestone: 1.5 RC5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Chan CLA 2006-06-13 16:28:18 EDT
Driver:  WTP 1.5 RC506131528

1. Install Tomcat 5.0 server runtime.
2. Create a dynamic Web project "wp".
3. Create 2 Java files pkg1.Test1.java and pkg1.pkg2.Test2.java.
4. Add the project to Tomcat 5.0 server.

If you check the
workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\tc50\WEB-INF\classes directory, you'll noticed that Test1.class is there but not Test2.  It seems that classes with more than 1 segment in the package name does not get into the server's publish directory properly.  This cause problem running anything that tries to get to that class.  This used to work in the WTP 1.6 06102033 driver.

I'm not sure if this is a problem with wst.web or wst.server.
Comment 1 Tim deBoer CLA 2006-06-13 16:33:08 EDT
I haven't dropped any code changes since last week. Any chance that this is a regression from bug 145090?
Comment 2 Kathy Chan CLA 2006-06-13 16:39:22 EDT
Just want to add that this is what's in the webapp's WEB-INF/classes directory:

- pkg1/Test1.class
- pkg1/pkg1
Comment 3 John Lanuti CLA 2006-06-13 17:25:43 EDT
Good catch Kathy.  One line fix released for the 061406 WTP 1.5 RC5 build.

*** This bug has been marked as a duplicate of 145090 ***
Comment 4 Kathy Chan CLA 2006-06-15 10:33:31 EDT
Verified on WTP 1.5 06150639.