首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

birt 报表怎样部署到WebLogic 不现实 出现异常

2013-09-28 
birt 报表怎样部署到WebLogic 不现实 出现错误我用birt写了个报表 现在想要部署到WebLogic上看看效果,可就

birt 报表怎样部署到WebLogic 不现实 出现错误
我用birt写了个报表 
现在想要部署到WebLogic上看看效果,可就是不显示,后台报错如下
birt 报表怎样部署到WebLogic 不现实 出现异常
可是我并没有用到action,就是jsp引用而已,怎么报action错误呢?也是我不了解,刚用,这点让我很头疼 不知道该去哪里改了
在jsp当中的引用如下birt 报表怎样部署到WebLogic 不现实 出现异常
另外 以下是web.xml配置文件内容

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<!-- 单点登对项目内过滤器, 负责将登录信息组装到URL中 -->
<filter>
<filter-name>AccessToExternal</filter-name>
<filter-class>
gmt.boss.iom.login.util.AccessToExternalFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>AccessToExternal</filter-name>
<url-pattern>/FilterSign/*</url-pattern>
</filter-mapping>
<!-- 单点登对项目外部访问过滤器, 负责将URL登录信息保存到session中 -->
<filter>
<filter-name>DelegatingFilterProxy</filter-name>
<filter-class>
org.springframework.web.filter.DelegatingFilterProxy
</filter-class>
<init-param>
<param-name>targetBeanName</param-name>
<param-value>ExternalLoginFilterRes</param-value>
</init-param>
<init-param>
<param-name>targetFilterLifecycle</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>DelegatingFilterProxy</filter-name>
<url-pattern>/InFilterSign/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>PermitFilter</filter-name>
<filter-class>
gmt.boss.iom.login.util.PermitFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>PermitFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext.xml,classpath*:applicationContext.xml
</param-value>
</context-param>

<display-name>Eclipse BIRT Report Viewer</display-name>

<!-- Default locale setting -->
<context-param>
<param-name>BIRT_VIEWER_LOCALE</param-name>
<param-value>en-US</param-value>
</context-param>

<!-- Report resources directory for preview. Default to ${birt home} -->
<context-param>
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
<param-value>zcpt/report</param-value>
</context-param>

<!-- The generated document files directory. Default to ${birt home}/documents -->
<context-param>
<param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
<param-value>WEB-INF/report-engine/documents</param-value>
</context-param>

<!-- If only access the reprot resources under working folder. Default is false -->
<context-param>
<param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
<param-value>false</param-value>
</context-param>

<!-- Output image/chart directory. Default to ${birt home}/report/images -->
<context-param>
<param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
<param-value>WEB-INF/report-engine/images</param-value>
</context-param>

<!-- Engine log directory. Default to ${birt home}/logs -->
<context-param>
<param-name>BIRT_VIEWER_LOG_DIR</param-name>
<param-value>WEB-INF/report-engine/logs</param-value>
</context-param>

<!-- Report engine log level -->
<context-param>
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
<param-value>WARNING</param-value>
</context-param>

<!-- Directory to store all birt report script libraries (JARs). Default to ${birt home}/scriptlib -->
<context-param>
<param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
<param-value>WEB-INF/report-engine/scriptlib</param-value>
</context-param>

<!-- Resource location directory. Default to ${birt home} -->
<context-param>
<param-name>BIRT_RESOURCE_PATH</param-name>


<param-value></param-value>
</context-param>

<!-- Preview report max rows limited. -->
<context-param>
<param-name>BIRT_VIEWER_MAX_ROWS</param-name>
<param-value></param-value>
</context-param>

<!-- Preview report max cube fetch levels limited.(Only support to preview a report design file using preview pattern.) -->
<context-param>
<param-name>BIRT_VIEWER_MAX_CUBE_LEVELS</param-name>
<param-value></param-value>
</context-param>

<!-- Memory size(MB) for creating cube. -->
<context-param>
<param-name>BIRT_VIEWER_CUBE_MEMORY_SIZE</param-name>
<param-value></param-value>
</context-param>

<!-- If always overwrite generated document file. For runtime,efalult to true -->
<context-param>
<param-name>BIRT_OVERWRITE_DOCUMENT</param-name>
<param-value>true</param-value>
</context-param>

<!-- Define BIRT viewer configuration file -->
<context-param>
<param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
<param-value>WEB-INF/viewer.properties</param-value>
</context-param>

<!-- If turn on the function that supports print on the server side. Default to on. -->
<context-param>
<param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
<param-value>ON</param-value>
</context-param>

<!-- If force optimized HTML output. Default to true -->
<context-param>
<param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
<param-value>true</param-value>
</context-param>

<!-- Viewer Filter.Currently, set request character encoding to UTF-8. -->
<filter>
<filter-name>ViewerFilter</filter-name>
<filter-class>
org.eclipse.birt.report.filter.ViewerFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>ViewerFilter</filter-name>
<servlet-name>ViewerServlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>ViewerFilter</filter-name>
<servlet-name>EngineServlet</servlet-name>
</filter-mapping>

<!-- Viewer Servlet Context Listener -->
<listener>
<listener-class>
org.eclipse.birt.report.listener.ViewerServletContextListener
</listener-class>
</listener>

<!-- Viewer HttpSession Listener -->
<listener>
<listener-class>
org.eclipse.birt.report.listener.ViewerHttpSessionListener
</listener-class>
</listener>

<!-- Viewer Servlet, Support SOAP -->
<servlet>
<servlet-name>ViewerServlet</servlet-name>
<servlet-class>
org.eclipse.birt.report.servlet.ViewerServlet
</servlet-class>
</servlet>

<!-- Engine Serlvet -->
<servlet>
<servlet-name>EngineServlet</servlet-name>
<servlet-class>
org.eclipse.birt.report.servlet.BirtEngineServlet
</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>ViewerServlet</servlet-name>
<url-pattern>/frameset</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>ViewerServlet</servlet-name>
<url-pattern>/run</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/preview</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/download</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/parameter</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/document</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/output</url-pattern>
</servlet-mapping>

<!-- 分页标签配置 -->
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/myTags.tld</taglib-uri>
<taglib-location>/WEB-INF/myTags.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>


</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/birt.tld</taglib-uri>
<taglib-location>/WEB-INF/birt.tld</taglib-location>
</taglib>

</jsp-config>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>indexFrameset.html</welcome-file>
</welcome-file-list>
<!-- 错误页面 -->
<!--   
<error-page>  
<error-code>404</error-code>  
<location>/login.jsp</location>  
</error-page>
<error-page>  
<error-code>500</error-code>  
<location>/login.jsp</location>  
</error-page>
<error-page> 
<exception-type>java.lang.Exception</exception-type> 
<location>/login.jsp</location> 
</error-page>
-->
</web-app>


首先,jsp这么写应该没有错,在其他已经搭好的项目中,这是可以运行的,不报任何错误,但是当前项目没有集成birt,现在需要用,我按照网上的说法和官方文档,该导的我都导入到项目中了,目前编辑器好用,可是就是项目访问不到报错,帮帮忙 报表 web.xml
[解决办法]
name>struts2</filter-name>
<url-pattern>/*</url-pattern

不要写*,写*.do好了

热点排行