cancel
Showing results for 
Search instead for 
Did you mean: 

JSP program error in SDK

Former Member
0 Kudos

Hi

I wrote JSP application to create user in BO system under BO JAVA SDK.
when i execute in below path it gives error
http://localhost:8080/Add_User.jsp

Error
org.apache.jasper.JasperException: Cannot compile JSP class
IInfoStore cannot be resolved to a type
SDKException cannot be resolved to a type
IEnterpriseSession cannot be resolved to a type

here is how i imported the class inside program.
<%@ page import = "com.crystaldecisions.sdk.framework.*"%>
<%@ page import = "com.crystaldecisions.sdk.exception.*"%>
<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*"%>
<%@ page import = "com.crystaldecisions.sdk.occa.security.*"%>
<%@ page import = "com.crystaldecisions.sdk.occa.pluginmgr.*"%>
<%@ page import = "com.crystaldecisions.sdk.plugin.desktop.user.*"%>
<%@ page import = " com.crystaldecisions.sdk.plugin.desktop.common.*"%>

I stored my jsp file under below Tomcat directory
E:\BO\Tomcat6\webapps\ROOT.

I copied the com/crystaldecisions/sdk packages under below tomcat folders
but still i get errors
E:\BO\Tomcat6\webapps\ROOT\
E:\BO\Tomcat6\webapps\ROOT\WEB-INF\
E:\BO\Tomcat6\webapps\BOE\WEB-INF\classes\
E:\BO\Tomcat6\webapps\BOE\WEB-INF\classes\

Can you pls advice should i have to restart the tomcat server?
or i have to set any classpath ?

i would like to know where exactly the SDK packages have to be kept.

Pls advice.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

aasavaribhave
Advisor
Advisor
0 Kudos

The most recommended way to deploy your app to tomcat is:

Create a folder under C:\BO\tomcat6\webapps say "test". This is the application root folder.

Put your JSP files in C:\BO\tomcat6\webapps\test

Copy all\required BO SDK Jar files in C:\BO\tomcat6\webapps\test\WEB-INF\lib

(you will have to create WEB-INF folder in test and lib folder in WEB-INF.

add web.xml in WEB-INF

restart tomcat,

For a basic web.xml and required set of SDK jar files refer to appropriate BO Enterprise\Platform SDK Developer guide.

The above error is because tomcat doesn't have the required Jar files in its classpath, as they are in wrong place or not the correct Jars are included.

Former Member
0 Kudos

Hi Aasari.

Thanks for reply.

It works as you said.

Regars

Answers (0)