ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Marshall" <ch...@campsbayterrace.com>
Subject Deploying gwt + iBatis + MySql via Tomcat
Date Wed, 23 Jul 2008 11:43:42 GMT
This is not really an iBatis query, but I have little experience with
deploying applications via Tomcat, and would like to find a url which
will help. I have checked the JPetStore application and googled dozens
of sites without success:
The application works well in GWT hosted and browser mode, and the GWT
client works fine via Tomcat. The problem is I don't know how to
deploy the server side java code with iBatis and MySql and cannot find
a suitable knowledge base:

The Tomcat WEB-INF has web.xml and SqlMapConfig.xml files:


where web.xml is:

<?xml version="1.0" encoding="UTF-8"?>
  <display-name>MyApp Web</display-name>
  <description>MyApp Web Application</description>





and SQLMapConfig.xml is:

<?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE sqlMapConfig
    PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
  <settings useStatementNamespaces="true" />
  <transactionManager type="JDBC" commitRequired="true">
    <dataSource type="JNDI">
      <property name="JDBC.Driver" value="com.mysql.jdbc.Driver"/>
      <property name="JDBC.ConnectionURL"
      <property name="JDBC.Username" value=""/>
      <property name="JDBC.Password" value=""/>
   <!-- List the SQL Map XML files.   -->
  <sqlMap resource="xml/account_SqlMap.xml"/>

The MyAppServer.jar is in the WEB-INF/lib subdirectory, and the
SqlMap.xml files are in the WEB-INF/xml subdirectory (not in a jar)

I am using the most recent versions of GWT, iBatis and MySql on
Windows2000 Professional.

Hope someone can point me in the right direction!

Thanks, Chris Marshall

View raw message