楼主: 臧圩人

[精华] 在Tomcat下JSP、Servlet和JavaBean环境的配置

[复制链接]
论坛徽章:
0
161#
发表于 2006-4-4 20:49 | 只看该作者
小弟请问各位大哥, 照楼主的方法配置tomcat后 输入http://localhost:8080时候显示如下:

The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

--------------------------------------------------------------------------------

Please try the following:

Click the Refresh button, or try again later.

Open the localhost:8080 home page, and then look for links to the information you want.
If you typed the page address in the Address bar, make sure that it is spelled correctly.

Verify that the Internet access policy on your network allows you to view this this page.
If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the localhost:8080 home page.
HTTP 502 Proxy Error - The Uniform Resource Locator (URL) does not use a recognized protocol. Either the protocol is not supported or the request was not typed correctly. Confirm that a valid protocol is in use (for example, HTTP for a Web request). (12006)
Internet Security and Acceleration Server

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Background:
The gateway could not retrieve the requested page.

ISA Server: ftp.isa.czu.cn
Via: 1.0 FTP
URL: /
Time: 2006-4-4 12:53:50 GMT



请问是什么原因呢,是端口号不对吗???

使用道具 举报

回复
论坛徽章:
0
162#
发表于 2006-4-4 22:37 | 只看该作者
好象不是servlet.jar,是servlet-api.jar吧,我的是Tomcat 5.5

使用道具 举报

回复
论坛徽章:
4
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44ITPUB元老
日期:2009-05-27 11:36:49
163#
发表于 2006-4-5 08:56 | 只看该作者
thanks

使用道具 举报

回复
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
164#
发表于 2006-4-5 22:39 | 只看该作者
好贴,支持一下!

使用道具 举报

回复
论坛徽章:
0
165#
发表于 2006-4-14 19:59 | 只看该作者

不错....不过...

不错,不过我这个JSP网页,有关于JAVAbean的和数据库操作的都显示错误,单单 jsp代码的都可以正常运行的,
小弟弄了一整天了,就是弄不起来,显示
org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
Only a type can be imported. test.TestBean resolves to a package

An error occurred at line: 3 in the jsp file: /myapp/TestBean.jsp
Generated servlet error:
TestBean cannot be resolved or is not a type

An error occurred at line: 3 in the jsp file: /myapp/TestBean.jsp
Generated servlet error:
TestBean cannot be resolved or is not a type

........
了....

使用道具 举报

回复
论坛徽章:
2
开发板块每日发贴之星
日期:2006-02-09 01:07:34开发板块每日发贴之星
日期:2006-04-22 01:02:11
166#
发表于 2006-4-21 16:52 | 只看该作者
受教了

使用道具 举报

回复
论坛徽章:
1
行业板块每日发贴之星
日期:2009-10-21 01:01:01
167#
发表于 2006-4-22 23:42 | 只看该作者
不错不错

使用道具 举报

回复
论坛徽章:
0
168#
发表于 2006-5-2 15:05 | 只看该作者
我将index.jsp放到myapp 后,打开ie,输入http://localhost:8080/myapp/index.jsp会出现The requested resource (/myapp/index.jsp) is not available.
而我将index.jsp改名为showTime.jsp放到ROOT中却能成功显示时间.
请问这是怎么回事?

使用道具 举报

回复
论坛徽章:
0
169#
发表于 2006-5-2 15:22 | 只看该作者
还有,当我编译Test.java时通过,但运行Test却出错

使用道具 举报

回复
论坛徽章:
0
170#
发表于 2006-5-12 16:13 | 只看该作者
我到第四步就下不去了
那个Test.java
不能编译
是我的配置哪里错了吗

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表