之前都是用weblogic
现在学习tomcat
启动myEclipse
新建一个web project
名字就叫做ceshi
在WebRoot下面新建一张页面login.jsp
在web.xml里面的设置
<welcome-file-list>
<welcome-file>/login.jsp</welcome-file>
</welcome-file-list>
发布,IDE中启动tomcat
IE中输入http://127.0.0.1:8080
一只猫出来了
IE中输入http://127.0.0.1:8080/ceshi
却不出来,
错误:“type Status reportmessage /ceshi/description The requested resource (/ceshi/) is not available.
”这到底是什么原因啊??
现在学习tomcat
启动myEclipse
新建一个web project
名字就叫做ceshi
在WebRoot下面新建一张页面login.jsp
在web.xml里面的设置
<welcome-file-list>
<welcome-file>/login.jsp</welcome-file>
</welcome-file-list>
发布,IDE中启动tomcat
IE中输入http://127.0.0.1:8080
一只猫出来了
IE中输入http://127.0.0.1:8080/ceshi
却不出来,
错误:“type Status reportmessage /ceshi/description The requested resource (/ceshi/) is not available.
”这到底是什么原因啊??
解决方案 »
- 反射问题 ,知道类名和包名,怎么实例化一个对象??
- 关于散列码
- 求助高手 如何在XMLRPC使用代理 顶者有分
- 菜鸟求教!书上的一段代码看不懂·%¥#(在线等)
- 一个Rome Charset like" ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ" 乱码问题,高人牛人路过的人都帮看看
- 我准备做一个类似PL/SQL的工具(要跨平台),想要特定解吸库(Oracle/mysql/sqlserver/...)结构,是不是要用到他们专用的java api
- 请问怎样监听多个端口?
- 结果集的关闭问题!
- weblogic的licence。
- 如何设定Panel的大小,可不可以控制用GridLayout中组件的大小?
- 我是JAVA 初学者
- jdbc连接mysql问题
这个页面。
或者你直接把地址换成:http://127.0.0.1:8080/ceshi/login.jsp应该就可以啦
就是运行服务器左边那个按钮
部署到TOMCAT里面去
http://127.0.0.1:8080/ceshi/login.jsp看看能不能出来
如果不行很有可能是没部署好
如果去掉
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
就可以了,但是我这个用的是spring,不能去掉啊
怎么办??
原来是这样的:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>我改成:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>就行了
<welcome-file>/login.jsp </welcome-file>
</welcome-file-list> 改为<welcome-file-list>
<welcome-file>login.jsp </welcome-file>
</welcome-file-list>