Hi,

I have tried to find other posts here and elsewhere with a similar
problem to no avail.

I am using Intelli-J IDEA and structuring my GWT application into 3
*Intelli-J* modules (being different to GWT modules), client, rpc and
server. Client contains my widgets, rpc contains business objects and
my server interface, and server contains the server implementation.
Both client and server "intellij modules" have a dependency on rpc so
they can "see" the rpc classpath.

Intelli-J isolates the classpath of each module so they can be cleanly
separated at compile time and run time. However, doing this, I get an
error, shown here against the example GWT DynaTable application.

[ERROR] Unable to instantiate
'com.google.gwt.sample.dynatable.server.SchoolCalendarServiceImpl'
java.lang.ClassNotFoundException:
com.google.gwt.sample.dynatable.server.SchoolCalendarServiceImpl
[ERROR] Unable to dispatch request

Now, I can get round this by configuring Intelli-J to not isolate the
classpath at runtime, but my question is, shouldn't the client be
unaware of my server implementation class?

I notice the client is configured with, the following, which strikes
me as strange, because it references the server implementation class
(rather than an interface or something).

<module>
        <inherits name='com.google.gwt.user.User'/>
        <entry-point class='com.google.gwt.sample.dynatable.client.DynaTable'/
>
        <servlet path='/calendar'
class='com.google.gwt.sample.dynatable.server.SchoolCalendarServiceImpl'/
>
</module>

I'm just wondering why it is this way, and whether I can specify just
the interface instead so can isolate the classpath at runtime too? Or
perhaps this is just a quirk of GWT? (which otherwise I am extremely
pleased with!)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to