Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 304BA752D for ; Fri, 2 Sep 2011 11:58:40 +0000 (UTC) Received: (qmail 39856 invoked by uid 500); 2 Sep 2011 11:58:39 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 39458 invoked by uid 500); 2 Sep 2011 11:58:33 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 39451 invoked by uid 99); 2 Sep 2011 11:58:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 11:58:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 11:58:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BC7FE37A82 for ; Fri, 2 Sep 2011 11:58:09 +0000 (UTC) Date: Fri, 2 Sep 2011 11:58:09 +0000 (UTC) From: "Kevan Miller (JIRA)" To: dev@geronimo.apache.org Message-ID: <472567240.10221.1314964689751.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (GERONIMO-6140) Fix testsuite errors in Geronimo trunk MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Fix testsuite errors in Geronimo trunk -------------------------------------- Key: GERONIMO-6140 URL: https://issues.apache.org/jira/browse/GERONIMO-6140 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Reporter: Kevan Miller There are a few testsuite problems in the current trunk 1) CI testsuite builds are always failing because of port conflicts 2) testsuite failures aren't being reflected in the testsuite summary (or testsuite failures aren't stopping the test) 3) geronimo/server/trunk/testsuite/web-testsuite/test-tomcat/ and geronimo/server/trunk/testsuite/aries-testsuite/require-bundle-test/RequireBundle-eba appear to have the same basic problem: {code} Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.354 sec <<< FAILURE! testTomcatHost(org.apache.geronimo.testsuite.tomcat.TestTomcat) Time elapsed: 0 sec <<< FAILURE! junit.framework.AssertionFailedError: responseCode expected:<200> but was:<404> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:282) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:201) at org.apache.geronimo.testsuite.tomcat.TestTomcat.testTomcatHost(TestTomcat.java:42) {code} 4) /Users/kevan/geronimo/server/trunk/testsuite/javaee6-testsuite/commonannotation1.1-test/ {code} Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.455 sec <<< FAILURE! testDataSourceDefinition(org.apache.geronimo.sample.dataSourceDefinition.test.DataSourceDefinitionTest) Time elapsed: 0.348 sec <<< FAILURE! java.io.IOException: Apache Tomcat/7.0.19.2 - Error report

HTTP Status 500 -


type<\ /b> Exception report

message

description The server encountered an internal error () that prevented it from fulfilling\ this request.

exception

javax.servlet.ServletException: Error instantiating servlet class org.apache.geronimo.sample.servlet.DataSou\
rceDefinitionServlet       org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:818)   org.apache.geron\
imo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:48)      org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(Protec\
tedTargetValve.java:53)      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)   org.apache.catalina.valves.AccessLogValve.invo\
ke(AccessLogValve.java:851)       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)     org.apache.coyote.http11.Http11Processor.\
process(Http11Processor.java:278)      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) org.apache.tomcat.ut\
il.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)        org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)  org.apache.geronimo.poo\
l.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)     ja\
va.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:680)

root cause

java\
.lang.InstantiationException: Some objects to be injected were not found in jndi: [javax.naming.NameNotFoundException: osgi:service/mydatasource]  org.apac\
he.geronimo.j2ee.annotation.Holder.newInstance(Holder.java:174) org.apache.geronimo.tomcat.TomcatInstanceManager.newInstance(TomcatInstanceManager.java:74)\
     org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:818)   org.apache.geronimo.tomcat.valve.Geron\
imoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:48)      org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53\
)      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)   org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java\
:851)       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)     org.apache.coyote.http11.Http11Processor.process(Http11Processo\
r.java:278)      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) org.apache.tomcat.util.net.JIoEndpoint$Soc\
ketProcessor.run(JIoEndpoint.java:302)        org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)  org.apache.geronimo.pool.ThreadPool$ContextCl\
assLoaderRunnable.run(ThreadPool.java:373) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)     java.util.concurrent.Thr\
eadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:680)

note The full stack trace of the root c\ ause is available in the Apache Tomcat/7.0.19.2 logs.


Apache Tomcat/7.0.19.2

at org.apache.geronimo.testsupport.HttpUtils.doGET(HttpUtils.java:41) at org.apache.geronimo.sample.dataSourceDefinition.test.DataSourceDefinitionTest.checkResponse(DataSourceDefinitionTest.java:49) at org.apache.geronimo.sample.dataSourceDefinition.test.DataSourceDefinitionTest.testDataSourceDefinition(DataSourceDefinitionTest.java:42) {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira