Skip to content

REST service does not return data or log #478

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

Open
jane-heller-bkg opened this issue Apr 1, 2025 · 0 comments
Open

REST service does not return data or log #478

jane-heller-bkg opened this issue Apr 1, 2025 · 0 comments

Comments

@jane-heller-bkg
Copy link

Baseline

After deploying an instance of reg3istry (Version 2.6.0.) using webapps re3gistry and re3gistryrestapi on the same tomcat instance, re3gistry service works, but re3gistry2restapi does not return any resources.

It is expected to return eg. the registers via http://[HOST]/re3gistry2restapi/rest?lang=de&format=jsonc&status= but it returns HTTP 404 on all paths. Log file remains empty.

Logs

catalina.log excerpt:

01-Apr-2025 13:52:29.168 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
01-Apr-2025 13:52:29.187 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [311] milliseconds
01-Apr-2025 13:52:29.211 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
01-Apr-2025 13:52:29.211 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat]
01-Apr-2025 13:52:29.216 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/tomcat/webapps/re3gistry2]
01-Apr-2025 13:52:30.340 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
01-Apr-2025 13:52:31.298 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/tomcat/webapps/re3gistry2] has finished in [2,081] ms
01-Apr-2025 13:52:31.298 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/tomcat/webapps/re3gistry2restapi]
01-Apr-2025 13:52:32.010 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
01-Apr-2025 13:52:32.739 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/tomcat/webapps/re3gistry2restapi] has finished in [1,441] ms
01-Apr-2025 13:52:32.742 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
01-Apr-2025 13:52:32.751 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [3563] milliseconds

eclipselink.log:

[EL Severe]: metadata: 2025-04-01 13:52:32.392--ServerSession(554087639)--The java.io.Serializable class was compiled with an unsupported JDK. Report this error to the EclipseLink open source project.
java.lang.IllegalArgumentException: Unsupported class file major version 61
[EL Severe]: metadata: 2025-04-01 13:52:32.392--ServerSession(554087639)--The java.io.Serializable class was compiled with an unsupported JDK. Report this error to the EclipseLink open source project.
java.lang.ArrayIndexOutOfBoundsException: Index 8 out of bounds for length 0
[EL Config]: metadata: 2025-04-01 13:52:32.4--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegItemhistoryRegGroupRegRoleMapping] is being defaulted to: RegItemhistoryRegGroupRegRoleMapping.
[EL Config]: metadata: 2025-04-01 13:52:32.4--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegItemhistory] is being defaulted to: RegItemhistory.
[EL Config]: metadata: 2025-04-01 13:52:32.4--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegLanguagecode] is being defaulted to: RegLanguagecode.
[EL Config]: metadata: 2025-04-01 13:52:32.401--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegRelationpredicate] is being defaulted to: RegRelationpredicate.
[EL Config]: metadata: 2025-04-01 13:52:32.401--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegStatus] is being defaulted to: RegStatus.
[EL Config]: metadata: 2025-04-01 13:52:32.401--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegRole] is being defaulted to: RegRole.
[EL Config]: metadata: 2025-04-01 13:52:32.401--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegItemproposedRegGroupRegRoleMapping] is being defaulted to: RegItemproposedRegGroupRegRoleMapping.
[EL Config]: metadata: 2025-04-01 13:52:32.401--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegLocalizationproposed] is being defaulted to: RegLocalizationproposed.
[EL Config]: metadata: 2025-04-01 13:52:32.402--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegRelationhistory] is being defaulted to: RegRelationhistory.
[EL Config]: metadata: 2025-04-01 13:52:32.402--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegUserRegGroupMapping] is being defaulted to: RegUserRegGroupMapping.
[EL Config]: metadata: 2025-04-01 13:52:32.402--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegFieldtype] is being defaulted to: RegFieldtype.
[EL Config]: metadata: 2025-04-01 13:52:32.402--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegItemproposed] is being defaulted to: RegItemproposed.
[EL Config]: metadata: 2025-04-01 13:52:32.402--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegRelation] is being defaulted to: RegRelation.
[EL Config]: metadata: 2025-04-01 13:52:32.403--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegItemclasstype] is being defaulted to: RegItemclasstype.
[EL Config]: metadata: 2025-04-01 13:52:32.403--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegLocalizationhistory] is being defaulted to: RegLocalizationhistory.
[EL Config]: metadata: 2025-04-01 13:52:32.403--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegUser] is being defaulted to: RegUser.
[EL Config]: metadata: 2025-04-01 13:52:32.403--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegFieldmapping] is being defaulted to: RegFieldmapping.
[EL Config]: metadata: 2025-04-01 13:52:32.403--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegLocalization] is being defaulted to: RegLocalization.
[EL Config]: metadata: 2025-04-01 13:52:32.404--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegAction] is being defaulted to: RegAction.
[EL Config]: metadata: 2025-04-01 13:52:32.404--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegItemclass] is being defaulted to: RegItemclass.
[EL Config]: metadata: 2025-04-01 13:52:32.404--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegStatuslocalization] is being defaulted to: RegStatuslocalization.
[EL Config]: metadata: 2025-04-01 13:52:32.404--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegStatusgroup] is being defaulted to: RegStatusgroup.
[EL Config]: metadata: 2025-04-01 13:52:32.405--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegItemRegGroupRegRoleMapping] is being defaulted to: RegItemRegGroupRegRoleMapping.
[EL Config]: metadata: 2025-04-01 13:52:32.405--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegItem] is being defaulted to: RegItem.
[EL Severe]: metadata: 2025-04-01 13:52:32.405--ServerSession(554087639)--The java.lang.Number class was compiled with an unsupported JDK. Report this error to the EclipseLink open source project.
java.lang.IllegalArgumentException: Unsupported class file major version 61
[EL Severe]: metadata: 2025-04-01 13:52:32.405--ServerSession(554087639)--The java.lang.Number class was compiled with an unsupported JDK. Report this error to the EclipseLink open source project.
java.lang.ArrayIndexOutOfBoundsException: Index 8 out of bounds for length 0
[EL Config]: metadata: 2025-04-01 13:52:32.405--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegUserCodes] is being defaulted to: RegUserCodes.
[EL Config]: metadata: 2025-04-01 13:52:32.405--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegRelationproposed] is being defaulted to: RegRelationproposed.
[EL Config]: metadata: 2025-04-01 13:52:32.406--ServerSession(554087639)--The alias name for the entity class [class eu.europa.ec.re3gistry2.model.RegGroup] is being defaulted to: RegGroup.
[EL Info]: 2025-04-01 13:52:32.604--ServerSession(554087639)--EclipseLink, version: Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158
[EL Config]: connection: 2025-04-01 13:52:32.641--ServerSession(554087639)--Connection(953593171)--connecting(DatabaseLogin(
platform=>PostgreSQLPlatform
user name=> "name"
datasource URL=> "jdbc:postgresql://[HOST]/[PATH]"
))
[EL Config]: connection: 2025-04-01 13:52:32.646--ServerSession(554087639)--Connection(190647897)--Connected: jdbc:postgresql://[HOST]/[PATH]
User: name
Database: PostgreSQL Version: 13.16
Driver: PostgreSQL JDBC Driver Version: 42.2.18
[EL Info]: connection: 2025-04-01 13:52:32.728--ServerSession(554087639)--/file:/tomcat/webapps/re3gistry2restapi/WEB-INF/classes/_Re3gistry2 login successful

re3gistry2restapi.log:
empty

Versions

re3gistry 2.6.0
tomcat 9.0.102
PostgreSQL 13.16
openJDK 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant