我刚刚升级到现在尝试发布到 Apache Tomcat 7.0.30 时出现错误。错误是:
java.lang.NullPointerException
at java.io.FileInputStream.<init>(Unknown Source)
at org.eclipse.wst.server.core.util.PublishHelper.copyFile(PublishHelper.java:501)
at org.eclipse.wst.server.core.util.PublishHelper.copy(PublishHelper.java:563)
at org.eclipse.wst.server.core.util.PublishHelper.publishFull(PublishHelper.java:537)
at org.eclipse.wst.server.core.util.PublishHelper.copy(PublishHelper.java:554)
at org.eclipse.wst.server.core.util.PublishHelper.publishFull(PublishHelper.java:537)
at org.eclipse.wst.server.core.util.PublishHelper.copy(PublishHelper.java:554)
at org.eclipse.wst.server.core.util.PublishHelper.publishFull(PublishHelper.java:537)
at org.eclipse.jst.server.tomcat.core.internal.PublishOperation2.publishDir(PublishOperation2.java:132)
at org.eclipse.jst.server.tomcat.core.internal.PublishOperation2.execute(PublishOperation2.java:82)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.performTasks(ServerBehaviourDelegate.java:1290)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:933)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3108)
at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
请注意,我对 Juno 进行了全新安装,为它创建了一个新工作区(即没有复制/转换/重命名旧的 eclipse 工作区)并在 Juno 中从头开始创建服务器!
TIA