When I run my GWT 2.7.0 app in Eclipse, all is fine.
I compile the app Right click on project > Google > GWT Compile. I build my war. Copy the war in the webapps directory.
I get the first page ok (static HTML), then when I click on the app, after some time, I get a message box that says:
The page at xxx:8081 says:
Couldn't load app from Super Dev Mode
server at http://xxx:9876.
Please make sure this server is ready.
Do you want to try again?
Here is what happened:
In debug / deployment mode, as I was working within eclipse, a library which used to be 100% compatible with GWT Client Side has evolved and is not anymore. It seems that the library was not recompiled while I was testing it (no need for recompilation) but when I compiled for deployment it did want to recompile the library, failed, but build the war anyway (probably lack of testing on the result), deployed the war, and got this error...
I found the same problem. And this happends because I generated the war file after deploying the project in Super Dev mode. The solution for me was to compile the project and generate the war before deploying it in Super Dev mode (which it is supposed to use the 9876 port not used in tomcat)
Related
I am trying to set up eclipse so that I can work on a maven web application which packages as a war file without building the war file and deploying to tomcat webapps manually.
This would also allow me to step through the code. I have installed tomcat 7 and my app deploys there ok and I have pointed eclipse at the installation of tomcat but it does not seem to deploy properly even though the manual deployment works fine.
The issue I get when deploying is that eclipse informs me that tomcat was not able to start.
To deploy my app I am going "servers >> add and remove" and then deploying my application from the available list by moving it into the configured list. After doing this and starting the tomcat server I get the error message.
Can anybody help me with running the app from within eclipse based on the compiled code and not on whats in the war file as ideally my end result would be to be able to step through code I am working on without building the war file first.
Thanks
I finally sorted this out after a few hours of messing around reading numerous posts, so hopefully this answer may help someone else who gets the error message:
"Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds"
Below are the steps I took:
1) Backed up my projects in my work space and then deleted the workspace
2) Recreated the workspace and imported my projects back into it
3) (this bit was crucial for me) - Added a connector to my server.xml on port 8080 as my app was set up to only run with SSL, it seems that eclipse tries to verify your app started by hitting the root of the web app and it couldnt do this due to the SSL connector.
I hope this helps someone out.
I have run a j2ee application in tomcat/eclipse for several months now, but suddenly (after working with changed in the css files), I get the server error:
The requested resource /appname/ is not available. I'm totally lost. I've gone through a number of posts. This one describes my problem: Eclipse is not detecting servlet libraries, but I've gone through everything in that post without finding any missing jars or servers or anything in my project.
I'm running Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 1.
Project -> Properties -> Server shows Tomcat v6.0 Server at localhost
Project -> Build path, please see attached screen dump.
Project -> Project Facets: Dynamic Web Module 2.5 and Java 1.6 is checked.
I have tried to clean and rebuild the project.
I'm running over https so I'm connecting to https://localhost:8443/appname/Start. I'm not sure if that could be the problem, but it has worked ok until now.
Can anyone give me a hint what can be wrong?
Finally got it working again, but I honestly don't know exactly what fixed it.
I started with removing some servlets/servlet mappings from the web.xml file. After having done that change, when restarting the server, the Start servlet was found, but the jsp that the servlet was forwaring to was not (and the url to the jsp page looked strange). Also the logcat property file was not found. I read in another post that the Server might need to be cleaned so I did that and then cleaned the project once again. Then restarted the Server and now it's the application is running again.
Thanks for your help anyway, Andrei.
try cleaning your tomcat from eclipse:
right click in tomcat > clean.
then restart your server
Sounds simple, but I'm having lots of issues.
I want to run a GWT project in a tomcat on Intellij-idea 10.
Does anyone know how to set up the run config?
Regards,
Charles.
You can use '-noserver' option to start Dev Mode under Tomcat. Edit your GWT run configuration by adding '-noserver -port 8080' to 'Dev Mode parameters' field, then run the Tomcat configuration and after that run the GWT configuration.
This all implies that this is a development run, i.e. for local testing/debugging purposes. This is not deployment to production servers. I also assume you have GWT and Web facets defined for this project.
If you need GWT debugging, then you must run as GWT run configuration: here you can only choose a Default server (Jetty that comes with GWT) or an AppEngine Development server (if installed).
If you must run under Tomcat, then:
a. Add a Tomcat server under Settings - App Servers.
b. Create an Artifact - WAR exploded (under project settings). Add all items in right pane to the left pane.
b. Create a Tomcat run configuration with this Artifact.
You first run gwt compiler for compile gwt module, then compiler creates to your hosted .js and .html files. And you can run tomcat as usual but tomcat does not compiles your gwt modules.
I suggest you t use ant to compile gwt modules.
i have a problem with netbeans IDE.
i created a web project , i can run it by index.jsp. it`s deploy and running successfully
but when i create webService in that, the project can deploy but not running
and web service dont run .
when i test web service, i see this warning:
Unable to open web service tester page:
http://localhost:8084/sample4/TestWebService
Make sure the service has been deployed successfully, and the server is running.
netbeans version is 6.8
tomcat 6.0
jdk 1.6
Can somebody please advice on this issue?
In my case, quite an obscure problem:
Project A is a Web project with dependency on project B, which depends on project C. Project C is the web service client generated with wsimport from the WSDL generated by project A (somehow a clean cycle).
My problem arised at the very moment when I rearranged the order of the libraries of project B, placing project C as the first of the list in the classpath (don't know if this matters, but before the call to catalina.jar).
So, when I rearranged my libraries in project B, placing the reference to project C as second of the list, everything went back to normal.
Wether if this works or not, please comment.
In my eclipse web application I made a Web Project and a Library Project. The Web Project referenced the Library Project.
When I started the Server, every time I change a code in the Library Project and build it. The server wants to restart and it does not redeploy by the Web Project only. I do not want to restart the server because it takes a lot of time waiting the startup of the server.
Another is I am developing portlets using Liferay Portal and every time I change the Library Project, the auto-deploy of Liferay comes in but the Library Project Jar is locked and resulted to crash the portlet and did not deploy it until I restart the server.
Please Help!!!
In Java EE perspective find "Servers" tab at the bottom, delete your EAR out of there.
Try JavaRebel
If you install the nightly build of Liferay IDE (eclipse plugins for Liferay) it has support for delta-deployment where after the initial deployment (full deploy) it will only deploy the delta or just the individual files that you change as you save them (a single JSP or CSS file, etc).