microsoft-sqljdbc.jar deployment errors on JBoss

While deploying your application on jboss you may run into a zip error type deal, something like this:

Caused by: java.lang.Error: Error visiting DelegatingHandler@1463636387[path=cf.ear/railo.war/WEB-INF/lib/microsoft-sqljdbc.jar context=file:/home/coldshen/deploy2/ real=file:/home/coldshen/deploy2/cf.ear/railo.war/WEB-INF/lib/microsoft-sqljdbc.jar]

Which means the VFS deployer just choked on the (IMO) malformed microsfot jdbc driver jar [Ed Note: yes, I left the spelling error in there, cuz I'm cool like that].

See this thread for long, technical discussion:

And the solution is to edit your vfs.xml file (given the context location above, the path is /home/coldshen/deploy2, you'll have to edit yours) and add this entry to the VFSCache bean:

<value><inject bean="VfsNamesExceptionHandler"/></value>

Which basically tells JBoss that there's a fscked-up jar in, or under, that directory.

The vfs.xml file should be located at: {jboss_home}/server/{your_server}/conf/bootstrap/vfx.xml

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Ben Spencer's Gravatar I am new to linux and am having this issue. Where exactly would the vfs.xml file be located?
# Posted By Ben Spencer | 6/25/09 1:21 AM
coldshen's Gravatar I've updated the post to include the default location
# Posted By coldshen | 6/30/09 2:18 PM
BlogCFC was created by Raymond Camden. This blog is running version Contact Blog Owner