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 Middelkoop <mi...@gmail.com> on 2012/03/21 08:31:16 UTC
Embedded Tomcat does not detect @HandlesTypes classes
Hi,
When I run Tomcat Embedded from Eclipse it is not able to detect
my @HandlesTypes classes. This works fine when I run Tomcat non-embedded.
This only happens if the classes that should be picked up by @HandlesTypes
are not in a JAR file. Is this a bug I need to report?
Tomcat tomcat = new Tomcat();
String currentDir = new File(".").getCanonicalPath();
String webRoot = currentDir + "\\src\\main\\webapp";
tomcat.addWebapp("/indi", webRoot);
tomcat.start();
I use Tomcat 7.0.26.
Regards,
Paul Middelkoop
Re: Embedded Tomcat does not detect @HandlesTypes classes
Posted by Mark Thomas <ma...@apache.org>.
On 21/03/2012 07:31, Paul Middelkoop wrote:
> Hi,
>
> When I run Tomcat Embedded from Eclipse it is not able to detect
> my @HandlesTypes classes. This works fine when I run Tomcat non-embedded.
> This only happens if the classes that should be picked up by @HandlesTypes
> are not in a JAR file. Is this a bug I need to report?
>
> Tomcat tomcat = new Tomcat();
> String currentDir = new File(".").getCanonicalPath();
> String webRoot = currentDir + "\\src\\main\\webapp";
> tomcat.addWebapp("/indi", webRoot);
> tomcat.start();
>
> I use Tomcat 7.0.26.
See:
https://issues.apache.org/bugzilla/show_bug.cgi?id=52853
If you have a simple test case that you can add to that issue, that
would be a big help.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org