当前位置: 首页 > 知识库问答 >
问题:

NetBeans Tomcat生成失败-模块尚未部署

干照
2023-03-14

我正在使用NetBeans 8.0和Apache Tomcat 7.0.56构建一个web应用程序。

下面是服务器日志(如果可能有用的话):

Using CATALINA_BASE:   "C:\Program Files\Java\apache-tomcat-7.0.56"
Using CATALINA_HOME:   "C:\Program Files\Java\apache-tomcat-7.0.56"
Using CATALINA_TMPDIR: "C:\Program Files\Java\apache-tomcat-7.0.56\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.7.0_40"
Using CLASSPATH:       "C:\Program Files\Java\apache-tomcat-7.0.56\bin\bootstrap.jar;C:\Program Files\Java\apache-tomcat-7.0.56\bin\tomcat-juli.jar"
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Java\apache-tomcat-7.0.56\logs\catalina.2014-11-24.log (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    at org.apache.juli.FileHandler.openWriter(FileHandler.java:386)
    at org.apache.juli.FileHandler.<init>(FileHandler.java:97)
    at org.apache.juli.FileHandler.<init>(FileHandler.java:88)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:374)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:558)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:501)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:311)
    at java.util.logging.LogManager$2.run(LogManager.java:294)
    at java.util.logging.LogManager$2.run(LogManager.java:292)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:292)
    at java.util.logging.LogManager.getLogManager(LogManager.java:274)
    at java.util.logging.Logger.<init>(Logger.java:264)
    at java.util.logging.Logger.<init>(Logger.java:260)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1412)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1410)
    at java.util.logging.LogManager$1.run(LogManager.java:196)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:173)
    at java.util.logging.Logger.demandLogger(Logger.java:336)
    at java.util.logging.Logger.getLogger(Logger.java:390)
    at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
    at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
    at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:169)
    at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
    at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:292)
    at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:59)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Java\apache-tomcat-7.0.56\logs\localhost.2014-11-24.log (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    at org.apache.juli.FileHandler.openWriter(FileHandler.java:386)
    at org.apache.juli.FileHandler.<init>(FileHandler.java:97)
    at org.apache.juli.FileHandler.<init>(FileHandler.java:88)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:374)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:558)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:501)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:311)
    at java.util.logging.LogManager$2.run(LogManager.java:294)
    at java.util.logging.LogManager$2.run(LogManager.java:292)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:292)
    at java.util.logging.LogManager.getLogManager(LogManager.java:274)
    at java.util.logging.Logger.<init>(Logger.java:264)
    at java.util.logging.Logger.<init>(Logger.java:260)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1412)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1410)
    at java.util.logging.LogManager$1.run(LogManager.java:196)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:173)
    at java.util.logging.Logger.demandLogger(Logger.java:336)
    at java.util.logging.Logger.getLogger(Logger.java:390)
    at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
    at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
    at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:169)
    at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
    at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:292)
    at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:59)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Java\apache-tomcat-7.0.56\logs\manager.2014-11-24.log (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    at org.apache.juli.FileHandler.openWriter(FileHandler.java:386)
    at org.apache.juli.FileHandler.<init>(FileHandler.java:97)
    at org.apache.juli.FileHandler.<init>(FileHandler.java:88)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:374)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:558)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:501)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:311)
    at java.util.logging.LogManager$2.run(LogManager.java:294)
    at java.util.logging.LogManager$2.run(LogManager.java:292)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:292)
    at java.util.logging.LogManager.getLogManager(LogManager.java:274)
    at java.util.logging.Logger.<init>(Logger.java:264)
    at java.util.logging.Logger.<init>(Logger.java:260)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1412)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1410)
    at java.util.logging.LogManager$1.run(LogManager.java:196)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:173)
    at java.util.logging.Logger.demandLogger(Logger.java:336)
    at java.util.logging.Logger.getLogger(Logger.java:390)
    at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
    at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
    at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:169)
    at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
    at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:292)
    at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:59)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Java\apache-tomcat-7.0.56\logs\host-manager.2014-11-24.log (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    at org.apache.juli.FileHandler.openWriter(FileHandler.java:386)
    at org.apache.juli.FileHandler.<init>(FileHandler.java:97)
    at org.apache.juli.FileHandler.<init>(FileHandler.java:88)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:374)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:558)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:501)
    at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:311)
    at java.util.logging.LogManager$2.run(LogManager.java:294)
    at java.util.logging.LogManager$2.run(LogManager.java:292)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:292)
    at java.util.logging.LogManager.getLogManager(LogManager.java:274)
    at java.util.logging.Logger.<init>(Logger.java:264)
    at java.util.logging.Logger.<init>(Logger.java:260)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1412)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1410)
    at java.util.logging.LogManager$1.run(LogManager.java:196)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:173)
    at java.util.logging.Logger.demandLogger(Logger.java:336)
    at java.util.logging.Logger.getLogger(Logger.java:390)
    at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
    at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
    at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:169)
    at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
    at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:292)
    at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:59)
Nov 24, 2014 11:34:23 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.31 using APR version 1.4.8.
Nov 24, 2014 11:34:23 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Nov 24, 2014 11:34:25 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1h 5 Jun 2014)
Nov 24, 2014 11:34:25 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Nov 24, 2014 11:34:25 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Nov 24, 2014 11:34:25 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2194 ms
Nov 24, 2014 11:34:25 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 24, 2014 11:34:25 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.56
Nov 24, 2014 11:34:25 PM org.apache.catalina.valves.AccessLogValve open
SEVERE: Failed to open access log file [C:\Program Files\Java\apache-tomcat-7.0.56\logs\localhost_access_log.2014-11-24.txt]
java.io.FileNotFoundException: C:\Program Files\Java\apache-tomcat-7.0.56\logs\localhost_access_log.2014-11-24.txt (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    at org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:1200)
    at org.apache.catalina.valves.AccessLogValve.startInternal(AccessLogValve.java:1261)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:185)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1137)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)

Nov 24, 2014 11:34:25 PM org.apache.catalina.startup.HostConfig start
SEVERE: Unable to create directory for deployment: C:\Program Files\Java\apache-tomcat-7.0.56\conf\Catalina\localhost
Nov 24, 2014 11:34:25 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\docs
Nov 24, 2014 11:34:25 PM org.apache.catalina.core.StandardContext postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\docs] for context [/docs]
Nov 24, 2014 11:34:26 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\docs is unusable.
Nov 24, 2014 11:34:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\docs has finished in 773 ms
Nov 24, 2014 11:34:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\examples
Nov 24, 2014 11:34:26 PM org.apache.catalina.core.StandardContext postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\examples] for context [/examples]
Nov 24, 2014 11:34:27 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\examples is unusable.
Nov 24, 2014 11:34:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\examples has finished in 707 ms
Nov 24, 2014 11:34:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\host-manager
Nov 24, 2014 11:34:27 PM org.apache.catalina.core.StandardContext postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\host-manager] for context [/host-manager]
Nov 24, 2014 11:34:27 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\host-manager is unusable.
Nov 24, 2014 11:34:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\host-manager has finished in 113 ms
Nov 24, 2014 11:34:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\manager
Nov 24, 2014 11:34:27 PM org.apache.catalina.core.StandardContext postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\manager] for context [/manager]
Nov 24, 2014 11:34:27 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\manager is unusable.
Nov 24, 2014 11:34:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\manager has finished in 104 ms
Nov 24, 2014 11:34:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\ROOT
Nov 24, 2014 11:34:27 PM org.apache.catalina.core.StandardContext postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\_] for context []
Nov 24, 2014 11:34:27 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files\Java\apache-tomcat-7.0.56\work\Catalina\localhost\_ is unusable.
Nov 24, 2014 11:34:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Program Files\Java\apache-tomcat-7.0.56\webapps\ROOT has finished in 109 ms
Nov 24, 2014 11:34:27 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Nov 24, 2014 11:34:27 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Nov 24, 2014 11:34:27 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1926 ms

共有1个答案

魏兴邦
2023-03-14

它清楚地表明,访问被拒绝

确保目录和文件c:\programfiles\java\apache-tomcat-7.0.56\logs\catalina.2014-11-24.log对于运行Tomcat的用户是可写的。

 类似资料:
  • 我的错误是: “./src/index.js中的错误 模块生成失败(来自./node_modules/babel-loader/lib/index.js): 语法错误:d:/cource/react project/webpacktutorial/src/index.js:意外标记(7:16)” 我不知道为什么这个错误发生每次我这样做可能的事情为webpack,我使用CSS加载器,巴贝尔加载器或许

  • 我一直在研究Java Web应用程序,我正在Netbeans 7.3上使用SmartGwt,突然间我遇到了这个问题。我尝试清理然后重新启动IDE,我应该说我对此知之甚少。有人可以告诉我为什么它给出一个错误,以及我如何解决这个问题吗? 错误消息说: 注意:我使用的是Tomcat 7.0.34

  • 我在Netbeans上遇到了一个问题,在任何成功的部署之后,他们向我显示以下消息: build-impl.xml:1045:模块尚未部署。 我一直在重新启动netbeans,并更改调试模式为真,但问题仍然存在。 这是build-impl.xml的第1045行: 帮帮我,谢谢!!

  • 我刚刚安装了netbean,我在部署一个新的Java网络应用程序时遇到了问题。我只是简单地创建了这个项目,而没有编辑任何东西,这是项目默认情况下所拥有的(使用apache): 错误:

  • 我是java EE的新手。制作了我的第一个持久性应用程序,但无法部署。 错误是: Glassfish窗口日志(无效资源): 原因:com.sun.appserv.connectors.internal.api.connectorruntime异常:无效资源:jdbc/zoodb__pm(位于org.glassfish.jdbcruntime.service.jdbcdatasource.valid

  • 所以我对此完全感到困惑。我的团队运行在同一个分支上,同一个代码提交上。我是唯一有这个问题的人。下面是完整的堆栈跟踪: 我遇到了多个答案,都与巴别塔6的用法有关,但目前对我并不适用。 我试过: 卸载和重新安装节点和npm版本(通过nvm) 删除所有节点模块,然后重新安装 NPM缓存清除 取消回购和重新克隆 为了更好地衡量,请重新启动我的计算机 Im running node V0.12.9和npm