环境:Ubuntu14.04LTS,NetBeans 7.3.1,Tomcat 7.0.34
我的项目进行得很好,突然间我得到了这个error
/my/project's/path/nbproject/build-impl.xml:1048: The module has not been deployed.
See the server log for details.
BUILD FAILED我研究了一个星期,我尝试了一切:检查数据库username和password,安装tomcat管理,清除netbeans缓存等等。
我查看了tomcat logs,发现唯一可疑的东西是在localhost_access_log.(date).log文件中:
127.0.0.1 - - [02/Jun/2016:11:40:43 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [02/Jun/2016:11:40:43 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [02/Jun/2016:11:40:43 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [02/Jun/2016:11:40:43 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [02/Jun/2016:11:40:43 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [02/Jun/2016:11:40:43 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [02/Jun/2016:11:40:43 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:40:46 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:40:49 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:40:52 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:40:52 +0300] "GET /Test/service/info/ HTTP/1.1" 200 20468
127.0.0.1 - - [02/Jun/2016:11:40:55 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:40:55 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:40:58 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:41:01 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:41:04 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:41:07 +0300] "GET /manager/text/list HTTP/1.1" 404 985
127.0.0.1 - - [02/Jun/2016:11:41:07 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext3726028026992785425.xml&path=/Test HTTP/1.1" 404 989
127.0.0.1 - - [02/Jun/2016:11:41:10 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext3726028026992785425.xml&path=/Test HTTP/1.1" 404 989
127.0.0.1 - - [02/Jun/2016:11:41:13 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext3726028026992785425.xml&path=/Test HTTP/1.1" 404 989
127.0.0.1 - - [02/Jun/2016:11:41:16 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext3726028026992785425.xml&path=/Test HTTP/1.1" 404 989
127.0.0.1 - - [02/Jun/2016:11:41:19 +0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext3726028026992785425.xml&path=/Test HTTP/1.1" 404 989
127.0.0.1 - - [02/Jun/2016:11:41:22 +0300] "GET /Test/service/info/ HTTP/1.1" 200 20468
127.0.0.1 - - [02/Jun/2016:11:41:31 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [02/Jun/2016:11:41:31 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - - [02/Jun/2016:11:41:32 +0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -我看到了很多404错误。
哦,当我运行应用程序时浏览器没有启动。但这很可能是因为没有部署模块。
有什么想法吗?
Catalina.2016-06-02日志:
Jun 02, 2016 2:10:25 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/petre/jdk1.7.0_79/jre/lib/amd64:/home/petre/jdk1.7.0_79/jre/lib/i386::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Jun 02, 2016 2:10:25 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-127.0.0.1-8080"]
Jun 02, 2016 2:10:25 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-127.0.0.1-8443"]
Jun 02, 2016 2:10:26 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Jun 02, 2016 2:10:26 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
Jun 02, 2016 2:10:26 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1023 ms
Jun 02, 2016 2:10:26 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 02, 2016 2:10:26 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.34
Jun 02, 2016 2:10:26 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/petre/apache-tomcat-7.0.34/conf/Catalina/localhost/VReports.xml
Jun 02, 2016 2:10:29 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/petre/apache-tomcat-7.0.34/conf/Catalina/localhost/HafasPassengerInfo.xml
Jun 02, 2016 2:10:31 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
server.resource
Jun 02, 2016 2:10:31 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
class server.resource.VJResource
class server.resource.GFPSResource
class server.resource.CResource
class server.resource.SResource
class server.resource.TRPIResource
Jun 02, 2016 2:10:31 PM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Jun 02, 2016 2:10:31 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.13 06/29/2012 05:14 PM'
Jun 02, 2016 2:10:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/petre/apache-tomcat-7.0.34/webapps/manager
Jun 02, 2016 2:10:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/petre/apache-tomcat-7.0.34/webapps/docs
Jun 02, 2016 2:10:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/petre/apache-tomcat-7.0.34/webapps/examples
Jun 02, 2016 2:10:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/petre/apache-tomcat-7.0.34/webapps/ROOT
Jun 02, 2016 2:10:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/petre/apache-tomcat-7.0.34/webapps/host-manager
Jun 02, 2016 2:10:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-127.0.0.1-8080"]
Jun 02, 2016 2:10:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-127.0.0.1-8443"]
Jun 02, 2016 2:10:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
Jun 02, 2016 2:10:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6592 ms发布于 2016-11-20 17:31:40
更改Tomcat目录的所有者。在Linux或BSD上这样做:
chown -R用户名/usr/local/apache-tomcat8.0/
*检查发行版上目录的Tomcat的路径
发布于 2018-03-19 07:44:45
如果您要从项目中删除任何servlet,那么只需查看您的web.xml文件,<servlet></servlet>是否正确关闭。在您的web.xml中检查这一点,肯定是存在的,<servlet> <servlet-class/> </servlet>只是删除这个code.then,运行您的项目。
https://stackoverflow.com/questions/37588657
复制相似问题