社区
Web 开发
帖子详情
请问resin中的设置
jacob1
2001-10-22 09:06:53
是否Servlet中用到的class文件都要放到resin安装目录下的doc\web-inf\classes文件夹中才行啊?
我试过放在我自己的用户文件夹webapps\test\web=inf\classes\中,但是执行不了,提示说
404 Not Found
/test/servlet/HelloServlet was not found on this server.
我该如何设定属于自己的servlet路径呢?
...全文
118
6
打赏
收藏
微信扫一扫
点击复制链接
分享
下载分享明细
分享
举报
写回复
6 条
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
wujj
2002-04-25
请问 jacob1(林叶)
是怎么解决的呀.....
打赏
举报
回复
赞
jacob1
2001-10-24
hey,chinallboy大侠,我搞定了,哈哈,谢谢,是我一时疏忽~ 给分!
打赏
举报
回复
赞
chinaillboy
2001-10-23
classpath=c:\.....\webapps\test\web=inf\classes\
打赏
举报
回复
赞
jacob1
2001-10-23
很抱歉,我是菜鸟一个,虽然找到了\conf\resin.conf 里面的classpath,但里面的语法和大侠说的好像有点不同呀,里面的classpath是这样设定的:
<classpath id='WEB-INF/classes'
source='WEB-INF/classes'
compile='true'/>
那我需要将哪部分改成大侠所说的classpath=c:\resin\webapps\test\web=inf\classes\ 呢?
我尝试了好多种改法还是不得要领,请chinaillboy大侠继续指教小弟,谢谢~
打赏
举报
回复
赞
chinaillboy
2001-10-23
到\conf\resin.conf里改 <classpath ......
打赏
举报
回复
赞
jacob1
2001-10-23
我的意思是我自己写的java文件编译完的class文件喔,
例如,resin的安装目录是c:
我把编译好的HelloServlet.class放在c:\resin\webapps\test\web-inf\classes文件夹中,然后在地址栏键入地址http:\\localhost:8080\test\servlet\HelloServlet
就出现404错误了
但要是把那HelloServlet.class放在c:\resin\doc\web-inf\classes\中,在地址栏键入http:\\localhost\servlet\HelloServlet便可以执行了
这是否说明在resin中只能把class文件放在doc\web-inf\classes\才行呢?
还是我没有设置好用户自定义的文件夹呢? 请指教,我该如何设定属于自己的servlet路径呢?
打赏
举报
回复
赞
相关推荐
Servlet的配置
1.运用tomcat服务器访问动态网页 首先在tomcat路径下的webapps新建一个文件夹(test) 该文件下面必须有WEB-INF ,WEB-INF下面必须有一个web.xml classes文件夹可有可无,一般存放class文件!(tomact--webapps--test--WEB-INF--web.xml/classes classes--class(servlet文...
java web笔试题集锦经典2011年8月经典笔试题
(1) 假设在helloapp应用
中
有一个hello.jsp,它的文件路径如下: %CATALINA_HOME%/webapps/helloapp/hello/hello.jsp c 那么在浏览器端访问hello.jsp的URL是什么? 选项: (A) http://localhost:8080/hello.jsp (B) http://localhost:8080/helloapp/hello.jsp (C) http://localhost:8080/helloapp/hello/hello.jsp (2)假设在helloapp应用
中
有一个HelloServlet类,它位于org.javathinker包下,那么这个类的class文件应该放在什么目录下? (2) 选项: (A) helloapp/HelloServlet.class (B) helloapp/WEB-INF/HelloServlet.class (C) helloapp/WEB-INF/classes/HelloServlet.class (D) helloapp/WEB-INF/classes/org/javathinker/HelloServlet.class (3)假设在helloapp应用
中
有一个HelloServlet类,它在web.xml文件
中
的配置如下:
HelloServlet
org.javathinker.HelloServlet
HelloServlet
/hello
那么在浏览器端访问HelloServlet的URL是什么? 选项: (A) http://localhost:8080/HelloServlet (B) http://localhost:8080/helloapp/HelloServlet (C) http://localhost:8080/helloapp/org/javathinker/hello (D) http://localhost:8080/helloapp/hello
servlet part2
servlet part 2 servlet的固定格式: web文件夹(根据项目命名)目录
中
包含 ——****.html对应的html页面 |____WEB-INF目录 WEB-INF目录
中
包含 ——web.xml |____classes文件夹 web.xml提供路径与servlet的映射关系,把/hello这个路径,映射到HelloServlet这个类上 classes为项目的class文件输出由原来 Servlet 需要提供对应的doGet() 与 doPost()方法 doGet(
如果想在
resin
中
建立多个站点,应该怎么配置
resin
?
如果想在
resin
中
建立多个站点,应该怎么配置
resin
? --------------------------------------------------------------- 只要配置一下
resin
的conf文件就可以了。 /usr/local/webapps D:/webapps
jfreechart 在jsp页面显示所画的图片(
resin
服务器的servelet配置是关键)(图片只过内存)...
用的web服务器是
resin
服务器,在配置web.xml时需要注意,其实
resin
服务器的web.xml服务器配置和tomcat服务器的配置很像, 1. 我第一次按照自己的想法,想当然的在
resin
-pro-3.1.4a\webapps\
resin
-doc\WEB-INF下的
resin
-web.xml配置servelet,因为看见这个文件里面的很多语句很像配置servlet的。启...
发帖
Web 开发
微信扫一扫
点击复制链接
分享社区
下载分享明细
8.0w+
社区成员
34.1w+
社区内容
Java Web 开发
社区管理员
加入社区
帖子事件
创建了帖子
2001-10-22 09:06
社区公告
暂无公告