This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5.5 - File/Folder creation problem

 
manohar amrutkar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
manohar amrutkar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic