Bug 14271 - Xindice batch scripts fail for JDK 1.4 or install path with spaces
Summary: Xindice batch scripts fail for JDK 1.4 or install path with spaces
Status: CLOSED FIXED
Alias: None
Product: Xindice
Classification: Unclassified
Component: Server (show other bugs)
Version: 1.0
Hardware: PC All
: P3 major
Target Milestone: ---
Assignee: Xindice Developers
URL: http://home1.gte.net/greno/Updated_Ba...
Keywords: JDK1.4, PatchAvailable
Depends on:
Blocks:
 
Reported: 2002-11-05 20:31 UTC by Gerry Reno
Modified: 2007-03-11 19:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry Reno 2002-11-05 20:31:18 UTC
Scope: Windows version of Xindice 1.0
Affected Files:
%XINDICE_HOME%\startup.bat 
%XINDICE_HOME%\build.bat
%XINDICE_HOME%\bin\lcp.bat
%XINDICE_HOME%\bin\ant.bat
%XINDICE_HOME%\bin\xindice.bat
%XINDICE_HOME%\bin\xindiceadmin.bat

Problems
Xindice 1.0 requires older versions of Xerces and Xalan to compile and run 
properly. If you have JDK 1.4 installed you may find that you have newer 
versions of Xerces and Xalan on your CLASSPATH.

Xindice 1.0 batch scripts for Windows do not handle paths with spaces in them.

  

Solution
Updated Windows Batch Files
I added a few simple syntax fixes and minor additions to the original versions 
of the Xindice batch files.

You may now install Xindice in a directory path that contains spaces. 
java.endorsed.dirs support was added to all java calls to eliminate the problem 
of incorrect versions of Xerces and Xalan being found first on the CLASSPATH. 
I have been installing and running Xindice without problems on Windows 2000 
with JDK 1.4 using these scripts.
My Xindice install directory is \Program Files\Apache\Xindice.


If these new scripts test out ok for others I would like to contribute them to 
Xindice.

-Gerry Reno
Comment 1 Gerry Reno 2002-11-05 20:43:47 UTC
Here's the URL again:

http://home1.gte.net/greno/Updated_Batch_Files_for_Xindice_1_0.htm

Bugzilla is cutting off the URL path in its URL: field!

Comment 2 Moritz Kersig 2002-11-05 23:14:12 UTC
I was glad to find your batch scripts, tried them out on Windows XP and got 
the following messages:

Xindice 1.0 (Birthday)

Database: 'db' initializing
Script: 'GET' added to script storage
Service: 'db' started
Service: 'HTTPServer' started @ http://Moritz-Taxetstr:4080/
Service: 'APIService' started

Server Running

... here I tried to type "xindiceadmin ac -c /db -n addressbook", but I didn't 
get a promt to type in anything. Do you have an idea of what went wrong? 
Anyway, thanks for the batch files, without them I wouldn't even have got this 
far.
Moritz
Comment 3 Gerry Reno 2002-11-06 02:14:44 UTC
Open a second Command Prompt window and type: xindice
and you should see a help screen.  Read the online
docs for how to use the command interface.  Good luck.

G. Reno

Comment 4 Gerry Reno 2002-11-06 02:16:37 UTC
Don't forget to set %XINDICE_HOME% in your environment. And put %XINDICE_HOME%
\bin in your path.

Gerry Reno
Comment 5 Gerry Reno 2002-11-06 02:56:29 UTC
added keywords, set priority
Comment 6 Kevin Ross 2003-05-30 23:33:21 UTC
Please try out 1.1 or the cvs head and reopen the bug if you have issues with 
that version.  If you solve the problem, please submit the patch in diff -u 
format.