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 40942 - Web Module class files
Summary: Web Module class files
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-11 22:06 UTC by gregd
Modified: 2006-06-05 00:51 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 gregd 2004-03-11 22:06:22 UTC
Where should the compiler be told to place the 
class files?
With the Web Module mounted (as a CVS 
filesystem), two seperate mounted filesystems 
are visible.  One has a : /WEB-INF/classes on 
it.  When I expand its tree I see my .java 
files.  Is this also where I should place 
the .class files?
Comment 1 Marek Fukala 2004-03-15 10:39:14 UTC
By default the classes are created in the some directories as the java
classes. So if you see some java files under the /WEB-INF/classes
filesystem and do compile/build then the filesystem the classes should
physically appear in the some directories. This is a common behaviour
and do not see any reason why the classes should be created somewhere
else.
According to the J2EE specification the webmodule has defined places
where are classes/jar files stored. There is /WEB-INF/classes
directory for storing java classes and /WEB-INF/lib for storing jar
files. 
The reason why there is another separated filesystem visible is to
provide more convenient (and consistent with j2se) way to work with
the java files.
The files you can see in the first filesystem under /WEB-INF/classes
node are physically the some files as in the root of the second
filesystem.
Comment 2 gregd 2004-03-16 18:20:02 UTC
I seem to be stuck in a paradygm.  I prefer that the .class files 
reside seperately from the .java files.  I haven't found any 
problems with having them seperate, unless the debugger etc. will 
eventually choke.
Comment 3 Jaroslav Pospisil 2006-02-28 13:04:51 UTC
VERIFIED