|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] Java/Tomcat/Lucene
|
Aaron Crosman wrote:
Over the last few days I have managed to prove to myself that everything
I thought I knew about using Java in the real world is wrong. Now I'm
confused and I need some guidance here.
What, were you thinking that because it was java it would be magicly cleaner and easier than everything else? Silly man. Of course it is just as messy as everything else in the IT universe....at least wrt to the problems you are seeing which are how it fits into the rest of the universe.
Not to worry. We'll get you through this.
I'm trying to setup Lucene (part of Apache's Jakarta project) to setup a
search engine for one of our sites. So far it's not going well. Per
the suggestion of the Lucene docs I started by setting up Tomcat. Since
I use SuSE YaST made that a fairly painless process, and after a little
tweaking of the configuration it seems to be running (although I'm not
really sure).
There are a number of ways to determine whether tomcat is working.
First, does "ps axf" indicate that there are java processes running.
Second, does "netstat -tlp" indicate that you have a java process
listening on a tcp port. The port number will be something like 8080 or
8180, depending upon your version of Tomcat. The port number and just
about everything else is configured in a server.xml file (/etc/tomcat ?)
I then tried to follow the Lucene quick start directions,
and I'm not getting anywhere. SuSE seems to have installed java in no
less then 5 places (/usr/lib/java/, /usr/lib/j2sdk1.4.2_03/,
/usr/lib/SunJava2, /usr/lib/SunJava2-1.4, /usr/lib/SunJava2-1.4.2) this
seems bad, but maybe I'm just missing something about this.
Different locations for different versions, or are some of those simply
symlinks? I've never used yast or Suse, but I would guess the you have
one installation with 5 more and less specific access names.
What I need
to find is the CLASSPATH for java. Is there a traditional place that
this should be set to. The Tomcat start script is designed to set one,
but it's blank by default, so I'm not sure where I should point it.
"Traditional" only works within a given distribution. I suggest
pointing it towards the most current/specific access name
(/usr/lib/j2sdk1.4.2_03/ or /usr/lib/SunJava2-1.4.2) and seeing how far
that gets you.
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|