【发布时间】:2015-02-21 21:05:46
【问题描述】:
我的网络浏览器都没有显示我的 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 设置:
感谢帮助
UPDATE1:我发现我必须重新启动 Eclipse 才能正常工作,但这真的很烦人
解决方案:问题出在我的操作系统上。 Windows 确实会锁定文件。所以你需要告诉tomcat他必须解锁它们。读这个:
https://confluence.sakaiproject.org/display/BOOT/Avoiding+JAR+and+file+locking+under+Windows
在我的 tomcat 的 context.xml 中完成这些更改后,我只需要重新启动 tomcat 就可以正常工作了。
【问题讨论】:
-
不太清楚您所说的
show the current changes是什么意思。我将假设您修改了一些类并且更改不会传播。我在 Eclipse 中遇到过几次这个问题,我的解决方案是 1)在 Eclipse 中刷新(F5 或右键单击 -> 刷新)整个项目 + 2)右键单击 -> 在服务器视图中清理。 -
如果我将一些小部件添加到我的主窗口,它们不会显示在浏览器中 - 是的,好的,谢谢。生病尝试你的解决方案
-
第二个解决方案(tomcat-> clean)工作了一次。然后我更改了代码中的某些内容并再次尝试,现在我收到错误消息:“无法删除 G:\Entwicklung\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps \ProjectVaadin\WEB-INF\lib\vaadin-6.8.15.jar。可能被另一个进程锁定。"真的很烦:(
-
您是否尝试将 ?restartApplication 添加到 URL 中?例如localhost:8080/MyApp/?restartApplication
-
是的,我也试过了。没用:/
标签: java eclipse tomcat vaadin