Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@WebServiceRef not being invoked in migration from Spring 5 to 6 #31524

Closed
tomasbjerre opened this issue Oct 30, 2023 · 1 comment
Closed

@WebServiceRef not being invoked in migration from Spring 5 to 6 #31524

tomasbjerre opened this issue Oct 30, 2023 · 1 comment
Labels
status: invalid An issue that we don't feel is valid

Comments

@tomasbjerre
Copy link

Affects: \6.0.13


I am migrating code from Spring 5 to 6. This code was working in 5 but not in 6.

@Configuration
public class MyBeansProducer
{
   @Bean
   public MyDAO createDAO()
   {
      return new MyDAO();
   }
}
public class MyDAO
{
   @WebServiceRef(WSMyInterfaceHttpService.class)
   public void setRef(Ref wsRef )
   {
      this.wsRef = wsRef ;
   }
}

Problem is that setRef is never invoked.

I have found this code in Spring 5 that used to make this work:
https://github.com/spring-projects/spring-framework/blob/5.3.x/spring-context/src/main/java/org/springframework/context/annotation/CommonAnnotationBeanPostProcessor.java#L406

I'm not sure if this is a bug? If it is not a bug, I think it should be mentioned clearly somewhere in the docs.

I also asked on StackOverflow

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 30, 2023
@snicoll
Copy link
Member

snicoll commented Oct 30, 2023

@tomasbjerre I am afraid this is to be expected. JAX-WS support has been removed in Spring Framework 6, see #27422, and the now upgraded Upgrading to Spring Framework 6.x wiki page.

@snicoll snicoll closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2023
@snicoll snicoll added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants