so you have a folder under the hot-deploy called content
or is it under ofbiz/content
su2 sent the following on 7/8/2009 1:23 PM:
> I checked at that location and there is lib(at the same location specified in
> the error) folder. That is what I checked first when I saw the error.
>
>
> BJ Freeman wrote:
>> what does this mean to you
>> C:\workspace\ofbiz\hot-deploy\content\build\lib not found.
>>
>>
>>
>> su2 sent the following on 7/8/2009 12:56 PM:
>>> Hello All,
>>>
>>> I am trying to create Hello 3 application using the tutorial.
>>>
>>> I added Hello3Services.java in src folder, Hello3Services.xml in script
>>> folder. When I try to build the application it gives me following error.
>>>
>>> error:
>>> *************************
>>> BUILD FAILED
>>> C:\workspace\ofbiz\build.xml:119: The following error occurred while
>>> executing this line:
>>> C:\workspace\ofbiz\hot-deploy\hello3\build.xml:88:
>>> C:\workspace\ofbiz\hot-deploy\content\build\lib not found.
>>>
>>> *************************
>>>
>>> Hello3Services.java
>>> *********************************************************
>>> package org.ofbiz.hello3;
>>>
>>> import java.util.HashMap;
>>> import java.util.Map;
>>>
>>> import org.ofbiz.base.util.Debug; // uses Log4J
>>> import org.ofbiz.base.util.UtilMisc; // helpful utility for working with
>>> Maps, Lists, etc.
>>> import org.ofbiz.entity.GenericDelegator;
>>> import org.ofibz.entity.GenericEntityException;
>>> import org.ofbiz.entity.GenericValue;
>>> import org.ofbiz.service.DespatchContext;
>>> import org.ofbiz.service.ServiceUtil;
>>>
>>> public class Hello3Services {
>>>
>>> public static final String module = Hello3Services.class.getName(); //
>>> used
>>> for debugging
>>>
>>> public static Map createHelloPerson(DispatchContext dctx, Map context) {
>>> GenericDelegator delegator = dctx.getDelegator(); // always passed in
>>> with
>>> DispatchContext
>>>
>>> try {
>>> String helloPersonId = delegator.getNextSeqId("HelloPerson"); // gets
>>> next
>>> available key for HelloPerson
>>> Debug.logInfo("helloPersonId = " + helloPersonId, module) ; // prints to
>>> the
>>> console or console.log
>>> GenericValue helloPerson = delegator.makeValue("HelloPerson",
>>> UtilMisc.toMap ("helloPersonId", helloPersonId)); // create a
>>> GenericValue
>>> from ID we just got
>>> helloPerson.setNonPKFields(context); // move non-primary key fields from
>>> input parameters to GenericValue
>>> delegator.create(helloPerson); // store the generic value, ie persists it
>>>
>>> Map result = ServiceUtil.returnSuccess(); // gets standard Map for
>>> successful service operations
>>> result.put("helloPersonId", helloPersonId); // puts output parameter into
>>> Map to return
>>> return result; // return Map
>>>
>>> } catch (GenericEntityException ex) { // required if you use delegator in
>>> Java
>>> return ServiceUtil.returnError(ex.getMessage())'
>>> }
>>>
>>> }
>>> }
>>> }
>>> *********************************************************
>>> Hello3Services.xml
>>> *********************************************************
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>
>>> <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd">
>>>
>>>
>>> <simple-method method-name="createHelloPersonHobby"
>>> short-description="Create a Hobby-Person relationship"
>>> login-required="false">
>>> <make-value entity-name="HelloPersonHobby" value-name="newEntity"/>
>>> <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
>>> <set-pk-fields map-name="parameters" value-name="newEntity"/>
>>> <create-value value-name="newEntity"/>
>>> </simple-method>
>>> </simple-methods>
>>> *********************************************************
>>>
>>> I copied my build.xml file from party component
>>>
>>> build.xml
>>> *********************************************************
>>> <?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.
>>> -->
>>>
>>> <!-- This file has been modified by Open Source Strategies, Inc. -->
>>>
>>>
>>> <project name="OFBiz - Party Component" default="jar" basedir=".">
>>>
>>> <!-- ==================================================================
>>> -->
>>> <!-- Initialization of all property settings -->
>>> <!-- ==================================================================
>>> -->
>>>
>>> <target name="init">
>>> <property environment="env"/>
>>> <property name="desc" value="Party Component"/>
>>> <property name="name" value="ofbiz-party"/>
>>> <property name="ofbiz.home.dir" value="../.."/>
>>> <property name="src.dir" value="src"/>
>>> <property name="dtd.dir" value="dtd"/>
>>> <property name="lib.dir" value="lib"/>
>>> <property name="build.dir" value="build"/>
>>> </target>
>>>
>>> <target name="classpath">
>>> <path id="local.class.path">
>>> <!--<fileset dir="${lib.dir}" includes="*.jar"/>-->
>>> <fileset dir="../../framework/base/lib" includes="*.jar"/>
>>> <fileset dir="../../framework/base/lib/j2eespecs" includes="*.jar"/>
>>> <fileset dir="../../framework/base/build/lib" includes="*.jar"/>
>>> <fileset dir="../../framework/entity/lib" includes="*.jar"/>
>>> <fileset dir="../../framework/entity/build/lib" includes="*.jar"/>
>>> <fileset dir="../../framework/security/build/lib" includes="*.jar"/>
>>> <fileset dir="../../framework/service/lib" includes="*.jar"/>
>>> <fileset dir="../../framework/service/build/lib" includes="*.jar"/>
>>> <fileset dir="../../framework/minilang/build/lib" includes="*.jar"/>
>>> <fileset dir="../../framework/common/build/lib" includes="*.jar"/>
>>> <fileset dir="../content/build/lib" includes="*.jar"/>
>>> </path>
>>> </target>
>>>
>>> <!-- ==================================================================
>>> -->
>>> <!-- Removes all created files and directories -->
>>> <!-- ==================================================================
>>> -->
>>>
>>> <target name="clean" depends="clean-lib">
>>> <delete dir="${build.dir}"/>
>>> </target>
>>>
>>> <target name="clean-lib" depends="init">
>>> <delete dir="${build.dir}/lib"/>
>>> </target>
>>>
>>> <!-- ==================================================================
>>> -->
>>> <!-- Makes sure the needed directory structure is in place -->
>>> <!-- ==================================================================
>>> -->
>>>
>>> <target name="prepare" depends="clean-lib">
>>> <mkdir dir="${build.dir}/classes"/>
>>> <mkdir dir="${build.dir}/lib"/>
>>> </target>
>>>
>>> <target name="prepare-docs" depends="init">
>>> <mkdir dir="${build.dir}/javadocs"/>
>>> </target>
>>>
>>> <!-- ==================================================================
>>> -->
>>> <!-- Compilation of the source files -->
>>> <!-- ==================================================================
>>> -->
>>>
>>> <target name="classes" depends="prepare,classpath">
>>> <javac debug="on" source="1.4" deprecation="on"
>>> destdir="${build.dir}/classes">
>>> <classpath>
>>> <path refid="local.class.path"/>
>>> </classpath>
>>> <src path="${src.dir}"/>
>>> </javac>
>>> <!-- also put the DTDs in the jar file... -->
>>> <copy todir="${build.dir}/classes">
>>> <!--<fileset dir="${dtd.dir}" includes="*.dtd"/>-->
>>> <fileset dir="${src.dir}"
>>> includes="**/*.properties,**/*.xml,**/*.bsh,**/*.logic,**/*.js,**/*.jacl,**/*.py"/>
>>>
>>> </copy>
>>>
>>> <!-- now add the NOTICE and LICENSE files to allow the jar file to be
>>> distributed alone -->
>>> <copy todir="${build.dir}/classes/META-INF">
>>> <fileset dir="${ofbiz.home.dir}" includes="NOTICE,LICENSE"/>
>>> </copy>
>>> </target>
>>>
>>> <target name="jar" depends="classes">
>>> <jar jarfile="${build.dir}/lib/${name}.jar"
>>> basedir="${build.dir}/classes"/>
>>> </target>
>>>
>>> <!-- ==================================================================
>>> -->
>>> <!-- Build JavaDoc -->
>>> <!-- ==================================================================
>>> -->
>>>
>>> <target name="docs" depends="prepare-docs,classpath">
>>> <javadoc packagenames="org.ofbiz.party.*"
>>> classpathref="local.class.path"
>>> destdir="${build.dir}/javadocs"
>>> Windowtitle="Open for Business - ${desc}">
>>> <sourcepath path="${src.dir}"/>
>>> </javadoc>
>>> </target>
>>>
>>> <target name="all" depends="jar,docs"/>
>>> </project>
>>>
>>> *********************************************************
>>>
>>> Thanks for the help in advance.
>>>
>> --
>> BJ Freeman
>> http://www.businessesnetwork.com/automation
>> http://bjfreeman.elance.com
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>> Systems Integrator.
>>
>>
>>
>
--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.