1. 程式人生 > >maven啟動tomcat訪問報404(url中沒有專案名)

maven啟動tomcat訪問報404(url中沒有專案名)

[DEBUG]   (f) packaging = war
[DEBUG]   (f) path = /js_001
[DEBUG]   (f) pluginArtifacts = [org.apache.tomcat.maven:tomcat7-maven-plugin:maven-plugin:2.2:, org.apache.tomcat.embed:tomcat-embed-core:jar:7.0.47:compile, org.apache.tomcat:tomcat-util:jar:7.0.47:compile, org.apache.tomcat:tomcat-coyote:jar:7.0.47:compile, org.apache.tomcat:tomcat-api:jar:7.0.47:compile, org.apache.tomcat:tomcat-jdbc:jar:7.0.47:compile, org.apache.tomcat:tomcat-dbcp:jar:7.0.47:compile, org.apache.tomcat:tomcat-servlet-api:jar:7.0.47:compile, org.apache.tomcat:tomcat-jsp-api:jar:7.0.47:compile, org.apache.tomcat:tomcat-jasper:jar:7.0.47:compile, org.apache.tomcat:tomcat-jasper-el:jar:7.0.47:compile, org.apache.tomcat:tomcat-el-api:jar:7.0.47:compile, org.apache.tomcat:tomcat-catalina:jar:7.0.47:compile, org.apache.tomcat:tomcat-tribes:jar:7.0.47:compile, org.apache.tomcat:tomcat-catalina-ha:jar:7.0.47:compile, org.apache.tomcat:tomcat-annotations-api:jar:7.0.47:compile, org.apache.tomcat:tomcat-juli:jar:7.0.47:compile, org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:7.0.47:compile, org.apache.tomcat.embed:tomcat-embed-logging-log4j:jar:7.0.47:compile, org.eclipse.jdt.core.compiler:ecj:jar:4.2.2:compile, org.apache.tomcat.maven:common-tomcat-maven-plugin:jar:2.2:compile, backport-util-concurrent:backport-util-concurrent:jar:3.1:compile, com.google.guava:guava:jar:10.0.1:compile, com.google.code.findbugs:jsr305:jar:1.3.9:compile, org.apache.httpcomponents:httpclient:jar:4.3.1:compile, org.apache.httpcomponents:httpcore:jar:4.3:compile, commons-logging:commons-logging:jar:1.1.3:compile, org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile, commons-codec:commons-codec:jar:1.6:compile, org.apache.tomcat.maven:tomcat7-war-runner:jar:2.2:compile, commons-cli:commons-cli:jar:1.2:compile, org.apache.maven:maven-archiver:jar:2.4.2:compile, org.codehaus.plexus:plexus-interpolation:jar:1.13:compile, commons-io:commons-io:jar:2.2:compile, commons-lang:commons-lang:jar:2.6:compile, org.apache.commons:commons-compress:jar:1.4.1:compile, org.tukaani:xz:jar:1.0:compile, org.codehaus.plexus:plexus-archiver:jar:2.1.1:compile, junit:junit:jar:4.10:compile, org.hamcrest:hamcrest-core:jar:1.1:compile, org.codehaus.plexus:plexus-io:jar:2.0.3:compile, org.codehaus.plexus:plexus-utils:jar:3.0.15:compile, org.apache.maven.shared:maven-filtering:jar:1.0:compile, org.apache.maven.reporting:maven-reporting-api:jar:2.2.1:compile, org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile, org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile, org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile, org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile, org.sonatype.plexus:plexus-cipher:jar:1.4:compile, org.sonatype.plexus:plexus-build-api:jar:0.0.4:compile, org.slf4j:jcl-over-slf4j:jar:1.7.5:compile, org.slf4j:slf4j-api:jar:1.7.5:compile]
[DEBUG]   (f) port = 8080
[DEBUG]   (f) protocol = HTTP/1.1
[DEBUG]   (f) session =
[email protected]

[DEBUG]   (f) skip = false
[DEBUG]   (f) staticContextPath = /
[DEBUG]   (f) uriEncoding = UTF-8
[DEBUG]   (f) useBodyEncodingForURI = false
[DEBUG]   (f) useNaming = true
[DEBUG]   (f) useSeparateTomcatClassLoader = false
[DEBUG]   (f) useTestClasspath = false
[DEBUG]   (f) warSourceDirectory = F:\workspace\java_workspace_01\js_001\src\main\webapp
[DEBUG]   (f) project = MavenProject: priv.lirenhe.js:js_001:0.0.1-SNAPSHOT @ F:\workspace\java_workspace_01\js_001\pom.xml
[DEBUG]   (f) settings =
[email protected]

[DEBUG] -- end configuration --
[INFO] Running war on http://localhost:8080/js_001
[INFO] Creating Tomcat server configuration at F:\workspace\java_workspace_01\js_001\target\tomcat
[INFO] create webapp with contextPath: /js_001

相關推薦

maven啟動tomcat訪問404url沒有專案

[DEBUG]   (f) packaging = war[DEBUG]   (f) path = /js_001[DEBUG]   (f) pluginArtifacts = [org.apache.tomcat.maven:tomcat7-maven-plugin:maven-plugin:2.2:, o

eclipse配置tomcat 啟動正常 訪問404

問題:1、eclipse中配置好tomcat伺服器後,啟動tomcat檢視控制檯資訊顯示啟動成功, 但訪問tomcat首頁報404異常 2、而從tomcat/bin目錄中啟動後,就能夠正常訪問首頁,由此分析應該是eclipse配置錯誤 解決方案:查詢資料,正確配置如下: 雙

tomcat設定直接通過域名訪問專案不需要接 /專案

效果圖 開啟 tomcat - ->conf- ->server.xml 編輯> 改成如下程式碼 <Connector port="80" p

訪問url專案是怎麼去掉的?

如: 我這裡是這樣的,http://localhost:8080/seckill/seckill/list,多了一個專案名seckill 最佳答案 郵件專案名 -> Properties -> MyEcelipse -> Web -> Web

修改tomcat配置對映去掉URL專案

conf/server.xml:      <Host name="localhost"  appBase="webapps"            unpackWARs="true" autoDeploy="true"            xmlValidation

tomcat預設跳轉去掉路徑專案

tomcat部署專案時,一般訪問路徑為:ip+埠+專案名,下文提供一種簡單辦法去掉專案名,訪問路徑變為:ip+埠 開啟/tomcat/webapp/ROOT/,刪除index.html,修改inde

關於tomcat升級9.0後URL訪問404的解決辦法

  目 錄 1 前言 3 2 出現問題 3 3 解決辦法及思路 4 4 總結 5   前言 在現場環境使用tomat7.0,使用者反饋版本較低,存在一定的安全隱患,故升級到 tomcat 9.0。  

Struts2的web.xmlurl-pattern路徑配置為/*.action時,Tomcat啟動執行就嚴重: A child container failed during star

Struts2中web.xml中的url-pattern路徑配置錯誤導致Tomcat一起動就報錯。   如上圖url-pattern配置為/*.action  (錯誤)      修改成:      

eclipse配置的tomcat 啟動正常 但是訪問404錯誤

問題描述: 在eclipse中配置的Tomcat,啟動是正常的,控制檯顯示啟動成功,也沒有報任何錯誤資訊,但是訪問的時候就報404錯誤,然後直接在bin目錄下啟動startup.bat的方式就是正常的。然後就很納悶,之後在網上搜了下資料,說是Eclipse的配

eclipse+tomcat啟動訪問404

1.問題描述   用eclipse+tomcat建立web專案,JDK神馬的該配的都配完後,啟動tomcat,瀏覽器位址列輸入http://localhost:9000(我的tomcat埠為9000),回車期待看到tomcat首頁,然而給我報了個404,當時就醉了。不通過e

spring boot無法啟動,或者正常啟動之後無法訪問404的解決辦法

沒有 自己 路徑 con 啟動不了 瀏覽器 了無 搭建 報錯 以前用spring boot都是用idea的自動創建,或者是用的Jhipster創建的,就沒有深究怎麽去搭建。但是今天晚上心血來潮,想自己搭一個demo來整合一些技術,於是就花一點時間來手動搭。因為今

spring boot正常啟動之後無法訪問404的解決辦法之一

網上都說是 啟動類的放置位置錯誤導致的! 這個錯誤資訊包含的有效資訊不是很多,有很多因素 我的原因是: freemarker: suffix: .ftl request-context-attribute: request freemarker的字尾改為了.ftl&nb

Eclipse啟動tomcat Removing obsolete files from server.

  Could not publish server configuration:錯誤: null. java.lang.NullPointerException      Removing obsolete files from server

web專案tomcat啟動url自定義去掉專案

 通常,使用maven構建web專案,啟動時預設的訪問路徑: http://ip:port/專案名 很多時候我們不喜歡這樣 訪問,我們希望下面的訪問方式: http://ip:port 如果是本地的tomcat,這個就很好解決,只要設定下tomcat就可以 但是如果是maven專

springboot專案啟動,但是訪問404錯誤

        今天在做一個springboot專案的時候,是接著別人的專案寫的,寫完之後想做一下測試,於是就啟動了springboot,然後在訪問的時候,一直包404的錯誤,然後百度了一下網上給的方法,包括註解使用@R

spring boot正常啟動之後無法訪問404的解決辦法

    springboot專案正常啟動了,但是我寫了一個controller ,用的@RestController 註解去配置的controller,然後路徑也搭好了(這裡也不是我的程式碼問題,用了

linux環境下,spring boot專案war包放入tomcat訪問404(絕對能夠解決你的問題,相信我~

阿里雲伺服器上,之前自己也部署過一個測試用的專案,直接訪問也是可以訪問的,但是,,不知道為啥我新建立的一個spring boot專案選擇war包部署到tomcat上面,訪問結果都是404,找了很多中解決方法,特此記錄一下先說明一下。因為我建立maven專案的時候,選擇的就是w

Solr與tomcat訪問404

一:下載相關軟體包 注:本次安裝的環境為windows7 64位系統,安裝的軟體版本為以下這些版本。 1. jdk-8-windows-i586.zip(solr5過後好像必須使用jdk8)

Windows10配置tomcat9時,啟動tomcat:發生系統錯誤 5,解決方案

本文更新地址:https://my.oschina.net/bysu/blog/3049634 寫在前面:預設已經安裝並且配置好

關於eclipse裏啟動Tomcat訪問不到8080頁面的問題

一個tomcat spa 會有 程序 meta fff 一句話 bin tails 關於Tomcat和Eclipse的一個小事 原諒我懶得排版,重要的是內容(每次都這樣安慰自己) 先放一張黴黴圖片冷靜一下 額,最近電腦裝了個固態硬盤,有個還沒做完的項目,需要下載Ecl