Hi,
Thanks for your answer.
In the logs, I can see a
Loading component : [practice]
but not LOADING WEBAPP corresponding to this project.
I don't have any error.
I can see in the access logs :
"GET /practice/ HTTP/1.1" 302 - [...]
GET /practice/control/main HTTP/1.1" 404 1018 [...]
So, the redirect works well (I have
a <%response.sendRedirect("control/main");%> in my index.jsp at the root of
the webapp) but the corresponding information are not found.
Here's my controller.xml :
<?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>Practice Component Site Configuration File</description>
<owner>Copyright 2001-2009 The Apache Software Foundation</owner>
<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>
Do you need an other file to help me investigate the problem ? (In fact, I
made a copy paste from the tutorial)
Do I need the CommonScreens.xml to be present in the widget folder ? It
does not change anything in my case but I prefer asking.
Thank you
2012/8/14 Jacques Le Roux <[email protected]>
> I'd suspect a typo somewhere, but just a guess...
>
> Since it's a 404, I guess you have any clues in the log?
>
> Jacques
>
>
> Frédéric Bouquet wrote:
>
>> Hi folks,
>>
>> I've started playing with Ofbiz a few days ago but I can't manage to
>> follow
>> the beginners tutorial [1].
>>
>> In short, at the end of Part 1, when I try to access
>> http://localhost:8080/**practice/control/main<http://localhost:8080/practice/control/main>:
>> I get a 404 error.
>> I first tryed by creating all the files from scratch but it did not work.
>> Then, I tryed to start by a ant create-component and change the files the
>> tutorial says to create but I get the same result.
>>
>> I also tryed with a create-component without modifying any file and here,
>> I
>> had the possibility to access the web application.
>>
>> Concerning the build, I tryed with 10.04.02 and from the trunk.
>>
>> Does anyone have an idea ?
>>
>> Thank you
>>
>> [1] :
>> https://cwiki.apache.org/**confluence/display/OFBIZ/**
>> OFBiz+Tutorial+-+A+Beginners+**Development+Guide<https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide>
>>
>
--
Frédéric Bouquet
Twitter/Github : bouquetf
http://www.espacedefouille.org/