[ https://issues.apache.org/jira/browse/RANGER-3893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pradeep Agrawal updated RANGER-3893: ------------------------------------ Labels: Trino (was: ) > [trino-plugin]Could not create trino service on secure admin web > ---------------------------------------------------------------- > > Key: RANGER-3893 > URL: https://issues.apache.org/jira/browse/RANGER-3893 > Project: Ranger > Issue Type: Bug > Components: plugins > Affects Versions: 2.3.0 > Reporter: ericsoul > Priority: Major > Labels: Trino > > I use web compiled by jdk1.8, and trino plugin compiled by jdk11 ,when create > a trino service on admin web,I got this: > msgDesc: "trino failed to find service class > org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not > be available. Please make sure plugin jar is in the correct place." > > It seems do not have class RangerServiceTrino which in trino-plugin module > applied for admin web. So add trino-plugin module for jdk1.8 compile. > > While compile plugin-trino module with jdk1.8 , I got can not access the > trino spi class error. That seems trino spi jar is based on jdk11 > > The code for 2.3.0 release tag now can compile by jdk11. But the admin web > can not work well. > I got this error message seem to affect: > Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence > Services - 2.5.2.v20140319-9ad6abd): > org.eclipse.persistence.exceptions.ValidationException Exception Description: > Entity class [class org.apache.ranger.entity.XXAccessAuditV4] has no primary > key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If > you have defined PK using any of these annotations then make sure that you do > not have mixed access-type (both fields and properties annotated) in your > entity class hierarchy. at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) > at > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) > at > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) > at > org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) > at > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) > at > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:829) Caused by: > javax.persistence.PersistenceException: Exception [EclipseLink-28018] > (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): > org.eclipse.persistence.exceptions.EntityManagerSetupException Exception > Description: Predeployment of PersistenceUnit [defaultPU] failed. -- This message was sent by Atlassian Jira (v8.20.10#820010)