Jacopo Cappellato
e66239876f
Small improvements to error log messages.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1463885 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 08:56:31 +00:00
Adrian Crum
19e3b14945
Fixed bug in BaseUnitTests.java where the original debugging levels were not restored.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1463856 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 07:53:11 +00:00
Adrian Crum
909bed712c
Some optimization work in UtilURL.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1462942 13f79535-47bb-0310-9956-ffa450edef68
2013-03-31 13:12:20 +00:00
Jacopo Cappellato
c1ae34b45d
Upgrade from Ant 1.8.4 to Ant 1.9.0: in the process I have also switched the naming convention of jars to the new one we are adopting for example for Tomcat jars that is <NAME-OF-THE-EXTERNAL-PROJECT>-<RELEASE-NUMBER>-<ORIGINAL-NAME-OF-JAR-FILE>.
...
For example, in in the release package apache-ant-1.9.0.zip we have the jar ant-launcher.jar, the name of the jar in OFBiz is: ant-1.9.0-ant-launcher.jar
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1461709 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 17:01:12 +00:00
Jacopo Cappellato
88005f87ab
Upgrade from Log4j 1.2.16 to Log4j 1.2.17
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1461681 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 16:03:32 +00:00
Jacques Le Roux
54dfb7ea95
A patch from Martin Kreidenweis "Delegator creation fails with new ExecutionPool on trunk" https://issues.apache.org/jira/browse/OFBIZ-4335
...
The problem is that the wrong class loader is used for the "ofbiz-config-*" threads (NativeLibClassLoader instead of CachedClassLoader). This happens when the threads are created by the static code in ExecutionPool.java when it is executed before the ClassLoaderContainer.init() initializes the CachedClassLoader.
This also causes other problems like: The local resolution of XML Schema files won't work any more because it's also using the wrong classloader, which can't find the XSD files:
[java] 2011-07-21 12:21:45,333 (ofbiz-config-0) [ UtilXml:1022:WARN ] [UtilXml.LocalResolver.resolveEntity] could not find LOCAL DTD/Schema with publicId [null] and the file/resource is [service-eca.xsd]
You can trigger this behavior in current ofbiz trunk by setting an expire time for the properties cache in cache.properties
properties.UtilPropertiesResourceCache.expireTime=10000
The Debug.log() statements in the ContainerLoader then load the logging configuration properties file and cache it. If an expire time is set, the ExecutionPool is used and creates the "ofbiz-config-*" threads too early.
By not pre-starting the "ofbiz-config-*" threads in the static code (patch above), the threads are then created later on, when the "main" thread classloader has become the CachedClassLoader and everythings starts working again.
jleroux:
* I don't see any issues, but performance, to not start the whole core threads. This is BTW the default behaviour. So I'd recommend to use it for GLOBAL_EXECUTOR.
* I also removed the useless deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1435701 13f79535-47bb-0310-9956-ffa450edef68
2013-01-19 21:05:23 +00:00
Jacques Le Roux
f62933059d
No functional changes
...
I tried to use the non useLog4J branch and localised it to show more like how useLog4J renders. But I found some issues with (time was not in sync useLog4J when I used both) and finally did not use it. So it's only the l10n part
I also added a convenient get()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1426606 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 18:47:02 +00:00
Scott Gray
04df9cb162
Add a bunch of missing Override annotations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418651 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:06:40 +00:00
Scott Gray
0af4184d61
Remove a bunch of unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418650 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:06:01 +00:00
Scott Gray
5df3e3f70b
Remove a bunch of unused imports, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418646 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:03:52 +00:00
Jacopo Cappellato
f6244c689f
Trivial fixes for some typos in Java comments.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416451 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 11:15:44 +00:00
Jacques Le Roux
e6ede1ca2e
Reverts r1310983 (related to https://issues.apache.org/jira/browse/OFBIZ-4792 )for 2 reasons:
...
* I missed to put in LICENSE and NOTICE
* It's an issue for Birt, see OFBIZ-5070
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416358 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 07:02:38 +00:00
Jacques Le Roux
b46c7a2c06
A patch from Naofumi Fukue "Japanese patch" https://issues.apache.org/jira/browse/OFBIZ-5061
...
Got an issue merging GeoData_JP.xml with Subclipse, using Toirtoise solved it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1403746 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 15:48:42 +00:00
Jacques Le Roux
ee091b11d5
A Christoph Neuroth's idea "Include complete stack trace in groovy script exception messages" https://issues.apache.org/jira/browse/OFBIZ-5049
...
When a groovy script fails, currently you can only follow the stack trace to rg.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:348), but not into the failed script itself, which makes debugging really hard.
This can easily be improved by wrapping the exception there:
- throw new IllegalArgumentException(errMsg);
+ throw new IllegalArgumentException(errMsg, e);
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1398679 13f79535-47bb-0310-9956-ffa450edef68
2012-10-16 07:09:54 +00:00
Jacques Le Roux
6eb198e3c2
No functional change, just swap parameters positions in JavaDoc, while reading fast I got confused
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1393556 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 15:38:21 +00:00
Jacques Le Roux
3d1ccc11ed
Closes "UtilXml firstChildElement should use getNodeName instead of getLocalName " https://issues.apache.org/jira/browse/OFBIZ-4441
...
The previous solution was not complete and prevented SOAP call to work correctly (see http://markmail.org/message/sz5esi3j6ombmrte ).
This guarantee best of both worlds: uses getLocalName for SOAP if not null, else fall-backs to getNodeName
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1387878 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 06:57:10 +00:00
Jacques Le Roux
9dcd3564e3
Moves the workflow component to attic
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381884 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 05:39:26 +00:00
Erwan de Ferrieres
5f2e3fffe5
Updating Apache HttpComponents to their latest version
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1376296 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 22:40:25 +00:00
Erwan de Ferrieres
0cd3370cc9
updating other Apache-commons libraries to their latest version
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1375502 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 12:29:14 +00:00
Erwan de Ferrieres
792e6a1729
updating some Apache-commons library to the latest versions
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1375145 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 17:56:21 +00:00
Erwan de Ferrieres
da60e4d9f4
Updating to latest nekohtml release 1.9.16
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1373435 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 14:44:31 +00:00
Adrian Crum
85d2a421a0
Updated ofbiz-properties.xsd.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372510 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:58:31 +00:00
Adrian Crum
aea294945e
Added a warning comment to ResourceLoader.java. DOM object trees should not be kept in memory because they are big. Keep in mind the entire XML document is in the DOM tree - including comments, license headers, etc.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370162 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:47:41 +00:00
Erwan de Ferrieres
1c15d2ab3e
correcting an error with my search and replace at rev 1369357
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369360 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 16:23:21 +00:00
Erwan de Ferrieres
a41366e95f
as suggested by Adrian, replacing @see by @Override in commit 1367751
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369357 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 16:15:36 +00:00
Erwan de Ferrieres
6f363f4480
updating javadoc for Container#init
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1367751 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 20:25:26 +00:00
Jacopo Cappellato
0abd7c2f6d
Moved some (commented out) container definitions to the components they belong to.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1365889 13f79535-47bb-0310-9956-ffa450edef68
2012-07-26 05:51:54 +00:00
Jacopo Cappellato
59aed51931
Removed some Geronimo/RMI specific code that was causing issues during system shutdown (several attempts to shutdown the RMIContainer); the code had also some tweaks that made the classes less readable; the static containerMap in ContainerLoader was breaking thread safety because the put operations were not atomic with the related add operations of the loadedContainers list.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363656 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 05:41:27 +00:00
Jacopo Cappellato
6137a3bf47
Minor change to set a consistent naming format for all the threads started by OFBiz.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1362417 13f79535-47bb-0310-9956-ffa450edef68
2012-07-17 09:05:33 +00:00
Jacopo Cappellato
78a8738a8f
Minor change to use the Runtime class to get the number of processors rather than MxBeans.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361955 13f79535-47bb-0310-9956-ffa450edef68
2012-07-16 09:54:27 +00:00
Adrian Crum
fe73aed662
Small cleanup in properties schema.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361922 13f79535-47bb-0310-9956-ffa450edef68
2012-07-16 07:16:35 +00:00
Adrian Crum
2a0058a04b
New feature - performance metrics. Basic code and services.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361722 13f79535-47bb-0310-9956-ffa450edef68
2012-07-15 16:07:59 +00:00
Jacopo Cappellato
42db3b8ca8
Removed "loader" element and all supporting code that I had recently introduced and that it is no more needed now that I have completed (in rev. 1360637) the support to set loader profiles in the startup properties.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1360681 13f79535-47bb-0310-9956-ffa450edef68
2012-07-12 13:50:25 +00:00
Jacopo Cappellato
20b343d1f5
Unified all the different variants of *-containers.xml files into one; this has been made possible because now you can declare the container loaders in the startup properties; also moved some container definitions from base/config to the proper component.
...
It is now very easy to control the way containers are loaded.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1360637 13f79535-47bb-0310-9956-ffa450edef68
2012-07-12 11:34:41 +00:00
Jacopo Cappellato
9ccc542a28
Moved "naming-container" to the base component configuration file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356087 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 07:28:55 +00:00
Jacopo Cappellato
0b16982849
Moved rmi-dispatcher container definition to the service component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356074 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 05:55:25 +00:00
Jacopo Cappellato
ea54b4ff18
Added new getName method to the Container interface and to all the implementations; added info messages to inform when containers are started/stopped.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355854 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 07:32:07 +00:00
Jacopo Cappellato
b3a310b3df
Moved catalina container definitions to the catalina component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355853 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 06:59:37 +00:00
Jacques Le Roux
8266a36101
"Login out on a cluster handled by DeltaManager causes a NPE" https://issues.apache.org/jira/browse/OFBIZ-4289
...
Uses a HashMap instead of a FastMap here because else we get this kind of error when OFBiz is shut down:
2012-06-12 10:35:29,921 (OFBiz_Shutdown_Hook) [ StandardSession.java:1567:WARN ] Cannot serialize session attribute LAST_VIEW_PARAMS for session 00C48D0D76821C98403482FAE8B77C24.jvm1
java.io.NotSerializableException: net.sf.json.JSONObject
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at javolution.util.FastMap.writeObject(FastMap.java:1513)
Note: to test the above you need to set apps-distributable to true and put some <distributable/> in the web.xml files of the applications to test
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355660 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 08:15:42 +00:00
Jacopo Cappellato
c386b7fc9a
Added new "name" argument to the "init" method of the Component interface: now the name of the container (set by the xml attribute container.name) is passed to the init method and it is used to retrieve the container's configuration; before of this the container's name was hardcoded preventing the ability to define (and load) two containers (with different settings) of the same type.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355652 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 06:32:00 +00:00
Jacopo Cappellato
f9cc630e33
Misc cleanups to the specialized *-containers.xml files: removed redundant commented out definitions (that are copy of the ones available in ofbiz-containers.xml) and removed a couple of still enabled beanshell telnet containers.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355470 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 16:55:11 +00:00
Jacopo Cappellato
068430fb8b
Moved a few container definitions from the base/config/*-containers.xml files to their own component's ofbiz-component.xml file; this is a demonstration of the usage of the new ability to define component level containers; this is still experimental and there is room for improvements (and I am working on them and going to discuss a few details in the dev list) but this should already give a good idea of how we can remove redundancy from the various *-containers.xml files, remove dependencies between framework components and make the components self deployable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355466 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 16:43:51 +00:00
Jacopo Cappellato
7b65f2dfbc
Added ability to define "loaders" for loading selectively specific containers defined in components.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355460 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 16:33:22 +00:00
Jacopo Cappellato
3594858b4f
This (temporarily) reverts my last commit 1354885: I still have to figure out a few things (how to selectively enable/disable containers at startup)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354905 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 10:35:33 +00:00
Jacopo Cappellato
d5c7ad614e
Moved the "container" declaration for Birt from the base/config/ofbiz-containers.xml to the Birt's own component definition file: this change is a step in the direction of making the "birt" component self deployable (in the hot-deploy folder), in preparation for the removal of the "birt" component from the trunk.
...
This configuration is made possible by the commit rev. 1354884 and we may consider to apply it to other containers (e.g. Jetty and Catalina).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354885 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 09:43:18 +00:00
Jacopo Cappellato
50c2e0e089
It is now possible for a component to define new "containers" that are loaded after the ones defined in base/conf/*-containers.xml
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354884 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 09:31:37 +00:00
Jacopo Cappellato
665e81597a
Improved information logged when the method is unable to compute the approximate byte size of a cached object using serialization: instead of a useless stack trace it is returned an informative message with the name of the class that is not serializable; in case of null objects a message is also logged.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1352575 13f79535-47bb-0310-9956-ffa450edef68
2012-06-21 15:42:45 +00:00
Jacopo Cappellato
5cb3561232
Fixed bug discovered while analyzing content of caches (found null objects instead of parsed scripts).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1352539 13f79535-47bb-0310-9956-ffa450edef68
2012-06-21 14:14:21 +00:00
Jacopo Cappellato
f3da3c9e6a
Upgrade of Tomcat from 7.0.27 to 7.0.28; also renamed the jars containing j2ee specification apis: there was no need to append the tomcat version because they don't change in all the 7.0 releases; instead I have added a suffix to better expose the specification version.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1351734 13f79535-47bb-0310-9956-ffa450edef68
2012-06-19 14:57:25 +00:00
Adrian Crum
ada9b6e78a
Fixed a bug in DateTimeConverters.java where the wrong converter was being selected. The bug was due to class detection in the java.util.Date hierarchy - so the fix uses explicit classes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1350081 13f79535-47bb-0310-9956-ffa450edef68
2012-06-14 03:32:18 +00:00