cancel
Showing results for 
Search instead for 
Did you mean: 

Build Failed

sunitha
Champ in-the-making
Champ in-the-making
Hi..
I am new to alfresco.could you people help me in getting the solution..
when i compile my build.xml file it gives the error message like below…
D:\1bpms-demo\alfresco_scratch\alfresco\HEAD\root\build.xml:293: Cannot find javahl, svnkit nor command line svn client…
please give me any solutions..
Thanks in advance….
5 REPLIES 5

abarisone
Star Contributor
Star Contributor
Hi,
javahl and svnkit are Eclipse connector plugins that allow you to connect to a svn repository and to checkout/update files.
You can also install Tortoise SVN http://tortoisesvn.tigris.org/ to perform a command line checkout of Alfresco code.

Hope this helps.
Regards,
Andrea

berenoune
Champ in-the-making
Champ in-the-making
I have the same problem as sunitha. I downloaded Tortoise SVN but I still have the same problem.

<strong>build.xml</strong>
build.xml:293: Cannot find javahl, svnkit nor command line svn client

293:      <svn failonerror="false">
294:         <info target="${basedir}"/>
295:      </svn>
296:      <condition property="display.build.number" value="-b${alf.build.number}" else="">
297:          <isset property="alf.build.number" />
298:      </condition>


<strong>edit: I decided to remove lines 293, 294, and 295 and the BUILD was SUCCESSFUL. What effect will the removal of those 3 lines do on Alfresco?</strong>

sunitha
Champ in-the-making
Champ in-the-making
Hi all..
I am new to alfresco..as iam developing a simple program to connect to the repository using jcr api.But i am unable to connect to the repository.
could you people anyone help me please.
my sample code like below.please help me early in getting the solution.
Thanks./*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/

//import javax.jcr.Node;
import javax.jcr.NodeIterator;
import javax.jcr.Property;
import javax.jcr.PropertyIterator;
import javax.jcr.Repository;
import javax.jcr.Session;
import javax.jcr.SimpleCredentials;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



/**
* Simple Example that demonstrate login and retrieval of top-level Spaces
* under Company Home.
*
* @author David Caruana
*/
public class SimpleExample
{

    public static void main(String[] args)
        throws Exception
    {
        // Setup Spring and Transaction Service
        ApplicationContext context = new ClassPathXmlApplicationContext("jcr-api-context.xml");
       
        // Retrieve Repository
        Repository repository = (Repository)context.getBean("JCR.Repository");

        // Login to workspace
        // Note: Default workspace is the one used by Alfresco Web Client which contains all the Spaces
        //       and their documents
        Session session = repository.login(new SimpleCredentials("admin", "admin".toCharArray()));
        System.out.println("get the connection");

        /*try
        {
            // Retrieve Company Home
            Node root = session.getRootNode();
            Node companyHome = root.getNode("app:company_home");
           
            // Iterator through children of Company Home
            NodeIterator iterator = companyHome.getNodes();
            while(iterator.hasNext())
            {
                Node child = iterator.nextNode();
                System.out.println(child.getName());

                PropertyIterator propIterator = child.getProperties();
                while(propIterator.hasNext())
                {
                    Property prop = propIterator.nextProperty();
                    if (!prop.getDefinition().isMultiple())
                    {
                        System.out.println(" " + prop.getName() + " = " + prop.getString());
                    }
                }
            }
        }
        finally
        {
            session.logout();
            System.exit(0);
        }
       
    }
   
}*/
    }
}

for this my jcr-api-context.xml file…


<?xml version='1.0' encoding='UTF-8'?>


<beans>

    xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlnsSmiley Tongue="http://www.springframework.org/schema/p"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
   

    <bean id="JCR.Repository" class="RepositoryImpl" init-method="init">
        <property name="serviceRegistry"><ref bean="ServiceRegistry"/></property>
        <property name="importerComponent"><ref bean="importerComponent"/></property>
        <property name="defaultWorkspace"><value>SpacesStore</value></property>
    </bean>
    <bean id="JCR.Repository" class="SimpleExample">
    </bean>
    <bean id="JCR.DictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>jcrModel.xml</value>
            </list>
        </property>
    </bean>
   
</beans>

i am getting error like this…
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [jcr-api-context.xml]; nested exception is java.io.FileNotFoundException: class path resource [jcr-api-context.xml] cannot be opened because it does not exist

jpfi
Champ in-the-making
Champ in-the-making
Hi,
it doesn't find your jcr-api-context.xml - it seems to be not in your classpath (root package).
cheers, jan

sunitha
Champ in-the-making
Champ in-the-making
hi..
could you give me a appropriate code for my requirement..
please i want to connect to the repository by using jcr api…
please provide me files if you have possibility..
Thanks….