Thursday, January 26, 2012

Re: GWT App Deployed To Tomcat Displays Old Content

Thanks. I'll keep that in mind and will move to another server and
see. I already tried with a TC 6 install on the same host as the TC7
install (only one instance running at a time, though).

With regards to running TC with Eclipse, I think there may be a
misunderstanding. I'm not running TC within Eclipse for my
development testing. My TC instance is completely separate from
Eclipse. When I test within Eclipse, I'm using the GWT App Engine
which I believe is an embedded Jetty server.

I'll keep trying and I'm hoping that there's a flag or a process that
I'm missing but it doesn't make a lot of sense that the same process
to initially package and deploy the source doesn't pick up the new
changes. I have literally deleted the UI components from my rootPanel
class in the Designer and recompiled the project only to have it
reappear when I deploy outside of Eclipse.

Thanks,
KGD

On Jan 26, 4:01 pm, Alan Chaney <a...@mechnicality.com> wrote:
> Hmm...
>
> Well, the next thing I'd try and do is take the war to a separate
> machine, set TC 7 up on that, and then do a wget tohttp://localhost:8080/<whatever your context name is> and see what's what.
>
>  From what you've said, it seems very unlikely that its anything to do
> with GWT. Are you absolutely sure you don't have some proxy or something
> thats caching what you had originally? If the war has the "right stuff"
> in it, then you shouldn't be seeing anything else - if the war has the
> old stuff still in it, then its your build process. Don't forget as
> someone pointed out earlier that when you are running Tomcat with
> Eclipse, by default the TC webapps dir is *NOT* in the actual TC
> installation - its in ${workspace_loc}
> .metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/<your
> context>
>
> You can configure this from within Eclipse.
>
> Regards
>
> Alan
>
> On 1/26/2012 12:49 PM, KGD wrote:
>
>
>
> > That's right and that's why I'm perplexed.
>
> > In trying to resolve this, I unpacked the war file and decompiled the
> > class files and the code is the good/current code base for my app
> > which executes correctly in the App Engine development mode within
> > Eclipse.
>
> > Here are my steps for deployment of my code:
> > 1. Select<Project>  from the Eclips project tree
> > 2. From the Eclipse menu bar, select the GWT | GWT - Compile Option
> > 3. No errors during compilation
> > 4. Select<Project>  from the Eclipse tree and right-click and select
> > 'Export'
> > 5. Set the export location to be<Project>.jar in the war\WEB-INF\lib
> > \<Project>.jar
> > 6. Using an ant build.xml, run as Ant Build; war file created
> > 7. Using Tomcat Manager app, 'choose file'<Project>.war
> > 8. Select Deploy
> > 9. War file deployed, application context exists
> > 10. Select app context and OLD CONTENT displayed.
>
> > I've opened the<project>.nocache.js file and it appears to reflect
> > what I think are the appropriate bindings for my rpc calls; definitely
> > more than static placement of values from original test deployment.
>
> > Thanks,
> > KGD
>
> > On Jan 26, 2:31 pm, Alan Chaney<a...@mechnicality.com>  wrote:
> >> So if its deploying the wrong data, then that data must be in the war.
>
> >> How are you building the war? ant? eclipse 'export' or simply zipping
> >> the war folder?
>
> >> Alan
>
> >> On 1/26/2012 11:13 AM, KGD wrote:
>
> >>> Yes, I am deploying to my Tomcat installation as a war file.   I use
> >>> Eclipse to test my code with the App Engine before packaging the war
> >>> and deploying on Tomcat.
> >>> Thanks,
> >>> Keith
> >>> On Jan 26, 9:23 am, Alan Chaney<a...@mechnicality.com>    wrote:
> >>>> Are you deploying to tomcat as a war?
> >>>> I re-read your earlier replies on the list and its not clear whether you
> >>>> have a separate war or are deploying through eclipse.
> >>>> Alan
> >>>> On 1/23/2012 7:52 PM, KGD wrote:
> >>>>> Hi,
> >>>>>            I am currently using Eclipse with GWT SDK 2.4.0 to develop a
> >>>>> GWT application.  Inside Eclipse, I have tested my application to
> >>>>> ensure it pulls the dynamic content from a mysql database correctly.
> >>>>>            I have deployed it to a local Tomcat 7 installaton and the
> >>>>> application war file deploys successfully.  However, the page displays
> >>>>> the OLD hard-coded content which were merely placeholders.
> >>>>>            The content that is displayed when I deploy the app to Tomcat
> >>>>> does not exist ANYWHERE in my source code as I removed it when I
> >>>>> changed the source to my database.
> >>>>>              Again, the app works fine when using the embedded App Engine
> >>>>> for testing but real deployment to Tomcat continues to reflect old
> >>>>> content.
> >>>>>              I have started/stopped Tomcat, cleared my browser cache,
> >>>>> manually deleted all files from the Tomcat webapps directory and still
> >>>>> it's the exact same.
> >>>>>             There must be something that I'm missing and I'd appreciate
> >>>>> any help that is available.
> >>>>> Thanks,
> >>>>> KGD

--
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, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment