Discussion Locked

JavaWebServer2.0

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

if javawebserver starts automatically when i
boot my NT system , i am not able to excess the database from the servlet,it gives error.
But if i go to controls->Setting->services
and stop the Javawebserver and runs it from
the MS-propt by typing Httpd. My servlet able
to access the database.

What may be the reason.

5 replies

by gbworld

In the first instance, you are running the server as a service. In the second, you are running it as a standalone application. Even though the server may seem to run the same way, it is being treated differently.

I am not sure why this is not running properly as a server, but you can circumvent this activity by making a batch script and putting it in the startup routine(s). This will have the server running, but as an executable, not a service.

Not knowing what server, etc., I cannot sayif this is an optimal solution.

Gregory A. Beamer
MCP: +I, SE, SD, DBA

by astute

Services in NT has to be defined to run using the credentials of an NT user account.
By default they run under localsystem account,which doesnt have proper pressmission to access the resource, this is the reason u r unable to access the database in the first case.

When u manually start the service , the service runs with your account crediantials
which makes it work this way.

The solution is to run the service under a valid service account

The steps may be like

Go to control panel/services. Choose the service and then choose startup. Check what NT account is being used & use a proper account.

If the account details seem ok, then check that it has "logon as a service" user right (with user manager).

Make sure that the password is correct and check with NT user manager that the account has not been deleted or expired.

Hope this helps

Good luck
sharan

This discussion is closed to new replies.