Hi,
I am new in Tomcat realm.

I am working on SunOne Studio 4U1.

I have a web application that works fine in SunOne, but once I move it
to Tomcat area by creating a war file , it won't function right.

In the sunone, I am using an external Tomcat installation, the same one
that I move the application to.

Tomcat is 4.1 version.
My system is win2k advance server.

Here is what the app does:
1- through the browser, it gets the user entries
2- then a servlet passes the info to a bean, which will connect to a
database
by using connection pool system.
3 -it gets the data and upon that start another bean to get a file
information from
remote server.
4 -then it will copy it into the app directory; it will create directory
structure of the source file, and then copy the file into it.
5 - then the control goes back to the servlet to send the JSP page to
client for a page to download the file.

all is fine while in the sunone.
but as soon as I move to tomcat, it won't do the step 4, only. even the
step 5 does show exact information to user for downloading the file, the
hyperlink and other file info is there, but by clicking on it nothing
happen.

I checked the directory where the file should go. nothing is being
copied. and that is why the download is not working.
Now, if I put the file and directory there my self, and then fireup the
application, download would be OK. 

It seems that somehow the file and its directory structure are not being
copied as they do in the Sunone to the specified location on the webapps
directory.

I don't know it is related or not, but just as info:
when I run it from sunone, the browser shows this url:
..//localhost:8080/..

when I run it from tomcat, the browser shows this url:
..//127.0.0.1:8080/..

the code is exactly the same, and I am using the same tomcat
installation.

Question:
Does sunone studio has a special setup that the application runs just
fine, in compare to tomcat itself?

within the tomcat, I have checked server.xml and web.xml, and also the
application web.xml and I have not found any changes during transferring
the application from sunone to tomcat webapps directory.

upon request, I could send any files you ask. here is the structure of
my app:
it is based on MVC architecture.

\root\gateway.jsp // first page to request a form
\root\crcform.jsp  // view, entry form
\root\index.jsp
\root\show_client.jsp // view, download page
\root\error\server_busy.html, server_shutdown.html
\root\images\bullet.jpg, gennet.jpg
\root\incl\banner.jsp, copyright.jsp, side-bar.jsp
\root\login\error.jsp, login.jsp
\root\temp\  // for copying files during runtime
\root\web-inf\classes\domain\crcservice.java, client.java,
clientDAO.java // model
\root\web-inf\classes\util\Namingservice // model
\root\web-inf\classes\util\fileUtil\filescopy.java  // model, copy file
process
\root\web-inf\classes\util\fileUtil\runfile.java // pass db file info to
filescopy.java
\root\web-inf\classes\util\sql\connectionpool.java //model
\root\web-inf\classes\web\ceocrcservlet.java,
initializeconnectionpool.java // controller
\root\web-inf\web.xml


any suggestion would be great.

Thanks,


James Ostad
Application Developer/Analyst
TMS Department
Ex. 4457
E-mail: [EMAIL PROTECTED]


Out---> (3)



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

Reply via email to