aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 5.5 - File/Folder creation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.5 - File/Folder creation problem " Watch "Tomcat 5.5 - File/Folder creation problem " New topic
Author

Tomcat 5.5 - File/Folder creation problem

manohar amrutkar
Greenhorn

Joined: May 15, 2007
Posts: 5
Hi,

I have installed NetBeans IDE 5.5, which contains Bundled Tomcat 5.5.17 (runs at port 8084)And i have installed Tomcat 5.5 seperately on Port 8888.
I have an application which upload files on shared drive. (shared drive is from another system on which i have administrative rights like read/write/modify). When i run my application through NetBeans i am able to create the folder structure on shared drive by using File function,mkdirs().
But when i run the same application through Tomcat 5.5 which i have installed seperately it doesn't works. It's not able to create folder structure. why this is so? Please help me.

Second thing, the same application i can run through any system which we have in LAN in our company through NetBeans, but it doesn't run when i go by Tomcat 5.5 separately. Do i have to change firewall settings?? I did it almost, but -- my system ip is x.x.36.155 it works for all x.x.36.x but it doesn't work for x.x.40.x ?? why this is so?? please help me.

Thanks,
Manohar
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

How are you running the non-Netbeans version of Tomcat; as a Windows service?
If so, you will want to change the user under which the service runs.

By default, Windows services run as the 'system' user which has no access networked machines.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
manohar amrutkar
Greenhorn

Joined: May 15, 2007
Posts: 5
I used the UNC path to the directory, to resolve issue of file writing on shared drive and it's working. But my application still not able to open from x.x.40.x system. My system ip is x.x.36.x, i have changed system user to my account(XP login account) which is under the company domain. Do i have to change any firewall settings?? Because i am able to run it through bundled tomcat with NetBeans.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5.5 - File/Folder creation problem