Redian新闻
>
HTTP Status 404 The requested resource (/abc/index.jsp) is not available.
avatar
HTTP Status 404 The requested resource (/abc/index.jsp) is not available.# Java - 爪哇娇娃
l*o
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!!!
avatar
A*o
2
what does the tomcat server say in its log?
or when you deploy it?

【在 l****o 的大作中提到】
: 各位,我有一个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!!!

avatar
l*o
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
avatar
g*g
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 的大作中提到】
: 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

avatar
l*o
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 的大作中提到】
: 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

avatar
g*g
6
That should be enough most of the time, sometimes working directory
will cache your jsp though.

both directories.

【在 l****o 的大作中提到】
: 请问 “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

avatar
A*o
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 的大作中提到】
: 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

avatar
l*o
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 的大作中提到】
: 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

avatar
m*t
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 的大作中提到】
: 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

avatar
l*o
10

t
Thanks for the help~~~~~!

【在 m******t 的大作中提到】
:
: 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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。