You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Hamer <pa...@tohave.nl> on 2006/03/23 13:59:23 UTC
Tomcat 5.5.16 Bug? messes up when a class has the same name as a package
Hi,
I just updated to Tomcat 5.5.16 about 2 days after it was released.
Yesterday I walked into what seems to be a bug. I'm not sure whether Tomcat
5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6 did
*not* have this problem.
I've got the following class/package structure:
1: nl.hhv.merlin.gui.editor.EditButtons
2: nl.hhv.merlin.gui.Editor
3: nl.hhv.merlin.gui.editor2.EditButtons
Note that packagename of the first class is equal to the fully qualified
name of the second class (except for caps/nocaps). This should be no problem
right?!? At least it never was until now.
Now I have a JSP that simply does:
<%
nl.hhv.merlin.gui.editor.EditButtons buttons = null;
%>
Eclipse has no problems with this JSP, and happily accepts it, why shouldn't
it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the following error:
Generated servlet error:
nl.hhv.merlin.gui.editor cannot be resolved to a type
When I change my JSP to:
<%
nl.hhv.merlin.gui.editor2.EditButtons buttons = null;
%>
Tomcat compiles the JSP without any problems. Note that the 2nd EditButtons
class is an EXACT copy of the first. All three classes are zipped into the
same jar, so it's not a classpath issue.
Any thoughts on this?
Regards,
Paul Hamer
management & development
paul@tohave.nl
toHAVE websolutions
www.tohave.nl
info@tohave.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 5.5.16 Bug? messes up when a class has the same name as
a package
Posted by Ronald Klop <ro...@base.nl>.
What OS are you running on?
Windows for example is not case-sensitive in file names.
Ronald.
On Thu Mar 23 13:59:23 CET 2006 Tomcat Users List <us...@tomcat.apache.org> wrote:
> Hi,
>
> I just updated to Tomcat 5.5.16 about 2 days after it was released.
> Yesterday I walked into what seems to be a bug. I'm not sure whether Tomcat
> 5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6 did
> *not* have this problem.
>
> I've got the following class/package structure:
>
> 1: nl.hhv.merlin.gui.editor.EditButtons
> 2: nl.hhv.merlin.gui.Editor
> 3: nl.hhv.merlin.gui.editor2.EditButtons
>
> Note that packagename of the first class is equal to the fully qualified
> name of the second class (except for caps/nocaps). This should be no problem
> right?!? At least it never was until now.
>
> Now I have a JSP that simply does:
>
> <%
> nl.hhv.merlin.gui.editor.EditButtons buttons = null;
> %>
>
> Eclipse has no problems with this JSP, and happily accepts it, why shouldn't
> it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the following error:
>
> Generated servlet error:
> nl.hhv.merlin.gui.editor cannot be resolved to a type
>
> When I change my JSP to:
>
> <%
> nl.hhv.merlin.gui.editor2.EditButtons buttons = null;
> %>
>
> Tomcat compiles the JSP without any problems. Note that the 2nd EditButtons
> class is an EXACT copy of the first. All three classes are zipped into the
> same jar, so it's not a classpath issue.
>
> Any thoughts on this?
>
> Regards,
> Paul Hamer
>
> management & development
> paul@tohave.nl
>
> toHAVE websolutions
> www.tohave.nl
> info@tohave.nl
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Tomcat 5.5.16 Bug? messes up when a class has the same name as
a package
Posted by Mark Thomas <ma...@apache.org>.
Paul Hamer wrote:
> Hi Shankar and others,
>
> I've filed it in Bugzilla... it has become Bug 39093.
The test case you provided made it very easy to check this and the bug
is not valid. The test case works fine for me with 5.5.15 and the
current HEAD. My environment is not identical but close enough.
You need to look again at your setup. Something isn't right.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package
Posted by Paul Hamer <pa...@tohave.nl>.
Hi Shankar and others,
I've filed it in Bugzilla... it has become Bug 39093.
Thanx for your input!
Regards,
Paul Hamer
management & development
paul@tohave.nl
toHAVE websolutions
www.tohave.nl
info@tohave.nl
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Shankar Unni
Sent: Thursday, 23 March 2006 23:49
To: users@tomcat.apache.org
Subject: Re: Tomcat 5.5.16 Bug? messes up when a class has the same name as
a package
Paul Hamer wrote:
> Just checked: the same problem occurs with Tomcat 5.5.15.
Definitely smells like a bug. Can you package a small *self-contained*
example (preferably a fully self-contained webapp example with such a
minimal set of files) and post a bug in ASF Bugzilla?
That's http://issues.apache.org/bugzilla .
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 5.5.16 Bug? messes up when a class has the same name as
a package
Posted by Shankar Unni <sh...@netscape.net>.
Paul Hamer wrote:
> Just checked: the same problem occurs with Tomcat 5.5.15.
Definitely smells like a bug. Can you package a small *self-contained*
example (preferably a fully self-contained webapp example with such a
minimal set of files) and post a bug in ASF Bugzilla?
That's http://issues.apache.org/bugzilla .
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package
Posted by Paul Hamer <pa...@tohave.nl>.
Hi again,
Just checked: the same problem occurs with Tomcat 5.5.15.
Regards,
Paul Hamer
management & development
paul@tohave.nl
toHAVE websolutions
www.tohave.nl
info@tohave.nl
-----Original Message-----
From: Paul Hamer [mailto:paul@tohave.nl]
Sent: Thursday, 23 March 2006 13:59
To: users@tomcat.apache.org
Subject: Tomcat 5.5.16 Bug? messes up when a class has the same name as a
package
Hi,
I just updated to Tomcat 5.5.16 about 2 days after it was released.
Yesterday I walked into what seems to be a bug. I'm not sure whether Tomcat
5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6 did
*not* have this problem.
I've got the following class/package structure:
1: nl.hhv.merlin.gui.editor.EditButtons
2: nl.hhv.merlin.gui.Editor
3: nl.hhv.merlin.gui.editor2.EditButtons
Note that packagename of the first class is equal to the fully qualified
name of the second class (except for caps/nocaps). This should be no problem
right?!? At least it never was until now.
Now I have a JSP that simply does:
<%
nl.hhv.merlin.gui.editor.EditButtons buttons = null;
%>
Eclipse has no problems with this JSP, and happily accepts it, why shouldn't
it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the following error:
Generated servlet error:
nl.hhv.merlin.gui.editor cannot be resolved to a type
When I change my JSP to:
<%
nl.hhv.merlin.gui.editor2.EditButtons buttons = null;
%>
Tomcat compiles the JSP without any problems. Note that the 2nd EditButtons
class is an EXACT copy of the first. All three classes are zipped into the
same jar, so it's not a classpath issue.
Any thoughts on this?
Regards,
Paul Hamer
management & development
paul@tohave.nl
toHAVE websolutions
www.tohave.nl
info@tohave.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org