You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Harald Wellmann (JIRA)" <ji...@apache.org> on 2014/02/12 19:11:29 UTC

[jira] [Commented] (TOMEE-1119) Duplicate servlets with embedded container

    [ https://issues.apache.org/jira/browse/TOMEE-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13899363#comment-13899363 ] 

Harald Wellmann commented on TOMEE-1119:
----------------------------------------

Unpack the attached archive and run mvn clean install to see a test failing with the following message:

launchContainer(com.blogspot.hwellmann.tomee.servlet.ITEmbedded)  Time elapsed: 1.968 sec  <<< ERROR!
org.apache.openejb.OpenEJBRuntimeException: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/bug-tomee-0.0.1-SNAPSHOT]]

Delete src/main/resources/META-INF, and the test will pass.

> Duplicate servlets with embedded container
> ------------------------------------------
>
>                 Key: TOMEE-1119
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1119
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>            Reporter: Harald Wellmann
>            Priority: Critical
>
> Embedded TomEE fails to deploy a WAR with a @WebServlet-annotated class when this class is also on the application classpath.
> This is essentially the same as TOMEE-923, it only requires a directory (not a JAR) with a META-INF folder on the classpath.
> I'll attach a test case and a patch.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)