server.xml

Can we include files in the server.xml file of a tomcat to configure virtual host

偶尔善良 提交于 2021-01-28 07:03:34
问题 I have the following section of the server.xml file in my tomcat. <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> <Host name="mydomain1" appBase="d1" unpackWARs="true" autoDeploy="true"> <Alias>xyz-mydomain1.com</Alias> <Alias>abc.mydomain1.com</Alias> <Valve className="org.apache.catalina.valves

how to increase WAS liberty server messages.log file size?

人盡茶涼 提交于 2020-05-17 05:44:57
问题 Good day, I have a mobilefirst app deploy in WAS liberty profile. I found that the messages.log is only 72kb and then it will roll to new log file. I would like to increase the log file size, so I am doing the following way in server.xml, but it does not take effect: <logging traceFileName="messages.log" maxFileSize="20" /> or <logging maxFileSize="0"/> May I know how to increase the log file size? My WAS liberty profile is v8.5.5.5. Kindly advise. 回答1: WAS Liberty logging configuration is

how to increase WAS liberty server messages.log file size?

匆匆过客 提交于 2020-05-17 05:43:26
问题 Good day, I have a mobilefirst app deploy in WAS liberty profile. I found that the messages.log is only 72kb and then it will roll to new log file. I would like to increase the log file size, so I am doing the following way in server.xml, but it does not take effect: <logging traceFileName="messages.log" maxFileSize="20" /> or <logging maxFileSize="0"/> May I know how to increase the log file size? My WAS liberty profile is v8.5.5.5. Kindly advise. 回答1: WAS Liberty logging configuration is

Is this a JBOSS web service? Tomcat? How to create a server.xml file?

偶尔善良 提交于 2020-02-05 03:26:45
问题 I am working on a webservice that a previous employee built and I am just trying to figure out what documentation I need to be looking at. I think that the webservice is using JBOSS and therefore using Apache Tomcat. In the project there are several webservices so it is somewhat tricky to tell which is using what. (What are shared files etc). Question Number One : How can I verify that it is using JBOSS? My job is to make the webservice use bi-directional key exchange. I have done this before

Programmatically get Tomcat HTTP Connector's maxPostSize in a JSP

佐手、 提交于 2020-02-02 01:53:43
问题 I am using Tomcat 6 and would like to be able to retrieve the maxPostSize (defined in the HTTP Connector in server.xml) programmatically from within a JSP so that I can know what the max file upload size is. Is there a way to get this? 回答1: Assuming that you've only one Tomcat service with one connector, then you can access it in Servlet by: int maxPostSize = ServerFactory.getServer().findServices()[0].findConnectors()[0].getMaxPostSize(); ServerFactory is by the way org.apache.catlina

Worklight 6.0 does not start on Liberty - HSQLDB

北慕城南 提交于 2020-01-25 00:33:46
问题 I have followed the infocenter docs to setup Worklight on Liberty and Oracle Database all on Windows 2008. (http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/topic/com.ibm.worklight.help.doc/devref/t_transporting_apps_and_adapters.html - Deploying IBM Worklight applications to test and production environments) When I start the liberty server, I get this error on the browser Exception thrown by application class 'com.worklight.core.auth.impl.AuthenticationFilter.doFilter:110' javax.servlet

SSL certificates in tomcat server

廉价感情. 提交于 2019-12-25 08:50:05
问题 I have developed a Rest service and deployed it in tomcat 8 server. It is working fine with http URL. I have a requirement to install SSL certificate for the server. But there is already a service running on this server which has SSL certificate. Now my questions are 1) do I need to install another SSL certificate for the same server ? 2) How do i find that previously installed certificate belongs to server or service ? 3) if I install new SSL certificate what configuration changes are to be

apache mod_proxy tomcat remove 8443

て烟熏妆下的殇ゞ 提交于 2019-12-25 01:14:52
问题 I put apache in front of tomcat using mod_proxy. The apache is listening on port 80, and when I access from www.example.com the apache redirect to port 8080 wich tomcat is listening, and tomcat redirect to port 8443. The problem is the address bar show https://www.example.com:8443. How I remove the :8443 from the address bar? Apache virtualhost config <VirtualHost *:80> ProxyPreserveHost On ProxyRequests Off ServerName www.example.com ServerAlias example.com ProxyPass / http://localhost:8080/

Error in Tomcat during Startup: DB name not found

*爱你&永不变心* 提交于 2019-12-23 09:05:38
问题 While staring the Tomcat, I am getting the following error: SEVERE: Exception looking up UserDatabase under key UserDatabase javax.naming.NameNotFoundException: Name UserDatabase is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1049) at

Why is my Tomcat 6 executor thread pool not being used by the connector?

南楼画角 提交于 2019-12-22 14:02:17
问题 My server.xml looks like the following: <!--The connectors can use a shared executor, you can define one or more named thread pools--> <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="200" minSpareThreads="4"/> <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="10000" maxKeepAliveRequests="1" redirectPort="8443" /> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> However, in the Tomcat manager (http://localhost