Issue :
Import failed: com.jaspersoft.jasperserver.export.service.ImportFailedException: Import failed. Reason: Internal error: Error while looking up data source (jdbc/foodmart)
Resolution :
Check if you have configured the jdbc/foodmart JNDI connection in your application server META-INF/context.xml file
If not, please add the below JNDI connection details and restart the server to proceed.
<Resource name="jdbc/foodmart" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="postgres" password="postgres" driverClassName="org.postgresql.Driver" accessToUnderlyingConnectionAllowed = "true" validationQuery="SELECT 1" testOnBorrow="true" url="jdbc:postgresql://localhost:5432/foodmart" factory="com.jaspersoft.jasperserver.tomcat.jndi.JSCommonsBasicDataSourceFactory"/>
Recommended Comments
There are no comments to display.
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