IBM Worklight 6.1 - Project fails to initialize because the project database schema is from version N/A

后端 未结 3 1223
梦如初夏
梦如初夏 2021-01-16 01:06

I got the following error message when I try to deploy my .war file to the application server:

Error 500: javax.servlet.ServletException: Worklight Co

3条回答
  •  有刺的猬
    2021-01-16 01:21

    Have you create a jdbc connection in your Websphere Application Server? It will be needed by the application inside the WAR file to connect to the database.

    If you have done it, you can check inside your WAR file and look for web.xml file in WEB-INF/ folder. In my case I found a jdbc hardcoded inside the file, for example:

    
      Worklight Server Database
      jdbc/WorklightDS
      javax.sql.DataSource
      Container
    
    
    
      Reports Database
      jdbc/WorklightReportsDS
      javax.sql.DataSource
      Container
    
    

    You can rename those hardcoded file into the same name of the jdbc that you created in you WAS.


    For the database issue, you can follow this link to use ant for DB creation.

    http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=/com.ibm.worklight.deploy.doc/devref/r_ant_tasks_configure_dbs.html

    If you follow the 1st ant script for DB2 creation which will have two different databases, you need to create the new user for this line if you haven't done so. Because as you can see, in the xml script, user and password will be needed to create the WRKLGHT database. For example:

    
    

    If you use non-default port for your DB2 connection, you can add on your port number parameter after the server parameter. For example:

    port="50001"


    For user creation, u can follow this link:

    http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=%2Fcom.ibm.db2.luw.qb.server.doc%2Fdoc%2Ft0006742.html

提交回复
热议问题