Re: Connecting to database with eclipse

2009-04-09 Thread eggsy
No worries!! Glad you got it sorted Eggsy On Apr 8, 5:16 pm, Cryssyenddo miracle...@gmail.com wrote: Yes, i did created an object class Forum at client side, and i've just confirmed that the array from server side is null. I've found out the problem with result set is we can do execute

Re: Connecting to database with eclipse

2009-04-08 Thread eggsy
Hi there, Ok lets take it step by step. Can you show us your client side RPC interface classes. You should have something like the following: --- package com.company.client.rpc; import java.util.List; import com.company.client.dto.PupilDTO; import

Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo
No, i don't have it. Here's my client side RPC interface: package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.AsyncCallback; public interface DiscussionBoardServiceAsync { public void getForums(int forumAccessLevel, AsyncCallbackForum[] callback);

Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo
package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.RemoteService; public interface DiscussionBoardService extends RemoteService { public Forum[] getForums(int forumAccessLevel); public Topic[] getTopics(int forumID, int topicAccessLevel);

Re: Connecting to database with eclipse

2009-04-08 Thread eggsy
Are you using GWT 1.4 or 1.5? If you are using 1.5 add the line: @RemoteServiceRelativePath(teachers) in the same place as where I have mine - replace teachers with whatever path you want for your servlet. next thing is how to call the servlet using RPC this should be done like so:

Re: Connecting to database with eclipse

2009-04-08 Thread eggsy
Next you need to have server side class something like this: - package com.company.server.gwt; public class TeacherServiceImpl extends RemoteServiceServlet implements TeacherService { private static final long serialVersionUID = 1L; public ListPupilDTO getPupils(Integer

Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo
I've made the modifications to my codes, and yet the same error still pop out...here's the modifications i've done: package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo
I've made the modifications to my codes, and yet the same error still pop out...here's the modifications i've done: package vCarePortal.client; import java.sql.Date; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo
and by the way, i'm using gwt1.5.3 --~--~-~--~~~---~--~~ 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,

Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo
I solved the problem...I made a typo error at my impl class. I've made the corrections and it works now. I'm wondering, how should i call a service properly? In this piece of code below, i'm trying to get an array Forum object which the data i retrieved form my database and then i intend

Re: Connecting to database with eclipse

2009-04-08 Thread eggsy
Can you confirm (server side) that the array of objects isn't null? If so this sounds like GWT might not be able to handle objects of type Forum. GWT can only handle objects declared under the client side packages and wont be able to handle any database POJO object declared at server level.

Re: Connecting to database with eclipse

2009-04-08 Thread Cryssyenddo
Yes, i did created an object class Forum at client side, and i've just confirmed that the array from server side is null. I've found out the problem with result set is we can do execute queries one after another...so i changed the order of my result set codes, that solves the problem. Anyway,

Re: Connecting to database with eclipse

2009-04-07 Thread Cryssyenddo
Anyone? please? i need this to work... --~--~-~--~~~---~--~~ 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

Re: Connecting to database with eclipse

2009-04-05 Thread Cryssyenddo
I found two web.xml in my project files, first one in tomcat - conf - gwt which has a long list of session mapping and mime mapping second web.xml file is in tomcat - webapps - ROOT - WEB-INF which looks like this: ?xml version=1.0 encoding=UTF-8? web-app servlet

Re: Connecting to database with eclipse

2009-04-05 Thread Vitali Lovich
I dunno about the JDBC configuration, but you're servlet mapping seems wrong - it should, AFAIK, point to your RPC class, not some GWT class (unless that's what you called it?). As for setting up JDBC with tomcat, a simple google search should help you. On Sun, Apr 5, 2009 at 5:00 AM,

Re: Connecting to database with eclipse

2009-04-05 Thread Cryssyenddo
Do you mean this part?: servlet servlet-nameshell/servlet-name servlet- classcom.google.gwt.dev.shell.GWTShellServlet/servlet-class /servlet I was wondering if changed these mapping, would be able to test run my GWT app in hosted mode? On the other

Re: Connecting to database with eclipse

2009-04-05 Thread Vitali Lovich
The gwt.xml is for the gwt framework is used, I believe, during the compilation phase so that the compiler generates the appropriate RPC calls knows how to compile your code. How are you planning on running your app in hosted mode through compiled javascript deployed in tomcat? Contradiction.

Re: Connecting to database with eclipse

2009-04-05 Thread Cryssyenddo
Thanks, but when i applied the changes...here's what i got: HTTP Status 404 - /vCarePortal.DiscussionBoard/DiscussionBoard.html type Status report message /vCarePortal.DiscussionBoard/DiscussionBoard.html

Re: Connecting to database with eclipse

2009-04-05 Thread Cryssyenddo
oh, by the way, i got these errors too: [WARN] Parse error in application web.xml org.xml.sax.SAXParseException: Error at (12, 20: Invalid url-pattern DiscussionBoard/DiscussionBoardServices in servlet mapping at org.apache.commons.digester.Digester.createSAXException

Connecting to database with eclipse

2009-04-04 Thread Cryssyenddo
Hi, I'm fresh to GWT. I'm using eclipse to develop a GWT appication and i'm having problems connecting to my database. project name is vCarePortal. I've included my JDBC in eclipse in the project libraries, and here's my method at my vCarePortal.server package: private Statement stmt;