lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@blackwell.co.uk>
Subject Re: Web demo example: Errors from Tomcat startup
Date Thu, 07 Feb 2002 14:07:40 GMT
The UnknownHostException is probably because the parser
trying to read WEB-INF/web.xml wants to lookup the
dtd and is failing because it can't locate java.sun.com.
Perhaps suprising given your email address!  Perhaps
you need to fix your local DNS setup so it can find
java.sun.com or use a different parser.  I can't remember
all the ins and outs of this but I run tomcat off line,
without access to java.sun.com, using xerces.

Can't comment on the other stuff about the demo.



--
Ian.
ian.lea@blackwell.co.uk


Don Gilchrest - Sun Microsystems wrote:
> 
> Hi,
> 
> I'm going through the Lucene 'Getting Started" Guide and am up to
> creating the index for the Web app.  After copying
> lucene-1.2-rc3/luceneweb.war to $TOMCAT_HOME/webapps, the following
> errors are reported when I startup Tomcat (v3.2.1):
> 
> XmlMapper: Can't find resource for entity: -//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN --> http://java.sun.com/dtd/web-app_2_3.dtd "null"
> ERROR reading /opt/jakarta-tomcat-3.2.1/webapps/luceneweb/WEB-INF/web.xml
> At External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd".
> 
> ERROR reading /opt/jakarta-tomcat-3.2.1/webapps/luceneweb/WEB-INF/web.xml
> java.net.UnknownHostException: java.sun.com
>         at java.net.InetAddress.getAllByName0(InetAddress.java:571)
>         at java.net.InetAddress.getAllByName0(InetAddress.java:540)
>         at java.net.InetAddress.getByName(InetAddress.java:449)
>         at java.net.Socket.<init>(Socket.java:100)
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:335)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:521)
>         at sun.net.www.http.HttpClient.<init>(HttpClient.java:271)
>         at sun.net.www.http.HttpClient.<init>(HttpClient.java:281)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:293)
>         at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:404)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.jav
> a:497)
>         at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:230)
>         at com.sun.xml.parser.Resolver.createInputSource(Resolver.java:248)
>         at
> com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:49)
>         at com.sun.xml.parser.Parser.pushReader(Parser.java:2768)
>         at com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2504)
>         at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
>         at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
>         at com.sun.xml.parser.Parser.parse(Parser.java:284)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
>         at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
>         at
> org.apache.tomcat.context.WebXmlReader.processWebXmlFile(WebXmlReader.java:202)
>         at
> org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java:109)
>         at
> org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
>         at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
>         at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
>         at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> 2002-02-06 04:51:53 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
> 2002-02-06 04:51:53 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
> 
> Also, the instructions (in demo3.html) related to this step are a bit
> confusing to me and seem like they may be out of order.  For example,
> in Indexing files section, it states to execute the command to create
> the index within  "your {tomcat}/webapps/luceneweb directory"; but that
> directory doesn't exist until I do the next step -- copying
> luceneweb.war to {tomcat}/webapps and re-start Tomcat, which is when I
> get the errors shown above.
> 
> What am I missing here?
> 
> Thanks in advance for any help with this.
> 
> regards,
> -don
> 
> PS Here's my classpath output from 'tomcat.sh start':
> 
> /opt/jakarta-tomcat-3.2.1/lib/ant.jar:/opt/jakarta-tomcat-3.2.1/lib/jasper.jar:/
> opt/jakarta-tomcat-3.2.1/lib/jaxp.jar:/opt/jakarta-tomcat-3.2.1/lib/parser.jar:/
> opt/jakarta-tomcat-3.2.1/lib/servlet.jar:/opt/jakarta-tomcat-3.2.1/lib/test:/opt
> /jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/j2sdk1_3_1_02/lib/tools.jar:/
> usr/local/lucene-1.2-rc3/lucene-1.2-rc3.jar:/usr/local/lucene-1.2-rc3/lucene-dem
> os-1.2-rc3.jar:.:/usr/local/j2sdk1_3_1_02/lib/dt.jar:/usr/local/j2sdk1_3_1_02/li
> b/tools.jar:/usr/local/j2sdk1_3_1_02/lib/htmlconverter.jar:/usr/local/jdom-b7/bu
> ild/jdom.jar:/opt/java/jsdk2.2/lib/jsdk.jar
> 
> Let me know if I need to provide any other info.
> 
> --
> To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message