我从4.1.1升级到似鲭水狼牙鱼和4.1.2.181打电话给我验证终点时,现在我就在401.我的auth端点返回200(ok)但调用应用程序从Payara获得401(据我所知)
父pom.xml:
...
<dependency>
<groupId>fish.payara.extras</groupId>
<artifactId>payara-embedded-all</artifactId>
<version>4.1.2.181</version>
<scope>provided</scope>
</dependency>
...
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-jaxb</artifactId>
<version>2.25</version>
<scope>test</scope>
</dependency>
Run Code Online (Sandbox Code Playgroud)
子项目pom.xml
...
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>2.27</version>
<scope>provided</scope>
</dependency>
...
Run Code Online (Sandbox Code Playgroud)
当我切换回4.1.1版时,问题就消失了
请协助我如何在日志文件中提供更多信息或解决此问题.
更新
<jaxrs-roles-allowed-enabled>false</jaxrs-roles-allowed-enabled>到glassfisf-web.xml仅在日志文件中发出警告我在日志文件中看到以下内容:
无法加载服务类fish.payara.appserver.roles.api.extension.RolesCDIExtension org.osgi.framework.BundleException:bundle fish.payara.appserver.cdi-auth-roles中未解决的约束[374]:无法解析374.0:缺少要求[374.0] osgi.wiring.package; (osgi.wiring.package = fish.payara.cdi.auth.roles)
我设法打开Jersey的跟踪日志记录,并将以下内容作为日志文件中的最后一条跟踪:
[2018-07-17T14:41:02.968 + 0200] [Payara 4.1] [FINE] [] [org.glassfish.jersey.tracing.general] [tid:_ThreadID = 28 _ThreadName = http-thread-pool :: http- listener-1(2)] [timeMillis:1531831262968] [levelValue:500] [CLASSNAME:org.glassfish.jersey.message.internal.TracingLogger $ TracingLoggerImpl] [METHODNAME:logImpl] [[FINISHED响应状态:200/SUCCESSFUL | OK [ - - 女士]]]
降级到Payara 4.1.2.174有效,但目标服务器可能不支持
目标服务器支持Payara 4.1.2.174
| 归档时间: |
|
| 查看次数: |
215 次 |
| 最近记录: |