It could possibly be because I am using Enunciate to develop my
application with. Here is my complete error:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Problem assembling the enunciate app.

Embedded error: Class not found: TreeModel

I've just tried putting TreeModel into my gwt.xml file : <inherits
name='com.myApp.client.models.TreeModel'/> however this doesn't appear
to work either. I have posted this to the Enunciate Mailing List as
well, so hopefully one of those guys can enlighten me if it's a
probably with Enunciate and not GWT/GXT.

Malcolm

On Jul 7, 9:28 am, andreas <horst.andrea...@googlemail.com> wrote:
> Sorry, it's war/WEB-INF/classes/.
>
> On 7 Jul., 10:26, andreas <horst.andrea...@googlemail.com> wrote:
>
>
>
> > You do not have to move something out of 'client' packages to have it
> > on your server. This is definitely wrong!
>
> > You do have to move classes you want to have on the client or both
> > client and server into the client packages (or declare those packages
> > in your *.gwt.xml files).
>
> > Since you want your class to be passed from the client to the server
> > this class definitely needs to be in your 'client' package. I don't
> > know why you get an error on compiling, maybe you can give more
> > informations on this one. GWT compiles all Java files (also those in
> > 'client') to .class files in your war/WEB-INF/src/ folder so all
> > classes will be accessible on the server.
>
> > Andreas
>
> > On 7 Jul., 10:02, day_trader <mwmcmul...@gmail.com> wrote:
>
> > > This is where I am rather confused. As when i move it to
> > > a package which isn't named in the .gwt.xml file I receive
> > > an error of "cannot be resolved to a type". Which is fair enough,
> > > as I assumed everything in the .gwt.xml was putting the classes
> > > in 'view' of everything in the application? Or perhaps I'm very
> > > muddled up!
>
> > > Sorry for the continued annoyance! I very much apologise.
>
> > > Malcolm
>
> > > On Jul 7, 5:11 am, Sunny <pratik.sachd...@gmail.com> wrote:
>
> > > > Hi day_trader
>
> > > > As far as i can think is that you are trying to pass an object with
> > > > the data of the class..
>
> > > > now to make your class go to the server side all you need to do is to
> > > > move it to a package that is in the package that is *not* mentioned in
> > > > your <your_gwt_xml>.gwt.xml file as the classes in these
> > > > packages,which are mentioned in the gwt.xml file, get "ajaxified" and
> > > > sent on to the client.
>
> > > > Hope this helps.
>
> > > > Sunny.
>
> > > > On Jul 6, 5:04 pm, day_trader <mwmcmul...@gmail.com> wrote:
>
> > > > > Thanks for the replies thus far.
>
> > > > > That all makes sense. I did have strong doubts about the likelihood of
> > > > > what I wanted but as I am not an expert in the field I thought it was
> > > > > better to make sure.
>
> > > > > Actually, my problems would be solved quite quickly if I got around my
> > > > > initial problem that led to this posting. Basically, there is a class
> > > > > in my client side, under myApp.client.models.SomeModel that I need to
> > > > > pass to the server. The problem is that the server cannot see this
> > > > > class as I get an error when I try to compile it. My question is: How
> > > > > do I check if the class is on my SERVER classpath?
>
> > > > > Thanks :)

-- 
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-tool...@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.

Reply via email to