Thank you. I dont't know what happens! I'll try again.
Brian Hills <[EMAIL PROTECTED]> wrote:
I have Xindice 1.0 installed on Solaris using JDK 1.4 and XUpdate seems to be working ok.-----Original Message-----
From: Llerta amat [mailto:[EMAIL PROTECTED]
Sent: 29 January 2003 10:49
To: [email protected]
Subject: RE: Using XUpdateI copy from yours, I have tried it, but nothing: always the same error message. I can't understand.
Is yoour version 1.0 too?
Brian Hills <[EMAIL PROTECTED]> wrote:
In your start file, you have:-Djava.endorsed.dirs=c:\Xindice\java\lib\endorsedHowever you said you were using UNIX and this looks like a windows path?It may be that Xindice is not finding the new jar files because this path is incorrect.I have the following in my start script:-Djava.endorsed.dirs=$XINDICE_HOME/java/lib/endorsedIf you echo $XINDICE_HOME first it should print the directory path where Xindice is installed, otherwiseyou will need to replace $XINDICE_HOME with the directory path where xindice is installed.A copy of my start file is listed below.Brian#!/bin/sh
if test -z "$XINDICE_HOME"; then
XINDICE_HOME=`dirname $0`
export XINDICE_HOME
fiecho "Xindice Loader"
echo "=============="
echo
echo "Environment"
echo "-----------"
echo "XINDICE_HOME = " $XINDICE_HOMEif test -f $XINDICE_HOME/config/xindice.pid; then
echo "A Xindice instance is already running with PID" `cat $XINDICE_HOME/config/xindice.pid`
exit
fiCLASSPATH=$XINDICE_HOME/classgen:$XINDICE_HOME/config:$CLASSPATH# Read in the list of Xindice Jars to include in the CLASSPATH
JARS=`ls -1 $XINDICE_HOME/java/lib/*.jar`
for jar in $JARS
do
CLASSPATH=$jar:$CLASSPATH ;
done# Read in the extra VM paramters for starting the program
VMPROPS=""
if test -f $XINDICE_HOME/config/vm.cfg; then
PROPS="`cat $XINDICE_HOME/config/vm.cfg`"
for prop in $PROPS
do
VMPROPS="$VMPROPS $prop"
done
fiecho "CLASSPATH = " $CLASSPATH
echo
echo "Starting Xindice"
echo "----------------"cd $XINDICE_HOMEecho $$ > $XINDICE_HOME/config/xindice.pidRESTART=1server_shutdown() {
SHUTDOWN_CMD=""
INSTANCES="`cat $XINDICE_HOME/config/instances.cfg`"
for instance in $INSTANCES
do
$XINDICE_HOME/bin/xindiceadmin shutdown -c /$instance 1> /dev/null 2> /dev/null
done
}server_restart() {
RESTART=1
server_shutdown
}trap "echo; echo 'Attempting Server Shutdown'; server_shutdown" 2 15
trap "echo; echo 'Attempting Server Restart'; server_restart" 1while test $RESTART
do
RESTART=java -Xms16m -Xmx168m -Dxindice.home="$XINDICE_HOME" \
-Djava.endorsed.dirs=$XINDICE_HOME/java/lib/endorsed \
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xindice.xml.jaxp.DocumentBuilderFactoryImpl\
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl\
$VMPROPS -classpath "$CLASSPATH" org.apache.xindice.server.Xindice $* &wait $!
donetrap 1 2 15
rm $XINDICE_HOME/config/xindice.pid-----Original Message-----
From: Llerta amat [mailto:[EMAIL PROTECTED]
Sent: 28 January 2003 18:39
To: [email protected]
Subject: RE: Using XUpdateI get an error with the original example(with the database addressbook). If look at the output, the CLASSPATH variable point to xerces-1.4.3.jar. �why? Should it point to xerces 1.4.4? There is something wrong in start file, i think.
From: Llerta amat [mailto:[EMAIL PROTECTED]
Sent: 28 January 2003 14:37
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: Using XUpdate
Please, help me, I installed xIndice1.0 and jdk1.4 on UNIX.
When I execute :
bash-2.05$ ./run org.apache.xindice.examples.Xupdate
The output is :
bash-2.05$ ./run org.apache.xindice.examples.XUpdateCMD_HOME: .
CMD_NAME: run
CLASSPATH : ./../../lib/xmldb.jar:./../../lib/xmldb-xupdate.jar:./../../lib/xml
db-sdk.jar:./../../lib/xml-apis-1.0.jar:./../../lib/xindice.jar:./../../lib/xind
ice-http-0.8.jar:./../../lib/xerces-1.4.3.jar:./../../lib/xalan-2.0.1.jar:./../.
./lib/openorb_tools-1.2.0.jar:./../../lib/openorb-1.2.0.jar:./../../lib/infozone
-tools.jar:./../../lib/ant-1.4.1.jar::./src/class
org.apache.xindice.client.corba.db.APIException: IDL:org/apache/xindice/client/corba/db/APIException:1.0
at org.apache.xindice.client.corba.db.APIExceptionHelper.read(APIExcepti
onHelper.java:112)
at org.apache.xindice.client.corba.db._CollectionStub.queryCollection(_C
ollectionStub.java:833)
at org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.upda
teResult(XUpdateQueryServiceImpl.java:165)
at org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.upda
te(XUpdateQueryServiceImpl.java:185)
at org.apache.xindice.examples.XUpdate.main(XUpdate.java:106)
XML:DB Exception occured 1 Query Compilation Error
I did TomSugden's steps too, but nothing. The result is the same.
1. Created $XINDICE_HOME\java\lib\endorsed directory.
2. Copied xerces.jar (version 1.4.4) and xalan.jar (the same one that is
contained in $XINDICE_HOME\java\lib) into the endorsed directory.3. Made a copy of the "start" .
4. Hard coded the -D flags in start:
The last lines in this file �start�:
while test $RESTART
do
RESTART=
java -Xms16m -Xmx168m -Djava.endorsed.dirs=c:\Xindice\java\lib\endorsed -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xindice.xml.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Dxindice.home="$XINDICE_HOME" $VMPROPS -classpath "$CLASSPATH" org.apache.xindice.server.Xindice $* &
wait $!
done
What can I do?. Please, help me. I don�t know how to continue with my job.
Yahoo! M�viles
Personaliza tu m�vil con tu logo y melod�a favorito
Yahoo! M�viles
Personaliza tu m�vil con tu logo y melod�a favorito
Yahoo! M�viles
Personaliza tu m�vil con tu logo y melod�a favorito
Yahoo! M�viles
Personaliza tu m�vil con tu logo y melod�a favorito
Yahoo! M�viles
Personaliza tu m�vil con tu logo y melod�a favorito
Yahoo! M�viles
Personaliza tu m�vil con tu logo y melod�a favorito
Yahoo! M�viles
Personaliza tu m�vil con tu logo y melod�a favorito
