Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weblogic 12.2.1 RegistrationService_V10 in web application war is mapped to multiple Servlets

I am using Weblogic 12.2.1 and I added a JAX-WS client. It runs perfectly when run in eclipse but if I try to deploy the war file through the admin console I get: The url-pattern RegistrationService_V10 in web application webApp.war is mapped to multiple Servlets. The only place I could find a reference to that is the the com.oracle.webservices.wls.wls-soap-stack-impl package in a class called RegistrationServiceV10 which is annotaited as a webservice to RegistrationService_V10 but that is the only place I could find a reference to it, not mapped in my web.xml so where is the multiple servlet mapping coming from.

like image 861
Amigma Avatar asked Jan 24 '26 15:01

Amigma


1 Answers

I know this question was asked some time ago, but I had the same problem, and reading the question lead me to the answer, so here's what worked for me:

I had the same problem, did I text search on every single file in the repository for the text 'RegistrationService_V10' (and 'RegistrationService_V11', as I got that as an issue too), but it wasn't present.

The problem was the presence of multiple weblogic jar files. I was using maven to copy my dependencies into the weblogic domain lib folder, but because the code was depending on weblogic it was also copying a whole host of weblogic jar files as well. This resulted in multiple copies of the same files in my weblogic application classpath (the server's own weblogic files and my imported files). Thus there was an issue with code trying to register the same service with the same name more than once.

The solution is to make sure there is only one copy of the weblogic jar files available to weblogic (which is a part of weblogic; you shouldn't be copying any in).

Hope this helps you or somebody else with the same problem.

like image 104
Caleb Avatar answered Jan 27 '26 05:01

Caleb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!