Hi BJ,
are you suggesting my to place bshcontainer.bsh file in hello3 > Script
folder?
I am following party folder and I do not see any .bsh file under party >
Script folder/subfolder.
I am following the directory structure of "party" component.
BJ Freeman wrote:
>
> to keep consistency and to learn correctly
> I suggest you put this in scripts folder.
> you can follow other examples as to the full path.
> then put it in the ofbiz-component.xml in the hot-deploy folder,
> following the examples in other folders.
>
> su2 sent the following on 7/8/2009 6:13 PM:
>> I have saved bshcontainer.bsh file in C:\workspace\ofbiz
>> I am trying to run
>>
>> source("bshcontainer.bsh");
>>
>> result = dispatcher.runSync("createHelloPerson",
>> UtilMisc.toMap("firstName",
>> "Si" , "lastName", "Chen", "comments", "Will it work this time?"));
>>
>> I am getting following error.
>>
>> Error:
>> Target exception: org.ofbiz.service.GenericSericeException: Cannot locate
>> serivce by name (createHelloPerson)
>>
>> services.xml
>> ****************************
>> <?xml version="1.0" encoding="UTF-8" ?>
>> <services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>
>> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/services.xsd">
>> <description>Hello 3 Services</description>
>>
>> <!-- This will be implemented in JAVA -->
>> <service name="createHelloPerson" engine="java"
>> location="org.ofbiz.hello3.Hello3Services"
>> invoke="createHelloPerson">
>> <description>Create a HelloPerson</description>
>> <auto-attributes mode="IN" entity-name="HelloPerson"
>> include="nonpk"
>> optional="true"/>
>> <attribute name="helloPersonId" mode="OUT" type="string"
>> optional="false"/>
>> </service>
>>
>> <!-- This will be implemented in OfBiz minilang -->
>> <service name="createHelloPersonHobby" engine="simple"
>> location="org/ofbiz/hello3/Hello3Services.xml"
>> invoke="createHelloPersonHobby">
>> <description>Create a HelloPersonHobby which links a person and
>> a
>> hobby. </description>
>> <auto-attributes mode="IN" entity-name="HelloPersonHobby"
>> include="pk"
>> optional="false"/>
>> </service>
>> </services>
>>
>> ****************************
>>
>
> --
> 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.
>
>
>
--
View this message in context:
http://www.nabble.com/Bsh-Error-tp24402213p24409864.html
Sent from the OFBiz - User mailing list archive at Nabble.com.