浏览器不显示Vaadin项目的变化 - 使用Windows

时间:2015-02-21 21:05:46

标签: java eclipse tomcat vaadin

我的所有网络浏览器都没有显示我的vaadin项目的当前更改。

  • vaadin项目部署在tomcat上
  • 我在eclipse中使用tomact 6和vaadin 6
  • 我试图重启tomcat - 没有成功
  • 我还试图删除浏览器的缓存 - 没有成功
  • 我还在server.xml中设置了项目上下文的cookies =“false” - 没有成功

这是我的eclipse控制台:

Feb 21, 2015 9:46:26 PM org.apache.catalina.core.AprLifecycleListener init
INFORMATION: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: G:\Java\jdk1.8.0_25\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;G:/Java/jdk1.8.0_25/bin/../jre/bin/server;G:/Java/jdk1.8.0_25/bin/../jre/bin;G:/Java/jdk1.8.0_25/bin/../jre/lib/amd64;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;G:\ATI Technologies\ATI.ACE\Core-Static;G:\IsoBuster;C:\Program Files (x86)\Windows Live\Shared;G:\Calibre2\;G:\Java\jdk1.8.0_25\bin;G:\Entwicklung\MySQL\MySQL Utilities 1.4.3\;G:\Entwicklung\MySQL\MySQL Utilities 1.4.3\Doctrine extensions for PHP\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;G:\Entwicklung\eclipse;;.
Feb 21, 2015 9:46:26 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ProjectVaadin' did not find a matching property.
Feb 21, 2015 9:46:27 PM org.apache.coyote.http11.Http11Protocol init
INFORMATION: Initializing Coyote HTTP/1.1 on http-8080
Feb 21, 2015 9:46:27 PM org.apache.catalina.startup.Catalina load
INFORMATION: Initialization processed in 444 ms
Feb 21, 2015 9:46:27 PM org.apache.catalina.core.StandardService start
INFORMATION: Starting service Catalina
Feb 21, 2015 9:46:27 PM org.apache.catalina.core.StandardEngine start
INFORMATION: Starting Servlet Engine: Apache Tomcat/6.0.43
Feb 21, 2015 9:46:27 PM org.apache.coyote.http11.Http11Protocol start
INFORMATION: Starting Coyote HTTP/1.1 on http-8080
Feb 21, 2015 9:46:27 PM org.apache.jk.common.ChannelSocket init
INFORMATION: JK: ajp13 listening on /0.0.0.0:8009
Feb 21, 2015 9:46:27 PM org.apache.jk.server.JkMain start
INFORMATION: Jk running ID=0 time=0/16  config=null
Feb 21, 2015 9:46:27 PM org.apache.catalina.startup.Catalina start
INFORMATION: Server startup in 564 ms
Feb 21, 2015 9:46:32 PM com.vaadin.terminal.gwt.server.AbstractApplicationServlet checkProductionMode
WARNUNG: 
=================================================================
Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
To show debug window, add ?debug to your application URL.
=================================================================
Feb 21, 2015 9:54:17 PM org.apache.catalina.core.StandardContext reload
INFORMATION: Reloading Context with name [/ProjectVaadin] has started
Feb 21, 2015 9:54:42 PM com.vaadin.terminal.gwt.server.AbstractApplicationServlet checkProductionMode
WARNUNG: 
=================================================================
Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
To show debug window, add ?debug to your application URL.
=================================================================

我的Tomcat设置:

enter image description here

感谢您的帮助


UPDATE1:我发现我必须重新启动Eclipse才能让我工作但这真的很烦人


解决方案:问题在于我的操作系统。 Windows确实锁定了文件。所以你需要告诉tomcat他必须解锁它们。读这个:

https://confluence.sakaiproject.org/display/BOOT/Avoiding+JAR+and+file+locking+under+Windows

在我的tomcat的context.xml中完成了那些更改后,我只需要重新启动tomcat,并且所有操作都像通常那样工作。

1 个答案:

答案 0 :(得分:1)

Java Servlets不像PHP,python等。您必须等待部署。在eclipse crtl + shift + s中更改一些内容然后等待并查看控制台。 20秒,5分钟。你应该再次在控制台中看到:

lut 24, 2015 2:36:19 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/ProjectVaadin] is completed

然后刷新网页。

你也可以保存所有文件(crtl + shift + s)按Crtl + F5并检查重启tomcat。

您也可以使用JRebel非常好的Eclipse工具。

PS。 BTW。不要使用旧的Vaadin 6.