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 Reports XI - Java

843838Dec 27 2006 — edited Jan 4 2007
Hi.

I'm using Crystal Reports XI, Tomcat 5.0 to display a report on to a jsp.

When the report is about to be displayed, I get this error:

"Error
Logon failed
"

I'm absolutely sure the connection information I'm proving is correct. I tried printing out the connection information by calling oCrystalReportViewer.getDatabas eLogonInfos().getConnectionInfo(0).getAttributes().toString() ; and this text is shown:

{Server Name=mas3, Connection String=Server=s(mas3);User ID=s(admin);Password=, Database Name=, Database DLL=crdb_oracle.dll}

Apparently I've not set the Database Name, I dont know where to set it, just tried with this code: (It did not work though)

PropertyBag propertyBag = new PropertyBag();
propertyBag.put("Database Name", "m239"); oIConnectionInfo.setAttributes(property Bag);

Please, please... help me out with this issue as It's driving me into crazy

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2007
Added on Dec 27 2006
9 comments
580 views