Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to TEAM Engine v5.5.2 fails #256

Closed
dstenger opened this issue Mar 17, 2023 · 5 comments
Closed

Upgrade to TEAM Engine v5.5.2 fails #256

dstenger opened this issue Mar 17, 2023 · 5 comments
Assignees
Labels
dependencies Pull requests that update a dependency file
Projects

Comments

@dstenger
Copy link
Contributor

Describe the bug
I already created a branch with an update of the dependencies: https://github.com/opengeospatial/ets-wfs20/compare/upgradeToTeamEngine552

However, when building the repository via mvn clean install site docker:run -Pdocker,integration-tests, following error occurs during execution of integration tests:

[ERROR] <!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> java.lang.NoClassDefFoundError: org/apache/xml/resolver/readers/CatalogReader</p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><p><b>Exception</b> <pre>javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/xml/resolver/readers/CatalogReader
[ERROR] 	com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:420)
[ERROR] 	com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
[ERROR] 	com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
[ERROR] 	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
[ERROR] 	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
[ERROR] 	com.occamlab.te.realm.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.java:72)
[ERROR] </pre></p><p><b>Root Cause</b> <pre>java.lang.NoClassDefFoundError: org/apache/xml/resolver/readers/CatalogReader
[ERROR] 	org.opengis.cite.iso19142.util.ValidationUtils.createSchemaResolver(ValidationUtils.java:60)
[ERROR] 	org.opengis.cite.iso19142.util.ValidationUtils.initCatalogResolver(ValidationUtils.java:38)
[ERROR] 	org.opengis.cite.iso19142.util.ValidationUtils.&lt;clinit&gt;(ValidationUtils.java:33)
[ERROR] 	org.opengis.cite.iso19142.SuiteFixtureListener.onStart(SuiteFixtureListener.java:47)
...
[ERROR] </pre></p><p><b>Root Cause</b> <pre>java.lang.ClassNotFoundException: org.apache.xml.resolver.readers.CatalogReader
[ERROR] 	java.net.URLClassLoader.findClass(URLClassLoader.java:382)
[ERROR] 	java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[ERROR] 	java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[ERROR] 	org.opengis.cite.iso19142.util.ValidationUtils.createSchemaResolver(ValidationUtils.java:60)
[ERROR] 	org.opengis.cite.iso19142.util.ValidationUtils.initCatalogResolver(ValidationUtils.java:38)
[ERROR] 	org.opengis.cite.iso19142.util.ValidationUtils.&lt;clinit&gt;(ValidationUtils.java:33)
[ERROR] 	org.opengis.cite.iso19142.SuiteFixtureListener.onStart(SuiteFixtureListener.java:47)
...

When using the Web Browser Interface, following error is reported:

Test tns:Main type Mandatory default result Passed (s0001)

Assertion: The test subject satisfies all applicable constraints.

Form d68e46_1:
   wfs-uri=https://cite.deegree.org/deegree-webservices-3.4.30/services/wfs200?service=WFS&request=GetCapabilities

Error in call to extension function {public java.lang.Object com.occamlab.te.TECore.callFunction(net.sf.saxon.expr.XPathContext,java.lang.String,java.lang.String,net.sf.saxon.om.NodeInfo) throws java.lang.Exception}: Exception in extension function net.sf.saxon.s9api.SaxonApiException: Error in call to extension function {public javax.xml.transform.Source org.opengis.cite.iso19142.TestNGController.doTestRun(org.w3c.dom.Document) throws java.lang.Exception}: Exception in extension function java.lang.NoClassDefFoundError: org/apache/xml/resolver/readers/CatalogReader
Result: Failed

Expected behavior
Integration tests shall pass again and execution via Web Browser Interface shall not lead to a NoClassDefFoundError.

Additional context
There might be a relation to opengeospatial/teamengine#540 and/or opengeospatial/teamengine#547.

@dstenger dstenger added the dependencies Pull requests that update a dependency file label Mar 17, 2023
@dstenger dstenger added this to the 1.40 milestone Mar 17, 2023
@dstenger dstenger added this to To do in CITE via automation Mar 17, 2023
@dstenger dstenger moved this from To do to In progress in CITE Mar 17, 2023
@dstenger
Copy link
Contributor Author

It was possible to test the blocked PR with a workaround: #255 (comment)
Thus, there is a clear connection how TEAM Engine is set up:

  • TEAM Engine and all test suites of Beta -> Test suite works.
  • TEAM Engine and ets-wfs20 stand alone -> Test suite does not work.

This, is an indicator that the two linked teamengine issues might be related to the problem.

@bpross-52n
Copy link
Contributor

I could not yet get to the bottom of this. I created a pull request in Teamengine to cope with this issue, like we discussed today:
https://github.com/opengeospatial/teamengine/tree/move-xml-resolver-to-common-libs

@dstenger
Copy link
Contributor Author

dstenger commented Mar 31, 2023

When testing this branch with teamengine-docker/teamengine-beta and WFS 2.0 test suite, following error occurs when executing against [1]:

...
Cannot find org/opengis/cite/validation/CatalogManager.properties
Error at xsl:import on line 48 
  XTSE0165: java.io.FileNotFoundException:
  /usr/local/tomcat/iso_schematron_skeleton_saxon.xsl (No such file or directory)
Cannot find org/opengis/cite/validation/CatalogManager.properties
Error at xsl:import on line 48 
  XTSE0165: java.io.FileNotFoundException:
  /usr/local/tomcat/iso_schematron_skeleton_saxon.xsl (No such file or directory)
Cannot find org/opengis/cite/validation/CatalogManager.properties
...

[1] https://cite.deegree.org/deegree-webservices-3.4.30/services/wfs200?service=WFS&request=GetCapabilities

@dstenger
Copy link
Contributor Author

Thus, TEAM Engine searches for the file in the wrong path, now.

@dstenger
Copy link
Contributor Author

Solved by opengeospatial/teamengine#572.

CITE automation moved this from To verify to Done Apr 14, 2023
@dstenger dstenger removed this from the 1.40 milestone Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
CITE
  
Done
Development

No branches or pull requests

2 participants