[ https://issues.apache.org/jira/browse/GERONIMO-6140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Forrest Xia reassigned GERONIMO-6140: ------------------------------------- Assignee: Forrest Xia > 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 > Assignee: Forrest Xia > > 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