由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - HTTP Status 404 The requested resource (/abc/index.jsp) is not available.
相关主题
请教一个maven 管理项目的问题Question about Tomcat
Run Servlet with Tomcatwhere to execute java program?
J2EE: why is my .jsp not refreshed?愣是笨到家----整不明白applet的path
请问JSP里这个怎么设The requested resource is not available.
Tomcat Hot deploymentjboss hot deployment in eclipse
tomcat连接mysql求助今天一天时间把tomcat 调明白了
有没有人熟悉tomcat?急!j2ee启动时, 启动了tomcat吗?
URL 的问题怎么解决?tomcat作server,jsp访问的文件必须在webapps/ROOT/?
相关话题的讨论汇总
话题: tomcat话题: abc话题: resource话题: webapps话题: war
进入Java版参与讨论
1 (共1页)
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 的大作中提到】
: 各位,我有一个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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 请问 “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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
:
: 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.

1 (共1页)
进入Java版参与讨论
相关主题
tomcat作server,jsp访问的文件必须在webapps/ROOT/?Tomcat Hot deployment
Re: tomcat作server,jsp访问的文件必须在webapps/ROOtomcat连接mysql求助
大家愿意讨论一下log4j么有没有人熟悉tomcat?急!
still web.xml questionURL 的问题怎么解决?
请教一个maven 管理项目的问题Question about Tomcat
Run Servlet with Tomcatwhere to execute java program?
J2EE: why is my .jsp not refreshed?愣是笨到家----整不明白applet的path
请问JSP里这个怎么设The requested resource is not available.
相关话题的讨论汇总
话题: tomcat话题: abc话题: resource话题: webapps话题: war