jboss - How to add libraries to Wildfly Application Server using module? -
i want load application server libraries in java build path in eclipse,
i have 5 applications in eclipse shares common libraries, can't put libraries in each project lib folder, want add libraries in wildfly application server using modules.
this module.xml file add added lib @ 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 server, module not loading in eclipse build path.
can 1 knows wrong modules ?
in wildfly have predefined modules, loading in build path successfully, user-defined modules not loading ?
why ?
solution found:
follow below steps :
go eclipse > preferences > server > runtime environments > default classpath entries
select "wildfly 8.x runtime" , add module
and click on apply, rebuild application , check,
the library added in buildpath module name.
Comments
Post a Comment