You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "yxd9485 (via GitHub)" <gi...@apache.org> on 2024/01/31 10:23:36 UTC

[I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

yxd9485 opened a new issue, #6318:
URL: https://github.com/apache/incubator-seata/issues/6318

   SpringMVC 动态数据源时整合Seata  同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错
   报错 Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NullPointerException [in thread "http-nio-8080-exec-6"]
            Caused by: java.lang.NoClassDefFoundError: Could not initialize class io.seata.config.ConfigurationFactory
   Caused by: io.seata.common.loader.EnhancedServiceNotFoundException: java.lang.IllegalStateException: Extension instance(definition: io.seata.common.loader.ExtensionDefinition@e9dd843a, class: interface io.seata.core.model.ResourceManager)  could not be instantiated: Could not initialize class io.seata.config.ConfigurationFactory
   Caused by: java.lang.IllegalStateException: Extension instance(definition: io.seata.common.loader.ExtensionDefinition@e9dd843a, class: interface io.seata.core.model.ResourceManager)  could not be instantiated: Could not initialize class io.seata.config.ConfigurationFactory
   
   引入依赖 
   	<dependency>
   			<groupId>io.seata</groupId>
   			<artifactId>seata-spring-boot-starter</artifactId>
   			<version>1.7.0</version>
   		</dependency>
   
   配置文件
   #====================================Seata Config===============================================
   seata.data-source-proxy-mode=AT
   seata.enabled=true
   seata.application-id=vjifen-interfance
   seata.tx-service-group=default_tx_group
   seata.client.rm-report-success-enable=true
   seata.client.rm-table-meta-check-enable=false
   seata.client.rm-report-retry-count=5
   seata.client.rm-async-commit-buffer-limit=10000
   seata.client.rm.lock.lock-retry-internal=10
   seata.client.rm.lock.lock-retry-times=30
   seata.client.rm.lock.lock-retry-policy-branch-rollback-on-conflict=true
   seata.client.tm-commit-retry-count=3
   seata.client.tm-rollback-retry-count=3
   seata.client.undo.undo-data-validation=true
   seata.client.undo.undo-log-serialization=jackson
   seata.client.undo.undo-log-table=undo_log
   seata.client.log.exceptionRate=100
   seata.client.support.spring.datasource-autoproxy=true
   seata.service.vgroup-mapping.default_tx_group=default
   seata.service.enable-degrade=false
   seata.service.disable-global-transaction=false
   seata.service.grouplist.seata-server=127.0.0.1:8091
   seata.transport.shutdown.wait=3
   seata.transport.thread-factory.boss-thread-prefix=NettyBoss
   seata.transport.thread-factory.worker-thread-prefix=NettyServerNIOWorker
   seata.transport.thread-factory.server-executor-thread-prefix=NettyServerBizHandler
   seata.transport.thread-factory.share-boss-worker=false
   seata.transport.thread-factory.client-selector-thread-prefix=NettyClientSelector
   seata.transport.thread-factory.client-selector-thread-size=1
   seata.transport.thread-factory.client-worker-thread-prefix=NettyClientWorkerThread
   seata.transport.type=TCP
   seata.transport.server=NIO
   seata.transport.heartbeat=true
   seata.transport.serialization=seata
   seata.transport.compressor=none
   seata.transport.enable-client-batch-send-request=true
   seata.registry.application=seata-server
   seata.registry.type=nacos
   seata.registry.nacos.server-addr=127.0.0.1:8848
   seata.registry.nacos.group=SEATA_GROUP
   seata.registry.nacos.cluster=default
   seata.registry.nacos.username=nacos
   seata.registry.nacos.password=nacos
   seata.config.type=nacos
   seata.config.nacos.group=SEATA_GROUP
   seata.config.nacos.username=nacos
   seata.config.nacos.password=nacos
   seata.config.nacos.server-addr=127.0.0.1:8848
   seata.config.nacos.data-id=seata-server.properties
   
   
   数据源代码 
   package com.dbt.datasource.util;
   
   import java.util.ArrayList;
   import java.util.List;
   import java.util.Map;
   
   import javax.sql.DataSource;
   
   import com.alibaba.druid.pool.DruidDataSource;
   import io.seata.rm.datasource.DataSourceProxy;
   import org.apache.commons.dbcp.BasicDataSource;
   import org.apache.commons.lang3.StringUtils;
   import org.apache.log4j.Logger;
   import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
   
   import com.dbt.framework.datadic.bean.ServerInfo;
   import com.dbt.framework.util.CacheUtil;
   import com.dbt.framework.util.RedisApiUtil;
   
   
   public class DynamicDataSource extends AbstractRoutingDataSource{
   	 private Logger log = Logger.getLogger(this.getClass());  
   	 private Map<Object, Object> _targetDataSources;
   	 private static final String driverClassName="com.mysql.jdbc.Driver";
   	 private static final String defaultDataSourceName="dataSource";
   	 private static final String XA_driverClassName = "com.alibaba.druid.pool.xa.DruidXADataSource";
   	 /**
   		 * @see org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource#determineCurrentLookupKey()
   		 * @describe 数据源为空或者为0时,自动切换至默认数据源,即在配置文件中定义的dataSource数据源
   		 */ 
   	@Override
   	protected Object determineCurrentLookupKey() {
   		String dataSourceName = DbContextHolder.getDBType();
   		// log.warn("changeDataSource:"+dataSourceName);
   		if (StringUtils.isBlank(dataSourceName)) {
   			dataSourceName = defaultDataSourceName;
   		} else {
   			// 动态更新数据源
   			String key = CacheUtil.cacheKey.KEY_UPDATE_PROJECT_SERVER_INFO_LIST;
   			if(RedisApiUtil.getInstance().containsInSet(false, key, dataSourceName)){
   				if(null != _targetDataSources.get(dataSourceName)){
   					_targetDataSources.remove(dataSourceName);
   					RedisApiUtil.getInstance().removeSetValue(false, key, dataSourceName);
   				}
   			}
   			
   			this.selectDataSource(dataSourceName);
   		}
   		// log.warn("--------> use datasource " + dataSourceName);
   		return dataSourceName;
   	}
   	/**
   	 * 到数据库中查找名称为dataSourceName的数据源
   	 * 
   	 * @param dataSourceName
   	 */
   	private void selectDataSource(String dataSourceName) {
   		Object sid = DbContextHolder.getDBType();
   		if (StringUtils.isEmpty(dataSourceName)
   				|| dataSourceName.trim().equals("dataSource")) {
   			DbContextHolder.setDBType("dataSource");
   			return;
   		}
   		Object obj = this._targetDataSources.get(dataSourceName);
   		if (obj != null && sid.equals(dataSourceName)) {
   			return;
   		} else {
   			DataSource dataSource = this.getDataSource(dataSourceName);
   			if (null != dataSource) {
   				this.setDataSource(dataSourceName, dataSource);
   			}
   		}
   	}
    
   	@Override
   	public void setTargetDataSources(Map<Object, Object> targetDataSources) {
   		this._targetDataSources = targetDataSources;
   		super.setTargetDataSources(this._targetDataSources);
   		afterPropertiesSet();
   	}
    
   	private void addTargetDataSource(String key, DataSource dataSource) {
   		this._targetDataSources.put(key, dataSource);
   		this.setTargetDataSources(this._targetDataSources);
   	}
    
   	
   	private DataSource createDataSource(ServerInfo serverInfo) {
   		//BasicDataSource dataSource = new BasicDataSource();
   		DruidDataSource dataSource = new DruidDataSource();
   		dataSource.setDriverClassName(driverClassName);
   		dataSource.setUrl(serverInfo.getServerJdbc()+"&useSSL=false");
   		dataSource.setUsername(serverInfo.getServerU());
   		dataSource.setPassword(serverInfo.getServerP());
   		dataSource.setInitialSize(3);
   		dataSource.setMinIdle(3);
   		dataSource.setMaxActive(serverInfo.getServerC());
   		dataSource.setTestOnBorrow(true);
   		dataSource.setValidationQuery("select 1");
   
   		List<String> connectionInitSqls = new ArrayList<String>();
   		connectionInitSqls.add("set names utf8mb4;");// emoji表情
   		dataSource.setConnectionInitSqls(connectionInitSqls);
   		// 添加Seata 事务代理 new DataSourceProxy(dataSource)
   		return new DataSourceProxy(dataSource);
   
   
   	}
   	@SuppressWarnings("unchecked")
   	private DataSource getDataSource(String dataSourceName) {
   		ServerInfo serverInfo = ((Map<String, ServerInfo>) RedisApiUtil.getInstance()
   				.getObject(false, CacheUtil.cacheKey.KEY_PROJECT_SERVER_INFO)).get(dataSourceName);
   		if(serverInfo!=null) {
   			DataSource dataSource = this.createDataSource(serverInfo);
   			return dataSource;
   		}
   		return null;
   	}
    
   	/**
   	 * 将已存在的数据源存储到内存中
   	 * 
   	 * @param dataSourceName
   	 * @param dataSource
   	 */
   	private void setDataSource(String dataSourceName, DataSource dataSource) {
   		this.addTargetDataSource(dataSourceName, dataSource);
   		DbContextHolder.setDBType(dataSourceName);
   	}
   }
   


-- 
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@seata.apache.org.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "slievrly (via GitHub)" <gi...@apache.org>.
slievrly commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1948385156

   Are errors reported from the title and whether JDK1.7 is supported two different issues or are they related?


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1929911541

   > > > java.lang.NoClassDefFoundError:无法初始化类你如何断定不存在依赖或依赖冲突? Seata-samples 存储库有一个 Spring MVC 集成的示例
   > > 
   > > 
   > > 您好 JDK 1.7 对应哪些版本
   > 
   > Seata 是基于 JDK 1.8 构建的,不再支持 1.7。
   
   好的 辛苦


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1923164497

   > 检查依赖是否存在冲突,是否少了相关的依赖 Check for conflicting dependencies and missing dependencies.
   
   没有依赖冲突 这边有Seata 1.7 与SpringMVC 集成项目的demo 么


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1925247381

   java.lang.NoClassDefFoundError: Could not initialize class
   你如何得出没有缺依赖或者没有依赖冲突的?seata-samples仓库就有springmvc的集成例子
   How do you conclude that there are no dependencies or dependency conflicts? The seata-samples repository has an example of spring MVC integration


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "slievrly (via GitHub)" <gi...@apache.org>.
slievrly commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1929181444

   > > java.lang.NoClassDefFoundError: Could not initialize class 你如何得出没有缺依赖或者没有依赖冲突的?seata-samples仓库就有springmvc的集成例子 How do you conclude that there are no dependencies or dependency conflicts? The seata-samples repository has an example of spring MVC integration
   > 
   > 您好 JDK 1.7 对应seata 哪些版本
   
   Seata was built on version 1.8, and version 1.7 is no longer supported.


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1919087952

   检查依赖是否存在冲突,是否少了相关的依赖
   Check for conflicting dependencies and missing 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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1926530375

   > java.lang.NoClassDefFoundError: Could not initialize class 你如何得出没有缺依赖或者没有依赖冲突的?seata-samples仓库就有springmvc的集成例子 How do you conclude that there are no dependencies or dependency conflicts? The seata-samples repository has an example of spring MVC integration
   
   修改依赖后
   Caused by: java.lang.ExceptionInInitializerError: Exception io.seata.common.exception.NotSupportYetException: config type can not be null [in thread "http-nio-8080-exec-6"]
           <dependency>
               <groupId>io.seata</groupId>
               <artifactId>seata-all</artifactId>
               <version>1.7.0</version>
               <exclusions>
                   <exclusion>
                       <groupId>org.springframework</groupId>
                       <artifactId>spring-beans</artifactId>
                   </exclusion>
               </exclusions>
           </dependency>
   


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1929994955

   > > > java.lang.NoClassDefFoundError:无法初始化类你如何断定不存在依赖或依赖冲突? Seata-samples 存储库有一个 Spring MVC 集成的示例
   > > 
   > > 
   > > 您好 JDK 1.7 对应哪些版本
   > 
   > Seata 是基于 JDK 1.8 构建的,不再支持 1.7。
   
   jdk 1.7 的工程是
   
   > > > java.lang.NoClassDefFoundError:无法初始化类你如何断定不存在依赖或依赖冲突? Seata-samples 存储库有一个 Spring MVC 集成的示例
   > > 
   > > 
   > > 您好 JDK 1.7 对应哪些版本
   > 
   > Seata 是基于 JDK 1.8 构建的,不再支持 1.7。
   
   jdk 1.7 的工工程无法使用seata 呗辛苦


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1925671651

   > java.lang.NoClassDefFoundError:无法初始化类 您如何得出没有缺依赖或者没有依赖冲突的?seata-samples仓库有springmvc的集成示例 如何断定不存在依赖或依赖冲突?Seata-samples 存储库有一个 Spring MVC 集成的示例
   
   https://github.com/apache/incubator-seata-samples 是这个工程么 辛苦


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1926145495

   > java.lang.NoClassDefFoundError: Could not initialize class 你如何得出没有缺依赖或者没有依赖冲突的?seata-samples仓库就有springmvc的集成例子 How do you conclude that there are no dependencies or dependency conflicts? The seata-samples repository has an example of spring MVC integration
   
   Caused by: java.lang.ExceptionInInitializerError: Exception io.seata.common.exception.NotSupportYetException: config type can not be null [in thread "http-nio-8080-exec-6"]
   
   移除bean 依赖后报这个错如何解决辛苦
           <!--seata-->
           <dependency>
               <groupId>io.seata</groupId>
               <artifactId>seata-all</artifactId>
               <version>1.7.0</version>
               <exclusions>
                   <exclusion>
                       <groupId>org.springframework</groupId>
                       <artifactId>spring-context</artifactId>
                   </exclusion>
                   <exclusion>
                       <groupId>org.springframework</groupId>
                       <artifactId>spring-beans</artifactId>
                   </exclusion>
               </exclusions>
           </dependency>


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1926161111

   > java.lang.NoClassDefFoundError: Could not initialize class 你如何得出没有缺依赖或者没有依赖冲突的?seata-samples仓库就有springmvc的集成例子 How do you conclude that there are no dependencies or dependency conflicts? The seata-samples repository has an example of spring MVC integration
   
   您好 JDK 1.7 对应seata 哪些版本


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1926145847

   > > java.lang.NoClassDefFoundError: Could not initialize class 你如何得出没有缺依赖或者没有依赖冲突的?seata-samples仓库就有springmvc的集成例子 How do you conclude that there are no dependencies or dependency conflicts? The seata-samples repository has an example of spring MVC integration
   > 
   > Caused by: java.lang.ExceptionInInitializerError: Exception io.seata.common.exception.NotSupportYetException: config type can not be null [in thread "http-nio-8080-exec-6"]
   > 
   > 移除bean 依赖后报这个错如何解决辛苦 io.seata seata-all 1.7.0 org.springframework spring-context org.springframework spring-beans
   
           <!--seata-->
           <dependency>
               <groupId>io.seata</groupId>
               <artifactId>seata-all</artifactId>
               <version>1.7.0</version>
               <exclusions>
                   <exclusion>
                       <groupId>org.springframework</groupId>
                       <artifactId>spring-context</artifactId>
                   </exclusion>
                   <exclusion>
                       <groupId>org.springframework</groupId>
                       <artifactId>spring-beans</artifactId>
                   </exclusion>
               </exclusions>
           </dependency>


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1926306071

   > java.lang.NoClassDefFoundError: Could not initialize class 你如何得出没有缺依赖或者没有依赖冲突的?seata-samples仓库就有springmvc的集成例子 How do you conclude that there are no dependencies or dependency conflicts? The seata-samples repository has an example of spring MVC integration
   
   您好目前Seata 支持JDK 1.7 么旧的工程是1.7


-- 
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@seata.apache.org

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


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


Re: [I] SpringMVC 动态数据源时整合Seata 同样的配置在SpringBoot 工程中是没有问题的 只有在SpringMVC 工程报这个错 配置及注册中心是nacos [incubator-seata]

Posted by "yxd9485 (via GitHub)" <gi...@apache.org>.
yxd9485 commented on issue #6318:
URL: https://github.com/apache/incubator-seata/issues/6318#issuecomment-1972695190

   > 从标题中报告的错误以及是否支持JDK1.7是两个不同的问题还是相关的?
   
   您好感谢您的回复 这边已经将Seata 集成到我们旧的工程SpringMVC 和 新的SpringBoot 工程中现在 有个问题是我们想通过源码的方式已java 应用的方式部署seata-server/server 打包后无法启动 seata-server-1.7.0.jar中没有主清单属性 这边有已源码的方式部署的么
   辛苦
   


-- 
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@seata.apache.org

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


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