Re: Jython error

2009-06-02 Thread Anshuman Manur
Thank you for your response. I agree that it shouldn't be too difficult to
integrate, however, I think groovy pretty much does everything that Python
can, so as much as I want to use Python, in view of the time limitations, I
will stick to groovy. If I do think of taking up a Jython integration, I'll
take you up on those code samples.

Anshu

On Mon, Jun 1, 2009 at 7:47 PM, Brett Palmer  wrote:

> I think there were some early implementations in the test framework to
> support jython but there were never fully completed.  This wouldn't be
> very difficult to complete though.  I wrote an custom jython web event
> handler for ofbiz for creating easy test scripts for our application.
> The same could be done for the service engine.
>
> In my organization, we moved away from Jython and adopted Groovy when
> ofbiz moved that direction.  If you would like some sample code for
> jython integration let me know.
>
>
> Brett
>
>
>
> On Sun, May 31, 2009 at 11:48 PM, Anshuman Manur
>  wrote:
> > Not supported? I don't understand - in the Best Practices
> > Guide,
> > the logic layer section contains the following lines:
> > *
> > Always implement your service using the easiest and most appropriate
> > language or tool. You can implement services with many different
> languages
> > including Java, Groovy, Beanshell or any BSF compliant scripting language
> > (Jython, Jacl, JavaScript, etc), OFBiz Workflow Engine processes, OFBiz
> > MiniLang simple-methods, and various others.*
> >
> > And, the serviceengine.xml file in framework/config/ contains the
> following
> > entry:
> >
> > **
> >
> > Could someone please tell me if Jython is supported, because I feel it is
> > and I'd be happy to create a Jira otherwise.
> >
> > Anshuman Manur
> >
> > On Sun, May 31, 2009 at 10:58 PM, BJ Freeman 
> wrote:
> >
> >> Unless I missed something jpython is not supported
> >> also
> >> only valid engines are java and simple
> >> feel free to make a jira
> >>
> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
> >>
> >> Anshuman Manur sent the following on 5/31/2009 9:44 AM:
> >> > Dear all,
> >> >
> >> > I'm trying to run a jython service, but I'm getting the following
> error:
> >> >
> >> > Problems loading org.apache.bsf.BSFEngine: jpython (unable to load
> >> language:
> >> > jpython))
> >> >
> >> > I spent about an hour tracing the error through the code, but that was
> of
> >> no
> >> > avail. Seems to me that the trouble is with BSF loading the JPython
> >> classes,
> >> > but this is just a guess. Any help would be much appreciated.
> >> >
> >> > The service definition looks like this:
> >> >  >> > location="component://order/script/org/ofbiz/order/test/Test.py">
> >> > testing the service engine
> >> >  optional="false"/>
> >> > 
> >> >
> >> > and I call the service with this:
> >> > result = dispatcher.runSync("testPython", null)
> >> >
> >> > Thanks and Regards,
> >> > Anshuman Manur
> >> >
> >>
> >> --
> >> 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.
> >>
> >>
> >
>


Re: Jython error

2009-06-01 Thread Brett Palmer
I think there were some early implementations in the test framework to
support jython but there were never fully completed.  This wouldn't be
very difficult to complete though.  I wrote an custom jython web event
handler for ofbiz for creating easy test scripts for our application.
The same could be done for the service engine.

In my organization, we moved away from Jython and adopted Groovy when
ofbiz moved that direction.  If you would like some sample code for
jython integration let me know.


Brett



On Sun, May 31, 2009 at 11:48 PM, Anshuman Manur
 wrote:
> Not supported? I don't understand - in the Best Practices
> Guide,
> the logic layer section contains the following lines:
> *
> Always implement your service using the easiest and most appropriate
> language or tool. You can implement services with many different languages
> including Java, Groovy, Beanshell or any BSF compliant scripting language
> (Jython, Jacl, JavaScript, etc), OFBiz Workflow Engine processes, OFBiz
> MiniLang simple-methods, and various others.*
>
> And, the serviceengine.xml file in framework/config/ contains the following
> entry:
>
> **
>
> Could someone please tell me if Jython is supported, because I feel it is
> and I'd be happy to create a Jira otherwise.
>
> Anshuman Manur
>
> On Sun, May 31, 2009 at 10:58 PM, BJ Freeman  wrote:
>
>> Unless I missed something jpython is not supported
>> also
>> only valid engines are java and simple
>> feel free to make a jira
>> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
>>
>> Anshuman Manur sent the following on 5/31/2009 9:44 AM:
>> > Dear all,
>> >
>> > I'm trying to run a jython service, but I'm getting the following error:
>> >
>> > Problems loading org.apache.bsf.BSFEngine: jpython (unable to load
>> language:
>> > jpython))
>> >
>> > I spent about an hour tracing the error through the code, but that was of
>> no
>> > avail. Seems to me that the trouble is with BSF loading the JPython
>> classes,
>> > but this is just a guess. Any help would be much appreciated.
>> >
>> > The service definition looks like this:
>> > > > location="component://order/script/org/ofbiz/order/test/Test.py">
>> >     testing the service engine
>> >     
>> > 
>> >
>> > and I call the service with this:
>> > result = dispatcher.runSync("testPython", null)
>> >
>> > Thanks and Regards,
>> > Anshuman Manur
>> >
>>
>> --
>> 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.
>>
>>
>


Re: Jython error

2009-05-31 Thread Anshuman Manur
Not supported? I don't understand - in the Best Practices
Guide,
the logic layer section contains the following lines:
*
Always implement your service using the easiest and most appropriate
language or tool. You can implement services with many different languages
including Java, Groovy, Beanshell or any BSF compliant scripting language
(Jython, Jacl, JavaScript, etc), OFBiz Workflow Engine processes, OFBiz
MiniLang simple-methods, and various others.*

And, the serviceengine.xml file in framework/config/ contains the following
entry:

**

Could someone please tell me if Jython is supported, because I feel it is
and I'd be happy to create a Jira otherwise.

Anshuman Manur

On Sun, May 31, 2009 at 10:58 PM, BJ Freeman  wrote:

> Unless I missed something jpython is not supported
> also
> only valid engines are java and simple
> feel free to make a jira
> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
>
> Anshuman Manur sent the following on 5/31/2009 9:44 AM:
> > Dear all,
> >
> > I'm trying to run a jython service, but I'm getting the following error:
> >
> > Problems loading org.apache.bsf.BSFEngine: jpython (unable to load
> language:
> > jpython))
> >
> > I spent about an hour tracing the error through the code, but that was of
> no
> > avail. Seems to me that the trouble is with BSF loading the JPython
> classes,
> > but this is just a guess. Any help would be much appreciated.
> >
> > The service definition looks like this:
> >  > location="component://order/script/org/ofbiz/order/test/Test.py">
> > testing the service engine
> > 
> > 
> >
> > and I call the service with this:
> > result = dispatcher.runSync("testPython", null)
> >
> > Thanks and Regards,
> > Anshuman Manur
> >
>
> --
> 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.
>
>


Re: Jython error

2009-05-31 Thread BJ Freeman
Unless I missed something jpython is not supported
also
only valid engines are java and simple
feel free to make a jira
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices

Anshuman Manur sent the following on 5/31/2009 9:44 AM:
> Dear all,
> 
> I'm trying to run a jython service, but I'm getting the following error:
> 
> Problems loading org.apache.bsf.BSFEngine: jpython (unable to load language:
> jpython))
> 
> I spent about an hour tracing the error through the code, but that was of no
> avail. Seems to me that the trouble is with BSF loading the JPython classes,
> but this is just a guess. Any help would be much appreciated.
> 
> The service definition looks like this:
>  location="component://order/script/org/ofbiz/order/test/Test.py">
> testing the service engine
> 
> 
> 
> and I call the service with this:
> result = dispatcher.runSync("testPython", null)
> 
> Thanks and Regards,
> Anshuman Manur
> 

-- 
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.



Jython error

2009-05-31 Thread Anshuman Manur
Dear all,

I'm trying to run a jython service, but I'm getting the following error:

Problems loading org.apache.bsf.BSFEngine: jpython (unable to load language:
jpython))

I spent about an hour tracing the error through the code, but that was of no
avail. Seems to me that the trouble is with BSF loading the JPython classes,
but this is just a guess. Any help would be much appreciated.

The service definition looks like this:

testing the service engine



and I call the service with this:
result = dispatcher.runSync("testPython", null)

Thanks and Regards,
Anshuman Manur