You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James liu <li...@gmail.com> on 2007/03/22 02:35:09 UTC

question: java.net.UnknownHostException: .chemease.local: .chemease.local

i use freebsd 6.2 , tomcat 6(gz file which not installed). java 1.5_07

anyone know how to solve?

Error information:

Mar 22, 2007 9:03:40 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.net.UnknownHostException: .chemease.local: .chemease.local
        at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
        at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:106)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:384)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:228)
        at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:216)
        at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:634)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:445)
        at java.lang.Thread.run(Thread.java:595)
Mar 22, 2007 9:04:56 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.net.UnknownHostException: .chemease.local: .chemease.local
        at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
        at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:106)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:384)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:228)
        at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:216)
        at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:634)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:445)
        at java.lang.Thread.run(Thread.java:595)



-- 
regards
jl

Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
your system returns ".chemease.local" as a hostname, and naturally that 
doesn't resolve to anything

two options
1. fix your hostname
2. possibly add ".chemease.local" into /etc/hosts to trick the server, 
not sure how that is gonna work with the . prefix, but it just might

Filip

James liu wrote:
> i use freebsd 6.2 , tomcat 6(gz file which not installed). java 1.5_07
>
> anyone know how to solve?
>
> Error information:
>
> Mar 22, 2007 9:03:40 AM org.apache.catalina.core.StandardWrapperValve 
> invoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.net.UnknownHostException: .chemease.local: .chemease.local
>        at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
>        at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:106)
>        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> :70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:384)
>        at org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:320)
>        at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:290)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:206)
>        at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:228)
>        at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:175)
>        at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:128)
>        at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:104)
>        at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:109)
>        at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:216)
>        at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:844)
>        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> Http11Protocol.java:634)
>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> JIoEndpoint.java:445)
>        at java.lang.Thread.run(Thread.java:595)
> Mar 22, 2007 9:04:56 AM org.apache.catalina.core.StandardWrapperValve 
> invoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.net.UnknownHostException: .chemease.local: .chemease.local
>        at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
>        at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:106)
>        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> :70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:384)
>        at org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:320)
>        at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:290)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:206)
>        at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:228)
>        at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:175)
>        at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:128)
>        at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:104)
>        at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:109)
>        at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:216)
>        at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:844)
>        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> Http11Protocol.java:634)
>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> JIoEndpoint.java:445)
>        at java.lang.Thread.run(Thread.java:595)
>
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

Posted by James liu <li...@gmail.com>.
i fix it....just modify my host name

Thk u,Rashmi

Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

Posted by James liu <li...@gmail.com>.
Maybe header.jsp output host cause it happen

Am i right? i m jsp newbie.


<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
> <%--
>  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.
> --%>
> <%@include file="_info.jsp" %>
> <script>
> var host_name="<%= hostname %>"
> </script>
>
> <html>
> <head>
> <link rel="stylesheet" type="text/css" href="solr-admin.css">
> <link rel="icon" href="favicon.ico" type="image/ico"></link>
> <link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
> <title>Solr admin page</title>
> </head>
>
> <body>
> <a href="."><img border="0" align="right" height="61" width="142" src="
> solr-head.gif" alt="Solr"></a>
> <h1>Solr Admin (<%= collectionName %>)
> <%= enabledStatus==null ? "" : (isEnabled ? " - Enabled" : " - Disabled")
> %> </h1>
>
> <%= hostname %>:<%= port %><br/>
> cwd=<%= cwd %>  SolrHome=<%= solrHome %>
>

Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

Posted by James liu <li...@gmail.com>.
I don't know where error happen from this information.

It work well when i use winxp+tomcat6(same zip file)+java 1.6

It is index.jsp.

<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
> <%--
>  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.
> --%>
>
> <%-- $Id: index.jsp 487199 2006-12-14 13:03:40Z bdelacretaz $ --%>
> <%-- $Source: /cvs/main/searching/SolrServer/resources/admin/index.jsp,v $
> --%>
> <%-- $Name:  $ --%>
>
> <%@ page import="java.util.Date" %>
>
> <%-- jsp:include page="header.jsp"/ --%>
> <%-- do a verbatim include so we can use the local vars --%>
> <%@include file="header.jsp" %>
>
> <br clear="all">
> <table>
>
> <tr>
>   <td>
>     <h3>Solr</h3>
>   </td>
>   <td>
>     [<a href="get-file.jsp?file=schema.xml">Schema</a>]
>     [<a href="get-file.jsp?file=solrconfig.xml">Config</a>]
>     [<a href="analysis.jsp?highlight=on">Analysis</a>]
>     <br>
>     [<a href="stats.jsp">Statistics</a>]
>     [<a href="registry.jsp">Info</a>]
>     [<a href="distributiondump.jsp">Distribution</a>]
>     [<a href="ping">Ping</a>]
>     [<a href="logging.jsp">Logging</a>]
>   </td>
> </tr>
>
>
> <tr>
>   <td>
>     <strong>App server:</strong><br>
>   </td>
>   <td>
>     [<a href="get-properties.jsp">Java Properties</a>]
>     [<a href="threaddump.jsp">Thread Dump</a>]
>   <%
>     if (enabledFile!=null)
>     if (isEnabled) {
>   %>
>   [<a href="action.jsp?action=Disable">Disable</a>]
>   <%
>     } else {
>   %>
>   [<a href="action.jsp?action=Enable">Enable</a>]
>   <%
>     }
>   %>
>   </td>
> </tr>
>
> <jsp:include page="get-file.jsp?file=admin-extra.html&optional=y"
> flush="true"/>
>
> </table><P>
>
>
> <table>
> <tr>
>   <td>
>     <h3>Make a Query</h3>
>   </td>
>   <td>
> [<a href="form.jsp">Full Interface</a>]
>   </td>
>
> </tr>
> <tr>
>   <td>
>   Query String:
>   </td>
>   <td colspan=2>
>     <form name=queryForm method="GET" action="../select/">
>         <textarea class="std" rows="4" cols="40" name="q"><%=
> defaultSearch %></textarea>
>         <input name="version" type="hidden" value="2.2">
>     <input name="start" type="hidden" value="0">
>     <input name="rows" type="hidden" value="10">
>     <input name="indent" type="hidden" value="on">
>         <br><input class="stdbutton" type="button" value="search"
> onclick="if (queryForm.q.value.length==0) alert('no empty queries,
> please'); else queryForm.submit();">
>     </form>
>   </td>
> </tr>
> </table><p>
>
> <table>
> <tr>
>   <td>
>     <h3>Assistance</h3>
>   </td>
>   <td>
>     [<a href="http://incubator.apache.org/solr/">Documentation</a>]
>     [<a href="http://issues.apache.org/jira/browse/SOLR">Issue
> Tracker</a>]
>     [<a href="mailto:solr-user@lucene.apache.org">Send Email</a>]
>     <br>
>         [<a href="
> http://lucene.apache.org/java/docs/queryparsersyntax.html">Lucene Query
> Syntax</a>]
>   </td>
> <!--
>   <td rowspan="3">
>     <a href="http://incubator.apache.org/solr/"><img align="right"
> border=0 height="107" width="148" src="power.png"></a>
>   </td>
>  -->
> </tr>
> <tr>
>   <td>
>   </td>
>   <td>
>   Current Time: <%= new Date() %>
>   </td>
> </tr>
> <tr>
>   <td>
>   </td>
>   <td>
>   Server Start At: <%= new Date(core.getStartTime()) %>
>   </td>
> </tr>
> </table>
> </body>
> </html>
>

2007/3/22, Rashmi Rubdi <ra...@gmail.com>:
>
> java.net.UnknownHostException
> Thrown to indicate that the IP address of a host could not be determined.
>
> Could you post the snippet of code that throws this error?
>
> -Rashmi
>
> On 3/21/07, James liu <li...@gmail.com> wrote:
>
> > SEVERE: Servlet.service() for servlet jsp threw exception
> > java.net.UnknownHostException: .chemease.local: .chemease.local
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
regards
jl

Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

Posted by Rashmi Rubdi <ra...@gmail.com>.
java.net.UnknownHostException
Thrown to indicate that the IP address of a host could not be determined.

Could you post the snippet of code that throws this error?

-Rashmi

On 3/21/07, James liu <li...@gmail.com> wrote:

> SEVERE: Servlet.service() for servlet jsp threw exception
> java.net.UnknownHostException: .chemease.local: .chemease.local

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org