Jump to content
We've recently updated our Privacy Statement, available here ×
  • error while looking up data source (jdbc/foodmart)


    aphalke
    • Features: Repository Version: v7.9.0 Product: JasperReports® Server

    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"/>

     


    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...