Mailing List Archive

Web demo example: Errors from Tomcat startup
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>
Re: Web demo example: Errors from Tomcat startup [ In reply to ]
>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,
>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

Hi.

I am also having problems with this demo.

I got around the missing tomcat directories by creating them first,
and copying the .jsp files and .war files over.

But it's a bit unclear as to whether the luceneweb.war file should be
in the {tomcat}/webapps or {tomcat}/webapps/luceneweb when
I try to execute "jar -uf luceneweb.war configuration.jsp". If its supposed
to be in the {tomcat}/webapps folder, then the above jar command
won't work because the configuration.jsp (which I had to copy over
from the lucene demo folder) file is in the {tomcat}/webapps/lucene
directory.

It also seems like you have to create an /opt/lucene/index folder.

When I run "java org.apache.lucene.demo.IndexHTML -create -index /opt/lucene/index",
I get a null pointer exception (using either JDK 1.2 or 1.3). I am running Red Hat 7.1,
with the Sun JDKs.

I set up this script to run it:
#!/bin/bash
/usr/java/jdk1.3.1_02/bin/java -verbose -cp /usr/java/lucene-1.2-rc3-bin/lucene-1.2-rc3.jar:/usr/java/lucene-1.2-rc3-bin/lucene-demos-1.2-rc3.jar org.apache.lucene.demo.IndexHTML -create -index /opt/lucene/index

And here is the (verbose--hope its not too much) output:
[Opened /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Opened /usr/java/jdk1.3.1_02/jre/lib/i18n.jar]
[Opened /usr/java/jdk1.3.1_02/jre/lib/sunrsasign.jar]
[Loaded java.lang.Object from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.Serializable from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Comparable from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.String from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Class from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Cloneable from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ClassLoader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Throwable from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Error from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ThreadDeath from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Exception from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.RuntimeException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.ProtectionDomain from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.AccessControlContext from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ClassNotFoundException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.LinkageError from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.NoClassDefFoundError from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ClassCastException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ArrayStoreException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.VirtualMachineError from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.OutOfMemoryError from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.StackOverflowError from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.Reference from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.SoftReference from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.WeakReference from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.FinalReference from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.PhantomReference from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.Finalizer from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Runnable from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Thread from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ThreadGroup from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Dictionary from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Map from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Hashtable from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Properties from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.reflect.AccessibleObject from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.reflect.Member from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.reflect.Method from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.reflect.Constructor from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Collection from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.AbstractCollection from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.List from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.AbstractList from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Vector from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.StringBuffer from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Boolean from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Character from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Number from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Float from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Double from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Byte from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Short from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Integer from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Long from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.NullPointerException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ArithmeticException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Shutdown from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.StrictMath from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.ObjectStreamField from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Comparator from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.String$CaseInsensitiveComparator from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.System from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.AccessController from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Collections from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Random from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Set from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.AbstractSet from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Collections$EmptySet from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Collections$EmptyList from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.AbstractMap from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Collections$EmptyMap from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Collections$ReverseComparator from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ThreadLocal from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.InheritableThreadLocal from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.Guard from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.Permission from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.BasicPermission from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.reflect.ReflectPermission from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.Reference$Lock from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.Reference$ReferenceHandler from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.ReferenceQueue from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.ReferenceQueue$Null from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.ReferenceQueue$Lock from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ref.Finalizer$FinalizerThread from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Enumeration from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Hashtable$EmptyEnumerator from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Iterator from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Hashtable$EmptyIterator from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.ObjectStreamClass from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.ObjectStreamClass$ObjectStreamClassEntry from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.ObjectStreamClass$CompareClassByName from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.ObjectStreamClass$CompareMemberByName from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Map$Entry from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Hashtable$Entry from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.io.ByteToCharConverter from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.io.Converters from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Stack from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.PrivilegedAction from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.security.action.GetPropertyAction from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.io.CharacterEncoding from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.Locale from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.io.ByteToCharISO8859_1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.Version from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.InputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.FileInputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.FileDescriptor from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.OutputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.FileOutputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.FilterInputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.BufferedInputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.FilterOutputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.PrintStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.BufferedOutputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.Writer from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.OutputStreamWriter from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.io.CharToByteConverter from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.io.CharToByteISO8859_1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.BufferedWriter from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Compiler from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Compiler$1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.Launcher from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.net.URLStreamHandlerFactory from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$Factory from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.SecureClassLoader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.net.URLClassLoader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$ExtClassLoader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.security.util.Debug from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.StringTokenizer from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.File from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.FileSystem from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.UnixFileSystem from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.PrivilegedExceptionAction from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$2 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.net.URL from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.HashSet from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.HashMap from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.HashMap$EmptyHashIterator from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.HashMap$Entry from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.ArrayList from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.net.URLStreamHandler from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.net.www.protocol.jar.Handler from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$AppClassLoader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.Launcher$3 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.net.www.protocol.file.Handler from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.net.URLClassLoader$1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.EmptyStackException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.PrivilegedActionException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath$2 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath$Loader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath$JarLoader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.zip.ZipConstants from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.zip.ZipFile from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.jar.JarFile from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.security.action.LoadLibraryAction from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Runtime from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ClassLoader$4 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.ClassLoader$NativeLibrary from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.JarIndex from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.ExtensionDependency from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.zip.ZipEntry from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.jar.JarEntry from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.jar.JarFile$JarFileEntry from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.DataInput from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.DataInputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.zip.ZipFile$ZipFileInputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.zip.InflaterInputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.zip.ZipFile$1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.zip.Inflater from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.jar.Manifest from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.ByteArrayInputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.jar.Attributes from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.jar.Manifest$FastInputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.jar.Attributes$Name from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.jar.JarVerifier from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.ByteArrayOutputStream from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.net.www.ParseUtil from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.util.BitSet from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.Resource from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.URLClassPath$4 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.Package from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.security.util.ManifestEntryVerifier from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.CharacterDecoder from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.misc.BASE64Decoder from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.CodeSource from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.Policy from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.Policy$1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.Security from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.Security$1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.Reader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.BufferedReader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.InputStreamReader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.Provider from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.security.provider.Sun from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.security.provider.Sun$1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded com.sun.rsajca.Provider from /usr/java/jdk1.3.1_02/jre/lib/sunrsasign.jar]
[Loaded com.sun.rsajca.Provider$1 from /usr/java/jdk1.3.1_02/jre/lib/sunrsasign.jar]
[Loaded sun.security.provider.PolicyFile from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.PermissionCollection from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.security.provider.PolicyPermissions from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.net.URLConnection from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.net.www.URLConnection from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.net.www.protocol.file.FileURLConnection from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.net.ContentHandler from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.net.UnknownContentHandler from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded sun.net.www.MessageHeader from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.FilePermission from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.FilePermission$1 from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.lang.RuntimePermission from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.security.cert.Certificate from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded org.apache.lucene.demo.IndexHTML]
[Loaded org.apache.lucene.analysis.Analyzer]
[Loaded org.apache.lucene.analysis.standard.StandardAnalyzer]
[Loaded java.util.Date from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded org.apache.lucene.index.IndexWriter]
[Loaded java.io.IOException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded org.apache.lucene.index.SegmentInfos]
[Loaded org.apache.lucene.store.Lock$With]
[Loaded org.apache.lucene.index.IndexWriter$2]
[Loaded org.apache.lucene.store.Directory]
[Loaded org.apache.lucene.store.RAMDirectory]
[Loaded org.apache.lucene.index.IndexWriter$1]
[Loaded org.apache.lucene.store.FSDirectory]
[Loaded org.apache.lucene.analysis.TokenStream]
[Loaded org.apache.lucene.analysis.Tokenizer]
[Loaded org.apache.lucene.analysis.standard.StandardTokenizerConstants]
[Loaded org.apache.lucene.analysis.standard.StandardTokenizer]
[Loaded org.apache.lucene.analysis.TokenFilter]
[Loaded org.apache.lucene.analysis.standard.StandardFilter]
[Loaded org.apache.lucene.analysis.LowerCaseFilter]
[Loaded org.apache.lucene.analysis.StopFilter]
[Loaded org.apache.lucene.store.OutputStream]
[Loaded org.apache.lucene.store.FSOutputStream]
[Loaded org.apache.lucene.store.InputStream]
[Loaded org.apache.lucene.store.FSInputStream]
[Loaded org.apache.lucene.store.Lock]
[Loaded org.apache.lucene.store.FSDirectory$1]
[Loaded org.apache.lucene.store.RAMOutputStream]
[Loaded org.apache.lucene.store.RAMInputStream]
[Loaded org.apache.lucene.store.RAMDirectory$1]
[Loaded org.apache.lucene.util.Constants]
[Loaded java.lang.InterruptedException from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.DataOutput from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
[Loaded java.io.RandomAccessFile from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
caught a class java.lang.NullPointerException
with message: null
[Loaded java.lang.Shutdown$Lock from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]

Thanks for all your help.

Cheers.

Ken Munro

--
Ken Munro
Main Sail Productions
http://www.mainsail.ca/
ken@mainsail.ca
902.431.WWW3




--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: Web demo example: Errors from Tomcat startup [ In reply to ]
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>
Re: Re: Web demo example: Errors from Tomcat startup [ In reply to ]
I'll take a look at the confusing instructions on demo3. I have no idea why
the dtd isn't validating. Can anyone else answer this?

You might want to pose the dtd problem to the tomcat-user mailing list. Due
note that I make the assumption you're using 4.0.x or know how to adapt it.
I'd guess if you take that top line and replace it with the top line from
one of the tomcat 3.2.x example web.xml files, you'll probably hit paydirt.
Probably tomcat can't read the newer format. (but the file is practically
blank anyhow).

-Andy

>On Thu, 07 Feb 2002 14:07:40 0000 Ian Lea <ian.lea@blackwell.co.uk> wrote.
>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>
>


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: Web demo example: Errors from Tomcat startup [ In reply to ]
> ...
> note that I make the assumption you're using 4.0.x or know how to adapt it.
> I'd guess if you take that top line and replace it with the top line from
> one of the tomcat 3.2.x example web.xml files, you'll probably hit paydirt.
> Probably tomcat can't read the newer format. (but the file is practically
> blank anyhow).

I think that is correct. Tomcat 3.whatever understands

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/dtd/web-app_2_2.dtd">

without recourse to any external sites, and Tomcat 4.whatever understands

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

but Tomcat 3 doesn't. So just edit web.xml and replace 3 with 2, twice.



Perhaps that should be noted in the demo docs if it isn't already.



--
Ian.

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: Re: Web demo example: Errors from Tomcat startup [ In reply to ]
Hi Don,

I fixed it.

It meant your {tomcat}/webapps directory. My proofreaders didn't catch
that ;-). The idea is to index everything you have mounted via tomcat.
(except for /ROOT which will be wrong as noted at the end)

-Andy

On Thu, 2002-02-07 at 16:31, Don Gilchrest - Sun Microsystems wrote:
> Andy, Thanks for your feedback and offering to look into the instructions.
>
> -don
>
> > Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm
> > List-Unsubscribe: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> > List-Subscribe: <mailto:lucene-user-subscribe@jakarta.apache.org>
> > List-Help: <mailto:lucene-user-help@jakarta.apache.org>
> > List-Post: <mailto:lucene-user@jakarta.apache.org>
> > List-Id: "Lucene Users List" <lucene-user.jakarta.apache.org>
> > Delivered-To: mailing list lucene-user@jakarta.apache.org
> > Date: Thu, 7 Feb 2002 06:23:02 -0800 (PST)
> > From: acoliver <acoliver@nc.rr.com>
> > To: lucene-user@jakarta.apache.org
> > Subject: Re: Re: Web demo example: Errors from Tomcat startup
> > Mime-Version: 1.0
> > Content-Transfer-Encoding: 7bit
> > X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> >
> > I'll take a look at the confusing instructions on demo3. I have no idea why
> > the dtd isn't validating. Can anyone else answer this?
> >
> > You might want to pose the dtd problem to the tomcat-user mailing list. Due
> > note that I make the assumption you're using 4.0.x or know how to adapt it.
> > I'd guess if you take that top line and replace it with the top line from
> > one of the tomcat 3.2.x example web.xml files, you'll probably hit paydirt.
> > Probably tomcat can't read the newer format. (but the file is practically
> > blank anyhow).
> >
> > -Andy
> >
> > >On Thu, 07 Feb 2002 14:07:40 0000 Ian Lea <ian.lea@blackwell.co.uk> wrote.
> > >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>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
> >
>
--
www.superlinksoftware.com
www.sourceforge.net/projects/poi - port of Excel format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html
- fix java generics!


The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: Web demo example: Errors from Tomcat startup [ In reply to ]
Does tomcat 4 understand the 3.2.x header? If so, lets just use the
3.2.x header.

On Fri, 2002-02-08 at 04:55, Ian Lea wrote:
> > ...
> > note that I make the assumption you're using 4.0.x or know how to adapt it.
> > I'd guess if you take that top line and replace it with the top line from
> > one of the tomcat 3.2.x example web.xml files, you'll probably hit paydirt.
> > Probably tomcat can't read the newer format. (but the file is practically
> > blank anyhow).
>
> I think that is correct. Tomcat 3.whatever understands
>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/dtd/web-app_2_2.dtd">
>
> without recourse to any external sites, and Tomcat 4.whatever understands
>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd">
>
> but Tomcat 3 doesn't. So just edit web.xml and replace 3 with 2, twice.
>
>
>
> Perhaps that should be noted in the demo docs if it isn't already.
>
>
>
> --
> Ian.
>
> --
> To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
>
--
www.superlinksoftware.com
www.sourceforge.net/projects/poi - port of Excel format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html
- fix java generics!


The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: Web demo example: Errors from Tomcat startup [ In reply to ]
Looks like it does.


--
Ian.

"Andrew C. Oliver" wrote:
>
> Does tomcat 4 understand the 3.2.x header? If so, lets just use the
> 3.2.x header.

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: Web demo example: Errors from Tomcat startup [ In reply to ]
Hi Andy,

Thanks for clarifying the demo instructions!

Now, what about the NPE that Ken Munro cited (included below)? I'm
encountering this too:

dpg% cd $TOMCAT_HOME/webapps/
dpg% java -verbose org.apache.lucene.demo.IndexHTML -create -index
/opt/lucene/index
...
[Loaded java.io.RandomAccessFile from /usr/local/j2sdk1_3_1_02/jre/lib/rt.jar]
caught a class java.lang.NullPointerException
with message: null

Could that be related to the NPE problem discussed in the "PhraseQuery:
NullPointerException" thread, for which Ian offered a possible
solution, included here:

> Date: Fri, 08 Feb 2002 12:08:25 +0000
> From: Ian Lea <ian.lea@blackwell.co.uk>
> Subject: Re: PhraseQuery: NullPointerException
> 1.2-rc3 seems to generate NPE if one or more of the words in
> the search phrase are not present in the index.
> Works as expected, no NPE, with 1.2-rc2.
>
> If change method seek() in org.apache.lucene.index.SegmentTermPositions from
>
> final void seek(TermInfo ti) throws IOException {
> super.seek(ti);
> proxStream.seek(ti.proxPointer);
> }
>
> to
>
> final void seek(TermInfo ti) throws IOException {
> super.seek(ti);
> if (ti != null) {
> proxStream.seek(ti.proxPointer);
> }
> }
>
> the NPE goes away. But I don't know what is going on here so
> this may well not be the correct solution.
>
> --
> Ian.
> ian.lea@blackwell.co.uk

Thanks again for your help with this.

-don

> Date: Wed, 06 Feb 2002 20:29:16 -0400
> From: Ken Munro <ken@mainsail.ca>
> ...
> When I run "java org.apache.lucene.demo.IndexHTML -create -index
/opt/lucene/index",
> I get a null pointer exception (using either JDK 1.2 or 1.3). I am running Red
Hat 7.1,
> with the Sun JDKs.
>
> I set up this script to run it:
> #!/bin/bash
> /usr/java/jdk1.3.1_02/bin/java -verbose -cp
/usr/java/lucene-1.2-rc3-bin/lucene-1.2-rc3.jar:/usr/java/lucene-1.2-rc3-bin/luc
ene-demos-1.2-rc3.jar org.apache.lucene.demo.IndexHTML -create -index
/opt/lucene/index
>
> And here is the (verbose--hope its not too much) output:
> ...
> [Loaded java.io.RandomAccessFile from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
> caught a class java.lang.NullPointerException
> with message: null
> [Loaded java.lang.Shutdown$Lock from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
>
> Thanks for all your help.
>
> Cheers.
>
> Ken Munro
>
> --
> Ken Munro
> Main Sail Productions
> http://www.mainsail.ca/
> ken@mainsail.ca
> 902.431.WWW3
>
> --


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: Re: Web demo example: Errors from Tomcat startup [ In reply to ]
I'll fix it when I get back from Boston next week. Or if someone else wants
to go for it thats cool with me.

-Andy

>On Fri, 08 Feb 2002 13:59:53 0000 Ian Lea <ian.lea@blackwell.co.uk> wrote.
>Looks like it does.
>
>
>--
>Ian.
>
>"Andrew C. Oliver" wrote:
>>
>> Does tomcat 4 understand the 3.2.x header? If so, lets just use the
>> 3.2.x header.
>
>--
>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>
Re: Web demo example: Errors from Tomcat startup [ In reply to ]
> ...
> Now, what about the NPE that Ken Munro cited (included below)? I'm
> encountering this too:
>
> dpg% cd $TOMCAT_HOME/webapps/
> dpg% java -verbose org.apache.lucene.demo.IndexHTML -create -index
> /opt/lucene/index
> ...
> [Loaded java.io.RandomAccessFile from /usr/local/j2sdk1_3_1_02/jre/lib/rt.jar]
> caught a class java.lang.NullPointerException
> with message: null

Looks like you need to include a file or directory name on the command
line as the last argument:

e.g. $ java ...IndexHTML -create -index /where/ever somefile.html



--
Ian.

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: Web demo example: Errors from Tomcat startup [ In reply to ]
D'oh!

Thanks for pointing out that Ian!

I looked at the demo instructions again more closing and noticed that Andy
had specified ".." as the last argument:

java -verbose org.apache.lucene.demo.IndexHTML -create -index {index} ..

The command succeeds that way.

thanks again,
-don (embarrassed)

> Date: Fri, 08 Feb 2002 21:09:26 +0000
> From: Ian Lea <ian.lea@blackwell.co.uk>
>
> > ...
> > Now, what about the NPE that Ken Munro cited (included below)? I'm
> > encountering this too:
> >
> > dpg% cd $TOMCAT_HOME/webapps/
> > dpg% java -verbose org.apache.lucene.demo.IndexHTML -create -index
> > /opt/lucene/index
> > ...
> > [Loaded java.io.RandomAccessFile from
/usr/local/j2sdk1_3_1_02/jre/lib/rt.jar]
> > caught a class java.lang.NullPointerException
> > with message: null
>
> Looks like you need to include a file or directory name on the command
> line as the last argument:
>
> e.g. $ java ...IndexHTML -create -index /where/ever somefile.html
>
>
>
> --
> Ian.
>
> --
> 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>
Re: Re: Web demo example: Errors from Tomcat startup [ In reply to ]
you left off the last argument

>On Fri, 8 Feb 2002 10:25:55 -0500 (EST) Don Gilchrest - Sun Microsystems
<Donald.Gilchrest@Sun.COM> wrote.
>Hi Andy,
>
>Thanks for clarifying the demo instructions!
>
>Now, what about the NPE that Ken Munro cited (included below)? I'm
>encountering this too:
>
>dpgd $TOMCAT_HOME/webapps/
>dpgava -verbose org.apache.lucene.demo.IndexHTML -create -index
>/opt/lucene/index
>....
>[Loaded java.io.RandomAccessFile from
/usr/local/j2sdk1_3_1_02/jre/lib/rt.jar]
> caught a class java.lang.NullPointerException
> with message: null
>
>Could that be related to the NPE problem discussed in the "PhraseQuery:
>NullPointerException" thread, for which Ian offered a possible
>solution, included here:
>
>> Date: Fri, 08 Feb 2002 12:08:25 0000
>> From: Ian Lea <ian.lea@blackwell.co.uk>
>> Subject: Re: PhraseQuery: NullPointerException
>> 1.2-rc3 seems to generate NPE if one or more of the words in
>> the search phrase are not present in the index.
>> Works as expected, no NPE, with 1.2-rc2.
>>
>> If change method seek() in org.apache.lucene.index.SegmentTermPositions
from
>>
>> final void seek(TermInfo ti) throws IOException {
>> super.seek(ti);
>> proxStream.seek(ti.proxPointer);
>> }
>>
>> to
>>
>> final void seek(TermInfo ti) throws IOException {
>> super.seek(ti);
>> if (ti != null) {
>> proxStream.seek(ti.proxPointer);
>> }
>> }
>>
>> the NPE goes away. But I don't know what is going on here so
>> this may well not be the correct solution.
>>
>> --
>> Ian.
>> ian.lea@blackwell.co.uk
>
>Thanks again for your help with this.
>
>-don
>
>> Date: Wed, 06 Feb 2002 20:29:16 -0400
>> From: Ken Munro <ken@mainsail.ca>
>> ...
>> When I run "java org.apache.lucene.demo.IndexHTML -create -index
>/opt/lucene/index",
>> I get a null pointer exception (using either JDK 1.2 or 1.3). I am
running Red
>Hat 7.1,
>> with the Sun JDKs.
>>
>> I set up this script to run it:
>> #!/bin/bash
>> /usr/java/jdk1.3.1_02/bin/java -verbose -cp
>/usr/java/lucene-1.2-rc3-bin/lucene-1.2-rc3.jar:/usr/java/lucene-1.2-rc3-bin/luc
>ene-demos-1.2-rc3.jar org.apache.lucene.demo.IndexHTML -create -index
>/opt/lucene/index
>>
>> And here is the (verbose--hope its not too much) output:
>> ...
>> [Loaded java.io.RandomAccessFile from
/usr/java/jdk1.3.1_02/jre/lib/rt.jar]
>> caught a class java.lang.NullPointerException
>> with message: null
>> [Loaded java.lang.Shutdown$Lock from
/usr/java/jdk1.3.1_02/jre/lib/rt.jar]
>>
>> Thanks for all your help.
>>
>> Cheers.
>>
>> Ken Munro
>>
>> --
>> Ken Munro
>> Main Sail Productions
>> http://www.mainsail.ca/
>> ken@mainsail.ca
>> 902.431.WWW3
>>
>> --
>
>
>--
>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>
Re: Web demo example: Errors from Tomcat startup [ In reply to ]
Hey Don,

My earlier correction was only half right. I read it over again, walked
through it and corrected it. The error you got below was because you
left off the directory at the end (in the instructions it was "..")..
I've clarified the instructions and corrected them... Thanks for
reporting these documentation bugs ;-).

-Andy

On Fri, 2002-02-08 at 10:25, Don Gilchrest - Sun Microsystems wrote:
> Hi Andy,
>
> Thanks for clarifying the demo instructions!
>
> Now, what about the NPE that Ken Munro cited (included below)? I'm
> encountering this too:
>
> dpg% cd $TOMCAT_HOME/webapps/
> dpg% java -verbose org.apache.lucene.demo.IndexHTML -create -index
> /opt/lucene/index
> ...
> [Loaded java.io.RandomAccessFile from /usr/local/j2sdk1_3_1_02/jre/lib/rt.jar]
> caught a class java.lang.NullPointerException
> with message: null
>
> Could that be related to the NPE problem discussed in the "PhraseQuery:
> NullPointerException" thread, for which Ian offered a possible
> solution, included here:
>
> > Date: Fri, 08 Feb 2002 12:08:25 +0000
> > From: Ian Lea <ian.lea@blackwell.co.uk>
> > Subject: Re: PhraseQuery: NullPointerException
> > 1.2-rc3 seems to generate NPE if one or more of the words in
> > the search phrase are not present in the index.
> > Works as expected, no NPE, with 1.2-rc2.
> >
> > If change method seek() in org.apache.lucene.index.SegmentTermPositions from
> >
> > final void seek(TermInfo ti) throws IOException {
> > super.seek(ti);
> > proxStream.seek(ti.proxPointer);
> > }
> >
> > to
> >
> > final void seek(TermInfo ti) throws IOException {
> > super.seek(ti);
> > if (ti != null) {
> > proxStream.seek(ti.proxPointer);
> > }
> > }
> >
> > the NPE goes away. But I don't know what is going on here so
> > this may well not be the correct solution.
> >
> > --
> > Ian.
> > ian.lea@blackwell.co.uk
>
> Thanks again for your help with this.
>
> -don
>
> > Date: Wed, 06 Feb 2002 20:29:16 -0400
> > From: Ken Munro <ken@mainsail.ca>
> > ...
> > When I run "java org.apache.lucene.demo.IndexHTML -create -index
> /opt/lucene/index",
> > I get a null pointer exception (using either JDK 1.2 or 1.3). I am running Red
> Hat 7.1,
> > with the Sun JDKs.
> >
> > I set up this script to run it:
> > #!/bin/bash
> > /usr/java/jdk1.3.1_02/bin/java -verbose -cp
> /usr/java/lucene-1.2-rc3-bin/lucene-1.2-rc3.jar:/usr/java/lucene-1.2-rc3-bin/luc
> ene-demos-1.2-rc3.jar org.apache.lucene.demo.IndexHTML -create -index
> /opt/lucene/index
> >
> > And here is the (verbose--hope its not too much) output:
> > ...
> > [Loaded java.io.RandomAccessFile from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
> > caught a class java.lang.NullPointerException
> > with message: null
> > [Loaded java.lang.Shutdown$Lock from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
> >
> > Thanks for all your help.
> >
> > Cheers.
> >
> > Ken Munro
> >
> > --
> > Ken Munro
> > Main Sail Productions
> > http://www.mainsail.ca/
> > ken@mainsail.ca
> > 902.431.WWW3
> >
> > --
>
>
> --
> To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
>
--
www.superlinksoftware.com
www.sourceforge.net/projects/poi - port of Excel format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html
- fix java generics!


The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


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