[ 
https://issues.apache.org/jira/browse/CXF-7226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16191407#comment-16191407
 ] 

Atle Tokle commented on CXF-7226:
---------------------------------

I tried the solution from [~niralo] on my system with weblogic 12.2.1.2.0, but 
had no success. Then I found an alternative solution on oracle support using 
wlst to do almost the same, but it include also another setting that I was not 
able to find from the admin console. replace user, password, url and mydomain 
with relevant data for your system and run these commands from wlst.
{code}
connect('user','password','url')
domainConfig()
edit()
cd('CdiContainer/mydomain')
startEdit()
set('ImplicitBeanDiscoveryEnabled',0) // 1 to enable 0 to disable
set('Policy','Disabled') // 'Enabled' to enable 'Disabled' to disable
validate()
save()
activate(block="true")
{code}

The case from oracle support also had an alternative solution, to keep CDI 
active on the server, but disable it in each deploy using this config in 
weblogic.xml
{code}
<weblogic-web-app>
  <cdi-descriptor>
    <policy>Disabled</policy>
  </cdi-descriptor>
</weblogic-web-app>
{code}
I have not verified that yet

> Getting <BEA-160223> <The resource-env-ref ... on weblogic 12.2.1.2
> -------------------------------------------------------------------
>
>                 Key: CXF-7226
>                 URL: https://issues.apache.org/jira/browse/CXF-7226
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.7.8
>         Environment: Weblogic 12.2.1.2
>            Reporter: Nir Alon
>
> Hi,
> We have the below problem during start of weblogic version 12.2.1.2
> Same application is deployed successfully on weblogic  12.1.3 and tomcat.
> we experience the problem with CXF 2.7.8 and also with the latest CXF version.
> Also same error appears on our services which used @resource annotation.
> <Jan 24, 2017, 12:10:52,584 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 
> 'org.apache.cxf.jaxrs.interceptor.AttachmentInputInterceptor/supportedTypes' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,586 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'cxf' declared in the standard descriptor or annotation has 
> no JNDI name mapped to it. The resource-env-ref must be mapped to a JNDI name 
> using the resource-env-description element of the weblogic proprietary 
> descriptor or corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,587 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 
> 'org.apache.cxf.service.factory.FactoryBeanListenerManager/bus' declared in 
> the standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,587 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 
> 'org.apache.cxf.jaxws.context.WebServiceContextResourceResolver/bus' declared 
> in the standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,588 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.bus.managers.WorkQueueManagerImpl/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,588 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.ws.policy.PolicyEngineImpl/bus' declared in 
> the standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,591 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.binding.corba.runtime.OrbConfigurer/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,592 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.catalog.OASISCatalogManager/bus' declared in 
> the standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,593 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.bus.managers.BindingFactoryManagerImpl/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,593 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.ws.rm.RMManager/bus' declared in the 
> standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,593 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 
> 'org.apache.cxf.transports.http.internal.QueryHandlerRegistryImpl/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,594 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 
> 'org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduitFactory/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,594 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.binding.AbstractBaseBindingFactory/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,595 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.bus.managers.CXFBusLifeCycleManager/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,595 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 
> 'org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry/bus'
>  declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,595 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,596 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.javascript.JavascriptQueryHandler/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,596 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 
> 'org.apache.cxf.bus.managers.DestinationFactoryManagerImpl/bus' declared in 
> the standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,596 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.transport.http.HTTPTransportFactory/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,597 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.bus.managers.ServerRegistryImpl/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,597 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.bus.managers.HeaderManagerImpl/bus' declared 
> in the standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,597 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.bus.resource.ResourceManagerImpl/bus' 
> declared in the standard descriptor or annotation has no JNDI name mapped to 
> it. The resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,598 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 
> 'org.apache.cxf.bus.managers.ConduitInitiatorManagerImpl/bus' declared in the 
> standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,598 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 
> 'org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl/bus' declared 
> in the standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> <Jan 24, 2017, 12:10:52,598 PM IST> <Error> <J2EE> <BEA-160223> <The 
> resource-env-ref 'org.apache.cxf.wsdl11.WSDLManagerImpl/bus' declared in the 
> standard descriptor or annotation has no JNDI name mapped to it. The 
> resource-env-ref must be mapped to a JNDI name using the 
> resource-env-description element of the weblogic proprietary descriptor or 
> corresponding annotation.> 
> Thanks
> Nir



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to