Failed on Deploying ExtGWT-Spring project on Eclipse - eclipse

I'm developing an application using UI technologies Ext-GWT version 2.x and Spring Framework. Previously I imported an existing project, and then make some changes in the interface. After I did the "Run on Server" using Eclipse Indigo, it turns out the changes that I did, is not happening. Interface remains as usual. I try to print something on the Main panel, also did not display anything on the console, while if I do print something on the back-end that using Spring Framework (still on the same eclipse project), something is printed in the console.
Is there anyone ever experienced the same problem? How is the solution to this problem?
I've tried deleting all the files in the build folder, to be "forced" to get a compilation of new classes, it did not solve the problem.
Any suggestion, clue, will be appreciated. Thanks in advance.

Try clearing the browser cache before refreshing to see your changes.
Browsers cache .js files and sometimes your changes are not reflected right away.

Related

Eclipse, maven, tapestry, tomcat auto load

I'm running eclipse mars EE. I have a maven project with tapestry 5.4.1. I have tomcat 7 maven plugin and everything is working fine except I'm not able to immediately see changes to tml and css files. When I make a change to any file it's eventually reloaded but it takes time which slows development. I want to be able to see css and tml changes instantly. I can wait for java changes until tomcat reloads them but I can't wait for css and tml changes.
I've read several articles on configuring the tomcat server within eclipse including this stackoverflow entry
However, they don't seem to work or achieve what I want. It seems the issue lies in the fact that tomcat has to wait for a new jar/war to be created and deployed instead of pulling the files directly from the project.
Also, I'm aware of Tapestry's class reloading feature....which doesn't seem to work either. Perhaps my project isn't configured correctly? Here is a screen shot of my project
There MUST be a way to accomplish this. We've all been writing web apps for tomcat in eclipse for 15 years!
Thanks for your help!
It sounds like you may have several issues that are described in the "Troubleshooting Live Class Reloading" section at the bottom of the https://tapestry.apache.org/class-reloading.html page. Please read the Tomcat-specific help at http://www.tynamo.org/Developing+with+Tomcat+and+Eclipse/ if you haven't already.

Stop exiting Eclipse with Play 2.3.X

If I run my application (Play 2.3.2) while Eclipse is running I always have strange compilation errors, no class def found errors, class not found errors, etc...
If I exit Eclipse and run my application, everything is working fine. But sometimes it's also working fine while Eclipse is running.
Am I the only one to experience that ? What is the cause ?
I suspect something in Eclipse changes my source files but I can't find what.
Maybe Lombok ?
Thanks.
I have similar problems. Typesafe responded with a solution which I am currently trying out.
https://groups.google.com/forum/#!topic/play-framework/4RnbqEk-muM
Brief summary of the answer by #jroper :
Eclipse doesn't know
how to keep its dirty hands off the same build directory that Play is
using to compile your app - if you have both Play, and the IDE, trying
to compile the same code at the same time, what do you think will
happen? You will see random errors. You should configure Eclipse not
to automatically build your app, or configure it to have different
output directories.
The Play Framework compiles everything to the directory target/scala-2.11/classes. When changing some of these classes, especially any views, causes Activator to auto compile the classes creating new class files. Hitting refresh on the project in Eclipse will update the project and class files in the classes directory causing a rebuild. This should make your compilation errors go away. If you still have issues, take a look at your .classpath file and the Eclipse build path settings.

Moving Web App from Netbeans to IntelliJ 10

... I have a web app started/developed with Netbeans and would like to move it to Intellij 10, but so far can't do it. Not easily at least. I tried to go the 'Create new project with existing sources' but that doesn't seem to work very well. IntelliJ is bungling the directory structure of the project.
That same project is also in a svn repository and I've not tried it yet, but would I have better luck checking out that project from svn in IntelliJ?
I guess manually copying over the existing dir structure manually over to an existing IntelliJ web project is an option, but that sounds like the last resort.
Thanks in advance.
... checking out the project from svn did the trick. I eventually got the app running on Tomcat, but in all honesty, IntelliJ makes the whole process an ordeal compared to NetBeans. Now I remember why I stuck with NB for web dev.
However if there is a better/easier way to accomplish this, please chime in.
ps: once the project is checked out code change/commits are pretty seamless between both ides

GlassFish NoClassDefFoundError - Netbeans project

I'm sometimes getting NoClassDefFoundError after deploying web application in Netbeans (6.9.1). It's actually problem with Netbeans not deploying entire project (not copying class files or other relevant files), but only part of it.
Running "Clean & Build" a few times and/or copying rest of the files solves the problem, but it's very inconvenient.
Anyone knows the cause or solution of this problem?
Try clearing your Netbeans cache, or check out the bug fixes for Netbeans 7.
The cache is at ~/.netbeans/6.9/var/cache. I found instructions to just delete the index/ folder in the cache, but that didn't seem to be enough.
EDIT: Deleting the entire cache didn't seem to resolve it, either.
Your answer is not much clear but,
I suggest to add your required jar files in Netbeans library then import the library into your project..
If this does not work then i'll be glad to having the complete situation and errors to be written here...

Eclipse ignoring source when deploying webapp

I'm running eclipse with tomcat 5.5. For some unknown reason from one day to the other eclipse stoped compiling my beans and java files that are in the source folder.
If I go to the work directory, I find all the JSP compiled, the folders of the packadges i have, but no classes compiled inside of them. Neither eclipse, nor tomcat give errors. (Except when i try to access the non existing classes)
Anyone has any idea why this happens and how to fix it?
/fmsf
You might have "Build automatically" disabled. You can find it in the Project menu.
I've faced with such a scenario once. In addition it did not detect the local changes w.r.t the code repository. Honestly I don't know the reason but use of a new eclipse installation (Extraction) on same workspace resolved the issue.
Found the problem:
One of the files came out of SVN without read access. Eclipse blocked reading it and wouldn't compile.
+1 to all tks