I m getting those errors when i compile the code. when i refered an article
it was specified to run the ant batch file to compile the source If i run
ant.bat i get the error

java.lang.ClassNotFoundException: org.apache.tools.ant.Main
       at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
       at org.apache.tools.ant.launch.Launcher.run(Launcher.java:244)
       at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)




On 1/11/07, shruthi krishnan <[EMAIL PROTECTED]> wrote:

I want to buld a new application I m using Hello3 example appln to build
on and use web services to access the services if i make some changes to the
Hello3Services.java file m getting following errors can u help me?

Hello3Services.java:34: package org.ofbiz.base.util does not exist
import org.ofbiz.base.util.Debug;        // uses Log4J
                           ^
Hello3Services.java:35: package org.ofbiz.base.util does not exist
import org.ofbiz.base.util.UtilMisc;     // helpful utility for working
with Map
s, Lists, etc.
                           ^
Hello3Services.java:36: package org.ofbiz.entity does not exist
import org.ofbiz.entity.GenericDelegator ;
                        ^
Hello3Services.java:37: package org.ofbiz.entity does not exist
import org.ofbiz.entity.GenericEntityException;
                        ^
Hello3Services.java:38: package org.ofbiz.entity does not exist
import org.ofbiz.entity.GenericValue;
                        ^
Hello3Services.java:39: package org.ofbiz.service does not exist
import org.ofbiz.service.DispatchContext;
                         ^
Hello3Services.java:40: package org.ofbiz.service does not exist
import org.ofbiz.service.ServiceUtil;
                         ^
Hello3Services.java:51: cannot resolve symbol
symbol  : class DispatchContext
location: class org.ofbiz.hello3.Hello3Services
    public static Map createHelloPerson(DispatchContext dctx, Map context)
{
                                        ^
Hello3Services.java:76: cannot resolve symbol
symbol  : class DispatchContext
location: class org.ofbiz.hello3.Hello3Services
    public static Map searchHelloPerson(DispatchContext dctx, Map context)
{
                                        ^
Hello3Services.java :52: cannot resolve symbol
symbol  : class GenericDelegator
location: class org.ofbiz.hello3.Hello3Services
        GenericDelegator delegator = dctx.getDelegator();  // always
passed in w
ith DispatchContext
        ^
Hello3Services.java:56: cannot resolve symbol
symbol  : variable Debug
location: class org.ofbiz.hello3.Hello3Services
            Debug.logInfo("helloPersonId = " + helloPersonId, module); //
prints
 to the console or console.log
            ^
Hello3Services.java:57: cannot resolve symbol
symbol  : class GenericValue
location: class org.ofbiz.hello3.Hello3Services
            GenericValue helloPerson = delegator.makeValue("HelloPerson",
            ^
Hello3Services.java:58: cannot resolve symbol
symbol  : variable UtilMisc
location: class org.ofbiz.hello3.Hello3Services
                    UtilMisc.toMap ("helloPersonId", helloPersonId)); //
create a
 GenericValue from ID we just got
                    ^
Hello3Services.java:62: cannot resolve symbol
symbol  : variable ServiceUtil
location: class org.ofbiz.hello3.Hello3Services
            Map result = ServiceUtil.returnSuccess(); // gets standard Map
for s
uccessful service operations
                         ^
Hello3Services.java:65: cannot resolve symbol
symbol  : class GenericEntityException
location: class org.ofbiz.hello3.Hello3Services
        } catch (GenericEntityException ex) { // required if you use
delegator i
n Java
                 ^
Hello3Services.java :66: cannot resolve symbol
symbol  : variable ServiceUtil
location: class org.ofbiz.hello3.Hello3Services
            return ServiceUtil.returnError(ex.getMessage());
                   ^
Hello3Services.java :77: cannot resolve symbol
symbol  : class GenericDelegator
location: class org.ofbiz.hello3.Hello3Services
        GenericDelegator delegator = dctx.getDelegator();  // always
passed in w
ith DispatchContext
        ^
Hello3Services.java:84: cannot resolve symbol
symbol  : variable Debug
location: class org.ofbiz.hello3.Hello3Services
            Debug.logInfo("helloPersonId = " + helloPersonId, module);
            ^
Hello3Services.java:88: cannot resolve symbol
symbol  : variable UtilMisc
location: class org.ofbiz.hello3.Hello3Services
                                            UtilMisc.toMap("helloPersonId",hello

PersonId));
                                            ^
Hello3Services.java:89: cannot resolve symbol
symbol  : variable Debug
location: class org.ofbiz.hello3.Hello3Services
            Debug.logInfo ("queryResult = " + queryResult, module);
            ^
Hello3Services.java:92: cannot resolve symbol
symbol  : variable UtilMisc
location: class org.ofbiz.hello3.Hello3Services
            Map result = UtilMisc.toMap("helloPersonIdOut",
helloPersonId);
                         ^
Hello3Services.java:98: cannot resolve symbol
symbol  : variable Debug
location: class org.ofbiz.hello3.Hello3Services
            Debug.logInfo("result = " + result, module);
            ^
Hello3Services.java:102: cannot resolve symbol
symbol  : class GenericEntityException
location: class org.ofbiz.hello3.Hello3Services
        } catch (GenericEntityException ex) { // required if you use
delegator i
n Java
                 ^
Hello3Services.java:103: cannot resolve symbol
symbol  : variable ServiceUtil
location: class org.ofbiz.hello3.Hello3Services
            return ServiceUtil.returnError(ex.getMessage());


 On 1/11/07, Raj Kumar Sav <[EMAIL PROTECTED]> wrote:
>
> if u want to create a table. u have to write entity defination in
> entityModel.xml in appropreate  component.
>
> On 1/11/07, shruthi krishnan <[EMAIL PROTECTED]> wrote:
> >
> > how to create a new table without reusing from ofbiz?
> >
> >
>
>
> --
> Regards
> Raj Kumar Sav
> Aditisoft Technology Laboratory
>
>

Reply via email to