Need To Allow Network Access under Tomcat Service

2004-09-21 Thread Curles, Michael L
Hi,

I have the need for servlet access to pull information off a network drive.  The 
servlet works fine when Tomcat
is started from a console window but fails when Tomcat is started as service.  I 
would rather run Tomcat as a 
service if possible.

I see that by default, all Tomcat services are registered to run as the system user 
(the LocalSystem account).  The LocalSystem account has no privileges to your network 
via any Windows-secured mechanism.  

I found some Apache documentation for setting up servlet network services access that 
stated the following:

You may want to create a separate account for running Apache service(s).  Especially, 
if you have to access network resources via Apache, this is strongly recommended.

1.  Create a normal domain user account, and be sure to memorize its password. 
2.  Grant the newly-created user a privilege of 'Log on as a service' and 'Act as 
part of the operating system.' 
On Windows NT 4.0 these privileges are granted via User Manager for Domains, but on 
Windows 2000 and XP you 
probably want to use Group Policy for propagating these settings. 
3.  Confirm that the created account is a member of the Users group. 
4.  Grant the account read and execute (RX) rights to all document and script 
folders 
(htdocs and cgi-bin for example). 
5.  Grant the account change (RWXD) rights to the Apache logs directory. 
6.  Grant the account read and execute (RX) rights to the Apache.exe binary 
executable.   

I have tried to duplicate this procedure for Tomcat thinking this will resolve my 
network access problem
via a servlet.  I'm using Windows 2000 and XP and are unable to locate the 'log on as 
service' and 'act as part of
the operating system' menu references mentioned above...

I'm using Tomcat 5.0.28 on Windows 2000 and XP at the moment...

Any ideas on resolving this issue would be appreciated...

Regards,
Mike
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Need To Allow Network Access under Tomcat Service

2004-09-21 Thread Cox, Charlie


 -Original Message-
 From: Curles, Michael L [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 21, 2004 11:57 AM
 To: Tomcat Users List
 Subject: Need To Allow Network Access under Tomcat Service
 
 Hi,
 
 I have the need for servlet access to pull information off a network
drive.
 The servlet works fine when Tomcat
 is started from a console window but fails when Tomcat is started as
 service.  I would rather run Tomcat as a
 service if possible.
 
 I see that by default, all Tomcat services are registered to run as the
 system user (the LocalSystem account).  The LocalSystem account has no
 privileges to your network via any Windows-secured mechanism.
 
 I found some Apache documentation for setting up servlet network services
 access that stated the following:
 
 You may want to create a separate account for running Apache service(s).
 Especially, if you have to access network resources via Apache, this is
 strongly recommended.
 
 1.Create a normal domain user account, and be sure to memorize its
 password.
 2.Grant the newly-created user a privilege of 'Log on as a service'
and
 'Act as part of the operating system.'
 On Windows NT 4.0 these privileges are granted via User Manager for
Domains,
 but on Windows 2000 and XP you
 probably want to use Group Policy for propagating these settings.
 3.Confirm that the created account is a member of the Users group.
 4.Grant the account read and execute (RX) rights to all document and
 script folders
 (htdocs and cgi-bin for example).
 5.Grant the account change (RWXD) rights to the Apache logs directory.
 6.Grant the account read and execute (RX) rights to the Apache.exe
binary
 executable.
 
 I have tried to duplicate this procedure for Tomcat thinking this will
resolve
 my network access problem
 via a servlet.  

You will need to set this up for tomcat since your servlet is accessing your
network. 

 I'm using Windows 2000 and XP and are unable to locate the
 'log on as service' and 'act as part of
 the operating system' menu references mentioned above...


Change your service to log on as your user and it will grant the correct
permissions.

If you need to view these permissions, go to Local Security Policy(Admin
tools), Local Policy, User Rights Assignments.
 
 I'm using Tomcat 5.0.28 on Windows 2000 and XP at the moment...
 
 Any ideas on resolving this issue would be appreciated...
 
 Regards,
 Mike
 

Charlie



RE: Network access

2003-06-13 Thread Edson Alves Pereira
We´ve already store all request and responses, but the problem is
when we have a lot of request at same time ( something like 100 requests per
second ). I´d like to improve the speed and make all resposes and requests
has data to transfer.

 --
 De:   Angus Mezick[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 12 de junho de 2003 18:08
 Para: Tomcat Users List
 Assunto:  RE: Network access
 
 Is local caching an option?  Any chance that external machine can somehow
 serve the information directly?  Perhaps using an IFRAME element?
 --Angus
 
  -Original Message-
  From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, June 12, 2003 4:57 PM
  To: 'Tomcat-User List'
  Subject: Network access
  
  
  Hello folks, i have an application that does many requests to an
  external machine, each request is a thread that send and 
  receive text to
  process, my problem here is, some times there are so many 
  requests and i
  fear this external machine can´t accept all requests or my application
  cannot get at same time high volume text through my network. 
  Could anyone
  point the best way to send and receive high volume´s network 
  information?
  
  Best regards,
  Edson
  
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Network access

2003-06-12 Thread Edson Alves Pereira
Hello folks, i have an application that does many requests to an
external machine, each request is a thread that send and receive text to
process, my problem here is, some times there are so many requests and i
fear this external machine can´t accept all requests or my application
cannot get at same time high volume text through my network. Could anyone
point the best way to send and receive high volume´s network information?

Best regards,
Edson




RE: Network access

2003-06-12 Thread Angus Mezick
Is local caching an option?  Any chance that external machine can somehow serve the 
information directly?  Perhaps using an IFRAME element?
--Angus

 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, June 12, 2003 4:57 PM
 To: 'Tomcat-User List'
 Subject: Network access
 
 
   Hello folks, i have an application that does many requests to an
 external machine, each request is a thread that send and 
 receive text to
 process, my problem here is, some times there are so many 
 requests and i
 fear this external machine can´t accept all requests or my application
 cannot get at same time high volume text through my network. 
 Could anyone
 point the best way to send and receive high volume´s network 
 information?
 
   Best regards,
   Edson
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]