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

Adding Spring Boot Web Services fails current example #256

Closed
franciszabala opened this issue May 3, 2019 · 2 comments
Closed

Adding Spring Boot Web Services fails current example #256

franciszabala opened this issue May 3, 2019 · 2 comments

Comments

@franciszabala
Copy link

  • Framework version: 2.1.1.RELEASE or 1.5.20.RELEASE
  • Implementations: Spring Boot

Scenario

After adding this maven dependency:

     	<dependency>
      		<groupId>org.springframework.boot</groupId>
      		<artifactId>spring-boot-starter-web-services</artifactId>
    	</dependency>

executing mvn clean package keeps throwing off:

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.UnsupportedOperationException: Only dispatcherServlet is supported

Expected behavior

Should run as it would normally.

Actual behavior

Stops at that error.

First it "dispatcherServlet" is passed as the first parameter in the function
ServletRegistration.Dynamic addServlet and after that, "messageDispatcher" pass causing the if statement if ("dispatcherServlet".equals(s)) to fail

Steps to reproduce

Just add the maven dependency above

Others

I need to create a Soap client and based on sample codes I gathered, that dependency is needed.

One work around is I copied SpringBootLambdaContainerHandler.java to my source folder, modified it to just return null. It does work as let me proceed with testing but it might have side effects.

} else {
                //throw new UnsupportedOperationException("Only dispatcherServlet is supported");
            	return null;
}
@sapessi sapessi added this to the Release 1.4 milestone Jun 20, 2019
@sapessi
Copy link
Collaborator

sapessi commented Sep 23, 2019

Hi @franciszabala, this should be fixed for release 1.4 - I have a test implementation in the core branch of this repo. You can use the instructions from my last comment in #239 to test yourself.

@sapessi
Copy link
Collaborator

sapessi commented Sep 30, 2019

Release 1.4 is out on maven central. The release notes include a list of all the changes. Closing this issue.

@sapessi sapessi closed this as completed Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants