xml - Jetty Configuration: problems with dtd -


i'm using jetty embedded in gradle project jetty.xml server configuration. jetty has xml configuration use jettyrunwar (gradle plugin).

this jettyrunwar in build.gradle:

jettyrunwar{     contextpath = "/"     httpport = 8080     jettyconfig = file("./jetty.xml")     reload = "automatic"     scanintervalseconds = 10     webapp = file("./build/libs/relevanteme.war") } 

and jetty.xml (configuration).

<?xml version="1.0"  encoding="iso-8859-1"?> <!doctype configure public "-//jetty//configure//en" "http://www.eclipse.org/jetty/configure_9_0.dtd">  <configure id="server" class="org.eclipse.jetty.server.server">      <set name="port"><systemproperty name="jetty.port" default="8080"/></set>      <new id="webapp" class="org.eclipse.jetty.webapp.webappcontext">             <set name="contextpath">/</set>             <set name="war"><systemproperty name="jetty.home" default="."/>./build/libs/relevanteme.war</set>              <call name="addservlet">             <arg>vjsantojaca.relevante.background.servlets.identifyservlet</arg>             </call>     </new>      <new id="relevante" class="org.eclipse.jetty.plus.jndi.resource">         <arg>jdbc/relevante</arg>         <arg>             <new class="com.mysql.jdbc.jdbc2.optional.mysqlconnectionpooldatasource">                <set name="url">jdbc:mysql://localhost:3306/mail_classmachine</set>                <set name="user">classmach</set>                <set name="password">ltk54ifrd</set>             </new>          </arg>     </new>      <set name="handler">         <new class="org.eclipse.jetty.server.handler.handlercollection">             <set name="handlers">                 <array type="org.eclipse.jetty.server.handler">                     <item>                         <ref refid="webapp" />                     </item>                     <item>                         <new class="org.eclipse.jetty.server.handler.defaulthandler" />                     </item>                 </array>             </set>         </new>     </set>  </configure> 

when run command jettyrunwar in gradle , gradle download dtd jetty xml configuration, gives me following information...

[org.mortbay.log] parsing: sid=file:/home/vjsantojaca/developer/relevante/relevanteme-web-2.0/jetty.xml,pid=null [org.mortbay.log] resolveentity(-//jetty//configure//en, http://www.eclipse.org/jetty/configure_9_0.dtd) [org.mortbay.log] can't exact match entity in redirect map, trying configure_9_0.dtd [sun.net.www.protocol.http.httpurlconnection] sun.net.www.messageheader@5df6163a5 pairs: {get /jetty/configure_9_0.dtd http/1.1: null}{user-agent: java/1.8.0_31}{host: www.eclipse.org}{accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{connection: keep-alive} [sun.net.www.protocol.http.httpurlconnection] sun.net.www.messageheader@2d313c8c14 pairs: {null: http/1.1 200 ok}{date: tue, 14 apr 2015 15:49:05 gmt}{server: apache}{last-modified: tue, 11 mar 2014 16:28:22 gmt}{etag: "4e2795-239e-4f45735653580"}{accept-ranges: bytes}{content-length: 9118}{vary: accept-encoding}{access-control-allow-origin: http://eclipse.org ; https://eclipse.org ; http://www.eclipse.org ; https://www.eclipse.org}{access-control-allow-methods: get}{x-nodeid: (null)}{keep-alive: timeout=3, max=200}{connection: keep-alive}{content-type: text/x-dtd} 

why happening?

thanks!!

the reference org.mortbay.log means using ancient pre-jetty-7 version of jetty (likely jetty 6).

that cause of frustrations.

your jettyrunwar not using jetty 9, using jetty 6(?)


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -