S2SH(注解)从Tomcate向Jboss移植遇到问题汇总

基于PI双闭环解耦控制的三相SVPWM电压型逆变器(3)--调制方法 阐述SPWM和SVPWM的原理以及实现方法 阅读详情

第一种错误:

        

15:30:16,378 ERROR [JBossContextConfig] XML error parsing: WEB-INF/context.xml
                                  org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser


 

解决方案:在Jboss的部署目录,找到刚刚部署的项目WebRoot/lib下,找到:xerces-2.6.2.jar和xml-apis.jar,删除即可!

 

第二种错误:

       

 15:38:32,211 ERROR [ContextLoader] Context initialization failed
            org.springframework.context.ApplicationContextException: Failed to load custom context class [org.jboss.spring.vfs.context.VFSXmlWebApplicationContext]; nested exception is java.lang.ClassNotFoundException: org.jboss.spring.vfs.context.VFSXmlWebApplicationContext


 

解决方案:加入jboss-spring-int-vfs.jar 和 jboss-as-sprint-int-5.0.0.GA.jar两个jar包!下载地址:http://download.youkuaiyun.com/detail/tangkai_java/4434161


 

第三种:

        做完以上两步,Jboss启动成功,但是项目却不加载,控制台亦无任何异常输出!通过浏览器可以进入Jboss控制台,却无法访问部署的项目!这种情况是部署的项目没有成功启动导致的!

解决方案:在WebRoot下增加XML文件jboss-web.xml,文件内容如下:

      

<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">  
<jboss-web>  
 <class-loading java2ClassLoadingCompliance="true">
  <loader-repository>
   com.xinggang:archive=agent.war
   <loader-repository-config>
    java2ParentDelegation=true
   </loader-repository-config>
  </loader-repository>
 </class-loading>
</jboss-web>

其中com.xinggang可以随便命名,agent.war可以是你自己项目名称+“.war”  ,具体的含义可以百度“jboss-web.xml”,然后再修改web.xml,在文件最开头增加如下配置:

<context-param>   
			<param-name>contextClass</param-name>   
 			<param-value>org.jboss.spring.vfs.context.VFSXmlWebApplicationContext</param-value>   
	</context-param> 

同时如下配置也将导致spring无法加载:

<!--  加载Spring配置文件  -->
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>classpath*:applicationContext*.xml</param-value>
	</context-param>


其中classpath*:applicationContext*.xml,将会报错,提示无效的表达式,修改成:classpath:applicationContext.xml即可,若有多个,可以在applicationContext.xml进行引入!

以上是我在移植时遇到的问题,记录下来方便大家查阅,希望后来的人不要被这几个问题纠结,同时也欢迎大家批评指正以及贴出自己遇到的问题及解决方案!

 

山东大学机试试题合集 阅读详情

相关推荐

【Autosar】学习总结-MCAL

一、简介 MCAL:微控制器抽象层;位于BSW层中的最下层; MCAL细分,可将驱动分为:微控制器驱动、存储器驱动、通信驱动、IO驱动: 二、MCAL的配置(EB-Tresos) 1.PORT 我理解的PORT:MCAL层中的IO驱动组中的pin脚总体配置: Port就是芯片上的每个pin脚,可以配置成DIO ADC PWM ICU等单引脚的功能,也能配置成CAN的TX或者RX、SPI的MOSI等等其他功能的单个pin脚功能; 总之,PORT就是芯片上的具体的某个引脚。 配置

zDavid_2018的博客 3万+

SpringBoot启动报错:nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.

完整的报错信息: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\ideaWorkProject\rabbitmqtest\target\classes\com\sinosoft\rabbitmqtest\Enum...

panlupeng的博客 1万+

Python+QMT量化交易实战:从零搭建你的第一个极速策略(附完整代码)

本文提供了一份详细的Python+QMT量化交易实战指南,手把手教你从零搭建一个可回测、可实盘的极速策略。内容涵盖环境配置、QMT核心机制解析、双均线策略的完整代码实现、回测优化方法以及实盘部署要点,帮助量化交易新手快速入门并掌握核心开发流程。

b9c0d的博客 1012

Spring错误笔记--Failed to load ApplicationContext

关于Junit4测试Spring出现java.lang.IllegalStateException: Failed to load ApplicationContext 错误2016/6/8 8:48:14 SeventeenWen昨天晚上折腾了2个多点,也没解决,上网找了无数方法,Google了不少解决方案,都不是我要的答案,产生错误的原因有很多,但只给出一个统一的错误名,解决起来真的是费事,我就

Double_apple112的博客 976

【YOLO 系列】基于YOLO V8的智能车载交通标志识别系统【python源码+Pyqt5界面+数据集+训练代码】

本文详细介绍了基于YOLO V8构建智能车载交通标志识别系统的完整流程。从环境搭建、数据集准备、模型训练到PyQt5图形界面开发,提供了Python源码和实战代码,帮助开发者快速实现高精度、实时的交通标志检测应用,提升驾驶辅助系统的开发效率。

wdx012345的博客 966

FlinkCDC数据同步Bug——同步性能由于写入并行度限制无法提升问题的解决

使用FlinkCDC进行数据同步时,出现增量阶段写入并行度强制为1导致整体同步性能无法提升问题的解决方案

csdn_lan的博客 2077

Spring MVC 上下文(ApplicationContext)初始化入口

Spring 常用上下文容器有哪些 ApplicationContext ClassPathXmlApplicationContext ApplicationContext context = new ClassPathXmlApplicationContext(applicationContext.xml"); AnnotationConfig...

weixin_34208283的博客 517

Python爬虫实战:使用Scrapy+Playwright高效爬取全球专利数据库

本文将详细介绍如何使用Python最新技术栈(Scrapy+Playwright)构建一个高效的专利数据库爬虫系统。我们将从爬虫基础知识讲起,逐步深入到反爬应对策略、分布式爬虫架构以及数据存储方案,最终实现一个完整的专利数据采集系统。专利数据是技术创新领域的重要信息资源,包含技术描述、权利要求、申请人信息等宝贵数据。中国国家知识产权局(CNIPA)美国专利商标局(USPTO)欧洲专利局(EPO)世界知识产权组织(WIPO)

2201_76125261的博客 1382

将项目从tomcat 迁移到JBoss

注:针对的是jboss5.0,其它版本没有测试过 ,主要参考了:http://www.diybl.com/course/3_program/java/javajs/20100719/460908.html,在些表示感谢 将项目从tomcat 迁移到JBoss,一般情况下会出现很多问题,下面是相关问题的记录及解决方法。 1. (1)首先要新增两个jar包:jboss-as-sprint-in

zgmzyr的专栏 7706

MATLAB 开发项目实例 1000 例专栏之第37例:基于Simulink的无人机飞行控制系统设计

通过上述项目实例,我们成功地使用Simulink设计和仿真了一个无人机的飞行控制系统。这个项目展示了从无人机建模、路径规划、控制器设计到仿真验证的完整流程。Simulink的可视化和模块化特性使得系统的建模和仿真更加直观和高效。

xiaoheshang_123的博客 162

C# WPS操作PPT,全屏,缩率图,备注,跳转播放

本文介绍了一个使用C#开发的PPT操作工具,主要功能包括检测当前打开的PPT文件、获取选中PPT路径、指定播放PPT、获取PPT页面序号和缩略图、提取备注内容等。文章展示了操作界面效果图,并重点解决了用户手动退出PPT后重新获取路径时报错的问题。核心代码实现了通过WPS API进行PPT文件的打开、全屏播放、页面跳转、获取当前页位置等功能,同时支持生成PPT缩略图预览和备注信息提取。当用户未通过工具按钮打开PPT时,程序会自动初始化PPT信息确保功能正常使用。

遇见--专栏 309

Jboss部署问题整理

问题一: ERROR [JBossContextConfig] XML error parsing: WEB-INF/context.xml    org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser 解决方案:在Jboss的部署目录,找到刚刚部署的项目WebRoot/lib下,找到:

牛儿吃草的博客 1万+

【unity知识】最新的虚拟相机Cinemachine3简单使用介绍

本文介绍了Unity中Cinemachine 3虚拟相机系统的使用方法。相比旧版本,新版功能更强大且参数分类更直观。文章详细讲解了摄像机镜头参数、旋转控制(包括None、目标跟随、样条线推拉、旋转追随等6种模式)和位置控制(跟随、样条轨道、硬锁定等5种模式)。重点演示了样条轨道摄像机的创建与配置,以及如何实现第一人称和第三人称视角。通过丰富的GIF图示,展示了各种模式的运行效果,帮助用户快速掌握Cinemachine 3的核心功能。

向宇的博客,专注php/web全栈 unity游戏开发,欢迎大家评论纠错 865

[求解!!!] springboot在运行web项目时报错

1 2017-05-10 17:40:54.343 INFO 4852 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@b9e255:...

weixin_30347009的博客 382

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

SIMATIC S7-1200, S7-1500 PID 控制[手册]

SIMATIC S7-1200, S7-1500 PID 控制[手册]

Caused by: java.lang.ClassNotFoundException: feign.Feign$Builder

创建springcloud, 启动项目抛错: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.tealala.client.UserFeignClient': Lookup method resolution failed; nested exception...

tealala的博客 1312

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

nested exception is java.lang.linkageerror,springboot+mockito 异常解决方案

系统启动的异常日志如下javax.net.ssl.*java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAw...

weixin_32148209的博客 851

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

将项目从tomcat 迁移到JBoss技术总结

Tomcat版本6.0.39 JBoss版本7.1.1.Final 一、首先解决JBoss与Spring兼容的问题 1、添加jboss-logging.jar和snowdrop-vfs.jar两个jar包到web项目中 2、web.xml 添加配置 <context-param> <param-name>contextClass</param-name> <param-value>org.jboss.spring.v...

hong、的博客 692

jboss-web.xml配置文件说明

在JBoss 下web工程,为了使用容器提供的一些特性,需要使用jboss-web.xml进行配置。以下是一个配置好的jboss-web.xml示例。   <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">

songxiuliang的专栏 3759

jboss-web.xml 配置说明

        在JBoss 下web工程,为了使用容器提供的一些特性,需要使用jboss-web.xml进行配置。以下是一个配置好的jboss-web.xml示例。   &lt;!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_...

善上若水的专栏 483

Jboss 启动报错(Failed to parse WEB-INF/jboss-web.xml; - nested throwable)

Jboss 启动报错(org.jboss.deployment.DeploymentException: resource-ref jdbc/cpf/type4 found in jboss-web.xml but not in web.xml) Failed to parse WEB-INF/jboss-web.xml; - nested throwable:(大佬帮忙找下,感谢!) 06:...

weixin_44189857的博客 1677

springboot打war包部署到外部tomcat报错 parseWebXml Parse error

解决:\apache-tomcat-8.0.44\conf\context.xml 修改标签: 至 错误日志: 12-Jun-2017 09:31:36.818 严重 [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml Parse error in applicati

AIU_IU的博客 5556

Jboss 启动问题

1.web.xml元素先后顺序  我的Jboss是5.1GA, Error Message:AXException: The content of element type "web-app" must match "(icon?,display-name?,

java journey 3721

jboss-as-7.1.1不兼容spring解决办法

项目部署到jboss-as-7.1.1服务器,兼容spring几大要点配置如下 web.xml中的 &lt;context-param&gt; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt; &lt;param-value&gt; classpath:applicationContext-...

liuye77321660的专栏 574

Tomcat 迁移到 Jboss5.1日志

    从Tomcat升级到JBoss5.1真是一个痛苦的过程,可能遇到很多问题。以下是我碰到的问题,及解决方法。 一.Hibernate不兼容问题。       JBoss5.1中内置了hibernate,以前4.x的时候还是在server/default/lib里,但在JBoss5.1的时候已经升级到了common/lib下面。4.x时我直接删掉hibernate等的...

善上若水的专栏 213

tomcat项目迁移到Jboss中出现的错误

错误一: Arquillian wildfly8.2 embedded : JBAS014670: Failed initializing module org.jboss.as.logging 解决方法: 右击项目- –&gt;Run As –&gt;Run Configuration –&gt;JUnit –&gt;Arguments 在 VM arguments 加上以下这句话: ...

超帅哥哥的人生巅峰 1123

解决:Failed to load ApplicationContext

解决:Failed to load ApplicationContext 一般按照如下步骤即可解决 第一步:检查注解 检查是否有如下注解 @RunWith(SpringRunner.class) @SpringBootTest 如果没有,添加依赖并补充注解 <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13&lt

生命中有太多不确定 18万+
上一篇: 数据库表赋权给指定用户
下一篇: Jboss 5.1 虚拟目录的配置
TangKai_java
博客等级 码龄18年 12粉丝 28原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值