![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/0/41/041f93a3-11a9-4d33-a74b-89372bd39d58/041f93a3-11a9-4d33-a74b-89372bd39d58-bg8.png)
Set Up AquaLogic Commerce Services
BEA AquaLogic Commerce Services Deployment Guide 3
Set Up AquaLogic Commerce Services
1. To correctly set up a JDBC connection, the JDBC driver must be on WebLogic Server's
CLASSPATH. To do this, copy the JDBC driver file for your database into the
<BEA_HOME>\user_projects\domains\alcs\lib directory (see the JNDI and JDBC
Configuration section for more information).
2. In WEB-INF\conf\spring\dataaccess\hibernate\hibernate-config.xml (for each of the
commerceServices, commerceServicesConnect, and commerceServicesManager directories
found in <ALCS_APP_HOME>), find the tag <prop key="hibernate.dialect"> and change the
value to the database dialect type for the database that your application is currently
connecting to. For example, if you're using an Oracle database, the block should look like the
following.
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect
</prop>
Below are the values for the different databases:
o org.hibernate.dialect.MySQLDialect
o org.hibernate.dialect.OracleDialect
o org.hibernate.dialect.SQLServerDialect
o org.hibernate.dialect.DerbyDialect
3. In WEB-INF\conf\spring\security\acegi.xml (for each of the commerceServices,
commerceServicesConnect, and commerceServicesManager directories found in
<ALCS_APP_HOME>), find the “portMapper” bean declaration and under the
“portMappings” property change the entry key to 7011 (or whatever your HTTP port is) and
the value to 7012 (or whatever your HTTPS port is). The whole block should now look
similar to the following.
<bean id="portMapper" class="org.acegisecurity.util.PortMapperImpl">
<property name="portMappings">
<map>
<entry key="7011"><value>7012</value></entry>
</map>
</property>
</bean>
4. You may get compatibility exceptions on *.QName when starting WebLogic Server with
some releases of JDK 1.5. To correct this problem, you will need to edit
<BEA_HOME>\user_projects\domains\alcs\bin\setDomainEnv.cmd and add the following
line.
set JAVA_OPTIONS="%JAVA_OPTIONS%
-Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0"
5. If you get some JDK out of memory errors, then you may also need to change the maximum
heap size to 512MB (“-Xmx512m”) or higher and the maximum perm space size to 128MB
(“-XX:MaxPermSize=128m” ) or higher for your platform. These settings can be changed in
<BEA_HOME>\user_projects\domains\alcs\bin\setDomainEnv.cmd.