Re: Working with GWT 2.3 and MyBatis

2011-07-08 Thread Fabricio Pizzichillo
Hello.
The problem is a missing XML file where the configuration database,
and so gives
an error of IO.
bye

Fabricio

2011/6/28 Geraldo Lopes geraldo...@gmail.com

 Gwt is persistent agnostic.

 It looks like your client code is referencing server code.
 When you compile the client code it gets translated to javascript, and
 run in the browser, and because of this there are restrictions to
 which code can be translated.


 http://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideCodingBasics.html#DevGuideJavaCompatibility

 Hope this helps,

 Geraldo Lopes de Souza

 On 28 jun, 10:30, peter faulk mikesw...@gmail.com wrote:
  I am new to using GWT, and I am trying to get some simple persistence
  going using MyBatis.  Under the server folder/directory, I have a
  connection factory source file that simply reads from a
  configuration.xml in order to create a MyBatis SqlSessionFactory
  object.  In my project .gwt.xml, I path set for for both server and
  client.  I have both the mybatis-3.0.5.jar and the mybatis-3.0.5-
  sources.jar in my classpath and in the WEB-INF\lib directory.  When
  run the GWT Compile Project, I see the following errors in my
  ConnectionFactory.java:
 
  org.apache.ibatis.io.Resources cannot be resolved
  org.apache.ibatis.session.SqlSessionFactory cannot be resolved
 
  It is clear that the jar file is not being recognized or picked up
  during compilation.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Working with GWT 2.3 and MyBatis

2011-06-28 Thread peter faulk
I am new to using GWT, and I am trying to get some simple persistence
going using MyBatis.  Under the server folder/directory, I have a
connection factory source file that simply reads from a
configuration.xml in order to create a MyBatis SqlSessionFactory
object.  In my project .gwt.xml, I path set for for both server and
client.  I have both the mybatis-3.0.5.jar and the mybatis-3.0.5-
sources.jar in my classpath and in the WEB-INF\lib directory.  When
run the GWT Compile Project, I see the following errors in my
ConnectionFactory.java:

org.apache.ibatis.io.Resources cannot be resolved
org.apache.ibatis.session.SqlSessionFactory cannot be resolved

It is clear that the jar file is not being recognized or picked up
during compilation.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Working with GWT 2.3 and MyBatis

2011-06-28 Thread Geraldo Lopes
Gwt is persistent agnostic.

It looks like your client code is referencing server code.
When you compile the client code it gets translated to javascript, and
run in the browser, and because of this there are restrictions to
which code can be translated.

http://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideCodingBasics.html#DevGuideJavaCompatibility

Hope this helps,

Geraldo Lopes de Souza

On 28 jun, 10:30, peter faulk mikesw...@gmail.com wrote:
 I am new to using GWT, and I am trying to get some simple persistence
 going using MyBatis.  Under the server folder/directory, I have a
 connection factory source file that simply reads from a
 configuration.xml in order to create a MyBatis SqlSessionFactory
 object.  In my project .gwt.xml, I path set for for both server and
 client.  I have both the mybatis-3.0.5.jar and the mybatis-3.0.5-
 sources.jar in my classpath and in the WEB-INF\lib directory.  When
 run the GWT Compile Project, I see the following errors in my
 ConnectionFactory.java:

 org.apache.ibatis.io.Resources cannot be resolved
 org.apache.ibatis.session.SqlSessionFactory cannot be resolved

 It is clear that the jar file is not being recognized or picked up
 during compilation.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.