• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

WebServiceContext

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers, at my job we finally got around to migrating our application to EJB3s and welogic 12c. A problem that we are facing is that we can't resolve the WebServiceContext as the applications starts in Weblogic. Some of our webmodules use spring, but this never caused a problem before when we were on weblogic 12.1.

At the risk of sounding stupid, my hunch is that Spring is trying to Inject the dependencies itself instead of allowing Weblogic to do it like it has done before. We used to be on Weblogic 12.1 and now going to 12.2 this is starting to happen.

Can anyone provide some insight as to what is going on and how to proceed, let me know if you need more info. I've tried a few things over the days but no dice
Thanks in advance.

<Jul 9, 2019 10:09:43,836 AM EDT> <Error> <HTTP> <BEA-101216> <Servlet: "com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl" failed to preload on startup in Web application: "services".
javax.xml.ws.WebServiceException: javax.enterprise.inject.InjectionException: Exception trying to inject java EE injection point into class: com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl.
...
Caused By: javax.enterprise.inject.InjectionException: Exception trying to inject java EE injection point into class: com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl.
...
Caused By: com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Dependency injection failure: can't find the bean definition about class interface javax.xml.ws.WebServiceContext; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [javax.xml.ws.WebServiceContext] is defined: No beans of type javax.xml.ws.WebServiceContext; owner=com.oracle.pitchfork.inject.PitchforkGenericApplicationContext@43173a9e: startup date [Tue Jul 09 10:09:11 EDT 2019]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@1113b60f; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl/wsContext' is defined; nested exception is javax.naming.NameNotFoundException: While trying to look up comp/env/com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl/wsContext in /app/ejb/finance-ejb3-6.2.1.jar/#IBANStructure.; remaining name 'comp/env/com/dovetailsys/payments/ws/payment/v2_0/PaymentServiceV20_Soap11Impl/wsContext'
...
Caused By: com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [javax.xml.ws.WebServiceContext] is defined: No beans of type javax.xml.ws.WebServiceContext; owner=com.oracle.pitchfork.inject.PitchforkGenericApplicationContext@43173a9e: startup date [Tue Jul 09 10:09:11 EDT 2019]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@1113b60f; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl/wsContext' is defined; nested exception is javax.naming.NameNotFoundException: While trying to look up comp/env/com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl/wsContext in /app/ejb/finance-ejb3-6.2.1.jar/#IBANStructure.; remaining name 'comp/env/com/dovetailsys/payments/ws/payment/v2_0/PaymentServiceV20_Soap11Impl/wsContext'
...
Caused By: com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl/wsContext' is defined; nested exception is javax.naming.NameNotFoundException: While trying to look up comp/env/com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl/wsContext in /app/ejb/finance-ejb3-6.2.1.jar/#IBANStructure.; remaining name 'comp/env/com/dovetailsys/payments/ws/payment/v2_0/PaymentServiceV20_Soap11Impl/wsContext'
...
Caused By: javax.naming.NameNotFoundException: While trying to look up comp/env/com.dovetailsys.payments.ws.payment.v2_0.PaymentServiceV20_Soap11Impl/wsContext in /app/ejb/finance-ejb3-6.2.1.jar/#IBANStructure.; remaining name 'comp/env/com/dovetailsys/payments/ws/payment/v2_0/PaymentServiceV20_Soap11Impl/wsContext'
...
 
Master Rancher
Posts: 451
6
IntelliJ IDE Spring Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So your problem is that spring is trying to inject dependencies but it shouldnt be ?
 
Juan Barbosa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure to be honest, when we were on Weblogic 12.1 the application loaded just fine, when we went to weblogic 12.2 it stopped working with that application breaking exception.

A coworker found this yesterday sometime after my original post
https://docs.oracle.com/middleware/12213/wls/NOTES/whatsnew.htm#NOTES-GUID-B3BB7587-D150-43CA-9820-09C730BB2185
############
WebLogic Server/Spring Integration Features
Integration features for WebLogic Server/Spring are deprecated in Oracle WebLogic Server as of version 12.2.1. Also, as of version 12.2.1, the Oracle WebLogic Server Spring console extension is not supported when using JRF or restricted-JRF.
#########

So it may be that weblogic is removing spring support, I'm not 100% sure yet. since it seems that its for restful services and some other spring features.

I guess my question is
What exactly is the WebServiceContext and how to get it injected? Maybe I'm missing a listener or some config to tell weblogic who is going to handle the Injection of the dependencies. Because Spring surely isn't doing it.
 
Al Hobbs
Master Rancher
Posts: 451
6
IntelliJ IDE Spring Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The errors that you posted mention a failure to inject.  You dont want spring to inject beans so thats probably your real problem. It can't inject the beans because it cant get the web context but you don't want it to inject the beans in the first place.
 
Al Hobbs
Master Rancher
Posts: 451
6
IntelliJ IDE Spring Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably the easiest thing to do is to use the previous version that worked with spring. If the docs say it's deprecated it's probably because it doesn't work anymore like you experienced.
 
Al Hobbs
Master Rancher
Posts: 451
6
IntelliJ IDE Spring Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
https://stackoverflow.com/questions/5820969/how-to-use-resource-webservicecontext-injection-with-springs-transactional#5824665

Also check this link.  Dont remember the tag for a link sorry.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!