Facing Problem while creating a New E commerce Project

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

Facing Problem while creating a New E commerce Project

Gaurav kalia
Hi All

I am a beginner and hence following the beginners guide to create a new
e commerce  project.

I am following the below link to create a new project.

https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide

I have followed all the steps (may be i missed something ) but still its
not working.

when I enter the URL in browser i get this 404 error

_The requested resource (/practice/control/main/) is not available._

Please suggest


Regards
Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: Facing Problem while creating a New E commerce Project

BJ Freeman
the tutorial your following is to create an application, not modify
ecommerce.
not sure there is one specific for ecommerce.
you need to work with the specialpurpose/ecommerce folder.


=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Gaurav Kalia sent the following on 5/6/2010 3:19 AM:

> Hi All
>
> I am a beginner and hence following the beginners guide to create a new
> e commerce  project.
>
> I am following the below link to create a new project.
>
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide
>
>
> I have followed all the steps (may be i missed something ) but still its
> not working.
>
> when I enter the URL in browser i get this 404 error
>
> _The requested resource (/practice/control/main/) is not available._
>
> Please suggest
>
>
> Regards
> Gaurav
>


Reply | Threaded
Open this post in threaded view
|

Re: Facing Problem while creating a New E commerce Project

Gaurav kalia
In reply to this post by Gaurav kalia
I found the problem, problem is some configuration param are missing so
i added them in web.xml.

My new project is running now.

But I have another question :)

Can I copy ecommerce folder to hotdeploy in order to create a exactly
same copy of ecommerce for a very new different project.

Please suggest

Thanks
Gaurav

On Thursday 06 May 2010 03:49 PM, Gaurav Kalia wrote:

> Hi All
>
> I am a beginner and hence following the beginners guide to create a
> new e commerce  project.
>
> I am following the below link to create a new project.
>
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide
>
> I have followed all the steps (may be i missed something ) but still
> its not working.
>
> when I enter the URL in browser i get this 404 error
>
> _The requested resource (/practice/control/main/) is not available._
>
> Please suggest
>
>
> Regards
> Gaurav

Reply | Threaded
Open this post in threaded view
|

Re: Facing Problem while creating a New E commerce Project

Rishi Solanki
Gaurav,
It is not good idea to have whole component copy, for this you need to just
include the ecommerce controller and change the mount point in
ofbiz-component will works same for you as copying the whole component.
Please refer the Practice Application to do so.
Doing this you will be able to separate your code from existing ecommerce
application.

Rishi Solanki
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxmedia.com


On Thu, May 6, 2010 at 7:24 PM, Gaurav Kalia <[hidden email]>wrote:

> I found the problem, problem is some configuration param are missing so i
> added them in web.xml.
>
> My new project is running now.
>
> But I have another question :)
>
> Can I copy ecommerce folder to hotdeploy in order to create a exactly same
> copy of ecommerce for a very new different project.
>
> Please suggest
>
> Thanks
> Gaurav
>
>
> On Thursday 06 May 2010 03:49 PM, Gaurav Kalia wrote:
>
>> Hi All
>>
>> I am a beginner and hence following the beginners guide to create a new e
>> commerce  project.
>>
>> I am following the below link to create a new project.
>>
>>
>> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide
>>
>> I have followed all the steps (may be i missed something ) but still its
>> not working.
>>
>> when I enter the URL in browser i get this 404 error
>>
>> _The requested resource (/practice/control/main/) is not available._
>>
>> Please suggest
>>
>>
>> Regards
>> Gaurav
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Facing Problem while creating a New E commerce Project

BJ Freeman
In reply to this post by Gaurav kalia
if you are talking about the hot-deploy in ofbiz yes that is the
preferred way to do major mods to the code.
however if it is more look and feel then you can just create a new
visual theme, which is not located in the eccomerce component.

========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Gaurav Kalia sent the following on 5/6/2010 6:54 AM:

> I found the problem, problem is some configuration param are missing so
> i added them in web.xml.
>
> My new project is running now.
>
> But I have another question :)
>
> Can I copy ecommerce folder to hotdeploy in order to create a exactly
> same copy of ecommerce for a very new different project.
>
> Please suggest
>
> Thanks
> Gaurav
>
> On Thursday 06 May 2010 03:49 PM, Gaurav Kalia wrote:
>> Hi All
>>
>> I am a beginner and hence following the beginners guide to create a
>> new e commerce  project.
>>
>> I am following the below link to create a new project.
>>
>> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide
>>
>>
>> I have followed all the steps (may be i missed something ) but still
>> its not working.
>>
>> when I enter the URL in browser i get this 404 error
>>
>> _The requested resource (/practice/control/main/) is not available._
>>
>> Please suggest
>>
>>
>> Regards
>> Gaurav
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Facing Problem while creating a New E commerce Project

Gaurav kalia
Thanks for quick replies.

I would like to describe more about my needs:

I need to create two different ecommerce application.

I used default ecommerce application and done some changes in UI successfully.

But now I need to create another ecommerce application.

As I have spent some time on doing UI changes I have some idea about it but I am still not sure about the changes that needs be done to create a new ecommerce application (exactly similar to the default ecommerce but different databases). So that both the ecommerce application will be different from each other.

I need a way to create another ecommerce application so that I will be able to add product from admin area and will be able to change the UI.

Please suggest me the possible way to achieve this.

TIA

Regards
Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: Facing Problem while creating a New E commerce Project

BJ Freeman
In reply to this post by BJ Freeman
you only need a seperate database if the person using it is not the same
 company that has the other website. if you do have seperate company
then you should use the multitenacy feature that was just develope by David.
either way you use the ecomnclone as an example of how to create a
separate website.
it uses the same controller and webapp, but you can add changed files to
 then eclone webapp or just make it have it own product store.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


kaliagaurav sent the following on 5/10/2010 7:15 AM:

> Thanks for quick replies.
>
> I would like to describe more about my needs:
>
> I need to create two different ecommerce application.
>
> I used default ecommerce application and done some changes in UI
> successfully.
>
> But now I need to create another ecommerce application.
>
> As I have spent some time on doing UI changes I have some idea about it but
> I am still not sure about the changes that needs be done to create a new
> ecommerce application (exactly similar to the default ecommerce but
> different databases). So that both the ecommerce application will be
> different from each other.
>
> I need a way to create another ecommerce application so that I will be able
> to add product from admin area and will be able to change the UI.
>
> Please suggest me the possible way to achieve this.
>
> TIA
>
> Regards
> Gaurav


Reply | Threaded
Open this post in threaded view
|

Re: Facing Problem while creating a New E commerce Project

Gaurav kalia
Thanks Freeman.

I am a novice it will be great you can give me some documentation link if you dont mind so that I can read the process on which you are guiding me.

TIA

Regards
Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: Facing Problem while creating a New E commerce Project

BJ Freeman
In reply to this post by BJ Freeman
Ruth Hoffman has a book on ecommerce.
I have not read it so not sure what it supports.
you can find her on the mailing list.
The source code is the best documentation, other than that.

========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


kaliagaurav sent the following on 5/10/2010 8:01 AM:
> Thanks Freeman.
>
> I am a novice it will be great you can give me some documentation link if
> you dont mind so that I can read the process on which you are guiding me.
>
> TIA
>
> Regards
> Gaurav


Reply | Threaded
Open this post in threaded view
|

Facing Problem while executring the practice hello world application

sra14all
In reply to this post by Gaurav kalia
hi all, i am following the tutorial
https://cwiki.apache.org/OFBIZ/ofbiz-tutorial-a-beginners-development-guide.html
here  and i got an error:
*HTTP Status 404 - /practice/control/main

type Status report

message /practice/control/main

description The requested resource (/practice/control/main) is not
available.
Apache Tomcat/6.0.33*


=========================================
Here is my
ofbiz-component.xml
 (under ofbiz/hot-deploy/practice)
*<?xml version="1.0" encoding="UTF-8"?>
<ofbiz-component name="practice"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
      <resource-loader name="main" type="component"/>
    <webapp name="practice"
       title="Practice"
       server="default-server"
       base-permission="OFBTOOLS"
       location="webapp/practice"
       mount-point="/practice"
       app-bar-display="false"/>
</ofbiz-component>*


=========================================
And this is the
web.xml
 (under ofbiz/hot-deploy/practice/webapp/practice/WEB-INF)
*<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN&quot;
&quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot;>
<web-app>
    <display-name>Open For Business - Extended Example
Application</display-name>
    <description>Extended Example Application of the Open For Business
Project</description>

  <context-param>
    <param-name>webSiteId</param-name>

    <param-value>PRACTICE</param-value>
    <description>A unique ID used to look up the WebSite entity to get
information about catalogs, etc.</description>
</context-param>
<context-param>
     <param-name>localDispatcherName</param-name>
     <param-value>practice</param-value>
     <description>A unique name used to identify/recognize the local
dispatcher for the Service Engine</description>

</context-param>
<context-param>
     <param-name>mainDecoratorLocation</param-name>
   
<param-value>component://practice/widget/CommonScreens.xml</param-value>
     <description>The location of the main-decorator screen to use for this
webapp; referred to as a context variable in screen def XML
files.</description>
</context-param> 
</web-app>*


========================
this is the
controller.xml
 (under ofbiz/hot-deploy/practice/webapp/practice/WEB-INF)

*<?xml version="1.0" encoding="UTF-8"?>
<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd">
    <include
location="component://common/webcommon/WEB-INF/common-controller.xml"/>

    <description>Extended Catalog Manager Controller Configuration
File</description>
        <handler name="screen" type="view"
class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
        <request-map uri="main">
                <security https="false" auth="false"/>
                <response name="success" type="view" value="main"/>
        </request-map>

    <view-map name="main" type="screen"
page="component://practice/widget/PracticeScreens.xml#main"/>
</site-conf>*

=================
and finally the
PracticeScreens.xml
(under /ofbiz/hot-deploy/practice/widget)
*
<?xml version="1.0" encoding="UTF-8"?>
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
    <screen name="main">
        <section>
            <widgets>
                <label text="This is first practice"/>
            </widgets>
        </section>
    </screen>
</screens>


thanks in advance