BlackBerry MDS Services - Apache Tomcat Service will not start
Doc ID : KB12235
Last Modified : 2007-07-11
Document Type : Support
Environment- BlackBerry® Enterprise Server software version 4.1.x
Problem
BlackBerry® Mobile Data System (BlackBerry MDS) Services - Apache Tomcat™ Service starts and stops immediately. No error message appears.
Cause
This issue may be caused by one of the following:
- TCP/IP and Named Pipes are not enabled in the Microsoft® SQL Server™ Network Utility.
- TCP/IP for the BlackBerry MDS Services – Apache Tomcat Service and the database server program are not configured to communicate on the same port.
- The SQL account password that BlackBerry MDS Services - Apache Tomcat Service uses is incorrect.
Resolution
Complete the appropiate resolution for the cause.
Cause 1
TCP/IP and Named Pipes are not enabled in the SQL Server Network Utility.
Resolution- Enable the TCP/IP and Named Pipes protocols. For instructions, refer to the Microsoft Support Knowledge Base.
- Stop all BlackBerry services.
- Restart the Microsoft SQL Service.
- Start the BlackBerry services. Note: See KB13718 for the order in which to stop and start BlackBerry services.
Cause 2
TCP/IP for the BlackBerry MDS Services – Apache Tomcat Service and the database server program are not configured to communicate on the same port
Resolution
1. Verify the TCP/IP port the database server program is configured to use.
For Microsoft SQL Server Desktop Engine (MSDE) and Microsoft SQL Server 2000- On the computer on which the SQL database resides, go to Start > Run and type svrnetcn in the Open field.
- Select TCP/IP in the Enabled Protocols list.
- Click the Properties button.
- Record the default port listed.
For Microsoft SQL Server 2005- Go to Start > All Programs > Microsoft SQL Server 2005 > Configuration Tools > SQL Server Configuration Manager.
- In the SQL Server Configuration Manager, expand SQL Server Network Configuration.
- Click Protocols for MSSQLServer.
- On the right-hand window, double-click TCP/IP.
- Click the IP Addresses tab.
- Record the TCP Port values.
2. Determine the TCP/IP port used by BlackBerry MDS Services – Apache Tomcat Service.
- Open the server.xml file located in C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDSS\jakarta-tomcat-5.5.9\conf\.
- Locate the following line:
<Resource name="jdbc/db_server" auth="Container" type="javax.sql.DataSource" driverClassName="com.microsoft.sqlserver.jdbc.SQLS erverDriver" url="jdbc:sqlserver://SQLSERVERNAME:1433;databaseName=mdss;forwardReadOnlyMethod=serverCur sor" username="admin" password="password" connectionProperties="" maxActive="75" maxIdle="75" maxWait="10000"/> where ‘1433’ indicates the port the BlackBerry MDS Services – Apache Tomcat Service is using to connect to the Microsoft SQL Server
- To change the port the BlackBerry MDS Services – Apache Tomcat service uses to communicate to the Microsoft SQL Server, edit the server.xml port values to correspond with the values recorded from the database program. There are 3 identical lines in the server.xml that will need to be edited. Each line has the following format:
<Resource name="jdbc/db_server" auth="Container" type="javax.sql.DataSource" driverClassName="com.microsoft.sqlserver.jdbc.SQLS erverDriver" url="jdbc:sqlserver://SQLSERVERNAME:1433;databaseName=mdss;forwardReadOnlyMethod=serverCur sor" username="admin" password="password" connectionProperties="" maxActive="75" maxIdle="75" maxWait="10000"/>
Cause 3
An incorrect password is specified for the SQL account created during the BlackBerry Enterprise Server installation and used by the BlackBerry MDS Services - Apache Tomcat Service.
Resolution
The username and password of the SQL account is recorded in the server.xml file located in C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDSS\jakarta-tomcat-5.5.9\conf\.
<Resource name="jdbc/db_server" auth="Container" type="javax.sql.DataSource" driverClassName="com.microsoft.sqlserver.jdbc.SQLS erverDriver" url="jdbc:sqlserver://SQLSERVERNAME:1433;databaseName=mdss;forwardReadOn lyMethod=serverCursor" username="admin" password="password" connectionProperties="" maxActive="75" maxIdle="75" maxWait="10000"/>
In the above example, “
admin” is the name of the SQL user account and “
password” is the password of the “admin” account. Verify the username and password of the account in the database program.
For MSDE- Ensure you are logged into the BlackBerry Enterprise Server as the BlackBerry service account.
- Go to Start > Run and type svrnetcn in the Open field.
- Type osql –E and press Enter.
- Type the following commands in the specified order:
1> sp_password @old = null, @new = 'password', @loginame ='admin’
2> go
where ‘password’ is the password listed in the server.xml file and ‘admin’ is the name of the SQL account listed in the server.xml file
For Microsoft SQL Server 2000- Go to Start > All Programs > Microsoft SQL Server > Enterprise Manager.
- Expand SQL Server.
- Expand the Security folder.
- Click Logins.
- Locate the SQL account that is recorded in the server.xml file.
- Right-click the account and select Properties.
- Re-type the password as it appears in the server.xml file.
- Click OK.
For Microsoft SQL Server 2005- Go to Start > All Programs > Microsoft SQL Server 2005 > SQL Server Management Studio.
- Expand the SQL Server.
- Expand the Security folder.
- Expand the Logins folder.
- Locate the SQL account that is recorded in the server.xml file.
- Right-click the account and select Properties.
- Re-type the password as it appears in the server.xml folder.
- Confirm the password and click OK.