JiveJdon Community Forums
在线218人 Home | 论坛 | 培训咨询 | 精华 | 查搜 | 注册 | 登陆 |
首页 » 论坛 » 项目工程开发经验谈
???en_US.forumThreadPrev.name??? 上一主题
Go back to the topic listing   返回主题列表
???en_US.forumThreadNext.name??? 下一主题
这个主题共有 1 回复 / 1 页 [ ]  发表新帖子  回复该主题贴
abcdefg

发表文章: 2
注册时间: 2004年02月03日 13:45
给他发消息
如何配置jbuilder? 发表: 2004年02月04日 17:40 回复
我用jbuilder新建了一个非常简单的webapp程序,这个程序只有一个index.jsp文件,在web.xml文件中设置表单验证或者是basic验证,
如下:
<security-constraint>
<display-name>test</display-name>
<web-resource-collection>
<web-resource-name>test resource</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>test</realm-name>
</login-config>
在运行该程序时,jbuilder总是报错:
ContextConfig[]: No Realm has been configured to authenticate against

ContextConfig[]: Marking this application unavailable due to previous error(s)
程序也运行不起来,我尝试修改了jbuilder自带的tomcat的server.xml文件的realm和jbuilder生成的server8080.xml文件,可是一点用也没有。但是如果我将这个程序打包放在tomcat中,启动tomcat却能看见效果。

这是为什么?我应该怎么做才能使程序能在jbuilder中直接运行起来呢?谢谢指教!

abcdefg

发表文章: 2
注册时间: 2004年02月03日 13:45
给他发消息
Re: 如何配置jbuilder? 发表: 2004年02月04日 17:43 回复
以上看不见的配置是这样的:

<security-constraint>
<display-name>test</display-name>
<web-resource-collection>
<web-resource-name>test resource</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>role1</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>test</realm-name>
</login-config>
这个主题有 1 回复 / 1 页 [ ]
???en_US.forumThreadPrev.name??? 上一主题
Go back to the topic listing   返回主题列表    返回页首  返回页首
???en_US.forumThreadNext.name??? 下一主题
热点TAG: AOP cache DDD EJB 集群 设计模式 Hibernate IOC JiveJdon OO RBAC Spring Struts
查询本论坛内 回复超过的热门帖子
快速发表回复
标题
 
粗体 斜体 下划线 插入图片 插入代码 插入url链接 插入附件
内容
 

解惑之道在J道 ,打造中国最具影响力的的企业软件社区
OpenSource JIVEJDON v3.0 Powered by JdonFramework Code © 2002-08 jdon.com

anti spam