How to connect Tomcat 4.1 to MS SQL2000?

<Context path="/boa"
         docBase="C:\BOA\BOACommonDB\WebSite"
         debug="9"
         reloadable="true" >

<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
connectionURL="jdbc:microsoft:sqlserver://localhost:1433/webuserstest?user=sa"
userTable="users" userNameCol="user_name" userCredCol="USER_PASS" userRoleTable="user_roles"
roleNameCol="ROLE_NAME" />
</Context>

Above is the tag I have in my server.xml to define the site and the Realm to connect to MS SQL2000.  I have put the driver jar file into /server/lib folder of Tomcat but I keep getting the error below, any reason for it? I have made sure I use the JDBCRealm that comes with Tomcat.


INFO: Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
java.lang.NullPointerException
        at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:624)
        at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:688)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
        at org.apache.catalina.core.StandardServer.s
tThe application exiteda
rt(StandardServer.java:2143)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
        at sun.reflect.NativeMetC:\BOA\Tomcat\bin>
C:\BOA\Tomcat\bin>
fylix0000Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bloodredsunCommented:
Can you connect to the database using a JSP? This would check that the database permissions are correctly set for the user that you are using. and that the password is correct

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KuldeepchaturvediCommented:
It is also possible that database is not listening at port 1433 for incoming connection ( will have if somebody has dorked around the SQL server settings)..
colr__Commented:
What data types are you using? Are you using blobs anywhere?

colr__
fylix0000Author Commented:
The database I have uses just varchar, bigint, smallint, tinyint, dont think I have blobs anywhere.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.