Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.4
-
None
-
None
-
windows2000 pc,tomcat 4.0,jetspeed 1.4,DB2 8.0
Description
After executing the ddl statements and populating the database jetspeed on IBM DB2 and modifying the torque.properities, it seems that the jetspeed can not still work with DB2!
there is some error information in file jetspeed.log as followed.
ERROR BasePeer - java.lang.NullPointerException: There was no DataSourceFactory configured for the connection default
2004-07-03 15:23:34,046 [HttpProcessor[8080][4]] ERROR BasePeer - A FATAL ERROR has occurred which should not have happened under any circumstance. Please notify the Turbine developers <turbine-dev@jakarta.apache.org> and give as many details as possible (including the error stack trace).
java.lang.Error: Error in BasePeer.initTableSchema(TURBINE_USER): There was no DataSourceFactory configured for the connection default
at org.apache.torque.util.BasePeer.initTableSchema(BasePeer.java:250)
at org.apache.torque.util.BasePeer.initTableSchema(BasePeer.java:225)
at org.apache.jetspeed.om.security.turbine.TurbineUserPeer.<clinit>(TurbineUserPeer.java:87)
at org.apache.jetspeed.om.security.turbine.BaseTurbineUser.<clinit>(BaseTurbineUser.java:36)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initClass(BaseTurbineUserPeer.java:141)
at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.<clinit>(BaseTurbineUserPeer.java:128)
at org.apache.jetspeed.services.security.turbine.TurbineUserManagement.getUser(TurbineUserManagement.java:174)
at org.apache.jetspeed.services.JetspeedUserManagement.getUser(JetspeedUserManagement.java:97)
at org.apache.jetspeed.services.security.turbine.TurbineAuthentication.getAnonymousUser(TurbineAuthentication.java:226)
at org.apache.jetspeed.services.JetspeedAuthentication.getAnonymousUser(JetspeedAuthentication.java:102)
at org.apache.jetspeed.services.JetspeedSecurity.getAnonymousUser(JetspeedSecurity.java:174)
at org.apache.jetspeed.modules.actions.TemplateSessionValidator.doPerform(TemplateSessionValidator.java:97)
at org.apache.jetspeed.modules.actions.JetspeedSessionValidator.doPerform(JetspeedSessionValidator.java:114)
at org.apache.turbine.modules.Action.perform(Action.java:87)
at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at org.apache.turbine.Turbine.doGet(Turbine.java:521)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1125)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:430)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:354)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:409)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:57)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1005)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098)
at java.lang.Thread.run(Thread.java:536)
2004-07-03 15:23:34,125 [HttpProcessor[8080][4]] DEBUG BaseClientRegistry - ClientRegistry: Looking for client with useragent :Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2)
2004-07-03 15:23:34,125 [HttpProcessor[8080][4]] DEBUG BaseClientRegistry - ClientRegistry: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2) does not match .MSIE 5.
2004-07-03 15:23:34,125 [HttpProcessor[8080][4]] DEBUG BaseClientRegistry - ClientRegistry: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2) matches .Mozilla/4.
2004-07-03 15:23:34,125 [HttpProcessor[8080][4]] DEBUG CapabilityMapFactory - CapabilityMap: User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2) mapped to ns4text/html-HTML_3_2/HTML_JAVA/HTML_JAVASCRIPT/HTML_TABLE/HTML_FORM/HTML_FRAME/HTML_IMAGE/HTML_CSS1/HTML_LAYER/HTML_PLUGIN/HTML_DOM_NS4/HTTP_COOKIE/
2004-07-03 15:23:34,187 [HttpProcessor[8080][4]] ERROR BaseJetspeedUser - getUserId(): null
java.lang.NullPointerException
at org.apache.jetspeed.om.security.BaseJetspeedUser.getUserId(BaseJetspeedUser.java:133)
at org.apache.jetspeed.om.security.BaseJetspeedUser.setUserId(BaseJetspeedUser.java:147)
at org.apache.jetspeed.services.security.nosecurity.FakeJetspeedUser.<init>(FakeJetspeedUser.java:74)
at org.apache.jetspeed.modules.actions.JetspeedAccessController.doPerform(JetspeedAccessController.java:132)......
in fact, DataSourceFactory was configured in the file torque.properties.
i need help, thank you very much!
and i want to make friends with every one here,my email is zhanglaifeng@163.com, i hope sincerely someone who worked jetspeed with db2 successfully can give some advice to me !