Commit Graph
8242 Commits
Author SHA1 Message Date
Jacopo Cappellato d8c412302f OFBIZ-5287: Upgrade to Log4j2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618831 13f79535-47bb-0310-9956-ffa450edef68
2014-08-19 10:36:01 +00:00
Ashish Vijaywargiya 8c673dff9e Applied fix for jira issue OFBIZ-5719 - Error to use <#if serviceParameter.value!> in setServiceParameterSync.ftl.
Thanks Wei for reporting the issue and providing the details for the fix. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618537 13f79535-47bb-0310-9956-ffa450edef68
2014-08-18 05:00:29 +00:00
Adrian Crum 3fbbbd685a Remove console warnings related to method deprecation, https://issues.apache.org/jira/browse/OFBIZ-5718.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618459 13f79535-47bb-0310-9956-ffa450edef68
2014-08-17 06:05:50 +00:00
Ashish Vijaywargiya 0dff62e4e9 Reverting the changes that I mistakenly committed in trunk r1618325.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618368 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 14:43:05 +00:00
Adrian Crum aadc814ba3 Updated Commons CSV library to the official release version (the previous version was a release candidate).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618332 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 11:22:36 +00:00
Ashish Vijaywargiya e4d68ed2f7 Applied the patch OFBIZ-4902_framework.patch from OFBIZ-4902 - Replace in Freemarker templates the deprecated built-ins: default, exists, if_exists.
Thanks http://ofbiz.us team for providing the patch work.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618325 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 10:58:51 +00:00
Anil Patel 6886a4c7b7 [OFBIZ-5656] Thanks Pierre Smits for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618316 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 08:50:31 +00:00
Adrian Crum b6c4dd5315 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617938 13f79535-47bb-0310-9956-ffa450edef68
2014-08-14 13:36:33 +00:00
Adrian Crum 4462994828 Fixed a bug in Start.java reported by Justen Walker (https://issues.apache.org/jira/browse/OFBIZ-5710):
The singleton pattern was broken by adding Commons Daemon support code to the class - resulting in multiple instances when using Commons Daemon.

I extracted the Commons Daemon code to a separate class - which delegates to the singleton Start instance. Users of Commons Daemon will need to update their scripts/etc to point to the new class instead of Start.

I also added a comment describing the design of Start.java, so hopefully this will help others maintain the code without breaking it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617936 13f79535-47bb-0310-9956-ffa450edef68
2014-08-14 13:27:39 +00:00
Adam Heath 9b66b02303 Remove creation of any delegator instance when a catalina container
starts; nothing was ever using the saved delegator instance anyways.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617818 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:39:00 +00:00
Adam Heath e4bbbc71cc We now have a real delegator container, that can be used to auto-start
many delegator instances.  Just specify the ones to load, separated by
commas or spaces.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617817 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:54 +00:00
Adam Heath dbe9fd76da Now that the thread-pool startup dead-locks are fixed, we can configure
the entirety of the delegator in a thread pool.  This will become a big
win very shortly, when multiple delegators are created at startup.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617816 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:48 +00:00
Adam Heath 65d560bc14 Use the BATCH thread pool for the helper initialization.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617815 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:41 +00:00
Adam Heath 19fdeb617a Initialize the DistributedCacheClear handler in a thread pool.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617814 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:36 +00:00
Adam Heath cc0d265276 Initialize the eca handler in asycnhronously. This requires the previous
patch, that initializes the eca handlers DispatchContext asynchronously.
With it, when the eca attempts to initialize, the DelegatorContext will
also initialize at the same time; this will end up calling back into the
same delegator, and a deadlock will occur.

When both are asynchronous, then the eca initialization will return
quickly, and upon first access, the DispatchContext future will be
waited for.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617813 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:30 +00:00
Adam Heath 647513604b Initialize the eca handler's DispatchContext asynchronously. This means
the eca handler will be available sooner, but might briefly pause the
first time it is used, while it waits for the DispatchContext to finish
initializing.

This patch is needed to prevent a deadlock when the eca handler itself
is initialized asynchronously in the delegator; see the next commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617812 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:24 +00:00
Adam Heath 58c866dfbd Add a simple Future implementation, that returns a constant,
non-changing value.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617811 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:18 +00:00
Adam Heath 61a8dabc7e Add a GLOBAL_BATCH thread pool. This is different than GLOBAL_EXECUTOR,
in that:

* BATCH does not block when all the coreThreads are busy, as would
  happen with EXECUTOR.  When all coreThreads are busy, new threads will
  be spawned.
* Scheduled jobs can *not* be submitted.

You can simulate the first problem, by modifying ExecutionPool, and
force-setting the threadCount to 1.  Then, submit something to the pool,
that will then itself submit more items into the pool.  Dead-lock will
occur.

BATCH should be used when it might be posslbe that more items could be
submitted by code you are calling.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617810 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:12 +00:00
Adam Heath 2aaa234042 Add a global fork-join thread pool, and switch a bunch of stuff over to
it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617809 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:01 +00:00
Adam Heath 111f90c057 Add a helper method for auto adjusting the threadCount.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617808 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:37:49 +00:00
Jacques Le Roux 5b71d410db Really better French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617498 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 14:53:43 +00:00
Jacques Le Roux bf902d9ff2 Better French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617496 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 14:52:23 +00:00
Jacopo Cappellato 951b7ccb56 Fix for a typo and an important optimization: enabled cache lookup for the retrieval of SystemProperty records.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617480 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 14:12:30 +00:00
Jacopo Cappellato fb20420e20 Some optimization for service event handler to prevent unnecessary operations at every service invocation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617473 13f79535-47bb-0310-9956-ffa450edef68
2014-08-12 13:38:55 +00:00
Scott Gray e35bb8ec7e Replace FastMap with HashMap and remove imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616931 13f79535-47bb-0310-9956-ffa450edef68
2014-08-09 09:54:01 +00:00
Scott Gray ba907be142 Replace FastList with ArrayList
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616928 13f79535-47bb-0310-9956-ffa450edef68
2014-08-09 09:43:15 +00:00
Scott Gray 545851bebb Replace the ServiceXaWrapper with a simpler Synchronization implementation. Helps pave the way for use of alternative transaction management libraries that don't work well with our XA wrapper implementations. Still DebugXaResource to go.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616925 13f79535-47bb-0310-9956-ffa450edef68
2014-08-09 09:00:39 +00:00
Jacopo Cappellato 3583bfe285 Misc minor cleanups to log messages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616751 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 13:19:09 +00:00
Jacopo Cappellato 066d782950 Misc minor cleanups to log messages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616744 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 13:16:46 +00:00
Jacopo Cappellato 202ed2dee5 Some minor cleanups to the logs produced by catalina at startup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616741 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 13:08:44 +00:00
Jacopo Cappellato 5477810830 Fix for the wrong jar committed by Jacques in rev. 1615296; this one is actually from the Tomcat extras distribution, not from the standard distribution as the former was.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616684 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 07:49:45 +00:00
Jacopo Cappellato 2ccff3b51e Improved the way we start Tomcat embedded to remove a series of warnings at startup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616514 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 15:51:43 +00:00
Jacopo Cappellato 80e2f28c1c Removed some code that was checking, in a rather weak way, the Java version at startup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616492 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 14:17:41 +00:00
Jacopo Cappellato b399cbb143 Moved to Attic (https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Attic ) the incomplete, unmaintained and unused support for WFS. This code had also a series of issues: low level calls to Freemarker components that may change with newer versions of Freemarker, references to hotwaxmedia, wrong location for ftl files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616446 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 09:12:43 +00:00
Jacopo Cappellato 37d586c160 Converted some startup messages from "important" to "info".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616431 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 07:52:23 +00:00
Jacques Le Roux 59119195eb A patch from Leon for "Wrong timeFormat of datetimepicker causes hours represented as 12 not 24" https://issues.apache.org/jira/browse/OFBIZ-5702
Latest datetimepicker add-on uses "timeFormat" option to detect am/pm, lowercase "h" represents 12hr am/pm, uppercase "H" represents 24 hr. (see https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/547). The datetime input widget that relying on this add-on does not work correctly: it's in 12-hours format not 24 hours.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616272 13f79535-47bb-0310-9956-ffa450edef68
2014-08-06 16:39:30 +00:00
Jacques Le Roux 6620856cac Update Tomcat from 7.0.54 to 7.0.55
No changes in framework\base\lib\j2eespecs


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1615296 13f79535-47bb-0310-9956-ffa450edef68
2014-08-02 11:18:26 +00:00
Jacopo Cappellato 4f4f95092c OFBIZ-4283: miscellaneous enhancements to give more control in the configuration of the DBCP connection pool. Thanks to Philippe Mouawad for the initial contribution that I have used as a starting point for a different implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1613431 13f79535-47bb-0310-9956-ffa450edef68
2014-07-25 13:19:59 +00:00
Jacopo Cappellato f66ab18d6e Upgrade to Commons DBCP 2; this new version is designed for Java 7 (JDBC 4.1).
Commons DBCP 2 relies on Commons Pool 2 and this commits upgrades that jar too.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1612909 13f79535-47bb-0310-9956-ffa450edef68
2014-07-23 18:26:33 +00:00
Adrian Crum e4ba71404a Fixed a bug in Mini-Language where a NPE could be thrown while using Verbose logging: https://issues.apache.org/jira/browse/OFBIZ-5689.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1612205 13f79535-47bb-0310-9956-ffa450edef68
2014-07-21 07:50:08 +00:00
Jacopo Cappellato 5455dc53d4 Fixed bug I introduced in rev. 1610918: thanks to Deepak Dixit for the bug report and resolution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1612190 13f79535-47bb-0310-9956-ffa450edef68
2014-07-21 05:56:45 +00:00
Jacques Le Roux fb62866eee Removes an useless @SuppressWarnings("deprecation")
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1612022 13f79535-47bb-0310-9956-ffa450edef68
2014-07-20 06:13:38 +00:00
Jacques Le Roux 77f16816da Check properties values
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1611311 13f79535-47bb-0310-9956-ffa450edef68
2014-07-17 10:09:35 +00:00
Jacques Le Roux f302a9a297 Format a bit more BJ's code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1611246 13f79535-47bb-0310-9956-ffa450edef68
2014-07-17 04:51:37 +00:00
Jacques Le Roux 406f8ea616 No functional change: forgot to save this formatting just before committing r1611002
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1611200 13f79535-47bb-0310-9956-ffa450edef68
2014-07-16 21:38:48 +00:00
Jacques Le Roux 149ba3a471 An updated ands slightly modified patch from BJ Freeman for "allow assignment of port for the Javamail container." https://issues.apache.org/jira/browse/1967
currently no property for setting the port to read email from in the javamail container.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1611002 13f79535-47bb-0310-9956-ffa450edef68
2014-07-16 13:29:19 +00:00
Jacopo Cappellato c1e1671ab1 Add missing import from my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1610925 13f79535-47bb-0310-9956-ffa450edef68
2014-07-16 07:57:01 +00:00
Jacopo Cappellato 3b4e2b7ec5 Fixed miscellaneous errors spotted while reviewing the logs generated by the ArtifactInfo tool.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1610918 13f79535-47bb-0310-9956-ffa450edef68
2014-07-16 07:16:15 +00:00
Jacques Le Roux ac2c4a2955 XML escape changed (at least) CommonFollowingErrorsOccurred messages (seen in French). Those are safe to not be escaped
Also indentation of the escape

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1610425 13f79535-47bb-0310-9956-ffa450edef68
2014-07-14 15:12:13 +00:00
Jacopo Cappellato 85f8da63bb Removed useless, old and incomplete code: OFBIZ-4740 Un-necessary Drop Down in Web Tools Service Reference page
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1610420 13f79535-47bb-0310-9956-ffa450edef68
2014-07-14 14:51:52 +00:00