Quantcast
Viewing all articles
Browse latest Browse all 171

How to get Data Source in Zimlet

Hi All,

Can any one give me a way to get Data Source in Zimlet JSP file. Actually in source I found one file 'DbPool.java' there getConnection method I found. Using this method can I get the data source reference to connect database. And I found another issue, while trying to get current user-id using Account and Provisioning classes.

Even I tried to import pages with both ways as I found in previous threads like,
<&#37;%@ page import="com.zimbra.cs.db.*" %> and
%@ page import="com.zimbra.cs.account.Account" %>.

Do I need to change or add anything to access the mentioned classes. While trying access the mentioned classes I'm getting below errors. Please give me an answer to come out from this problem.

HTTP ERROR 500

Problem accessing /service/zimlet/com_ktree_jspzim/KTreeJSP39.jsp. Reason:

PWC6033: Unable to compile class for JSP

PWC6197: An error occurred at line: 7 in the jsp file: /com_ktree_jspzim/KTreeJSP39.jsp
PWC6199: Generated servlet error:
cookies cannot be resolved

PWC6197: An error occurred at line: 7 in the jsp file: /com_ktree_jspzim/KTreeJSP39.jsp
PWC6199: Generated servlet error:
AuthToken cannot be resolved to a type

PWC6197: An error occurred at line: 7 in the jsp file: /com_ktree_jspzim/KTreeJSP39.jsp
PWC6199: Generated servlet error:
AuthToken cannot be resolved

PWC6197: An error occurred at line: 7 in the jsp file: /com_ktree_jspzim/KTreeJSP39.jsp
PWC6199: Generated servlet error:
Account cannot be resolved to a type

PWC6197: An error occurred at line: 7 in the jsp file: /com_ktree_jspzim/KTreeJSP39.jsp
PWC6199: Generated servlet error:
Provisioning cannot be resolved

PWC6197: An error occurred at line: 7 in the jsp file: /com_ktree_jspzim/KTreeJSP39.jsp
PWC6199: Generated servlet error:
AccountBy.id cannot be resolved to a type


Thanks and Regards

Sai Mohan

Viewing all articles
Browse latest Browse all 171