-
1. Re: jboss as 7.1.3 issue - deployment of .ear file issue
jaikiran May 25, 2016 2:02 AM (in response to gevans_mt)<driver name="sqljdbc" module="com.microsoft.sqlserver"> <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class> </driver>
How did you setup that driver's module? Can you post the folder contents of the com.microsoft.sqlserver module directory and also the module.xml of that module?
-
2. Re: jboss as 7.1.3 issue - deployment of .ear file issue
gevans_mt May 25, 2016 10:26 AM (in response to jaikiran)Contents of the com.microsoft.sqlserver directory under main
module.xml sqljdbc4.jar sqljdbc4.jar.index
module.xml
<module xmlns="urn:jboss:module:1.1" name="com.microsoft.sqlserver">
<resources>
<resource-root path="sqljdbc4.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
<module name="javax.servlet.api" optional="true"/>
</dependencies>
</module>
Note: I haen't touched these at all, because frankly I don't know enough to do anything here
-
3. Re: jboss as 7.1.3 issue - deployment of .ear file issue
jaikiran May 28, 2016 2:54 AM (in response to gevans_mt)I actually can't say for sure why this would work on Windows but not on Linux. I have suspicion that this has to do with the driver loading failing for some reason. 7.1.3 has a known bug where it doesn't report the driver loading failure [AS7-5751] Properly report module load failures while adding JDBC driver - JBoss Issue Tracker. It's been fixed in 7.1.4.Final (the pull request was this [7.1 branch] Fix AS7-5751 by properly reporting module load failures for JDBC drivers by jaikiran · Pull Request #3250 ·…), which should be easy to upgrade/migrate to, if you want to give it a try.
If however, you can't migrate to that version, then the only way to really figure out why it's failing is to attach a debugger to the server and check the code in the JdbcDriverAdd class of the server.