Configuring the DB2 data source in JBoss

Source: Internet
Author: User
Tags db2 jboss

The recent test project for developing EJBS in Eclipse + myeclipse + JBoss + DB2 has encountered a problem: the data source has been configured in JBoss, and the JDBC driver for DB2 has been%jboss_home% server/default/ LIB, but when you start JBoss from Eclipse, the test always prompts for the wrong driver and does not connect to the database. But to start JBoss alone, the test runs normally. Later on the Internet to check, found that%classpath% C:/Program Files/sqllib/bin,jboss can be found in the C:/Program Files/sqllib/bin directory Db2jdbc.dll. So when you configure JBoss in eclipse, you need to add C:/Program Files/sqllib/bin to the library path. Solve the problem.

Note: Tomcat, WebLogic, and WebSphere may also have similar problems.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.