[jbosstools-issues] [JBoss JIRA] (JBIDE-19789) User Defined Modules are not loading in Eclipse

Raj Kumar (JIRA) issues at jboss.org
Wed May 13 08:27:21 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-19789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067648#comment-13067648 ] 

Raj Kumar commented on JBIDE-19789:
-----------------------------------

Thanks [~rob.stryker] , it is working now, Thanks [~maxandersen] ,

but i had an issue in runtime, that here is my log,
i have configure spring lib's as one module named "org.springframework",
while deploying in server am getting exception below,

17:47:46,979 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC0000
01: Failed to start service jboss.deployment.unit."Test_JB60_Testing.war"
.POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.u
nit."Test_JB60_Testing.war".POST_MODULE: JBAS018733: Failed to process ph
ase POST_MODULE of deployment "Test_JB60_Testing.war"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(Deplo
ymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se
rviceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont
rollerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142) [rt.jar:1.8.0_40]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617) [rt.jar:1.8.0_40]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective info
rmation for class org.springmodules.validation.commons.taglib.JavascriptValidato
rTag with ClassLoader ModuleClassLoader for Module "deployment.Test_JB60_
Testing.war:main" from Service Module Loader
        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getC
lassIndex(DeploymentReflectionIndex.java:72) [wildfly-server-8.2.0.Final.jar:8.2
.0.Final]
        at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotation
Information(MethodAnnotationAggregator.java:58)
        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.ha
ndleAnnotations(InterceptorAnnotationProcessor.java:107)
        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.pr
ocessComponentConfig(InterceptorAnnotationProcessor.java:92)
        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.de
ploy(InterceptorAnnotationProcessor.java:77)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(Deplo
ymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
        ... 5 more
Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/Lis
tableBeanFactory
        at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.8.0_40]
        at java.lang.Class.privateGetDeclaredFields(Class.java:2583) [rt.jar:1.8
.0_40]
        at java.lang.Class.getDeclaredFields(Class.java:1916) [rt.jar:1.8.0_40]
        at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(Cl
assReflectionIndex.java:57) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getC
lassIndex(DeploymentReflectionIndex.java:68) [wildfly-server-8.2.0.Final.jar:8.2
.0.Final]
        ... 10 more
Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.L
istableBeanFactory from [Module "deployment.Test_JB60_Testing.war:main" f
rom Service Module Loader]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:
213) [jboss-modules.jar:1.3.3.Final]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(Con
currentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(Concu
rrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentCl
assLoader.java:389) [jboss-modules.jar:1.3.3.Final]
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoad
er.java:134) [jboss-modules.jar:1.3.3.Final]
        ... 15 more

17:47:47,204 ERROR [org.jboss.as.controller.management-operation] (Controller Bo
ot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" =>
 "Test_JB60_Testing.war")]) - failure description: {"JBAS014671: Failed s
ervices" => {"jboss.deployment.unit.\"Test_JB60_Testing.war\".POST_MODULE
" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Ra
ngatelRWD_JB60_Testing.war\".POST_MODULE: JBAS018733: Failed to process phase PO
ST_MODULE of deployment \"Test_JB60_Testing.war\"
    Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective
information for class org.springmodules.validation.commons.taglib.JavascriptVali
datorTag with ClassLoader ModuleClassLoader for Module \"deployment.Test_
JB60_Testing.war:main\" from Service Module Loader
    Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory
/ListableBeanFactory
    Caused by: java.lang.ClassNotFoundException: org.springframework.beans.facto
ry.ListableBeanFactory from [Module \"deployment.Test_JB60_Testing.war:ma
in\" from Service Module Loader]"}}
17:47:47,837 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS0
18559: Deployed "Test_JB60_Testing.war" (runtime-name : "Test_JB60
_Testing.war")
17:47:47,857 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS0
18559: Deployed "mysql-connector-java-5.1.34.jar" (runtime-name : "mysql-connect
or-java-5.1.34.jar")
17:47:47,860 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774
: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit
."Test_JB60_Testing.war".POST_MODULE: org.jboss.msc.service.StartExceptio
n in service jboss.deployment.unit."Test_JB60_Testing.war".POST_MODULE: J
BAS018733: Failed to process phase POST_MODULE of deployment "Test_JB60_T
esting.war"

17:47:48,059 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http mana
gement interface listening on http://127.0.0.1:9990/management
17:47:48,067 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin con
sole listening on http://127.0.0.1:9990
17:47:48,067 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8
.2.0.Final "Tweek" started (with errors) in 24882ms - Started 254 of 311 service
s (1 services failed or missing dependencies, 92 services are lazy, passive or o
n-demand)
17:47:48,565 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA
S015877: Stopped deployment Test_JB60_Testing.war (runtime-name: Rangatel
RWD_JB60_Testing.war) in 437ms
17:47:49,277 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018
558: Undeployed "Test_JB60_Testing.war" (runtime-name: "Test_JB60_
Testing.war")
17:47:49,279 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBA
S014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit
."Test_JB60_Testing.war".POST_MODULE


> User Defined Modules are not loading in Eclipse 
> ------------------------------------------------
>
>                 Key: JBIDE-19789
>                 URL: https://issues.jboss.org/browse/JBIDE-19789
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: server
>         Environment: java 1.8, wildfly 8.1 , Mysql
>            Reporter: Raj Kumar
>
> Hi , i want to load the Application server Libraries in Java Build Path in eclipse,
>  
> i have 5 applications in eclipse which shares common libraries,
> i can't put all the libraries in each project lib folder,
> so i want to add the libraries in Wildfly Application server using modules.
>  
> This is my module.xml file add added the lib at  WILDFLY_HOME/modules/system/layers/base/com/mysql/main/mysql-connector-java-5.1.23-bin.jar
>  
> <?xml version="1.0" encoding="UTF-8"?>
> <module xmlns="urn:jboss:module:1.1" name="com.mysql">
> <resources>
> <resource-root path="mysql-connector-java-5.1.23-bin.jar"/>
> </resources>
> <dependencies>
> <module name="javax.api"/>
> <module name="javax.transaction.api"/>
> </dependencies>
> </module>
>  
> After Restarting the server,this module is not loading in Eclipse Build path.
> Can any one knows what wrong with this modules ?
> In Wildfly i have some predefined modules, those are loading in build path successfully, but user-defined modules are not loading ?
> why ?
> - See more at: https://developer.jboss.org/thread/257825?sr=inbox#sthash.MWLbzbco.dpuf



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list