l****o 发帖数: 207 | 1 各位,我有一个war file,在local machine tomcat 上没有任何问题。
可是我把它上传到 unix server 上后,就总是出这个错误:
say, the war file name is abc.war, when I restart tomcat server, I got the
error
the requested resource /abc/index.jsp is not available.
NO any useful log is generated.
Any help is really appreciated!! Thanks!!! |
A**o 发帖数: 1550 | 2 what does the tomcat server say in its log?
or when you deploy it?
【在 l****o 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 各位,我有一个war file,在local machine tomcat 上没有任何问题。 : 可是我把它上传到 unix server 上后,就总是出这个错误: : say, the war file name is abc.war, when I restart tomcat server, I got the : error : the requested resource /abc/index.jsp is not available. : NO any useful log is generated. : Any help is really appreciated!! Thanks!!!
|
l****o 发帖数: 207 | 3 well..actually I have figured out how, but I could not explain why.
I usually deploy the war file in this way: stop tomcat, clean all previous
version directory and file in both webapps and work directories, copy the
new version war file into webapps and restart tomcat.
While I deploied abc.war as described, it has the error of http 404 complaining that the resource is not available. I have noticed that the "org/apache/.." directory was not created under work/Catalina/localhost/abc as well.
Late |
g*****g 发帖数: 34805 | 4 You better remove all your old deployment before you
do new ones.
complaining that the resource is not available. I have noticed that the "org
/apache/.." directory was not created under work/Catalina/localhost/abc as
well.
is
【在 l****o 的大作中提到】![](/moin_static193/solenoid/img/up.png) : well..actually I have figured out how, but I could not explain why. : I usually deploy the war file in this way: stop tomcat, clean all previous : version directory and file in both webapps and work directories, copy the : new version war file into webapps and restart tomcat. : While I deploied abc.war as described, it has the error of http 404 complaining that the resource is not available. I have noticed that the "org/apache/.." directory was not created under work/Catalina/localhost/abc as well. : Late
|
l****o 发帖数: 207 | 5 请问 “remove all old deployment" 指的是什么?in webapps or work folder or
both?
As I have said, I have deleted the directory abc and file abc.war from both directories.
What else I should remove?
Thanks
【在 g*****g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : You better remove all your old deployment before you : do new ones. : : complaining that the resource is not available. I have noticed that the "org : /apache/.." directory was not created under work/Catalina/localhost/abc as : well. : is
|
g*****g 发帖数: 34805 | 6 That should be enough most of the time, sometimes working directory
will cache your jsp though.
both directories.
【在 l****o 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 请问 “remove all old deployment" 指的是什么?in webapps or work folder or : both? : As I have said, I have deleted the directory abc and file abc.war from both directories. : What else I should remove? : Thanks
|
A**o 发帖数: 1550 | 7 do you say you have both abc.war and abc folder under webapps?
complaining that the resource is not available. I have noticed that the "org
/apache/.." directory was not created under work/Catalina/localhost/abc as
well.
is
【在 l****o 的大作中提到】![](/moin_static193/solenoid/img/up.png) : well..actually I have figured out how, but I could not explain why. : I usually deploy the war file in this way: stop tomcat, clean all previous : version directory and file in both webapps and work directories, copy the : new version war file into webapps and restart tomcat. : While I deploied abc.war as described, it has the error of http 404 complaining that the resource is not available. I have noticed that the "org/apache/.." directory was not created under work/Catalina/localhost/abc as well. : Late
|
l****o 发帖数: 207 | 8 Right. I copied the abc.war file under webapps, and then start the tomcat,
and the war will be unzipped to directory abc. That is how we deploy a war
file, isn't it?
org
【在 A**o 的大作中提到】![](/moin_static193/solenoid/img/up.png) : do you say you have both abc.war and abc folder under webapps? : : complaining that the resource is not available. I have noticed that the "org : /apache/.." directory was not created under work/Catalina/localhost/abc as : well. : is
|
m******t 发帖数: 2416 | 9
I don't recall tomcat would explode a war right in webapps itself. It
usually does that in tmp (or work?).
Also, unless you are running an extremely old tomcat version, you shouldn't
have to manually delete the files or restart tomcat. Just dropping the war
into webapps with the tomcat running should cause the webapp to be
redeployed.
【在 l****o 的大作中提到】![](/moin_static193/solenoid/img/up.png) : Right. I copied the abc.war file under webapps, and then start the tomcat, : and the war will be unzipped to directory abc. That is how we deploy a war : file, isn't it? : : org
|
l****o 发帖数: 207 | 10
t
Thanks for the help~~~~~!
【在 m******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : : I don't recall tomcat would explode a war right in webapps itself. It : usually does that in tmp (or work?). : Also, unless you are running an extremely old tomcat version, you shouldn't : have to manually delete the files or restart tomcat. Just dropping the war : into webapps with the tomcat running should cause the webapp to be : redeployed.
|