You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/05/31 15:08:15 UTC
DO NOT REPLY [Bug 39093] - Tomcat messes up when a class has the same name as a package
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39093>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39093
paul@2hv.nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
Version|5.5.16 |5.5.17
------- Additional Comments From paul@2hv.nl 2006-05-31 13:08 -------
I've finally been able to narrow down this problem. It appears that it occurs
ONLY when the classes are in the Java classpath, and NOT (as in most cases) in
the WEB-INF/classes directory. I'll attach a new ZIP in a minute.
Meanwhile, I've also migrated to Tomcat 5.5.17, but the problem remains.
Just unpack the zip (mytest2.zip) into your tomcat/webapps directory. The
index.jsp will now compile fine, just to prove it actually works :-)
Now, here we go:
- Stop Tomcat
- Rename the mytest/WEB-INF/classes dir to mytest/WEB-INF/klasses .
This will prevent Tomcat from picking it up.
- Now add the mytest/WEB-INF/klasses dir to the Java classpath. My new
classpath then is:
C:\Program Files\Tomcat5.5\bin\bootstrap.jar;C:\Program Files\Tomcat5.5
\webapps\mytest\WEB-INF\klasses
- Restart Tomcat
- Make sure you "touch" index.jsp to force re-compilation.
- Visit index.jsp
et voila... there you have it:
> gui.editor cannot be resolved to a type
When I then (keep Tomcat running) delete the WEB-INF/klasses/gui/Editor.class
file, and re-visit the index.jsp, it suddenly compiles!
Go figure :-)
My environment:
Windows XP Pro SP2 + all patches
Java 1.5.0_04
Tomcat 5.5.16 + 5.5.17
Hope this helps to finally locate this bug. Would help me a lot. I've already
got many applications out in the field using these classes, so renaming them is
not really an option :-(
Thanx!
Paul Hamer
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org