Query about product association feature

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Query about product association feature

Mugunth Subramanian
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

Reply | Threaded
Open this post in threaded view
|

Re: Query about product association feature

Bilgin Ibryam
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


Reply | Threaded
Open this post in threaded view
|

Classpath error

SkipDever
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

Reply | Threaded
Open this post in threaded view
|

Re: Classpath error

Mathius Allo
Hi Skip,

Could this be due to the same service name "createBasicMessage" exists somewhere on the classpath?

Regards,
Mathius Allo

----- Original Message ----
From: "skip@thedevers" <[hidden email]>
To: [hidden email]
Sent: Friday, January 18, 2008 4:41:47 AM
Subject: Classpath error

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


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Reply | Threaded
Open this post in threaded view
|

RE: Classpath error

SkipDever
Gads

I am really stupid.  Sorry to bother everyone.  There are only two S's in
Message and I put three in com.ioc.sc.MesssageServices.

Skip

-----Original Message-----
From: Mathius Allo [mailto:[hidden email]]
Sent: Thursday, January 17, 2008 5:42 PM
To: [hidden email]
Subject: Re: Classpath error


Hi Skip,

Could this be due to the same service name "createBasicMessage" exists
somewhere on the classpath?

Regards,
Mathius Allo

----- Original Message ----
From: "skip@thedevers" <[hidden email]>
To: [hidden email]
Sent: Friday, January 18, 2008 4:41:47 AM
Subject: Classpath error

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



____________________________________________________________________________
________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.5/1228 - Release Date: 1/16/2008
9:01 AM

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

Reply | Threaded
Open this post in threaded view
|

Re: Query about product association feature

Mugunth Subramanian
In reply to this post by Bilgin Ibryam
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
>
>
>