pentaho爱好者,pentaho中国爱好者社区

 找回密码
 注册
查看: 4453|回复: 2

pentaho Bi server4.8.0切换mysql登录不了

[复制链接]
Ashes_烬 发表于 2015-3-30 17:49:30 | 显示全部楼层 |阅读模式
本帖最后由 Ashes_烬 于 2015-3-30 18:00 编辑

下载的4.8.0版本,切换为mysql后启动不报错,http://localhost:8080/pentaho/Login 登录出现错误。

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 82 in the jsp file: /jsp/PUCLogin.jsp
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
79:         <%
80:           String ua = request.getHeader("User-Agent").toLowerCase();
81:           if (!"desktop".equalsIgnoreCase(request.getParameter("mode"))) {               
82:                 if ("ipad".contains(ua) || "ipod".contains(ua) || "iphone".contains(ua) || "android".contains(ua) || "mobile".equalsIgnoreCase(request.getParameter("mode"))) {               
83:                   IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class, PentahoHttpSessionHelper.getPentahoSession(request));
84:                   List<String> pluginIds = pluginManager.getRegisteredPlugins();
85:                   for (String id : pluginIds) {


An error occurred at line: 82 in the jsp file: /jsp/PUCLogin.jsp
The method contains(CharSequence) in the type String is not applicable for the arguments (String)
79:         <%
80:           String ua = request.getHeader("User-Agent").toLowerCase();
81:           if (!"desktop".equalsIgnoreCase(request.getParameter("mode"))) {               
82:                 if ("ipad".contains(ua) || "ipod".contains(ua) || "iphone".contains(ua) || "android".contains(ua) || "mobile".equalsIgnoreCase(request.getParameter("mode"))) {               
83:                   IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class, PentahoHttpSessionHelper.getPentahoSession(request));
84:                   List<String> pluginIds = pluginManager.getRegisteredPlugins();
85:                   for (String id : pluginIds) {


An error occurred at line: 82 in the jsp file: /jsp/PUCLogin.jsp
The method contains(CharSequence) in the type String is not applicable for the arguments (String)
79:         <%
80:           String ua = request.getHeader("User-Agent").toLowerCase();
81:           if (!"desktop".equalsIgnoreCase(request.getParameter("mode"))) {               
82:                 if ("ipad".contains(ua) || "ipod".contains(ua) || "iphone".contains(ua) || "android".contains(ua) || "mobile".equalsIgnoreCase(request.getParameter("mode"))) {               
83:                   IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class, PentahoHttpSessionHelper.getPentahoSession(request));
84:                   List<String> pluginIds = pluginManager.getRegisteredPlugins();
85:                   for (String id : pluginIds) {


An error occurred at line: 82 in the jsp file: /jsp/PUCLogin.jsp
The method contains(CharSequence) in the type String is not applicable for the arguments (String)
79:         <%
80:           String ua = request.getHeader("User-Agent").toLowerCase();
81:           if (!"desktop".equalsIgnoreCase(request.getParameter("mode"))) {               
82:                 if ("ipad".contains(ua) || "ipod".contains(ua) || "iphone".contains(ua) || "android".contains(ua) || "mobile".equalsIgnoreCase(request.getParameter("mode"))) {               
83:                   IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class, PentahoHttpSessionHelper.getPentahoSession(request));
84:                   List<String> pluginIds = pluginManager.getRegisteredPlugins();
85:                   for (String id : pluginIds) {


An error occurred at line: 82 in the jsp file: /jsp/PUCLogin.jsp
The method contains(CharSequence) in the type String is not applicable for the arguments (String)
79:         <%
80:           String ua = request.getHeader("User-Agent").toLowerCase();
81:           if (!"desktop".equalsIgnoreCase(request.getParameter("mode"))) {               
82:                 if ("ipad".contains(ua) || "ipod".contains(ua) || "iphone".contains(ua) || "android".contains(ua) || "mobile".equalsIgnoreCase(request.getParameter("mode"))) {               
83:                   IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class, PentahoHttpSessionHelper.getPentahoSession(request));
84:                   List<String> pluginIds = pluginManager.getRegisteredPlugins();
85:                   for (String id : pluginIds) {


Stacktrace:
        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
        org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:142)
        org.pentaho.platform.web.http.filters.PentahoRequestContextFilter.doFilter(PentahoRequestContextFilter.java:84)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
        org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
        org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
        org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.pentaho.platform.web.http.security.SecurityStartupFilter.doFilter(SecurityStartupFilter.java:108)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
        org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.pentaho.platform.web.http.security.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:169)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
        org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
        org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
        org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.pentaho.platform.web.http.security.HttpSessionReuseDetectionFilter.doFilter(HttpSessionReuseDetectionFilter.java:134)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
        org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
        org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
        org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
        org.pentaho.platform.web.http.filters.SystemStatusFilter.doFilter(SystemStatusFilter.java:60)
        org.pentaho.platform.web.http.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
kongpentaho 发表于 2015-7-10 18:17:00 | 显示全部楼层
看不懂,帮顶一下。
接下来也准备切换到MySQL的。
xlli 发表于 2015-8-19 23:40:26 | 显示全部楼层
biserver-ce\tomcat\lib和biserver-ce\tomcat\webapps\pentaho\WEB-INF\lib缺少mysql-connector-java-x.x.x.jar或者版本不对
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|灏忛粦灞|pentaho爱好者,pentaho中国爱好者社区 ( 鄂ICP备10205388号 )

GMT+8, 2019-12-16 11:32 , Processed in 0.109375 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表