opengeospatial / teamengine

TEAM Engine (Test, Evaluation, And Measurement Engine) is an engine for testing web services and other resources written in JAVA. It executes test scripts written in Compliance Test Language (CTL), TestNG and other languages. It is lightweight and easy to run as a command line or to setup as a service. It can be used to test any type of service or encoding. It is also the official tool used by the Open Geospatial Consortium (OGC) for compliance testing.
Apache License 2.0
45 stars 41 forks source link

Attempting to access the viewOldSessionLog page returns an HTTP 500 error #499

Closed dstenger closed 2 years ago

dstenger commented 2 years ago

Describe the bug Attempting to access the viewOldSessionLog page returns an HTTP 500 error.

To Reproduce Steps to reproduce the behavior:

  1. Go to http://cite.ogc.org/te2/
  2. Start test run with any test suite
  3. In the test report click on view old sessions
  4. Error described above is occurring.

Expected behavior Old session log shall be displayed.

Additional context Please also see following comment: https://github.com/opengeospatial/teamengine/issues/486#issuecomment-1039974992

dstenger commented 2 years ago

The error is still occurring on http://cite.ogc.org/te2/ when validating https://maps.ecere.com/ogcapi with OGC API Features test suite. HTTP Status 500 - javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

heidivanparys commented 2 years ago

I just want to confirm that I also received this error in the beta engine.

I assume what is meant in the steps to reproduce, step 3, is click on "See the detailed old test report", instead of click on "view old sessions". The page behind is called viewOldSessionLog.jsp.

The root error:

java.lang.ClassNotFoundException: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl
    java.lang.Class.forName0(Native Method)
    java.lang.Class.forName(Class.java:348)
    javax.xml.parsers.FactoryFinder.getProviderClass(FactoryFinder.java:124)
    javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:188)
    javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:152)
    javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:232)
    javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:119)
    org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:115)
    org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:181)
    org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:231)
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:182)
    org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:419)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421)
    org.apache.jasper.compiler.Parser.parse(Parser.java:138)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:136)
    org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:329)
    org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:366)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421)
    org.apache.jasper.compiler.Parser.parse(Parser.java:138)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
dstenger commented 2 years ago

Locally (with https://hub.docker.com/r/ogccite/teamengine-beta), I was not able to reproduce the error. However, the problem is reproducible on Beta environment.

dstenger commented 2 years ago

I cannot reproduce this error on http://cite.ogc.org/te2/ anymore.

dstenger commented 2 years ago

@heidivanparys Can you please check if the error is still occurring?

heidivanparys commented 2 years ago

I checked and I did not get the error this time.

dstenger commented 2 years ago

Thank you for the feedback. Thus, we can close the issue for now.