You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "wang-laoshi (via GitHub)" <gi...@apache.org> on 2023/04/05 03:56:22 UTC

[GitHub] [dubbo] wang-laoshi opened a new issue, #12017: jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException

wang-laoshi opened a new issue, #12017:
URL: https://github.com/apache/dubbo/issues/12017

   `Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException
   	at org.apache.dubbo.rpc.protocol.rest.RestProtocol.<init>(RestProtocol.java:85) ~[dubbo-3.2.0-beta.6.jar:3.2.0-beta.6]
   	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
   	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
   	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
   	at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
   	at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?]
   	at org.apache.dubbo.common.beans.support.InstantiationStrategy.instantiate(InstantiationStrategy.java:94) ~[dubbo-common-3.2.0-beta.6.jar:3.2.0-beta.6]
   	at org.apache.dubbo.common.extension.ExtensionLoader.createExtensionInstance(ExtensionLoader.java:832) ~[dubbo-common-3.2.0-beta.6.jar:3.2.0-beta.6]
   	at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:791) `~[dubbo-common-3.2.0-beta.6.jar:3.2.0-beta.6]`
   
   RestProtocol类里还引用了
   `
   import javax.servlet.ServletContext;
   import javax.ws.rs.ProcessingException;
   import javax.ws.rs.WebApplicationException;`
   三个类,而jdk17里已经没有这三个类了


-- 
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] wang-laoshi commented on issue #12017: jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException

Posted by "wang-laoshi (via GitHub)" <gi...@apache.org>.
wang-laoshi commented on issue #12017:
URL: https://github.com/apache/dubbo/issues/12017#issuecomment-1498709720

   javax.servlet.ServletContext
   这个来自
   
   javax.servlet
   javax.servlet-api
   
   不是jdk自带的api,和jdk版本是没关系的
   
   -------------------
   上述这句话没错,但是springboot3已经不使用javax了,取而代之的是Jakarta-api,因此报错。
   
   如果dubbo3.2.0要支持springboot3的话,需要废弃所有跟javax有关的api


-- 
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] suncairong163 commented on issue #12017: jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException

Posted by "suncairong163 (via GitHub)" <gi...@apache.org>.
suncairong163 commented on issue #12017:
URL: https://github.com/apache/dubbo/issues/12017#issuecomment-1496995169

   这个类在dubbo3.2.0-beta7都会被移除


-- 
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] houkunlin commented on issue #12017: jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException

Posted by "houkunlin (via GitHub)" <gi...@apache.org>.
houkunlin commented on issue #12017:
URL: https://github.com/apache/dubbo/issues/12017#issuecomment-1503513069

   配置文件直接设置 `dubbo.application.service-discovery.migration=FORCE_APPLICATION` 这个设置方式在3版本无法兼容2版本


-- 
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 #12017: jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12017:
URL: https://github.com/apache/dubbo/issues/12017#issuecomment-1496968591

   @suncairong163 PTAL


-- 
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] suncairong163 commented on issue #12017: jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException

Posted by "suncairong163 (via GitHub)" <gi...@apache.org>.
suncairong163 commented on issue #12017:
URL: https://github.com/apache/dubbo/issues/12017#issuecomment-1500147019

     dubbo rest 后面不使用servlet来实现了 ,就没有这个问题了,现在改造中, servlet 的使用在dubbo3.2.0-beta7都会被移除


-- 
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] suncairong163 commented on issue #12017: jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException

Posted by "suncairong163 (via GitHub)" <gi...@apache.org>.
suncairong163 commented on issue #12017:
URL: https://github.com/apache/dubbo/issues/12017#issuecomment-1496991431

   javax.servlet.ServletContext 
   这个来自
    <dependency>
               <groupId>javax.servlet</groupId>
               <artifactId>javax.servlet-api</artifactId>
               <scope>provided</scope>
           </dependency>
           dubbo-dependencies-pom默认指定3.1.0
           javax.ws.rs
           这个来自
             <dependency>
                   <groupId>org.jboss.resteasy</groupId>
                   <artifactId>resteasy-jaxrs</artifactId>
                   <version>${resteasy_version}</version>
               </dependency>
               dubbo-dependencies-bom 默认指定3.0.19.Final
               
               不是jdk自带的api,和jdk版本是没关系的,maven 重新刷新下一看看呢
   


-- 
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 #12017: jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12017:
URL: https://github.com/apache/dubbo/issues/12017#issuecomment-1505128252

   > 配置文件直接设置 `dubbo.application.service-discovery.migration=FORCE_APPLICATION` 这个设置方式在3版本无法兼容2版本
   
   Dubbo 2 的应用级服务发现很多设计有缺陷,不建议使用 Dubbo 2 的应用级服务发现


-- 
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] jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException [dubbo]

Posted by "wxbty (via GitHub)" <gi...@apache.org>.
wxbty closed issue #12017: jdk17+springboot3+dubbo3.2.0-beta6,报错:java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException
URL: https://github.com/apache/dubbo/issues/12017


-- 
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