3 Replies Latest reply on Sep 7, 2011 9:20 AM by mgaffron

    Recieving ClassNotFoundException with sqljdbc4.jar using JBoss 6

    mgaffron

      I hope someone can help.  I am deploying an EAR file to JBoss 6.  If I use eclipse the project starts successfully. If I deploy outside of eclipse (i.e. place .ear in the deploy directory) I receive the following message:

       

       

      DEPLOYMENTS IN ERROR:

        Deployment "vfs:///C:/ProgramData/JBoss6.1/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/server/default/deploy/CCM_EAR.ear" is in error due to the following reason(s): java.lang.ClassNotFoundException: sqljdbc4.jar.com.microsoft.sqlserver.jdbc.TypeInfo$Builder$14

       

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.2.GA]

              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.2.GA]

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.1.0.Final]

              at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.1.0.Final]

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.1.0.Final]

              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]

              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

       

       

      The sqljdbc4.jar file is located in the ..\jboss-as-distribution-6.1.0.Final\jboss-6.1.0.Final\server\default\lib

       

      I checked inside the sqlJDBC4.jar and it does containn the TypeInfo$Builder$14.

       

      Thanks,

      Michael