由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Spring tool suite 怎么改内置Tomcat 的 http port?
相关主题
最近用vert.x解决了一个实际问题这道题有什么好思路?
How to read a simple csv file in C++?有关SVN
operator commacreate svn repository
问个matlab 数据读入的问题anybody using git?
error of importing data from txt file to IBM netezza SQL da (转载)程序速读指南
来挑战comma.ai的招聘题你们说说这个题是个啥意思?
remove a module from cvsNeed help on choosing the language
这个同学很神C Library (一个统计方面的) 安装一问
相关话题的讨论汇总
话题: jar话题: jars话题: spring话题: list话题: tomcat
进入Programming版参与讨论
1 (共1页)
t**********s
发帖数: 930
1
默认port 8080 和Oracle database 冲突.
我看到 server.xml 里有这个设置:
="org.apache.coyote.http11.Http11Protocol" redirectPort="${bio.https.port}"/>
就把catalina.properties 里的 bio.http.port 由8080改成80也不行.
每次应用启动都显示 s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started
on port(s): 8080/http
还有其他隐藏的设置吗?
谢谢
h**********c
发帖数: 4120
2
在安装目录下搜索关键字
grep 8080 -R .
t**********s
发帖数: 930
3
忘说了, STS 是安装在 Windows 7 里的.

【在 h**********c 的大作中提到】
: 在安装目录下搜索关键字
: grep 8080 -R .

h**********c
发帖数: 4120
4
grep equivalent in windows
http://superuser.com/questions/300815/command-prompt-windows-7-

【在 t**********s 的大作中提到】
: 忘说了, STS 是安装在 Windows 7 里的.
t**********s
发帖数: 930
5
只找到了一个 catalina.properties:
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# List of comma-separated packages that start with or equal this string
# will cause a security exception to be thrown when
# passed to checkPackageAccess unless the
# corresponding RuntimePermission ("accessClassInPackage."+package) has
# been granted.
package.access =
sun.,
org.apache.catalina.,
org.apache.coyote.,
org.apache.jasper.,
org.apache.naming.resources.,
org.apache.tomcat.
#
# List of comma-separated packages that start with or equal this string
# will cause a security exception to be thrown when
# passed to checkPackageDefinition unless the
# corresponding RuntimePermission ("defineClassInPackage."+package) has
# been granted.
#
# by default, no packages are restricted for definition, and none of
# the class loaders supplied with the JDK call checkPackageDefinition.
#
package.definition =
sun.,
java.,
org.apache.catalina.,
org.apache.coyote.,
org.apache.jasper.,
org.apache.naming.,
org.apache.tomcat.
#
# List of comma-separated paths defining the contents of the "server"
# classloader. Prefixes should be used to define what is the repository type.
# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or
absolute.
# If left as blank, the "common" loader will be used as Catalina's "server"
# loader.
# Examples:
# "foo": Add this folder as a class repository
# "foo/*.jar": Add all the JARs of the specified folder as class
# repositories
# "foo/bar.jar": Add bar.jar as a class repository
server.loader =
#
# List of comma-separated paths defining the contents of the "shared"
# classloader. Prefixes should be used to define what is the repository type.
# Path may be relative to the CATALINA_BASE path or absolute. If left as
blank,
# the "common" loader will be used as Catalina's "shared" loader.
# Examples:
# "foo": Add this folder as a class repository
# "foo/*.jar": Add all the JARs of the specified folder as class
# repositories
# "foo/bar.jar": Add bar.jar as a class repository
# Please note that for single jars, e.g. bar.jar, you need the URL form
# starting with file:.
shared.loader =
#
# String cache configuration.
tomcat.util.buf.StringCache.byte.enabled = true
#tomcat.util.buf.StringCache.char.enabled=true
#tomcat.util.buf.StringCache.trainThreshold=500000
#tomcat.util.buf.StringCache.cacheSize=5000
#If this property is set to true, the startup phase will
#abort if there is an error during initialization
org.apache.catalina.startup.EXIT_ON_INIT_FAILURE = true
org.apache.tomcat.util.digester.PROPERTY_SOURCE = com.springsource.tcserver.
security.PropertyDecoder
com.springsource.tcserver.security.PropertyDecoder.passphrase = springsource
#
#
# List of comma-separated paths defining the contents of the "common"
# classloader. Prefixes should be used to define what is the repository type.
# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or
absolute.
# If left as blank,the JVM system loader will be used as Catalina's "common"
# loader.
# Examples:
# "foo": Add this folder as a class repository
# "foo/*.jar": Add all the JARs of the specified folder as class
# repositories
# "foo/bar.jar": Add bar.jar as a class repository
common.loader =
"${catalina.base}/lib",
"${catalina.base}/lib/*.jar",
"${catalina.home}/lib",
"${catalina.home}/lib/*.jar"
# List of JAR files that should not be scanned using the JarScanner
# functionality. This is typically used to scan JARs for configuration
# information. JARs that do not contain such information may be excluded
from
# the scan to speed up the scanning process. This is the default list. JARs
on
# this list are excluded from all scans. Scan specific lists (to exclude
JARs
# from individual scans) follow this. The list must be a comma separated
list of
# JAR file names.
# The JARs listed below include:
# - Tomcat Bootstrap JARs
# - Tomcat API JARs
# - Catalina JARs
# - Jasper JARs
# - Tomcat JARs
# - Common non-Tomcat JARs
tomcat.util.scan.StandardJarScanFilter.jarsToSkip =
annotations-api.jar,
ant.jar,
ant-junit*.jar,
ant-launcher.jar,
antlr-*.jar,
aopalliance-*.jar,
asm-*.jar,
aspectj*.jar,
bootstrap.jar,
catalina.jar,
catalina-ant.jar,
catalina-jmx-remote.jar,
catalina-ha.jar,
catalina-storeconfig.jar,
catalina-tribes.jar,
catalina-ws.jar,
cglib-*.jar,
cobertura-*.jar,
com.springsource.org.apache.tomcat.jdbc.jar,
commons-beanutils*.jar,
commons-codec*.jar,
commons-collections*.jar,
commons-daemon.jar,
commons-dbcp*.jar,
commons-digester*.jar,
commons-fileupload*.jar,
commons-httpclient*.jar,
commons-io*.jar,
commons-lang*.jar,
commons-logging*.jar,
commons-math*.jar,
commons-pool*.jar,
dom4j-*.jar,
ecj-*.jar,
ehcache-core-*.jar,
el-api.jar,
freemarker-*.jar,
gemfire-*.jar,
geronimo-spec-jaxrpc*.jar,
groovy-all-*.jar,
h2*.jar,
hibernate*.jar,
httpclient*.jar,
icu4j-*.jar,
insight-*.jar,
jackson-*.jar,
jasper.jar,
jasper-el.jar,
javassist-*.jar,
jaxen-*.jar,
jcommon-*.jar,
jdom-*.jar,
jetty-*.jar,
jfreechart-*.jar,
jline-*.jar,
jmx.jar,
jmx-tools.jar,
jsp-api.jar,
jstl.jar,
jta*.jar,
junit.jar,
junit-*.jar,
liquibase-core-*.jar,
log4j*.jar,
mail*.jar,
oro-*.jar,
servlet-api.jar,
slf4j*.jar,
spring-aop-*.jar,
spring-asm-*.jar,
spring-aspects-*.jar,
spring-beans-*.jar,
spring-context-*.jar,
spring-context-support-*.jar,
spring-core-*.jar,
spring-expression-*.jar,
spring-gemfire-*.jar,
spring-instrument-tomcat-*.jar,
spring-jdbc-*.jar,
spring-js-*.jar,
spring-orm-*.jar,
spring-security-core-*.jar,
spring-security-web-*.jar,
spring-tx-*.jar,
stax-*.jar,
tagsoup-*.jar,
tcServer.jar,
threaddumpwrapper.jar,
tiles-api-*.jar,
tiles-core-*.jar,
tiles-servlet-*.jar,
tomcat-api.jar,
tomcat-coyote.jar,
tomcat-dbcp.jar,
tomcat-i18n-en.jar,
tomcat-i18n-es.jar,
tomcat-i18n-fr.jar,
tomcat-i18n-ja.jar,
tomcat-jdbc.jar,
tomcat-jni.jar,
tomcat-juli.jar,
tomcat-juli-adapters.jar,
tomcat-spdy.jar,
tomcat-util.jar,
tomcat-util-scan.jar,
tools.jar,
websocket-api.jar,
wrapper.jar,
wsdl4j*.jar,
xercesImpl.jar,
xml-apis.jar,
xmlParserAPIs.jar,
xom-*.jar,
xpp3_min-*.jar,
xstream-*.jar
# Default list of JAR files that should be scanned that overrides the
default
# jarsToSkip list above. This is typically used to include a specific JAR
that
# has been excluded by a broad file name pattern in the jarsToSkip list.
# The list of JARs to scan may be over-ridden at a Context level for
individual
# scan types by configuring a JarScanner with a nested JarScanFilter.
tomcat.util.scan.StandardJarScanFilter.jarsToScan =
log4j-core*.jar,
log4j-taglib*.jar
# Additional JARs (over and above the default JARs listed above) to skip
when
# scanning for Servlet 3.0 pluggability features. These features include web
# fragments, annotations, SCIs and classes that match @HandlesTypes. The
list
# must be a comma separated list of JAR file names.
org.apache.catalina.startup.ContextConfig.jarsToSkip =
# Additional JARs (over and above the default JARs listed above) to skip
when
# scanning for TLDs. The list must be a comma separated list of JAR file
names.
org.apache.catalina.startup.TldConfig.jarsToSkip =
base.shutdown.port=-1
base.jmx.port=6969
#bio.http.port=8080
bio.http.port=8080
bio.https.port=8443

【在 h**********c 的大作中提到】
: grep equivalent in windows
: http://superuser.com/questions/300815/command-prompt-windows-7-

c******f
发帖数: 243
6
The following snippet of catalina.properties shows how to set values for the
variables used in the preceding server.xml file.
bio.http.port=8080
bio.https.port=8443
http static.springsource com projects tc-server 2.5 admin html manual-simple
html
t**********s
发帖数: 930
7
改了bio.http.port
没有用。

the
simple

【在 c******f 的大作中提到】
: The following snippet of catalina.properties shows how to set values for the
: variables used in the preceding server.xml file.
: bio.http.port=8080
: bio.https.port=8443
: http static.springsource com projects tc-server 2.5 admin html manual-simple
: html

g*****g
发帖数: 34805
8
换 run jetty run 吧,比其他 plugin好用,没有部署。

started

【在 t**********s 的大作中提到】
: 默认port 8080 和Oracle database 冲突.
: 我看到 server.xml 里有这个设置:
: : ="org.apache.coyote.http11.Http11Protocol" redirectPort="${bio.https.port}"/>
: 就把catalina.properties 里的 bio.http.port 由8080改成80也不行.
: 每次应用启动都显示 s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started
: on port(s): 8080/http
: 还有其他隐藏的设置吗?
: 谢谢

h**********c
发帖数: 4120
9
RUNNING.TXT
search 8080
w**z
发帖数: 8232
10
你是怎么起Tomcat?command line , or inside ide using plugin?

started

【在 t**********s 的大作中提到】
: 默认port 8080 和Oracle database 冲突.
: 我看到 server.xml 里有这个设置:
: : ="org.apache.coyote.http11.Http11Protocol" redirectPort="${bio.https.port}"/>
: 就把catalina.properties 里的 bio.http.port 由8080改成80也不行.
: 每次应用启动都显示 s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started
: on port(s): 8080/http
: 还有其他隐藏的设置吗?
: 谢谢

相关主题
来挑战comma.ai的招聘题这道题有什么好思路?
remove a module from cvs有关SVN
这个同学很神create svn repository
进入Programming版参与讨论
g*****g
发帖数: 34805
11
估计是eclipse内置的add server。

【在 w**z 的大作中提到】
: 你是怎么起Tomcat?command line , or inside ide using plugin?
:
: started

h**********c
发帖数: 4120
12
才看到你在跑spring, spring 的tomcat 设置是在spring 的startup脚本里设的。我
记得应该研究一下spring tutorial 的启动脚本。
eclipse run spring, never try.
w**z
发帖数: 8232
13
那要在STS 的设定里找了。

【在 g*****g 的大作中提到】
: 估计是eclipse内置的add server。
t**********s
发帖数: 930
14
仔细看了下log, 发现 spring boot app 用的是embedded Tomcat instance running
within Spring Boot,所以改那些外部的 configuration 应该没用。
打算试试这个:http://stackoverflow.com/questions/18776560/is-there-a-standard-way-to-customize-the-deploy-path-in-spring-boot

【在 w**z 的大作中提到】
: 那要在STS 的设定里找了。
n*******2
发帖数: 89
15
直接在server点xml里面端口改8080不要用变量
1 (共1页)
进入Programming版参与讨论
相关主题
C Library (一个统计方面的) 安装一问error of importing data from txt file to IBM netezza SQL da (转载)
overload "++i"里的operator“++”,怎么declare?来挑战comma.ai的招聘题
typedef struct的问题remove a module from cvs
[合集] SourceForge blocked in China这个同学很神
最近用vert.x解决了一个实际问题这道题有什么好思路?
How to read a simple csv file in C++?有关SVN
operator commacreate svn repository
问个matlab 数据读入的问题anybody using git?
相关话题的讨论汇总
话题: jar话题: jars话题: spring话题: list话题: tomcat