OFBiz tutorial

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

OFBiz tutorial

G.Ben
Hello everyone,
I'm looking for help please
I'm working with the OFBiz tutorial at this 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
Reply | Threaded
Open this post in threaded view
|

Re: OFBiz tutorial

Jacopo Cappellato-4
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.

Reply | Threaded
Open this post in threaded view
|

Re: OFBiz tutorial

Vinita Dhaka
In reply to this post by G.Ben
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>
Reply | Threaded
Open this post in threaded view
|

Re: OFBiz tutorial

G.Ben
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 !