简体   繁体   English

使用SQL Server数据库进行GuideWire BC配置

[英]GuideWire BC configuration with SQL Server database

Currently working on PC-BC integration. 目前正在从事PC-BC集成。 I need to configure my studios with SQL Server database, For PC its working fine, but for BC I'm getting error. 我需要使用SQL Server数据库配置我的工作室,对于PC来说,它可以正常工作,但是对于BC,我却遇到了错误。 If anyone knows please help me to sort this out. 如果有人知道,请帮助我解决这个问题。

  <database name="BillingCenterDatabase" dbtype="sqlserver" autoupgrade="true">
    <dbcp-connection-pool jdbc-url="jdbc:sqlserver://localhost:1433;DatabaseName=BillingCenterDatabase;User=username;Password=pass#1121"/>
    <upgrade defer-create-nonessential-indexes="false">
      <versiontriggers dbmsperfinfothreshold="600" />
    </upgrade>
  </database>
  • my username is "username" and password is "pass#1121" 我的用户名是“用户名”,密码是“ pass#1121”
  • database name : BillingCenterDatabase 数据库名称:BillingCenterDatabase

The error which I'm getting is 我得到的错误是

gw.pl.exception.GWLifecycleException: No appropriate database found in configuration: env = 'null' gw.pl.exception.GWLifecycleException:在配置中找不到合适的数据库:env ='null'

You should have to mention environment name in tomcat.conf in tomcat config file if you are deploying your application on tomcat. 如果要在tomcat上部署应用程序,则必须在tomcat配置文件的tomcat.conf中提到环境名称。

JAVA_OPTS="-Dgw.server.mode=dev -Dgw.bc.env=st " JAVA_OPTS =“-Dgw.server.mode = dev -Dgw.bc.env = st

above line for st environment. 以上为标准环境。 you need to enter ut/st/st2 for different environment. 您需要针对不同的环境输入ut / st / st2。

try adding environment attribute in your database tag like shown below, 尝试在数据库标签中添加环境属性,如下所示,

  <database name="BillingCenterDatabase" dbtype="sqlserver" env="dev" autoupgrade="true">
<dbcp-connection-pool jdbc-url="jdbc:sqlserver://localhost:1433;DatabaseName=BillingCenterDatabase;User=username;Password=pass#1121"/>
<upgrade defer-create-nonessential-indexes="false">
  <versiontriggers dbmsperfinfothreshold="600" />
</upgrade>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM