0 Replies Latest reply on Nov 17, 2011 6:01 PM by joe lau

    WARN  [org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor] java.io.IOException: Invalid Magic

    joe lau Newbie

      I am trying to run jboss but I run into this error. about "Invalid magic" I did a google search for this and it looks like there was an error in version JANDEX-6 1.0.1.Final as per this issue https://issues.jboss.org/browse/JANDEX-6  I am not sure which version jboss-as-web-7.0.2.Final uses though. Due to this error I cannot start jboss. I have attached my standalone.xml

       

      Here is the output when i run jboss

      $ ./startJBoss.cmd

      JBOSS_HOME=C://projects//buildenv//jboss//jboss-as-web-7.0.2.Final

      JBOSS_CLASSPATH=c:/run/server/modules

      JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26

      JAVA_OPTS= -server -Xms512M -Xmx1024M -XX:PermSize=192M -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788 -Djava.io.tmpdir=c:/temp -XX:MaxPe

      rmSize=256M -DbaseDirectory=c:/run -Djboss.server.base.url=file:///c:/run/server/config/jbos

      s-as-web-7.0.2.Final -Djboss.server.base.dir=c:/run/server/config/jboss-as-web-7.0.2.Final/buildingcenter -Dfile.encoding=utf-

      8

      Calling C:\projects\buildenv\jboss\jboss-as-web-7.0.2.Final\bin\standalone.conf.bat

      ===============================================================================

       

        JBoss Bootstrap Environment

       

        JBOSS_HOME: C://projects//buildenv//jboss//jboss-as-web-7.0.2.Final

       

        JAVA: C:\Program Files\Java\jdk1.6.0_26\bin\java

       

        JAVA_OPTS: -Dprogram.name=standalone.bat  -server -Xms512M -Xmx1024M -XX:PermSize=192M -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788 -

      Djava.io.tmpdir=c:/temp -XX:MaxPermSize=256M -DbaseDirectory=c:/run -Djboss.server.base.url=file:///c:/buildingcenter/Hibernat

      eMigration/run/server/config/jboss-as-web-7.0.2.Final -Djboss.server.base.dir=c:/run/server/config/jboss-as-web-7.0.2.Final/bu

      ildingcenter -Dfile.encoding=utf-8 -server

       

      ===============================================================================

       

      Listening for transport dt_socket at address: 8788

      14:38:53,885 INFO  [org.jboss.modules] JBoss Modules version 1.0.2.GA

      14:38:54,135 INFO  [org.jboss.msc] JBoss MSC version 1.0.1.GA

      14:38:54,197 INFO  [org.jboss.as] JBoss AS 7.0.2.Final "Arc" starting

      14:38:54,994 WARN  [org.jboss.as] No security realm defined for native management service, all access will be unrestricted.

      14:38:55,057 INFO  [org.jboss.as] creating http management service using network interface (management) port (9990)

      14:38:55,057 WARN  [org.jboss.as] No security realm defined for http management service, all access will be unrestricted.

      14:38:55,072 INFO  [org.jboss.as.logging] Removing bootstrap log handlers

      14:38:55,088 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying non-JDBC-compliant driver class net.sourceforge.jtds.jdbc.

      Driver (version 1.2)

      14:38:55,104 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying non-JDBC-compliant driver class org.hsqldb.jdbcDriver (ver

      sion 1.8)

      14:38:55,104 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)

      14:38:55,119 INFO  [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.

      14:38:55,197 INFO  [org.jboss.as.naming] (Controller Boot Thread) JBAS011800: Activating Naming Subsystem

      14:38:55,213 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

      14:38:55,229 INFO  [org.jboss.as.osgi] (Controller Boot Thread) JBAS011910: Activating OSGi Subsystem

      14:38:55,244 INFO  [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem

      14:38:55,244 INFO  [org.jboss.remoting] (MSC service thread 1-7) JBoss Remoting version 3.2.0.Beta2

      14:38:55,260 INFO  [org.xnio] (MSC service thread 1-7) XNIO Version 3.0.0.Beta3

      14:38:55,276 INFO  [org.xnio.nio] (MSC service thread 1-7) XNIO NIO Implementation Version 3.0.0.Beta3

      14:38:55,510 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-7) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_26\bin

              C:\WINDOWS\Sun\Java\bin

              C:\WINDOWS\system32

              C:\WINDOWS

              C:\cygwin\usr\local\bin

              C:\cygwin\bin

              C:\WINDOWS\system32

              C:\WINDOWS

              C:\WINDOWS\System32\Wbem

              C:\projects\buildenv\ant\ant1.7.0\bin

              C:\Program Files\Java\jdk1.6.0_26\bin

              C:\Program Files\Java\jdk1.6.0_26\lib\tools.jar

              C:\projects\buildenv\jboss\jboss-as-web-7.0.2.Final\bin

              C:\Program Files\SlikSvn\bin\

              C:\buildingcenter

              C:\projects

              C:\Program Files (x86)\jZip

              C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\

              C:\Program Files\Microsoft SQL Server\90\DTS\Binn\

              C:\Program Files\Microsoft SQL Server\90\Tools\binn\

              C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\

              C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\

              C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\

              C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\

              C:\cygwin\bin

              C:\Program Files\TortoiseSVN\bin

              C:\aspectj1.6\lib

              C:\aspectj1.6\bin

              C:\Program Files (x86)\Notepad++

              C:\Graphviz 2.28\bin

              C:\Program Files\apache-maven-3.0.3\bin

              C:\Program Files\Java\jdk1.6.0_26

              .

      14:38:55,541 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-2) Starting remote JMX connector

      14:38:55,541 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) Listening on /127.0.0.1:9999

      14:38:55,697 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http--0.0.0.0-8080

      14:38:55,776 INFO  [org.jboss.as.connector] (MSC service thread 1-3) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final)

      14:38:55,807 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) Bound data source [java:jboss/datasources/ExampleDS]

      14:38:55,807 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) Bound data source [java:/jdbc/BuildingCenterMetaDS]

      14:38:55,807 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) Bound data source [java:/jdbc/BuildingCenterBizDS_baseline]

      14:38:56,135 INFO  [org.jboss.as.deployment] (MSC service thread 1-2) Started FileSystemDeploymentService for directory c:\buildingcenter\HibernateMigration\run

      \server\config\jboss-as-web-7.0.2.Final\buildingcenter\deployments

      14:38:56,135 INFO  [org.jboss.as.deployment] (DeploymentScanner-threads - 1) Found bc.ear in deployment directory. To trigger deployment create a file called bc

      .ear.dodeploy

      14:38:56,151 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.2.Final "Arc" started in 2500ms - Started 102 of 157 services (55 services are passive o

      r on-demand)

      14:39:41,963 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) Starting deployment of "bc.ear"

      14:39:42,745 WARN  [org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor] (MSC service thread 1-8) Could not index class bc-web.war/space/cadviewer/WPrint.class in archive '"/c:/run/server/config/jboss-as-web-7.0.2.Final/buildingcenter/deployments/bc.ear"': java.io.IOException: Invalid Magic

              at org.jboss.jandex.Indexer.verifyMagic(Indexer.java:389) [jandex-1.0.3.Final.jar:1.0.3.Final]

              at org.jboss.jandex.Indexer.index(Indexer.java:630) [jandex-1.0.3.Final.jar:1.0.3.Final]

              at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.F

      inal]

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

       

      14:39:43,479 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."bc.ear".PARSE: org.jboss.msc.s

      ervice.StartException in service jboss.deployment.unit."bc.ear".PARSE: Failed to process phase PARSE of deployment "bc.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

      Caused by: java.lang.NullPointerException

              at org.jboss.as.ee.component.deployers.AbstractComponentConfigProcessor.deploy(AbstractComponentConfigProcessor.java:49)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

              ... 5 more

       

      14:39:43,479 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "bc.ear" was rolled back with failure message {"Failed service

      s" => {"jboss.deployment.unit.\"bc.ear\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"bc.ear\".PARSE: Failed to process ph

      ase PARSE of deployment \"bc.ear\""}}

      14:39:43,479 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) Stopped deployment bc.ear in 1ms

      14:39:43,479 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operatio

      n step-2" => {"Failed services" => {"jboss.deployment.unit.\"bc.ear\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"bc.ear\

      ".PARSE: Failed to process phase PARSE of deployment \"bc.ear\""}}}}