You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Mugunth Subramanian <ms...@spikesource.com> on 2008/01/17 11:11:30 UTC

Query about product association feature

Hi All,
I have a query regarding product association. I have defined 
associations for some of the products in catalog module. But I could not 
figure out a way to display the product associations in the ecommerce site.

Is it possible to show product association information in the ecommerce 
site. If so pls let me know.

Regards,
Mugunth


Re: Query about product association feature

Posted by Mugunth Subramanian <ms...@spikesource.com>.
Thanks Bilgin,

Regards,
Mugunth

Bilgin Ibryam wrote:
> Hi Mugunth,
>
> there are different types of associations for different purposes.
> You can check ProductAssoc entity to see existing associations.
> Look for example at this product. There you can see also the associated
> products...
> http://demo.hotwaxmedia.com/ecommerce/control/product/~category_id=PROMOTIONS/~product_id=WG-5569
>
> Bilgin
>
>
>   


Classpath error

Posted by "skip@thedevers" <sk...@thedevers.org>.
I have an application in the specialpurposes folder.

I am getting this error:

Exception: org.ofbiz.service.GenericServiceException
Message: Cannot find service location (com.ioc.sc.MesssageServices)


When I call this:

dispatcher.runSync("createBasicMessage", context);

Here is the relevant service definition:
    <!-- Message services -->
    <service name="createBasicMessage" engine="java"
            location="com.ioc.sc.MesssageServices"
invoke="createBasicMessage" auth="false">
        <description>Create a Base Message Record</description>
        <attribute name="messageId" type="String" mode="OUT"/>
        <attribute name="msgType" type="String" mode="IN"/>
        <attribute name="subType" type="String" mode="IN" optional="false"/>
        <attribute name="sysName" type="String" mode="IN" optional="true"/>
        <attribute name="ipAddr" type="String" mode="IN" optional="false"/>
        <attribute name="msgText" type="String" mode="IN" optional="false"/>
    </service>

The MesssageServices.class is in the same jar file as the class which calls
runSync() above.  However, for some reason, StandardJavaEngine cannot seem
to find it.

I have this entry in the ofbiz-component.xml file:

    <classpath type="jar" location="dist/*"/>

If I use the Webtools at
"https://localhost:8443/webtools/control/availableServices", click on
com.ioc.sc.MessageServices in the "Location" column, I can see all three of
the services defined there.

The dist directory contains the jar file that has the class that cannot be
found by StandardJavaEngine.  Most frequently, these files are in
"build/lib".

Is there some requirement in the setup or configuration I am missing for
this to work.  Maybe I need to put this stuff in the hot-deploy
subdirectory?

Any help would be appreciated.

Skip


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.5/1228 - Release Date: 1/16/2008
9:01 AM


Re: Query about product association feature

Posted by Bilgin Ibryam <bi...@iguanait.com>.
Hi Mugunth,

there are different types of associations for different purposes.
You can check ProductAssoc entity to see existing associations.
Look for example at this product. There you can see also the associated
products...
http://demo.hotwaxmedia.com/ecommerce/control/product/~category_id=PROMOTIONS/~product_id=WG-5569

Bilgin