提示权限错误,求助.是否jaas配置问题,在tomcat上的

07-04-19 kelson
Something happened...

对不起,没有权限操作,例如:有跟帖的帖子不能修改删除。

或者发生系统错误500,请联系管理员

日志:

java.lang.NoClassDefFoundError

at com.jdon.container.factory.ContainerBuilderFactory.fetchContainerConfig(ContainerBuilderFactory.java:72)

at com.jdon.container.factory.ContainerBuilderFactory.createContainerBuilder(ContainerBuilderFactory.java:58)

at com.jdon.container.startup.ContainerSetupScript.initialized(ContainerSetupScript.java:55)

at com.jdon.container.startup.ContainerSetupScript.prepare(ContainerSetupScript.java:77)

at com.jdon.strutsutil.InitPlugIn.init(InitPlugIn.java:83)

at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)

at javax.servlet.GenericServlet.init(GenericServlet.java:211)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(Unknown Source)

kelson
2007-04-19 00:26
有人能解答没?谢谢了。

banq
2007-04-19 11:29
tomcat是半残废J2EE服务器,不支持容器jaas,所以几种种选择:

1. 使用支持JAAS的框架如ACEGI(Spring使用),前提如果你不觉得复杂

2. 使用支持JAAS的容器如JBoss Weblogic Wepshere经过认证的J2EE服务器,前提是,每个服务器JAAS配置不一致,需要看说明书。

3. 配置tomcat这样弱服务器,前提是你是高手。

这些我已经在jivejdon3中说明了,不推荐tomcat

kelson
2007-04-20 00:38
谢谢板桥。我已经仔细看过你的jivejdon3说明文档了,知道不推荐使用tomcat,所以我才偏要使用tomcat的,因为我想了解多点tomcat。谢谢你的回答,我找下资料。

猜你喜欢