federico.cattozzi Posted July 24, 2013 Share Posted July 24, 2013 Hi,My reports on JasperReports Server use a JNDI Data Source defined into this fileC:Program Filesjasperreports-server-5.1apache-tomcatconfCatalinalocalhostjasperserver-pro.xmlDeveloping with iReport I use a JDBC connection instead of JNDI to test the reports.Now I'm trying to switch to JasperSoft Studio.When I use JasperSoft Studio to try to open any Input Control placed on the server, JasperSoft Studio does not found JNDI Data Source and throws this exception:java.lang.Exception: 1 - Name <JNDI_NAME> is not bound in this Context at com.jaspersoft.ireport.jasperserver.ws.WSClient.get(WSClient.java:274) at com.jaspersoft.studio.server.protocol.soap.SoapConnection.get(SoapConnection.java:74) at com.jaspersoft.studio.server.protocol.ProxyConnection.get(ProxyConnection.java:52) at com.jaspersoft.studio.server.editor.input.InputControlsManager.getInputControls(InputControlsManager.java:120) at com.jaspersoft.studio.server.editor.ReportRunControler$1.run(ReportRunControler.java:81) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)[/code]If I manually add the JNDI Data Source to "Data Adapters" using "Import From Workspace" option and then I test it, this exception is thrown:javax.naming.NameNotFoundException; remaining name 'env/<JNDI_NAME>'//See attached image[/code]So how can I configure JNDI Data Source into JasperSoft Studio? Link to comment Share on other sites More sharing options...
joseluis.delacruz Posted February 21, 2014 Share Posted February 21, 2014 I'm getting same issue here, just AIX instead of Windows and Websphere instead of Tomcat. Any idea about how to solve it? Link to comment Share on other sites More sharing options...
federico.cattozzi Posted February 21, 2014 Author Share Posted February 21, 2014 Every Java Application Server has an own way to configure JNDI data source, you have to use the Websphere's way. In alternative you can try to write JNDI data source configuration into .../jasperserver/META-INF/context.xml Link to comment Share on other sites More sharing options...
joseluis.delacruz Posted February 21, 2014 Share Posted February 21, 2014 Hi,I've tried on Tomcat and same issue. I've defined JNDI connection on Tomcat's web.xml, restarted and the same result, error. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now