So what are the full limitations?  As far as I understood it, you need
to put the client code under a client directory, and the server code
under the server directory.  Which is what I did.  But in order to
promote code re-usability, which I think GWT would support packaging
code into separate libraries so others can use it.  This is what I
did.  So what I'm wondering if some how I need to tell the compiler
that the server side code under my.project.server, should not be
analyzed.  Which, as far as I can tell, there is no way to tell that,
it basically picks it based on the .server aspect, vs. .client.  Yet
it is still trying to validate that my server side code is GWT
compliant, which obviously it doesn't need to.  If I move this same
servlet code (Impl class) under my main project
(my.main.project.server), then it doesn't through these errors.  It
just doesn't like being included in a jar under .server, and wants to
check it. Although, it runs fine.  It just throws those alerts that
they are not GWT compliant, which is correct, but I personally don't
think it should be checking it.

My main question is whether there is something that I need to put in
my gwt.xml file to tell it, that the Impl class under the .server
package is in fact server side code, and it doesn't need to analyze
and validate it?


On Sep 23, 8:28 am, walden <[EMAIL PROTECTED]> wrote:
> Maybe also "hard to do", but I would suggest you go with the flow on
> these...
>
> > lists all the line numbers and the various libraries that GWT doesn't
> > support.  It'd be nice to have some sort of ignore for this.
>
> It's arguably better that you fully understand the limitations of a
> GWT compile, and use that to keep a strict separation of classes, and
> avoid misunderstandings and other mishaps later.
>
>
>
> > One thing that would be swell of the GWT team to do, would be to have
> > a compile to war button.  Then i could click that and it compiles all
> > the stuff into a nice package for me to deploy :)
>
> The GWT team is not George Bush ;-)  ("compile war" joke)
>
> But serously, there is too much variation in the way different
> projects put together web content for GWT to get into this, too much
> opportunity to "get in the way".
>
> Walden
>
>
>
> > On Sep 22, 2:40 pm, walden <[EMAIL PROTECTED]> wrote:
>
> > > Ben,
>
> > > First of all, I checked with Neil Sedaka, and it's okay for you to use
> > > this thread title.  Neil's a nice guy that way.
>
> > > On Sep 22, 10:05 am, ben <[EMAIL PROTECTED]> wrote:
>
> > > > Just following up on this, to see if anyone can lend some support.  I
> > > > have this working in hosted mode.  But when I create my war, it
> > > > doesn't find my Implementation class that's inside my included jar
> > > > file.  It does find the one that inside of my overall application, but
> > > > not the one in my core file.  I have it in my web.xml file, as well as
> > > > it's included .jar file in my WEB-INF/libs.
>
> > > > Tomcat is still throwing a CLASS NOT FOUNDExecption.  Any thoughts on
> > > > why it doesn't want to load the servlet?
>
> > > Your build/deploy is introducing some entropy into the system.  To get
> > > specific, please copy and post the log exerpts here (both from Tomcat
> > > failing to load your service class, and from the GWT compiler failing
> > > to compile your client code.
>
> > > Hosted Mode is jury rigged through com Eclipse config, so I wouldn't
> > > put any stock in that.
>
> > > >  When I compile it still
> > > > throws errors from GWT, because my GWT is trying to say the Impl class
> > > > is part of the javascript.  This isn't the case, and it's under
> > > > server.utils.  But in hosted mode it all still works as it should.
>
> > > > On Sep 18, 1:11 pm, ben <[EMAIL PROTECTED]> wrote:
>
> > > > > I seemed to have it working now, by putting in the servlet register
> > > > > code into the  core.gwt.xml and not in the main app location.
>
> > > > > But the weird thing is that when it loads I get all those errors still
> > > > > (the items not supported by GWT -- BufferedReader, java.net etc).
> > > > > But everything still seems to work.  How do I tell it that it shouln't
> > > > > be looking in my core.server package?
>
> > > > > On Sep 18, 10:22 am, ben <[EMAIL PROTECTED]> wrote:
>
> > > > > > So I'm starting to get fancy with my organization with our could. We
> > > > > > actually have several GWT efforts going on, so we want common code
> > > > > > sets. We were able to break up our Client side code into seperate 
> > > > > > .jar
> > > > > > files, and include them into our overall applications just fine.  
> > > > > > Well
> > > > > > now, I've gone and blown it up.  I'm trying to work around the SOP
> > > > > > issue, and just have all my requests that aren't on the server go 
> > > > > > to a
> > > > > > servlet, which will return the resulting page.
>
> > > > > > The logic seems fine, but my issue is that this code is in our core
> > > > > > library.  The core library now bombs when I run the application.  It
> > > > > > can't find java.io.BufferedReader, File, etc. java.net, etc.
>
> > > > > > The other one of note, which may be causing all my problems, is that
> > > > > > it cannot find the library com.google.gwt.user.server!
>
> > > > > > I'm thinking this is because the core.server library, isn't actually
> > > > > > being run as if it's on the server, and that may be because I 
> > > > > > haven't
> > > > > > registered the library correctly.  The properties of core include 
> > > > > > the
> > > > > > libraries to gwt-user and gwt-server.  Inside the main app we have a
> > > > > > core.gwt.xml which inherits the User, XML, HTTP, and I18N (don't 
> > > > > > know
> > > > > > if I need all those anymore, but I've been trying various stuff), 
> > > > > > plus
> > > > > > points the sourch path to our corejs library.
>
> > > > > > This core.gwt.xml file is inherited inside of our overall 
> > > > > > application.
>
> > > > > > Note, all this worked fine, until I added the server side stuff.  
> > > > > > I'd
> > > > > > like to be able to register my IMPL class if needed no my overall 
> > > > > > app
> > > > > > ( I put a servlet path reference to it, which I don't think is the
> > > > > > problem, yet anyway)  I still have to get past the compile errors.
> > > > > > I'm guessing I'm missing some implementation somewhere.  Any help
> > > > > > would be greatly appreciated.
>
> > > > > > PS. I'm using eclipse and GWT 1.4.6- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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