Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Is there a limit on number of vhost.xml files?

I am running Jetty 9.4.2 using JDK 1.8.0_121 on a CentOS 7 server.
I have 7 virtual hosts xml file at the moment (after removing one), all files looking like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">;;

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath">/</Set>
  <Set name="war"><Property name="jetty.webapps"/>/war/name-1.0.0.war</Set>
  <Set name="virtualHosts">
    <Array type="java.lang.String">
      <Item>www.domain.no</Item>;
    </Array>
  </Set>
</Configure>

(all web applications are spring boot applications)

Not sure what else info you need?
Also, I am not able to find anything in the logs about the failure, jetty seems to start just fine (according to the logs). 
Maybe I need to increase the logging or am I looking in the wrong place?


BTJ

On 20.03.2017 21:04, Chris Walker wrote:

Bjørn,
 
Can you provide a little more information on your setup? Also, can you provide information from your log file on the failure?
 
Thanks,
Chris
 

On Sat, Mar 18, 2017 at 8:50 AM, Bjørn T Johansen <btj@xxxxxxxxxx> wrote:
When I start my jetty application, after adding one more vhost*.xml file, it says the following:

Starting Jetty: StartLog to /var/run/jetty/jetty-start.log
2017-03-18 13:40:47.844:INFO::main: Logging initialized @286ms to org.eclipse.jetty.util.log.StdErrLog
2017-03-18 13:40:47.974:INFO::main: Console stderr/stdout captured to /opt/jetty_default/logs/2017_03_18.jetty.log
. . . . . . . . . . . . . . FAILED Sat Mar 18 13:41:43 CET 2017

If I remove one of the xml file, then Jetty will start successfully (does not matter which xml file).
What am I missing?

btw, I am using Jetty 9.4.2..


Regards,

BTJ

--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

btj@xxxxxxxxxx
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Back to the top