我的应用从Tomcat7转到Jboss7.1之后,启动出现如下错误
[org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015852: Could not index class production/erpintelj/com/framework/action/PiorganizeAction.class at /D:/erp/WEB-INF/classes: java.lang.IllegalStateException: Unknown tag! pos=18 poolCount = 222 at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:606) [jandex-1.0.3.Final.jar:1.0.3.Final] at org.jboss.jandex.Indexer.index(Indexer.java:640) [jandex-1.0.3.Final.jar:1.0.3.Final] at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:77) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25] at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
虽然这个Warn不会影响到系统的使用,但还是觉得不好,每次启动都会报这个warn.
后来把Jboss模块jandex的版本从jandex-1.0.3.Final.jar改成jandex-1.2.4.Final.jar.
这个模块的目录:
jboss7\modules\org\jboss\jandex\main
jandex的下载地址:http://grepcode.com/project/repo1.maven.org/maven2/org.jboss/jandex/
module.xml的内容如下:
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ JBoss, Home of Professional Open Source. ~ Copyright 2010, Red Hat, Inc., and individual contributors ~ as indicated by the @author tags. See the copyright.txt file in the ~ distribution for a full listing of individual contributors. ~ ~ This is free software; you can redistribute it and/or modify it ~ under the terms of the GNU Lesser General Public License as ~ published by the Free Software Foundation; either version 2.1 of ~ the License, or (at your option) any later version. ~ ~ This software is distributed in the hope that it will be useful, ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~ Lesser General Public License for more details. ~ ~ You should have received a copy of the GNU Lesser General Public ~ License along with this software; if not, write to the Free ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. --> <module xmlns="urn:jboss:module:1.1" name="org.jboss.jandex"> <properties> <property name="jboss.api" value="private"/> </properties> <resources> <!-- <resource-root path="jandex-1.0.3.Final.jar"/> Insert resources here --> <resource-root path="jandex-1.2.4.Final.jar"/> </resources> <dependencies> </dependencies> </module>
相关推荐
JBoss7.1.1配置指南及管理员手册PDF版本,很清楚,介绍的也很详细
Jboss7.1.1linux64位安装包,可用于部署javaweb应用程序
这是ejb3.1用jboss7.1.1开发的HelloWorld文档,网上有一个和这个差不多,但是有些错误,这个是修正版的
jboss7.1超详细说明,有群的说明 也有jboss7.1独有的”域“说明和详细配置
JBoss 7.1.1 Final版本下,更改了JSP也需要重启服务,调试非常不方便。现在找到了解决方案:添加一个jar文件、修改两个xml即可。
Jboss7.1.1+eclipse-kepler开发ejb3 使用eclipse4.3即kepler版本来集成jboss tools工具并使用jboss7.1.1来开发ejb3.1
ejb3.0配置使用jboss7.1.1的数据源
jboss7.1.1+ejb3.0+MySQL数据源配置,包含项目源码,可直接导入MyEclipse
Jboss7.1.1p配置mysql和oracle以及项目调用参照.pdf
jboss的起步,包含数据库数据源的配置教程,以及应用的发布
从网上找资料,并亲自测试成功的,与大家分享。
NULL 博文链接:https://guoying252166655.iteye.com/blog/2068704
附件提供一个jar、两个xml、一个文档,分别实现jsp热部署(默认情况下jboss修改了JSP还需要重启)、占用根目录“/”无需使用工程名(即使用http://127.0.0.1:8080直接访问首页)、多个工程同时启动(默认情况下会冲突...
Jboss配置虚拟路径
最近在做一web服务的项目,使用apache的tomcat作为web服务器,但是考虑到后期可能出现高...由于是第一次使用JBOSS,所以过程中遇到一些问题,为了给其他人以参考,特写出下面JBOSS 7.1.1 Final版本的安装和配置、部署。
将Jboss注册为Windows服务,注册或者卸载Windows服务的方法
NULL 博文链接:https://lwpsoft.iteye.com/blog/2254348
JBoss服务器URL乱码的问题解决办法
jboss-as-7.1.1.Final