web app works in sunone but after moving to tomcat it won't

My web application works just fine in sunone studio, but once I move it to tomcat by creating a war file, it wont.

the part of app that doesn't work is the file and directory copy part. everthing else is fine:server access, database connectivity, and login.

if the files and directory are there, it is working, but if they are not there it won't create the directory and copy the file, what it is supposed to do.

one thing I noticed was the browsers status bar:

running it from sunone, it comes up like this:

..//localhost:8080/...

running it from tomcat, it comes up like this:

..//127.0.0.1:8080/

I don't know if that is a clue to a problem.

I am working under window2000 server.

any hint or suggestion would be great.

Thanks,

James

[824 byte] By [701739] at [2007-11-25 10:35:41]
# 1
Do you get any kind of error message, or does the program simply complete without the files being copied?Can you post the error messages (if any) and the code snippit?
jetsons at 2007-7-1 21:24:45 > top of Java-index,Development Tools,Java Tools...
# 2

Well the localhost vs. the IP address cannot be the cause for the problem. From what you are saying is that the application actually works and the WAR does get deployed and the application does some file system operations and those do not work.

That can be for several reasons, make sure that the security manager in the external Tomcat allows this and also that there is read/write access to place you are trying to do the filesystem operations to. Are those directories inside your context path?

Also, some exception stacks would be helpful.

Regs Jirka

Jiri Prazak at 2007-7-1 21:24:45 > top of Java-index,Development Tools,Java Tools...