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
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
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);
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);
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:
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
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;
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;
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,
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
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.
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,
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
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
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,
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
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.
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
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
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;
20 matches
Mail list logo