I'm using the Crystal reports 10 TRIAL VERSION
and IBM Websphere Application Developer 5.1.2
When i try to display a RPT file in JSP , the server show these errors, please help me!!!
-------- MY JSP ---------
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ page import="com.crystaldecisions.report.web.viewer.Cry stalReportViewer"%>
<%@ page import="com.crystaldecisions.reports.reportenginei nterface.JPEReportSourceFactory,
com.crystaldecisions.sdk.occa.report.reportsource. IReportSourceFactory2,
org.apache.log4j.Logger,
com.crystaldecisions.sdk.occa.report.reportsource. IReportSource"%>
<html>
<head>
<title>
WithoutTag
</title> </head>
<body bgcolor="#ffffff">
<%
Logger logger = Logger.getLogger("projectReport");

String path = "empty.rpt";
logger.info("ProjectReport.jsp ---> "+path);
IReportSourceFactory2 rsf = new JPEReportSourceFactory();
if (rsf != null)
logger.info("ProjectReport.jsp ---> JPEReportSourceFactory is created.");
else
logger.info("ProjectReport.jsp ---> JPEReportSourceFactory is NOT created.");

IReportSource rptSource = (IReportSource)rsf.createReportSource(path,request .getLocale());
if (rptSource != null)
logger.info("ProjectReport.jsp ---> IReportSource is created.");
else
logger.info("ProjectReport.jsp ---> IReportSource is NOT created.");

CrystalReportViewer viewer = new CrystalReportViewer();
if (viewer != null)
logger.info("ProjectReport.jsp ---> CrystalReportViewer is created.");
else
logger.info("ProjectReport.jsp ---> CrystalReportViewer is NOT created.");

logger.info("RPT ---> getInitialReportPart " + rptSource.getInitialReportPart());

viewer.setReportSource(rptSource);
logger.info("RPT ---> 3");
viewer.processHttpRequest(request, response,getServletConfig().getServletContext(), out);
%>
</body>
</html>
-------- MY JSP ---------

[02.02.2005 15:20:49:492 EET] 466dec24 WebGroup I SRVE0180I: [CIS] [/cis] [Servlet.LOG]: /jsp/projectReport.jsp: init
33719 [Servlet.Engine.Transports : 1] INFO projectReport - ProjectReport.jsp ---> empty.rpt
33719 [Servlet.Engine.Transports : 1] INFO projectReport - ProjectReport.jsp ---> JPEReportSourceFactory is created.
35719 [Servlet.Engine.Transports : 1] ERROR com.crystaldecisions.reports.formulas.FunctionMana ger - Failed to create a formula function manager
com.crystaldecisions.reports.formulas.FormulaFunct ionSetupException: The name of the function doesn't match its identifier: Int vs int.
at com.crystaldecisions.reports.formulas.n.do(Unknown Source)
at com.crystaldecisions.reports.formulas.n.if(Unknown Source)
at com.crystaldecisions.reports.formulas.FunctionMana ger.a(Unknown Source)
at com.crystaldecisions.reports.formulas.FunctionMana ger.a(Unknown Source)
at com.crystaldecisions.reports.formulas.FunctionMana ger.a(Unknown Source)
at com.crystaldecisions.reports.formulas.FunctionMana ger.a(Unknown Source)
at com.crystaldecisions.reports.formulas.FunctionMana ger.<init>(Unknown Source)
at com.crystaldecisions.reports.formulas.FormulaServi ce.<init>(Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.A (Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.k (Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.a (Unknown Source)
at com.crystaldecisions.reports.common.y.if(Unknown Source)
at com.crystaldecisions.reports.common.y.do(Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.d o(Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.k (Unknown Source)
at com.crystaldecisions.reports.reportengineinterface .Engine.<init>(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface .Engine.NewEngine(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface .JPEReportSource.<init>(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface .JPEReportSource.a(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface .JPEReportSourceFactory.createReportSource(Unknown Source)
at org.apache.jsp._projectReport._jspService(_project Report.java:103)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.se rvice(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$Jsp ServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.ser viceJspFile(JspServlet.java:669)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.ser vice(JspServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:200)
at org.apache.struts.action.RequestProcessor.doForwar d(RequestProcessor.java:1069)
at org.apache.struts.action.RequestProcessor.processF orwardConfig(RequestProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(Actio nServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:672)
35750 [Servlet.Engine.Transports : 1] ERROR com.crystaldecisions.reports.reportengineinterface - Failed to create new report source
java.lang.IllegalStateException: Failed to setup the formula service!
at com.crystaldecisions.reports.formulas.FunctionMana ger.<init>(Unknown Source)
at com.crystaldecisions.reports.formulas.FormulaServi ce.<init>(Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.A (Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.k (Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.a (Unknown Source)
at com.crystaldecisions.reports.common.y.if(Unknown Source)
at com.crystaldecisions.reports.common.y.do(Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.d o(Unknown Source)
at com.crystaldecisions.reports.reportdefinition.cn.k (Unknown Source)
at com.crystaldecisions.reports.reportengineinterface .Engine.<init>(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface .Engine.NewEngine(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface .JPEReportSource.<init>(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface .JPEReportSource.a(Unknown Source)