My Oracle Support Banner

JAX-WS注解 @Webservice无法适用 CDI的注解范围 (Doc ID 2198803.1)

Last updated on NOVEMBER 07, 2016

适用于:

Oracle WebLogic Server - 版本 12.1.1.0 和更高版本
本文档所含信息适用于所有平台

目标

 如果一个类同时使用JAX-WS 注解(“@ javax.jws.WebService”)和CDI 注解(“@ javax.enterprise.context.RequestScoped”), 这个类将会被忽略注解范围,且作为@ApplicationScoped部署。

解决方案

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


文档内容
目标
解决方案

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.