You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "G.Ben" <g....@gmail.com> on 2012/05/28 17:18:51 UTC

OFBiz tutorial

Hello everyone, 
I'm looking for help please 
I'm working with the OFBiz tutorial at this 
http://www.opensourcestrategies.com/ofbiz/tutorials.php website .
for the 1st step wich is HelloWorld1 it doesn't work :( and for the 2nd one
too ( Helloworld2)
for the last one i get the following error when i type :
localhost:8080/hello2/control/main
"Error rendering included template at location
[component://hello2/webapp/hello2/includes/header.ftl]:
java.lang.IllegalArgumentException: FreeMarker file not found at location:
component://hello2/webapp/hello2/includes/header.ftl Error rendering
included template at location
[component://hello2/webapp/hello2/includes/main.ftl]:
java.lang.IllegalArgumentException: FreeMarker file not found at location:
component://hello2/webapp/hello2/includes/main.ftl Error rendering included
template at location [component://hello2/webapp/hello2/includes/footer.ftl]:
java.lang.IllegalArgumentException: FreeMarker file not found at location:
component://hello2/webapp/hello2/includes/footer.ftl "

Any help please 

--
View this message in context: http://ofbiz.135035.n4.nabble.com/OFBiz-tutorial-tp4632569.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Re: OFBiz tutorial

Posted by "G.Ben" <g....@gmail.com>.
Thank you so much Vinita Dhaka, 


Now I have another problem, with the entity-model. I've created the 2 files
"entitymodel.xml" and "entitygroup.xml".
When I put "<entity-resource type="model" reader-name="main" loader="main"
location="entitydef/entitymodel.xml"/>
<entity-resource type="group" reader-name="main" loader="main"
location="entitydef/entitygroup.xml"/> " in the file ofbiz-component.xml and
restart OFBiz, I get an error at the console of Windows telling me that
classnotfound ... Exception ... I don't know what are these things :s 

Well, I'm sure that the error is coming from adding "entity-ressource ..."
because when I remove it works but I need to see the entities that I
defined.

Thank you for your help !

--
View this message in context: http://ofbiz.135035.n4.nabble.com/OFBiz-tutorial-tp4632569p4632699.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Re: OFBiz tutorial

Posted by Vinita Dhaka <vi...@hcl.com>.
Hi,

add the following lines in web.xml

 <context-param>
        <param-name>webSiteId</param-name>
        <param-value>WebStore</param-value>
        <description>A unique ID used to look up the WebSite
entity</description>
    </context-param>

--
View this message in context: http://ofbiz.135035.n4.nabble.com/OFBiz-tutorial-tp4632569p4632681.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Re: OFBiz tutorial

Posted by Jacopo Cappellato <ja...@hotwaxmedia.com>.
Please post your question to the "user" list.

Kind regards,

Jacopo

On May 28, 2012, at 5:18 PM, G.Ben wrote:

> Hello everyone, 
> I'm looking for help please 
> I'm working with the OFBiz tutorial at this 
> http://www.opensourcestrategies.com/ofbiz/tutorials.php website .
> for the 1st step wich is HelloWorld1 it doesn't work :( and for the 2nd one
> too ( Helloworld2)
> for the last one i get the following error when i type :
> localhost:8080/hello2/control/main
> "Error rendering included template at location
> [component://hello2/webapp/hello2/includes/header.ftl]:
> java.lang.IllegalArgumentException: FreeMarker file not found at location:
> component://hello2/webapp/hello2/includes/header.ftl Error rendering
> included template at location
> [component://hello2/webapp/hello2/includes/main.ftl]:
> java.lang.IllegalArgumentException: FreeMarker file not found at location:
> component://hello2/webapp/hello2/includes/main.ftl Error rendering included
> template at location [component://hello2/webapp/hello2/includes/footer.ftl]:
> java.lang.IllegalArgumentException: FreeMarker file not found at location:
> component://hello2/webapp/hello2/includes/footer.ftl "
> 
> Any help please 
> 
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/OFBiz-tutorial-tp4632569.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.