module.xml in modules/sun/jdk/main
<module xmlns="urn:jboss:module:1.1" name="sun.jdk">
<resources>
<!-- currently jboss modules has not way of importing services from
classes.jar so we duplicate them here -->
<resource-root path="service-loader-resources"/>
</resources>
<dependencies>
<system export="true">
<paths>
<path name="com/sun/script/javascript"/>
<path name="com/sun/jndi/dns"/>
<path name="com/sun/jndi/ldap"/>
<path name="com/sun/jndi/url"/>
<path name="com/sun/jndi/url/dns"/>
<path name="com/sun/security/auth"/>
<path name="com/sun/security/auth/login"/>
<path name="com/sun/security/auth/module"/>
<path name="com/sun/net/ssl">
<path name="com/sun/net/ssl/internal/ssl"/>
<path name="com/sun/net/ssl/internal/pkcs12"/>
<path name="com/sun/net/ssl/internal/www/protocol/https"/>
<path name="sun/misc"/>
<path name="sun/io"/>
<path name="sun/nio"/>
<path name="sun/nio/ch"/>
<path name="sun/security"/>
<path name="sun/security/krb5"/>
<path name="sun/util"/>
<path name="sun/util/calendar"/>
<path name="sun/util/locale"/>
<path name="sun/security/provider"/>
<path name="META-INF/services"/>
</paths>
<exports>
<include-set>
<path name="META-INF/services"/>
</include-set>
</exports>
</system>
</dependencies>
</module>
following error comes:
11:43:52,597 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
11:43:52,749 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
11:43:52,794 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
11:43:52,879 WARN [org.jboss.modules] Failed to define class org.jboss.as.security.vault.RuntimeVaultReader in Module "org.jboss.as.security:main" from local module loader @177b3cd (roots: D:\jboss-as-7.1.1.Final\modules): org.jboss.modules.ModuleLoadError: Error loading module from D:\jboss-as-7.1.1.Final\modules\sun\jdk\main\module.xml
at org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:78) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.getPathsUnchecked(Module.java:1166) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:512) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_21]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) [rt.jar:1.6.0_21]
at java.lang.ClassLoader.defineClass(ClassLoader.java:616) [rt.jar:1.6.0_21]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_21]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_21]
at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_21]
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345) [rt.jar:1.6.0_21]
at java.util.ServiceLoader$1.next(ServiceLoader.java:421) [rt.jar:1.6.0_21]
at org.jboss.as.server.ApplicationServerService.service(ApplicationServerService.java:224) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.ApplicationServerService.start(ApplicationServerService.java:139) [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_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_21]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[42,48]
Message: Unexpected content of type 'element start' named '
path'
at org.jboss.modules.ModuleXmlParser.unexpectedContent(ModuleXmlParser.java:355) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseNoContent(ModuleXmlParser.java:1073) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parsePathName(ModuleXmlParser.java:1015) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseSet(ModuleXmlParser.java:985) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseSystemDependency(ModuleXmlParser.java:807) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseDependencies(ModuleXmlParser.java:700) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:674) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:548) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:287) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:242) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.LocalModuleLoader.parseModuleInfoFile(LocalModuleLoader.java:138) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:122) [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.getPaths(Module.java:1153) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.getPathsUnchecked(Module.java:1164) [jboss-modules.jar:1.1.1.GA]
... 33 more
11:43:52,931 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.as: org.jboss.msc.service.StartException in service jboss.as: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [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_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_21]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]
Caused by: java.util.ServiceConfigurationError: org.jboss.as.server.services.security.AbstractVaultReader: Provider org.jboss.as.security.vault.RuntimeVaultReader not found
at java.util.ServiceLoader.fail(ServiceLoader.java:214) [rt.jar:1.6.0_21]
at java.util.ServiceLoader.access$400(ServiceLoader.java:164) [rt.jar:1.6.0_21]
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:350) [rt.jar:1.6.0_21]
at java.util.ServiceLoader$1.next(ServiceLoader.java:421) [rt.jar:1.6.0_21]
at org.jboss.as.server.ApplicationServerService.service(ApplicationServerService.java:224) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.ApplicationServerService.start(ApplicationServerService.java:139) [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]
... 3 more
11:43:52,944 ERROR [stderr] java.util.concurrent.ExecutionException: Operation failed
11:43:52,945 ERROR [stderr] at org.jboss.threads.AsyncFutureTask.operationFailed(AsyncFutureTask.java:74)
11:43:52,946 ERROR [stderr] at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:268)
11:43:52,947 ERROR [stderr] at org.jboss.as.server.Main.main(Main.java:98)
11:43:52,947 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:43:52,948 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:43:52,949 ERROR [stderr] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:43:52,950 ERROR [stderr] at java.lang.reflect.Method.invoke(Method.java:597)
11:43:52,950 ERROR [stderr] at org.jboss.modules.Module.run(Module.java:260)
11:43:52,951 ERROR [stderr] at org.jboss.modules.Main.main(Main.java:291)
11:43:52,951 ERROR [stderr] Caused by: org.jboss.msc.service.StartException in service jboss.as: Failed to start service
11:43:52,952 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767)
11:43:52,953 ERROR [stderr] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
11:43:52,954 ERROR [stderr] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
11:43:52,955 ERROR [stderr] at java.lang.Thread.run(Thread.java:619)
11:43:52,955 ERROR [stderr] Caused by: java.util.ServiceConfigurationError: org.jboss.as.server.services.security.AbstractVaultReader: Provider org.jboss.as.security.vault.RuntimeVaultReader not found
11:43:52,957 ERROR [stderr] at java.util.ServiceLoader.fail(ServiceLoader.java:214)
11:43:52,957 ERROR [stderr] at java.util.ServiceLoader.access$400(ServiceLoader.java:164)
11:43:52,958 ERROR [stderr] at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:350)
11:43:52,959 ERROR [stderr] at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
11:43:52,960 ERROR [stderr] at org.jboss.as.server.ApplicationServerService.service(ApplicationServerService.java:224)
11:43:52,961 ERROR [stderr] at org.jboss.as.server.ApplicationServerService.start(ApplicationServerService.java:139)
11:43:52,962 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
11:43:52,963 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
11:43:52,964 ERROR [stderr] ... 3 more