我的应用从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>
本文详细记录了作者将应用从Tomcat7迁移到JBoss7.1过程中遇到的一个部署问题,即在启动时出现的错误提示。通过更换Jandex模块的版本,问题得以解决。文章提供了错误信息解析和解决方案,有助于开发者在遇到类似问题时快速定位并解决。
9999

被折叠的 条评论
为什么被折叠?



