You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Wolfang Bär <WB...@gmx.de> on 2002/02/12 17:53:26 UTC

SOLUTION Startup Error

Hi all,

i now found the problem with the startup error on my windows-system.
I don't know why, but you have to change something in the startup.bat file.

if anybody hasn't set the JAVACMD variable explicit to something like 
c:\programs\jdk1.3.1\bin\java
it is set in the script to just java without the whole path.

So there are to possibilities. First you can just set the java command 
with the whole path in the startup.bat file like in the example below
or you have to set a variable JAVACMD with the whole path to the java.exe:

E:\Programme\jdk1.3.1_01\bin\java -Xms16m -Xmx128m 
-Dxindice.home=%XINDICE_HOME% -classpath "%LOCALCLASSPATH%" -noverify 
org.apache.xindice.server.Xindice %XINDICE_HOME%\config\system.xml

Now it works but if anybody knows why !! i would like to know the answer.

Thanks for your help and the many comments to this topic.

Wolfgang

PS:     I tested it on Windows 2000 and also on WIN98 with the jdk 1.3.1_01
      






Re: Re: SOLUTION Startup Error

Posted by Bahman Kalali <bk...@math.uwaterloo.ca>.
Sorry that was wrong e-mail...



----- Original Message -----
From: Bahman Kalali <bk...@math.uwaterloo.ca>
To: <xi...@xml.apache.org>
Sent: Tuesday, February 12, 2002 5:32 PM
Subject: Re: Re: SOLUTION Startup Error


> I just came back at my desk. and I am eating my luanch.
>
> Poor you :-)
>
> ----- Original Message -----
> From: Wolfgang Bär <WB...@gmx.de>
> To: <xi...@xml.apache.org>
> Sent: Tuesday, February 12, 2002 4:55 PM
> Subject: Re: Re: SOLUTION Startup Error
>
>
> > Hi Paul,
> >
> > there was another problem on WIN98:
> >
> > the line : for %%i in (%XINDICE_HOME%\java\lib\*.jar) do call
> > %XINDICE_HOME%\bin\lcp.bat %%i
> > which adds all the jars in the directory to the localclasspath didn't
> > work in WIN98 so
> > i added all the jars manually to the classpath
> >
> > with the point in the classpath:
> > you have to set set it like: set CLASSPATH=.;C:\...xx.jar;C:\...xy.jar
> > so it is like an own path which means the current directory !
> >
> > Hope it helps,
> >
> > Wolfgang
> >
> > Paul Caton wrote:
> >
> > >I'm also using jdk 1.3.1 on Windows 98. I tried both Wolfgang's
> > >suggested fixes and had no joy getting the server to start. I followed
> > >the Windows installation docs faithfully, too. There was only one
> > >point I was unsure of: Step 6. tells you to add the Xindice.jar file
> > >to the CLASSPATH, which I did, and also says:
> > >
> > >"make sure you have . in your classpath"
> > >
> > >I've mainly done Unix classpaths before and I'm not very familiar with
> > >Windows conventions; is "." the same as %ClassPath% at the beginning
> > >of the path, or does it mean you literally have to have ";.;" as one
> > >of the paths?
> > >
> > >
> > >Paul Caton
> > >
> > >---
> > >Electronic Publications Editor
> > >Women Writers Project
> > >
> > > e-mail: paul@mail.stg.brown.edu
> > >    tel: (401) 863-3619
> > >address: Box 1841, Brown University, Providence RI 02912
> > >
> > >
> > >
> > >
> >
> >
>


Re: Re: SOLUTION Startup Error

Posted by Bahman Kalali <bk...@math.uwaterloo.ca>.
I just came back at my desk. and I am eating my luanch.

Poor you :-)

----- Original Message -----
From: Wolfgang Bär <WB...@gmx.de>
To: <xi...@xml.apache.org>
Sent: Tuesday, February 12, 2002 4:55 PM
Subject: Re: Re: SOLUTION Startup Error


> Hi Paul,
>
> there was another problem on WIN98:
>
> the line : for %%i in (%XINDICE_HOME%\java\lib\*.jar) do call
> %XINDICE_HOME%\bin\lcp.bat %%i
> which adds all the jars in the directory to the localclasspath didn't
> work in WIN98 so
> i added all the jars manually to the classpath
>
> with the point in the classpath:
> you have to set set it like: set CLASSPATH=.;C:\...xx.jar;C:\...xy.jar
> so it is like an own path which means the current directory !
>
> Hope it helps,
>
> Wolfgang
>
> Paul Caton wrote:
>
> >I'm also using jdk 1.3.1 on Windows 98. I tried both Wolfgang's
> >suggested fixes and had no joy getting the server to start. I followed
> >the Windows installation docs faithfully, too. There was only one
> >point I was unsure of: Step 6. tells you to add the Xindice.jar file
> >to the CLASSPATH, which I did, and also says:
> >
> >"make sure you have . in your classpath"
> >
> >I've mainly done Unix classpaths before and I'm not very familiar with
> >Windows conventions; is "." the same as %ClassPath% at the beginning
> >of the path, or does it mean you literally have to have ";.;" as one
> >of the paths?
> >
> >
> >Paul Caton
> >
> >---
> >Electronic Publications Editor
> >Women Writers Project
> >
> > e-mail: paul@mail.stg.brown.edu
> >    tel: (401) 863-3619
> >address: Box 1841, Brown University, Providence RI 02912
> >
> >
> >
> >
>
>


Re: Windows scripts was Re: SOLUTION Startup Error

Posted by "Mark J. Stang" <ma...@earthlink.net>.
Try /"rootnode"
This link is to an interactive XPath Tutorial.   It is not just a tutorial,
you can enter xpath statements and watch them run interactively!
It explains how to do some of the more esoteric queries...

 http://www.zvon.org/xxl/XPathTutorial/General/examples.html

Mark

Miguel Angel Urrutia Soler wrote:

> Hi All, I'm running xindice on w2k and make a install on a win98 for my
> partner for testing . The problem that wolfgang refers does not occurred in
> my installation on win98, the bat adds all the jars, the .bat files seems
> working fine i have only i few problems with index corruption maybe due
> inappropriate shutdowns... tomorrow i look closer the files to search any
> condition or problem relate it. Again, the 1 exit code is correct, i though
> that 1 exit code means a error condition...
>
> BTW anyone knows the way i can retrieve only the root node using xpath from
> a xindice document? i used self but i got the root and descendants too...
>
> Miguel Angel Urrutia Soler
> ----- Original Message -----
> From: "Kimbro Staken" <ks...@dbxmlgroup.com>
> To: <xi...@xml.apache.org>
> Sent: Wednesday, February 13, 2002 11:52 PM
> Subject: Windows scripts was Re: SOLUTION Startup Error
>
> Is there anyone who is running this under windows and is comfortable with
> .bat files that could take a look at the scripts and see if they're
> correct or can be improved?
>
> On Tuesday, February 12, 2002, at 02:55 PM, Wolfgang Bär wrote:
>
> > Hi Paul,
> >
> > there was another problem on WIN98:
> >
> > the line : for %%i in (%XINDICE_HOME%\java\lib\*.jar) do call
> > %XINDICE_HOME%\bin\lcp.bat %%i
> > which adds all the jars in the directory to the localclasspath didn't
> > work in WIN98 so
> > i added all the jars manually to the classpath
> >
> > with the point in the classpath:
> > you have to set set it like: set CLASSPATH=.;C:\...xx.jar;C:\...xy.jar
> > so it is like an own path which means the current directory !
> >
> > Hope it helps,
> >
> > Wolfgang
> >
> > Paul Caton wrote:
> >
> >> I'm also using jdk 1.3.1 on Windows 98. I tried both Wolfgang's
> >> suggested fixes and had no joy getting the server to start. I followed
> >> the Windows installation docs faithfully, too. There was only one
> >> point I was unsure of: Step 6. tells you to add the Xindice.jar file
> >> to the CLASSPATH, which I did, and also says:
> >>
> >> "make sure you have . in your classpath"
> >>
> >> I've mainly done Unix classpaths before and I'm not very familiar with
> >> Windows conventions; is "." the same as %ClassPath% at the beginning
> >> of the path, or does it mean you literally have to have ";.;" as one
> >> of the paths?
> >>
> >> Paul Caton
> >>
> >> ---
> >> Electronic Publications Editor
> >> Women Writers Project
> >>
> >> e-mail: paul@mail.stg.brown.edu
> >>    tel: (401) 863-3619
> >> address: Box 1841, Brown University, Providence RI 02912
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> Kimbro Staken
> XML Database Software, Consulting and Writing
> http://www.xmldatabases.org/


Re: Windows scripts was Re: SOLUTION Startup Error

Posted by Miguel Angel Urrutia Soler <ur...@hotmail.com>.
Hi All, I'm running xindice on w2k and make a install on a win98 for my
partner for testing . The problem that wolfgang refers does not occurred in
my installation on win98, the bat adds all the jars, the .bat files seems
working fine i have only i few problems with index corruption maybe due
inappropriate shutdowns... tomorrow i look closer the files to search any
condition or problem relate it. Again, the 1 exit code is correct, i though
that 1 exit code means a error condition...

BTW anyone knows the way i can retrieve only the root node using xpath from
a xindice document? i used self but i got the root and descendants too...

Miguel Angel Urrutia Soler
----- Original Message -----
From: "Kimbro Staken" <ks...@dbxmlgroup.com>
To: <xi...@xml.apache.org>
Sent: Wednesday, February 13, 2002 11:52 PM
Subject: Windows scripts was Re: SOLUTION Startup Error


Is there anyone who is running this under windows and is comfortable with
.bat files that could take a look at the scripts and see if they're
correct or can be improved?

On Tuesday, February 12, 2002, at 02:55 PM, Wolfgang Bär wrote:

> Hi Paul,
>
> there was another problem on WIN98:
>
> the line : for %%i in (%XINDICE_HOME%\java\lib\*.jar) do call
> %XINDICE_HOME%\bin\lcp.bat %%i
> which adds all the jars in the directory to the localclasspath didn't
> work in WIN98 so
> i added all the jars manually to the classpath
>
> with the point in the classpath:
> you have to set set it like: set CLASSPATH=.;C:\...xx.jar;C:\...xy.jar
> so it is like an own path which means the current directory !
>
> Hope it helps,
>
> Wolfgang
>
> Paul Caton wrote:
>
>> I'm also using jdk 1.3.1 on Windows 98. I tried both Wolfgang's
>> suggested fixes and had no joy getting the server to start. I followed
>> the Windows installation docs faithfully, too. There was only one
>> point I was unsure of: Step 6. tells you to add the Xindice.jar file
>> to the CLASSPATH, which I did, and also says:
>>
>> "make sure you have . in your classpath"
>>
>> I've mainly done Unix classpaths before and I'm not very familiar with
>> Windows conventions; is "." the same as %ClassPath% at the beginning
>> of the path, or does it mean you literally have to have ";.;" as one
>> of the paths?
>>
>> Paul Caton
>>
>> ---
>> Electronic Publications Editor
>> Women Writers Project
>>
>> e-mail: paul@mail.stg.brown.edu
>>    tel: (401) 863-3619
>> address: Box 1841, Brown University, Providence RI 02912
>>
>>
>>
>>
>
>
>
>
Kimbro Staken
XML Database Software, Consulting and Writing
http://www.xmldatabases.org/



RE: Windows scripts was Re: SOLUTION Startup Error

Posted by "Paul V. Woods" <pw...@rjlg.com>.
A couple of months ago I spent a day or two debugging the dbXML .bat files
trying to get it working on my Win98 SE machine.  This is what I found:

* I had to load all of the .bat file into a text editor and save them with
DOS line endings (<CR><LF>)  The command processor thought they were garbage
until I did this.

* There seemed to be a problem with the labels ":checkdbXML" and
":checkdbXMLWork."  I think the command processor was getting confused and
was only looking at the first 8 or 10 characters.  It was complaining about
duplicate labels or some such nonsense.  Once I changed one of the labels to
a more unique string then it worked.

* The "for %%i in (%XINDICE_HOME%\java\lib\*.jar..." line did not work.
What I found was that this construct didn't work unless the file set was in
the current directory.  So if I did something like:
   CD %XINDICE_HOME%\java\lib
   for %%i in (*.jar) do call lcp.bat %%i
then it worked.

* There was some problem with the %SystemDrive% environment variable other
than the fact that its not defined in Win9X machines.  But I can't remember
what it was. I hardcoded around it.

Once I got past all of that, the server wasn't executing cleanly.  There
were exceptions on startup, although it ended up running...sometimes.  At
that point I said the heck with it.  I tried an NT 4.0 box that I had
running in my office as a testing machine for another purpose.  It worked
fine right out of the box...so that's what I'm using.

I'm really puzzled as to why some people are getting it to work on 98
machines without having the same problems, especially the Unix line-ending
thing.  You would think that one could expect consistent operation on
different installations of what is supposedly the same operating system.  I
hope this helps...sorry I don't have the time to get into it deeper.

______________________________________________
Paul V. Woods
Information Systems Coordinator
R J Lee Group, Inc.
(724) 387-1937
pwoods@rjlg.com <ma...@rjlg.com>


-----Original Message-----
From: Kimbro Staken [mailto:kstaken@dbxmlgroup.com]
Sent: Thursday, February 14, 2002 12:53 AM
To: xindice-users@xml.apache.org
Subject: Windows scripts was Re: SOLUTION Startup Error


Is there anyone who is running this under windows and is comfortable with
.bat files that could take a look at the scripts and see if they're
correct or can be improved?

On Tuesday, February 12, 2002, at 02:55 PM, Wolfgang Bär wrote:

> Hi Paul,
>
> there was another problem on WIN98:
>
> the line : for %%i in (%XINDICE_HOME%\java\lib\*.jar) do call
> %XINDICE_HOME%\bin\lcp.bat %%i
> which adds all the jars in the directory to the localclasspath didn't
> work in WIN98 so
> i added all the jars manually to the classpath
>
> with the point in the classpath:
> you have to set set it like: set CLASSPATH=.;C:\...xx.jar;C:\...xy.jar
> so it is like an own path which means the current directory !
>
> Hope it helps,
>
> Wolfgang
>
> Paul Caton wrote:
>
>> I'm also using jdk 1.3.1 on Windows 98. I tried both Wolfgang's
>> suggested fixes and had no joy getting the server to start. I followed
>> the Windows installation docs faithfully, too. There was only one
>> point I was unsure of: Step 6. tells you to add the Xindice.jar file
>> to the CLASSPATH, which I did, and also says:
>>
>> "make sure you have . in your classpath"
>>
>> I've mainly done Unix classpaths before and I'm not very familiar with
>> Windows conventions; is "." the same as %ClassPath% at the beginning
>> of the path, or does it mean you literally have to have ";.;" as one
>> of the paths?
>>
>> Paul Caton
>>
>> ---
>> Electronic Publications Editor
>> Women Writers Project
>>
>> e-mail: paul@mail.stg.brown.edu
>>    tel: (401) 863-3619
>> address: Box 1841, Brown University, Providence RI 02912
>>
>>
>>
>>
>
>
>
>
Kimbro Staken
XML Database Software, Consulting and Writing
http://www.xmldatabases.org/



Re: Windows scripts was Re: SOLUTION Startup Error

Posted by "Mark J. Stang" <ma...@earthlink.net>.
My usual fix for 98 is similar.   Take all the jars, copy them into a
d:\jars directory and then build the classpath:

CLASSPATH=%CLASSPATH%;d:\jars\somejar.jar
CLASSPATH=%CLASSPATH%;d:\jars\someotherjar.jar
CLASSPATH=%CLASSPATH%;d:\jars\someapachejar.jar
CLASSPATH=%CLASSPATH%;d:\jars\somedbxmljar.jar

This shortens the classpath to a bare minimum.  And "d:\jars\"
can be shortened to "d:\j\".

I usually call this setenv.bat.   I just run it before I execute
other batch files.   If the other batch files play with the
classpath then I edit out the classpath settings.

IMHO,

Mark

"David A. Swift" wrote:

> I am using Win98, because I love XML Spy and have an under-powered
> laptop, not because I love Win98 ;-)
>
> To extend DOS a bit, I use JPSoft's 4DOS command line shell - much
> more flexibility.
>
> The batch files don't seem to work for me because of a 255-character
> limit that DOS has, the LOCALCLASSPATH exceeds that when the batch
> files are used.
>
> What I did to hack a fix, was to add a few lines to the start of the
> batch file, that look for a file "D:\D\1.JAR" - if that file is not
> present, it takes each file in D:\xindice\java\lib, renames it in a
> sequence (1.jar, 2.jar, etc...) and puts it into D:\D.  Then, I build
> the CLASSPATH variable using the renamed .jar files (the original
> .jar files are untouched).  This allows me to get Xindice running
> under Win98.
>
> If anyone is interested, I can post the batch file mods later (they
> are on my laptop) - however, they are only valid for 4DOS, as I use
> their extended variables & @eval() function.  I'd bet a similar
> method could be used under vanilla DOS, though.
>
> David Swift
>
> On Wed, 13 Feb 2002 22:52:39 -0700, Kimbro Staken wrote:
>
> >Is there anyone who is running this under windows and is comfortable with
> >.bat files that could take a look at the scripts and see if they're
> >correct or can be improved?
> >
> >Kimbro Staken
> >XML Database Software, Consulting and Writing
> >http://www.xmldatabases.org/
> >
>
> Homo Sapiens: Latin for carbon-based computer DNA...


Re: Windows scripts was Re: SOLUTION Startup Error

Posted by "David A. Swift" <ds...@tdl.com>.
I am using Win98, because I love XML Spy and have an under-powered
laptop, not because I love Win98 ;-)

To extend DOS a bit, I use JPSoft's 4DOS command line shell - much
more flexibility.

The batch files don't seem to work for me because of a 255-character
limit that DOS has, the LOCALCLASSPATH exceeds that when the batch
files are used.

What I did to hack a fix, was to add a few lines to the start of the
batch file, that look for a file "D:\D\1.JAR" - if that file is not
present, it takes each file in D:\xindice\java\lib, renames it in a
sequence (1.jar, 2.jar, etc...) and puts it into D:\D.  Then, I build
the CLASSPATH variable using the renamed .jar files (the original
.jar files are untouched).  This allows me to get Xindice running
under Win98.

If anyone is interested, I can post the batch file mods later (they
are on my laptop) - however, they are only valid for 4DOS, as I use
their extended variables & @eval() function.  I'd bet a similar
method could be used under vanilla DOS, though.

David Swift

On Wed, 13 Feb 2002 22:52:39 -0700, Kimbro Staken wrote:

>Is there anyone who is running this under windows and is comfortable with 
>.bat files that could take a look at the scripts and see if they're 
>correct or can be improved?
>
>Kimbro Staken
>XML Database Software, Consulting and Writing
>http://www.xmldatabases.org/
>

Homo Sapiens: Latin for carbon-based computer DNA...


Windows scripts was Re: SOLUTION Startup Error

Posted by Kimbro Staken <ks...@dbxmlgroup.com>.
Is there anyone who is running this under windows and is comfortable with 
.bat files that could take a look at the scripts and see if they're 
correct or can be improved?

On Tuesday, February 12, 2002, at 02:55 PM, Wolfgang Bär wrote:

> Hi Paul,
>
> there was another problem on WIN98:
>
> the line : for %%i in (%XINDICE_HOME%\java\lib\*.jar) do call 
> %XINDICE_HOME%\bin\lcp.bat %%i
> which adds all the jars in the directory to the localclasspath didn't 
> work in WIN98 so
> i added all the jars manually to the classpath
>
> with the point in the classpath:
> you have to set set it like: set CLASSPATH=.;C:\...xx.jar;C:\...xy.jar
> so it is like an own path which means the current directory !
>
> Hope it helps,
>
> Wolfgang
>
> Paul Caton wrote:
>
>> I'm also using jdk 1.3.1 on Windows 98. I tried both Wolfgang's
>> suggested fixes and had no joy getting the server to start. I followed
>> the Windows installation docs faithfully, too. There was only one
>> point I was unsure of: Step 6. tells you to add the Xindice.jar file
>> to the CLASSPATH, which I did, and also says:
>>
>> "make sure you have . in your classpath"
>>
>> I've mainly done Unix classpaths before and I'm not very familiar with
>> Windows conventions; is "." the same as %ClassPath% at the beginning
>> of the path, or does it mean you literally have to have ";.;" as one
>> of the paths?
>>
>> Paul Caton
>>
>> ---
>> Electronic Publications Editor
>> Women Writers Project
>>
>> e-mail: paul@mail.stg.brown.edu
>>    tel: (401) 863-3619
>> address: Box 1841, Brown University, Providence RI 02912
>>
>> 	
>>
>>
>
>
>
>
Kimbro Staken
XML Database Software, Consulting and Writing
http://www.xmldatabases.org/


Re: Re: SOLUTION Startup Error

Posted by Wolfgang Bär <WB...@gmx.de>.
Hi Paul,

there was another problem on WIN98:

the line : for %%i in (%XINDICE_HOME%\java\lib\*.jar) do call 
%XINDICE_HOME%\bin\lcp.bat %%i
which adds all the jars in the directory to the localclasspath didn't 
work in WIN98 so
i added all the jars manually to the classpath

with the point in the classpath:
you have to set set it like: set CLASSPATH=.;C:\...xx.jar;C:\...xy.jar
so it is like an own path which means the current directory !

Hope it helps,

Wolfgang

Paul Caton wrote:

>I'm also using jdk 1.3.1 on Windows 98. I tried both Wolfgang's
>suggested fixes and had no joy getting the server to start. I followed
>the Windows installation docs faithfully, too. There was only one
>point I was unsure of: Step 6. tells you to add the Xindice.jar file
>to the CLASSPATH, which I did, and also says:
>
>"make sure you have . in your classpath"
>
>I've mainly done Unix classpaths before and I'm not very familiar with
>Windows conventions; is "." the same as %ClassPath% at the beginning
>of the path, or does it mean you literally have to have ";.;" as one
>of the paths?
>
> 
>Paul Caton
>
>---
>Electronic Publications Editor
>Women Writers Project
>
> e-mail: paul@mail.stg.brown.edu
>    tel: (401) 863-3619
>address: Box 1841, Brown University, Providence RI 02912
>
>	
>
>



Re: SOLUTION Startup Error

Posted by Mohan Bethur <mb...@netscape.com>.
I am using JDK1.3 and download the latest rc1.0 code form CVS.  I am
testing on Solaris 2.7 and it works fine.

Starting Xindice
----------------

Xindice 1.0rc1 (DarkHorse)

 StdServiceManager : config org.apache.xindice.util.Configuration@5c7850

 StdServiceManager :
classNameorg.apache.xindice.server.services.XindiceService
 service org.apache.xindice.server.services.XindiceService@2aa14a
Database: 'db' initializing
 StdServiceManager :
classNameorg.apache.xindice.server.services.HTTPServer
 service org.apache.xindice.server.services.HTTPServer@2effdf
 StdServiceManager :
classNameorg.apache.xindice.server.services.APIService
 service org.apache.xindice.server.services.APIService@2701e
Script: 'GET' added to script storage
Service: 'db
Service: 'db' started
Service: 'HTTPServer
Service: 'HTTPServer' started @ http://mohit:4080/
Service: 'APIService
Service: 'APIService' started

Server Running

Thanks
Mohan


Re: SOLUTION Startup Error

Posted by Paul Caton <pa...@mama.stg.brown.edu>.
I'm also using jdk 1.3.1 on Windows 98. I tried both Wolfgang's
suggested fixes and had no joy getting the server to start. I followed
the Windows installation docs faithfully, too. There was only one
point I was unsure of: Step 6. tells you to add the Xindice.jar file
to the CLASSPATH, which I did, and also says:

"make sure you have . in your classpath"

I've mainly done Unix classpaths before and I'm not very familiar with
Windows conventions; is "." the same as %ClassPath% at the beginning
of the path, or does it mean you literally have to have ";.;" as one
of the paths?

 
Paul Caton

---
Electronic Publications Editor
Women Writers Project

 e-mail: paul@mail.stg.brown.edu
    tel: (401) 863-3619
address: Box 1841, Brown University, Providence RI 02912