1 Reply Latest reply on Oct 13, 2012 10:23 AM by erasmomarciano

    JBoss 7 - How do I give access to jboss libraries?

    harlander3000

      Hi,

       

      I am trying to migrate from JBoss 5.1 to JBoss 7.1.1.Final 

       

      I have got the following errors given below.

       

      How do give access to these libraries in JBoss 7 please, eg it is complaining about activation.jar and servlet.jar etc. Shouldn't JBoss be giving access to these libraries?

       

      Many thanks


      Dave.

       

       

       

       

      14:40:12,482 INFO  [org.jboss.as.repository] (HttpManagementService-threads - 3) JBAS014901: Content removed from location C:\jboss-as-7.1.1.Final\standalone\data\content\b1\dfe828d1c2ecf74649053c96606d7d98ea12b8\content
      14:43:35,319 INFO  [org.jboss.as.repository] (HttpManagementService-threads - 4) JBAS014900: Content added at location C:\jboss-as-7.1.1.Final\standalone\data\content\b1\dfe828d1c2ecf74649053c96606d7d98ea12b8\content
      14:43:39,733 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "eacWeb.war"
      14:43:41,103 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry activation.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxb-impl.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,106 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jsr173_1.0_api.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxb-impl.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,108 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jaxb1-impl.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxb-impl.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,110 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jsr181-api.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxws-rt-2.1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,112 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jsr250-api.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxws-rt-2.1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,114 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jsr173_api.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxws-rt-2.1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,116 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry sjsxp.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxws-rt-2.1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,118 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry resolver.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxws-rt-2.1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,121 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry activation.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxws-rt-2.1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,123 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry stax-ex.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxws-rt-2.1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,125 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry streambuffer.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxws-rt-2.1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,127 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry stax-utils.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/jaxws-rt-2.1.4.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,131 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jaxp-api.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/saaj-api.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,134 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jax-qname.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/saaj-api.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,136 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry activation.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/saaj-api.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,138 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry servlet.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/saaj-api.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,140 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry activation.jar in "/C:/jboss-as-7.1.1.Final/bin/content/eacWeb.war/WEB-INF/lib/saaj-impl.jar"  does not point to a valid jar for a Class-Path reference.
      14:43:41,214 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.module.service."deployment.eacWeb.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.eacWeb.war".main: Failed to load module: deployment.eacWeb.war:main
                at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) [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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_32]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_32]
                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_32]
      Caused by: org.jboss.modules.ModuleNotFoundException: Module javax.activation:main is not found in local module loader @52c05d3b (roots: C:\jboss-as-7.1.1.Final\modules)
                at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126) [jboss-modules.jar:1.1.1.GA]
                at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275) [jboss-modules.jar:1.1.1.GA]
                at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222) [jboss-modules.jar:1.1.1.GA]
                at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94) [jboss-modules.jar:1.1.1.GA]
                at org.jboss.modules.Module.addPaths(Module.java:841) [jboss-modules.jar:1.1.1.GA]
                at org.jboss.modules.Module.link(Module.java:1181) [jboss-modules.jar:1.1.1.GA]
                at org.jboss.modules.Module.relinkIfNecessary(Module.java:1207) [jboss-modules.jar:1.1.1.GA]
                at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208) [jboss-modules.jar:1.1.1.GA]
                at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
                ... 5 more
      
      
      14:43:41,479 INFO  [org.jboss.as.server] (HttpManagementService-threads - 4) JBAS015870: Deploy of deployment "eacWeb.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.module.service.\"deployment.eacWeb.war\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.eacWeb.war\".main: Failed to load module: deployment.eacWeb.war:main"}}
      
      
      
        • 1. Re: JBoss 7 - How do I give access to jboss libraries?
          erasmomarciano

          Try

           

          Step by step procedure for you

           

           


           

           

          1. Navigate jboss-as-web-7.0.0.Final\modules\javax\mail\api\main

           

          2.Stop the server if it running

          3.Remove the existing java mail jar and find the java mail 1.4.4 jar on the internet and put it in same directory where you deleted the existing version java mail jar

          4.Now open the module.xml file in some note editor like notepad or notepad++

          5.Add new module name javax.api like this  under the dependencies  <module name="javax.api"/> so your xml file will be like the below one



          <module xmlns="urn:jboss:module:1.0" name="javax.mail.api">

              <dependencies>

                  <module name="javax.activation.api" export="true"/>

              <module name="javax.api"/>

              </dependencies>


              <resources>

                  <resource-root path="mail-1.4.4.jar"/>   

                  <!-- Insert resources here -->

              </resources>

          </module>

           

          6. Save the file.

          7.Start the jboss Server and enjoy sending java mail using smtp servers.....

           

          font: http://www.labtrix.org/2012/02/java-mail-on-jboss-7-or-above.html