`
szlxh002
  • 浏览: 33765 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

JBoss7.1.1 Could not index class解决办法

阅读更多

    我的应用从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>

 

 

分享到:
评论
1 楼 luoyexian 2016-08-31  
我的jboss默认是1.2.3的,报同样的错。但现在换成1.2.4的也不行
14:40:23,822 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015852: Could not index class org/apache/cxf/tools/java2wsdl/generator/wsdl11/WSDL11Generator.class at /D:/jboss-as-7.1.1.Final/standalone/deployments/Foregin.war/WEB-INF/lib/cxf-2.3.3.jar: java.lang.IllegalStateException: Unknown tag! pos=44 poolCount = 373
请问确定是这个处理吗?

相关推荐

Global site tag (gtag.js) - Google Analytics