Hello!!!!

THANK YOU VERY MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!

I've used your build.xml and I've created the database in xindice as you
said and everything went well...

I could'nt read my addressbook.war but I realised that my tomcat didn't had
enough .jar archives... also I never had created the collection before. So I
used your build.xml. 

Thank you for your help, It has been like a miracle, I've been working on
this problem for days.....

thanks,
lunapolar.



Natalia Shilenkova wrote:
> 
> On Thu, Feb 28, 2008 at 12:43 PM, lunapolar <[EMAIL PROTECTED]>
> wrote:
>>
>>  Hello!!
>>
>>  This is the first time I use xindice and I'm a little confused.
>>  I've compiled the source versión 1.1, I've 'installed' it with tomcat
>> and
>>  everything went well.
>>  But now I'm trying to work with the example addressbook, I've built it,
>> I've
>>  copied the .war in webapps and I can see localhost:8080/addressbook.
>>  My problema is that when I try to do something, there is an error:
>>                An ERROR has occured!!!
>>  Org.apache.xindice.client.xmldb.DatabaseImpl
> 
> It looks like the application cannot locate class
> "org.apache.xindice.client.xmldb.DatabaseImpl". It may be because the
> name is misspelled ("org" should be all lower case), or because
> Xindice jar file was not included in the addressbook.war.
> 
> Can you check the content of addressbook.war file, specifically
> /WEB_INF/lib directory? If xindice-1.1.jar is not there, please
> replace java/examples/build.xml file with attached build.xml file (it
> looks like path issue), try to build addressbook application again and
> copy it to the Tomcat application directory.
> 
> BTW, it does not say it in readme, but you need to create collection
> named "addressbook" for the example to work. To do that, just run
> "bin/xindice ac -c /db -n addressbook" from Xindice root directory.
> Please also note that addressbook connects to Xindice default
> address/port, which are localhost:8888, so you may need either to
> change Tomcat port to 8888 or run Xindice in Jetty, which is provided
> with the installation (just type "xindiced start" in Xindice root
> directory).
> 
>>
>>  Could anybody help me, please?
>>  Thanks.
>>  :-(
> 
> Regards,
> Natalia
> 
> <?xml version="1.0"?>
> 
> <!--
>   - Licensed to the Apache Software Foundation (ASF) under one or more
>   - contributor license agreements.  See the NOTICE file distributed with
>   - this work for additional information regarding copyright ownership.
>   - The ASF licenses this file to You under the Apache License, Version
> 2.0
>   - (the "License"); you may not use this file except in compliance with
>   - the License.  You may obtain a copy of the License at
>   -
>   -     http://www.apache.org/licenses/LICENSE-2.0
>   -
>   - Unless required by applicable law or agreed to in writing, software
>   - distributed under the License is distributed on an "AS IS" BASIS,
>   - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
>   - See the License for the specific language governing permissions and
>   - limitations under the License.
>   -
>   - $Id: build.xml 511428 2007-02-25 03:30:52Z vgritsenko $
>   -->
> 
> <!--
>   - Xindice Addressbook and Guide Ant build file
>   -->
> 
> <project name="xindice-examples" default="release" basedir=".">
> 
>     <!--
> =================================================================== -->
>     <!-- Build definitions                                                  
> -->
>     <!--
> =================================================================== -->
> 
>     <!-- source directories -->
>     <property name="root.dir" value="../.."/>
>     <property name="jar.dir" value="${root.dir}/lib"/>
>     <property name="dist.dir" value="${root.dir}"/>
> 
>     <!-- destination directories -->
>     <property name="build.dir" value="${root.dir}/build"/>
> 
>     <!-- Compilation properties -->
>     <property name="compile.debug" value="on"/>
>     <property name="compile.optimize" value="off"/>
>     <property name="compile.nowarn" value="off"/>
>     <property name="compile.deprecation" value="on"/>
>     <property name="compile.verbose" value="off"/>
> 
>     <!-- classpath to use within project -->
>     <path id="project.class.path">
>         <!-- all jars in jar and dist directory -->
>         <fileset dir="${jar.dir}">
>            <include name="*.jar"/>
>         </fileset>
>         <fileset dir="${dist.dir}">
>            <include name="*.jar"/>
>         </fileset>
>     </path>
> 
>     <target name="init"
>             description="Initializes the build">
>         <tstamp/>
>         <mkdir dir="${build.dir}"/>
>         <mkdir dir="${dist.dir}"/>
>     </target>
> 
>     <!--
> =================================================================== -->
>     <!-- Definition of the main targets                                     
> -->
>     <!--
> =================================================================== -->
> 
>     <target name="build" depends="addressbook-build, guide-build"/>
> 
>     <target name="release" depends="addressbook-release, guide-release"/>
> 
>     <target name="clean" depends="addressbook-clean, guide-clean"/>
> 
>     <!--
> =================================================================== -->
>     <!-- Addressbook example                                                
> -->
>     <!--
> =================================================================== -->
> 
>     <!-- Addressbook property definitions -->
>     <property name="addressbook.app.name"  value="addressbook"/>
>     <property name="addressbook.build.dir"
> value="${build.dir}/addressbook-classes"/>
>     <property name="addressbook.src.dir" value="addressbook/src/java"/>
>     <property name="addressbook.jsp.dir" value="addressbook/src/jsp"/>
>     <property name="addressbook.config.dir" value="config"/>
> 
>     <target name="addressbook-init" depends="init">
>         <mkdir dir="${addressbook.build.dir}"/>
>     </target>
> 
>     <target name="addressbook-build"
>             depends="addressbook-init">
>        <javac srcdir="${addressbook.src.dir}"
>              destdir="${addressbook.build.dir}"
>              debug="${compile.debug}"
>              optimize="${compile.optimize}"
>              nowarn="${compile.nowarn}"
>              deprecation="${compile.deprecation}"
>              verbose="${compile.verbose}">
>           <classpath>
>              <path refid="project.class.path"/>
>           </classpath>
>        </javac>
>     </target>
> 
>     <target name="addressbook-release"
>             depends="addressbook-build">
>        <war destfile="${dist.dir}/${addressbook.app.name}.war"
>             update="false"
>             webxml="addressbook/config/web.xml">
>           <fileset dir="${addressbook.jsp.dir}"/>
>           <classes dir="${addressbook.build.dir}"/>
>           <lib dir="${jar.dir}/endorsed">
>              <include name="xalan-*.jar"/>
>              <include name="xerces-*.jar"/>
>              <include name="xml-apis*.jar"/>
>           </lib>
>           <lib dir="${jar.dir}">
>              <include name="commons-logging-*.jar" />
>              <include name="xmldb-api-*.jar"/>
>              <include name="xmldb-xupdate*.jar"/>
>              <include name="xmlrpc-*.jar"/>
>           </lib>
>           <lib dir="${dist.dir}">
>              <include name="xindice-*.jar"/>
>           </lib>
>           <manifest>
>              <attribute name="Built-By" value="${user.name}"/>
>              <section name="org/apache/xindice">
>                 <attribute name="Sealed" value="false"/>
>              </section>
>           </manifest>
>        </war>
>     </target>
> 
>     <target name="addressbook-clean">
>         <delete file="${dist.dir}/${addressbook.app.name}.war"/>
>         <delete dir="${addressbook.build.dir}"/>
>     </target>
> 
>     <!--
> =================================================================== -->
>     <!-- Guide examples                                                     
> -->
>     <!--
> =================================================================== -->
> 
>     <!-- Guide property definitions -->
>     <property name="guide.jar.name"  value="xindice-guide"/>
>     <property name="guide.build.dir" value="${build.dir}/guide-classes"/>
>     <property name="guide.src.dir" value="guide/src"/>
> 
>     <target name="guide-init" depends="init">
>         <mkdir dir="${guide.build.dir}"/>
>     </target>
> 
>     <target name="guide-build"
>             depends="guide-init">
>        <javac srcdir="${guide.src.dir}"
>              destdir="${guide.build.dir}"
>              debug="${compile.debug}"
>              optimize="${compile.optimize}"
>              nowarn="${compile.nowarn}"
>              deprecation="${compile.deprecation}"
>              verbose="${compile.verbose}">
>           <classpath>
>              <path refid="project.class.path"/>
>           </classpath>
>        </javac>
>     </target>
> 
>     <target name="guide-release"
>             depends="guide-build">
>        <jar jarfile="${dist.dir}/${guide.jar.name}.jar"
>             basedir="${guide.build.dir}">
>           <manifest>
>              <attribute name="Built-By" value="${user.name}"/>
>              <section name="org/apache/xindice">
>                 <attribute name="Sealed" value="false"/>
>              </section>
>           </manifest>
>        </jar>
>     </target>
> 
>     <target name="guide-clean">
>         <delete file="${dist.dir}/${guide.jar.name}.jar"/>
>         <delete dir="${guide.build.dir}"/>
>     </target>
> 
> </project>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-addressbook%21%21%21%21-tp15741882p15757916.html
Sent from the Xindice - Users mailing list archive at Nabble.com.

Reply via email to