tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mayne, Peter" <PeterMa...@ap.spherion.com>
Subject RE: Tomcat4.1.14 not working as a NT service??
Date Tue, 27 May 2003 06:05:20 GMT
So did you check what user the service is running as?

PJDM
-- 
Peter Mayne
Technology Consultant
Spherion Technology Solutions
Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602
T: 61 2 62689727  F: 61 2 62689777

> -----Original Message-----
> From: Bikash Paul [mailto:bikashpaul_2001@yahoo.com] 
> Sent: Tuesday, 27 May 2003 4:01 PM
> To: Tomcat Users List
> Subject: RE: Tomcat4.1.14 not working as a NT service??
> 
> 
> Hi,
> 
> Iam trying to write file from my WinNT4.0 computer on
> which Tomcat is running as a service on my network
> computer's "D:\"
> directory(\\192.168.3.2\d\weft3.zip)through my swing
> interface.Then it is giving me below error in my
> servlet log file.Plz help me Iam facing this problem
> for last one month but till now I couldn't find any
> proper solution of it.Eagerly waiting for some one
> reply.
> 
> 2003-05-27 11:16:03
> StandardWrapperValve[RecvServlet_data]:
> Servlet.service() for servlet RecvServlet_data threw
> exception<br>
> java.io.FileNotFoundException:
> \\192.168.3.2\d\weft3.zip (Access is denied)
> 	at java.io.FileOutputStream.open(Native Method
> 	at
> java.io.FileOutputStream.<init>(FileOutputStream.java:102)
> 	at
> java.io.FileOutputStream.<init>(FileOutputStream.java:62)
> 	at
> java.io.FileOutputStream.<init>(FileOutputStream.java:132)
> 
> 
> Regards
> Bikash
> 
> --- "Longley, Andrew" <andrew.longley@mindflow.com>
> wrote:
> > Bikash,
> > 
> > Besides the other poster who suggested you look at
> > the permission level
> > of the user you are running the service as, can you
> > verify that you have
> > included all the classes you need in your classpath?
> >  And that you have
> > included any additional Windows dlls and so forth in
> > the path?
> > Regarding the classpath, there is doco on the
> > classloader which
> > specifies locations that Tomcat automatically polls
> > for jar files and
> > classes.  If you have classes or jars in other
> > locations, or that are
> > not of type .class or .jar, you may need to add them
> > explicitly to the
> > -Djava.class.path parameter.  If you have additional
> > Windows dlls, you
> > can specify a -path parameter and include them. 
> > These are generally the
> > reasons I've found that Tomcat as a service does not
> > run properly, when
> > running from the command line works fine.  I don't
> > believe Tomcat as a
> > service does not inherit any user classpath or path
> > variables.  If in
> > doubt, add them in, and see if it helps.
> > 
> > And you don't need to keep uninstalling and
> > reinstalling the service.
> > You can edit the service in the registry, if you're
> > careful.
> > 
> > Regards,
> > Andrew
> > 
> > -----Original Message-----
> > From: Bikash Paul [mailto:bikashpaul_2001@yahoo.com]
> > 
> > Sent: Wednesday, May 14, 2003 11:42 PM
> > To: Tomcat Users List
> > Subject: Tomcat4.1.14 not working as a NT service??
> > 
> > Hi all friends,
> > 
> > IAM POSTING THIS QUERY AGAIN,HOPE SOMEONE HELP ME
> > 
> > I am running Tomcat4.1.24 as a NT service.And I have
> > created it through below batch file:-
> > 
> > tomcat -install "Apache Tomcat"
> > "C:\jdk1.3.0_02\jre\bin\classic\jvm.dll" -Xmx256m
> > -Xms128m
> >
> -Djava.class.path="d:\Tomcat\jakarta-tomcat-4.1.24\bin\bootstrap.jar"
> > -Dcatalina.home="d:\Tomcat\jakarta-tomcat-4.1.24"
> > -start org.apache.catalina.startup.BootstrapService
> > -params start -stop
> > org.apache.catalina.startup.BootstrapService -params
> > stop -out
> > "d:\Tomcat\jakarta-tomcat-4.1.24\logs\stdout.log"
> > -err
> > "d:\Tomcat\jakarta-tomcat-4.1.24\logs\stderr.log"
> > 
> > And it also created service on my WinNT4.0 server
> > successfully.And I have also tested it by opening
> > the
> > home page of Tomcat server on IE by typing in
> > address
> > bar (http://127.0.0.1:8080) and also shows me the
> > home
> > page successfully.But my problem is when I start my
> > application for uploading files then Tomcat server
> > not
> > working(means not writing file on destination).My
> > application is a Uploading software for transfering
> > files from one destination to another and I have
> > used
> > swing for front end(for reading files) and for back
> > end I have used servlet(for writing files).But when
> > I
> > use Tomcat as a stand alone not as NT service then
> > it
> > is working fine.Can any one plz guide me how I can
> > slove my problem.Eagerly waiting for reply.
> > 
> > Regards
> > Bikash
> > 
> > 
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> > http://search.yahoo.com
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference with,

use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable purpose in the ordinary course of 
Spherion's 
business, including forwarding this email internally or disclosing it to a third party. All

personal information collected by Spherion will be handled in accordance with 
Spherion's Privacy Policy. If you have received this email in error, please notify the 
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s) supplied in 
this email and any attachments without first entering into a contractual agreement with 
Spherion. You further agree not to divulge any information contained in this document 
to any person(s) or entities without the express permission of Spherion.



Mime
View raw message