You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/12/06 10:49:04 UTC

[GitHub] [dubbo] lamb007 opened a new issue, #11085: Is it unnecessary for the service provider to use the built-in tomcat in spring boot?

lamb007 opened a new issue, #11085:
URL: https://github.com/apache/dubbo/issues/11085

   When dubbo is used in spring boot, the service provider does not need to use the web function, that is, it does not need the built-in tomcat of spring boot. However, when the spring boot project starts, the built-in Tomcat will be used. How do you start the service provider without using the built-in Tomcat of spring boot, just like using pure spring.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] lamb007 commented on issue #11085: Is it unnecessary for the service provider to use the built-in tomcat in spring boot?

Posted by GitBox <gi...@apache.org>.
lamb007 commented on issue #11085:
URL: https://github.com/apache/dubbo/issues/11085#issuecomment-1339149049

   > Dubbo does not use tomcat as server by default. Dubbo is a server based on netty.
   
   But why do I have port conflicts when I start multiple providers at the same time? The spring boot log will also be printed using tomcat
   run the first provider
   `2022-12-06 18:57:19.437  INFO 22688 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)`
   run the second provider
   `Web server failed to start. Port 8080 was already in use.`
   
   Only when I specify different server.port in application.xml can I succeed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #11085: Is it unnecessary for the service provider to use the built-in tomcat in spring boot?

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #11085:
URL: https://github.com/apache/dubbo/issues/11085#issuecomment-1339138889

   Dubbo does not use tomcat as server by default. Dubbo is a server based on netty.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] Is it unnecessary for the service provider to use the built-in tomcat in spring boot? [dubbo]

Posted by "wxbty (via GitHub)" <gi...@apache.org>.
wxbty closed issue #11085: Is it unnecessary for the service provider to use the built-in tomcat in spring boot?
URL: https://github.com/apache/dubbo/issues/11085


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #11085: Is it unnecessary for the service provider to use the built-in tomcat in spring boot?

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #11085:
URL: https://github.com/apache/dubbo/issues/11085#issuecomment-1340287602

   ```xml
       <dependencies>
           <!-- dubbo starter -->
           <dependency>
               <groupId>org.apache.dubbo</groupId>
               <artifactId>dubbo-spring-boot-starter</artifactId>
           </dependency>
   
           <!-- spring starter -->
           <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-starter</artifactId>
           </dependency>
           <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-autoconfigure</artifactId>
           </dependency>
   
       </dependencies>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #11085: Is it unnecessary for the service provider to use the built-in tomcat in spring boot?

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #11085:
URL: https://github.com/apache/dubbo/issues/11085#issuecomment-1339200820

   > > Dubbo does not use tomcat as server by default. Dubbo is a server based on netty.
   > 
   > But why do I have port conflicts when I start multiple providers at the same time? The spring boot log will also be printed using tomcat run the first provider `2022-12-06 18:57:19.437 INFO 22688 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)` run the second provider `Web server failed to start. Port 8080 was already in use.`
   > 
   > Only when I specify different server.port in application.xml can I succeed
   
   `o.s.b.w.embedded.tomcat` is not dubbo`s package. Please check if you have import spring-boot-web-starter. If you import it, spring will launch the web server by default. (Please check spring boot`s configuration.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] lamb007 commented on issue #11085: Is it unnecessary for the service provider to use the built-in tomcat in spring boot?

Posted by GitBox <gi...@apache.org>.
lamb007 commented on issue #11085:
URL: https://github.com/apache/dubbo/issues/11085#issuecomment-1339219759

   > > > Dubbo does not use tomcat as server by default. Dubbo is a server based on netty.
   > > 
   > > 
   > > But why do I have port conflicts when I start multiple providers at the same time? The spring boot log will also be printed using tomcat run the first provider `2022-12-06 18:57:19.437 INFO 22688 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)` run the second provider `Web server failed to start. Port 8080 was already in use.`
   > > Only when I specify different server.port in application.xml can I succeed
   > 
   > `o.s.b.w.embedded.tomcat` is not dubbo's package. Please check if you have import spring-boot-web-starter. If you import it, spring will launch the web server by default. (Please check spring boot`s configuration.)
   
   My question may be very childish. Thank you for your patient reply. I am new to this knowledge.
   this the pom.xml
   `  <dependencies>
       <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-web</artifactId>
       </dependency>
       <dependency>
         <groupId>org.apache.dubbo</groupId>
         <artifactId>dubbo-dependencies-zookeeper</artifactId>
         <type>pom</type>
       </dependency>
       <dependency>
         <groupId>org.apache.dubbo</groupId>
         <artifactId>dubbo-spring-boot-starter</artifactId>
       </dependency>
     </dependencies>`
   
   Do you mean to remove the spring boot web starter, but how do I start the spring boot application in my ProviderApplication after removing it.
   `@SpringBootApplication
   @EnableDubbo
   public class ProviderApplication {
       public static void main(String[] args) {
           SpringApplication.run(ProviderApplication.class);
       }
   }`
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #11085: Is it unnecessary for the service provider to use the built-in tomcat in spring boot?

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #11085:
URL: https://github.com/apache/dubbo/issues/11085#issuecomment-1340287134

   Please see https://github.com/apache/dubbo-samples/tree/master/1-basic/dubbo-samples-spring-boot


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] lamb007 commented on issue #11085: Is it unnecessary for the service provider to use the built-in tomcat in spring boot?

Posted by GitBox <gi...@apache.org>.
lamb007 commented on issue #11085:
URL: https://github.com/apache/dubbo/issues/11085#issuecomment-1340320763

   > Please see https://github.com/apache/dubbo-samples/tree/master/1-basic/dubbo-samples-spring-boot
   
   My problem has been solved. Thank you for your patience.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org