Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Crystal Report LOGON Failed

843836May 17 2005
Hello ,

I am trying to use JSP to generate Crystal Reports. When I execute the JSp code , am encountering an error

ERROR Logon Failed.

The jsp code that am using is given below.

<%String report = "c:/tomcat-5/webapps/jsp-examples/SampleReport.rpt";
IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
ReportSource reportSource = (IReportSource)rptSrcFactory.createReportSource(report, request.getLocale());
ConnectionInfos connInfos = new ConnectionInfos();
IConnectionInfo connInfo1 = new ConnectionInfo();
connInfo1.setUserName("username");
connInfo1.setPassword("password");
connInfos.add(connInfo1);
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setDatabaseLogonInfos(connInfos);
viewer.setReportSource(reportSource);
viewer.setEnableLogonPrompt(false);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
%>

can anyone help me to resolve this.Would be really thankful .

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2005
Added on May 17 2005
0 comments
138 views