Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Made setup of prices including VAT in e-commerce more explicit

This page is intended to be the root of Cookbook, FAQ, Tips, Tricks, HowTo, etc.
You may find supplementary useful informations at Old OFBiz wiki and Opentaps's OFBiz cookbooks part but note that this information may be outdated...

Tip
titleTips
  • If you are looking for a tutorial here you go
  • If you are looking for something that is not in the links below, try to do a search on this page. Sometimes people add a page under this one without putting a link to it. If you are in luck, the word you search is in the title of one of these pages... A better way might be to simply use the OFBiz wiki search ...

Tables of content

Table of Contents
maxLevel3
minLevel2

 

 


...


Accounting

Apache HTTPD (Apache Web server)

Applications server

Asset Maintenance

...

Certificate

...

CSS

DataBase

Development tips

Eclipse IDE

Geographic Information Systems (GIS)

...

Known issues

Licences

...

...

POS (the POS is deprecated and has been put in Attic)

...

...

RMI

  • This RMI error on client side?, click to see the tip

    Code Block
    Caused by: java.util.MissingResourceException: Can't find bundle for base name cache, locale en_US
    



Reporting tools

...

Selenium

Soap / XML-RPC / REST

Attachments

Another approach deprecated since r892712
For those who are familiar with Spring, you may be interested by Apache CXF instead of AXIS2. You will find a quick comparaison between AXIS2 and CXF here deprecated since r892712

SSL

...

r89271


Themes

...

  • To unsubscribe You certainly forgot how you subscribed, it's easy to forgot if you use a Nabble forum to subscribe.

Windows

Workflow Engines

XSL:FO (FOP)

ZK (work in progress)

A tuto (screencast) for a ZK view handler

...

in the 443 VirtualHost. This will give acces to your svn repsoitory (supposed to be declared as <Location /svn>) only through https. If you need also access through https, do the same in the 80 VirtualHost.

Anchor
field type in Derby
fieldTypeInDerby
fieldTypeInDerby

Change a field type in Derby

Change a field type in Derby

  1. Export the table to xml
  2. Drop the table
  3. Start OFBiz - table recreated with new structure
  4. Import xml data from #1

...

Then you are ready to create order and to specify the GC as a payment method.

A tip from Rashko Rejmer 


Yui-Ext
Anchor
Yui-Ext

Ajax : Integrate OFBiz with Yui-Ext

http://www.nabble.com/Re%3A-integrate-OFBiz-with-Yui-Ext-p11131937.html

A tip from Jason Wu

Anchor
PatchingOnWindows
PatchingOnWindows

...

I let you find the tools with google :Eclipse/Subclipse, Tortoise, Subversion client, patch.exe, todos.exe, etc.

Applying patches
Tip

Note that below no longer works (or hardly) since Windows 7. I suggest rather to use Cygwin if you use a version below WIndows 10. I have personnaly installed with Git Bash. Bash comes embedded with WIndows 10.

To patch on Windows you have to download patch.exe. But you may encouter EOL problems with patch.exe. That's why I prefer to use Eclipse's "Apply Patch" option wich is great to use with clipboard. If you get issue with Subclipse and work on Windows you may try Tortoise's "Apply Patch" option. If I get problems with Tortoise I then use the patch command. Something to understand is that Tortoise actually use "SVN merge" so in certains cases problems arise. To avoid EOL problems with the patch command, I use a bat file patchdos.bat :

...

  • You need JavaService.exeThis is freely available at http://javaservice.objectweb.org/.
    Documentation and example code are also available
    Unzip the JavaService-bin-1.2.x.zip (or JavaService-2.0.x.zip)
  • Where should the expanded files be located?
    Set up and run your script with the appropriate path. Ex:

    Code Block
    javaservice -install OFBiz %java_home%\jre\bin\server\jvm.dll -Xms256M -Xmx512M
    -Djava.class.path=%java_home%\lib\tools.jar;%ofbiz_home%\ofbiz.jar
    -start org.ofbiz.base.start.Start
    -out %ofbiz_home%\logs\serviceLog.txt
    -err %ofbiz_home%\logs\serviceErr.txt
    -current %ofbiz_home%
    -manual
    



    Note: If your java sdk is installed under a directory with a space in it, the service will install, but not start properly, unless you change java_home to the DOS 8.3 name. For example, if your java sdk is installed in C:\Program Files\Java\j2sdk1.4.2_xx then you would set java_home=C:\PROGRA~1\Java\j2sdk1.4.2_xx* Go to the win2k services app and you should now find a service 'OFBiz' set up to run manually (this of course can be changed to run automatically if so desired).


  • Alternatively, the service can be started with the command:net start OFBiz
  • And the service can then be stopped with the command:net stop OFBiz

...

If you receive an SQL error in ofbiz, it doesn't show the error from the database itself. Instead, it shows a general error which isn't neccessarily clear. Run the SQL directly on the database get a more helpful error message. 


Anchor
ReadOnlyDatabase
ReadOnlyDatabase

...

Code Block
languagexml
    <datasource name="localderby"
            helper-class="org.apache.ofbiz.entity.datasource.ReadOnlyHelperDAO"
            schema-name="OFBIZ"
            field-type-name="derby">...

...


Anchor
External Database
External Database

...

This should load your modified data along with the seed data and without any demo data.

Anchor
appservercreateAcctgTransAndEntriesappserver

How to run inside a non embedded application server

Have a look at framework/appserver/README file. You might be also interested by Run OFBiz under outside Application Servers (WASCE 2.0.0.1, Geronimo 2.0.3, Tomcat 5.5 and 6, JBoss 4.2.2)

...

createAcctgTransAndEntries

Issue with createAcctgTransAndEntries service

...

Issue with createAcctgTransAndEntries service

If you see errors like

Error:Error trying to begin transaction, could not process method: The
current transaction is marked for rollback, not beginning a new
transaction
and aborting current operation; the rollbackOnly was caused by: Service
createAcctgTransAndEntries threw an unexpected
exception/errororg.ofbiz.service.ServiceValidationException: The following
required parameter is missing: OUT
createAcctgTransAndEntries.acctgTransId (The following required
parameter
is missing: OUT createAcctgTransAndEntries.acctgTransId) calling
service
balanceInventoryItems in receiveInventoryProduct

...

If you really need to do it, think about these 4 points before...

Anchor
PricesWithVATPricesIncludingVATPricesWithVAT
PricesIncludingVAT

Show prices with VAT included in eCommerce (B2C)

For that you must :

...


In order to show the prices including VAT in the store for consumers, you need to take following steps:

  1. in the accounting component:
    1. adjust the data for the appropriate Tax Authority so that 'Include Tax in Price' = 'Y'
    2. associate the appropriate product categories under the 'Categories' tab of the Tax Authority
    3. set the appropriate product rate (for Value Added Tax)
    4. optionally set the flag for 'Tax Promotions'
    5. optionally set the flag for 'Tax Shipping'
  2. in the catalog component for the appropriate store (in the section 'TAX':
    1. set the flag 'Show prices with VAT tax included' to 'Y'
    2. set the appropriate Vat Tax Auth Geo ID
    3. set the appropriate Vat Tax Auth Party ID

For now you can't set a different VAT rate for shipping, see last comment of

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyOFBIZ-4160

...


Anchor
certificates
certificates

...

If the caches are on (ie not on dev mode), it's the same (you don't need to recompile) but you need to clear the caches. See at ...webtools/control/FindUtilCache You might even clear only the cache where things changed (production performance). 


Anchor
BewareOfHTTPETag
BewareOfHTTPETag

...

The ETag header is causing an issue with browser cache not being updated when the server has been updated. Actually a weak ETag, see http://en.wikipedia.org/wiki/HTTP_ETag

Seems like tomcat’s DefaultServlet will only serve weak ETag’s even though tomcat7+ does have code for strong ETag but is never used and there is no documentation on how to set it

A possible solution is to remove If-None-Match request header and ETag response header in apache http server

RequestHeader unset If-None-Match

Header unset ETag 


Anchor
SQLQueriesDurations
SQLQueriesDurations

How to measure SQL queries durations

If a query takes more than 150 ms its duration is shown in log. To change that look for:

Debug.logTiming("Ran query in "

in GenericDAO.java 


Anchor
DifferenceListInScreen
DifferenceListInScreen

What is the difference between [+0] and [] in a widget screen file?

[] If the list does not exist, create a new list and append item to it. If the list exist, append item to the end of the list

[+0] If list does not exist, create a new list and append item to it. If the list exist, insert item at the beginning of the list 


Anchor
WorkflowEngine
WorkflowEngine

What's the recommended workflow engine in OFBiz? Is it Shark?

OFBiz gave up on Workflow Engines. Shark was implemented last but never really used in OFBiz. Instead of using a Workflow Engine, OFBiz uses an Event Driven Architecture (EDA), so ECAs (SECA, EECA, MECA) are used in OFBiz to drive the Workflow. ECA is the acronym of Event Condition Action. SECAs are for Services (triggered on services conditions), EECAs are for Entity (triggered on entities conditions), MECAs are for Mail. 


Anchor
dash_vs_en_dashes
dash_vs_en_dashes

Dash vs "en dash" in Gradle commands

When you use a command like

gradlew "ofbiz --load-data readers=seed,seed-initial,ext,ext-demo"

Beware that copying this command in Microsoft Word will automatically transform the double dash in "en dashes" (Unicode 0x2013: "–" from Unicode Map€“)
Other cases not related to Word were also reported.So when this command does not work check that you are really using dashes!

Anchor
windows10
windows10

If you have problems to buid OFBiz on Windows 10 try this:

from Turn windows feature on or off ->Windows subsystem for Linux->Restart and retry