Jump to content
Changes to the Jaspersoft community edition download ×

JasperSoft Studio JNDI connection


jason.symons

Recommended Posts

Hi All,

I am having trouble connecting Jaspersoft studio to a MySQL database using JNDI, can anyone help?

I am running JasperReports server, and the datasource has been created in the repository. I can connect Studio to Server to publish reports, use domains etc. but I would like to be able to query the database directly. Reports will be published on the server.

So, I have been trying to create a JNDI data adapter to connect to the source wihtin the server reposotiory. Is this possible? Is it the right thing to do?

I have tried the JNDI name of "repo:/organizations/organization_1/Data_sources/[mySQLdatabasename]", but I get the following error:

java.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

Where am i going wrong? Any help greatly appreciated!

Thanks Jason

Link to comment
Share on other sites

  • 2 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...