Adam Heath
523ffda8be
FIX: Make commons-daemon reflection access work again; this was broken
...
because the constructor was private, and the init(String[]) method was
removed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481999 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:01:39 +00:00
Adam Heath
0dde029713
FORMATTING: The empty constructor body is no longer on a single line.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481998 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 18:01:32 +00:00
Jacopo Cappellato
27c1c384a4
Moved the appserver component from framework to specialpurpose.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465276 13f79535-47bb-0310-9956-ffa450edef68
2013-04-06 17:25:01 +00:00
Jacques Le Roux
87a9e9b312
This prevented to load both web and pos simultaneously (both-containers.xml does not exist anymore).
...
It needs a compilation to work again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1451879 13f79535-47bb-0310-9956-ffa450edef68
2013-03-02 12:32:11 +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
Adrian Crum
0828388d85
More work on Start.java - added the capability for client code to query the class for server state.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374720 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 09:59:31 +00:00
Adrian Crum
9a7cbede73
Some work on Start.java:
...
1. Removed unused method.
2. Consolidated/separated the Commons Daemon implementation - this just makes it easier to distinguish it from the rest of the code.
3. Changed some public methods to private, and added a private constructor.
4. Made ServerState enum public.
These changes are in preparation for enabling client code to query the class for the server's state.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374711 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 08:46:21 +00:00
Adrian Crum
3425bca428
Re-organize and format code in Start.java - no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374705 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 08:05:46 +00:00
Adrian Crum
5b24afe6ab
Fixed generics in Config.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374704 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 08:04:43 +00:00
Jacques Le Roux
368c3d43a2
Fixes generic warning
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363690 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 09:10:30 +00:00
Jacques Le Roux
c46b891ca8
Removes dead code, organize imports
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363689 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 09:09:38 +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
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
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
Hans Bakker
32b7ee65bf
reverting 1334331: unwanted commit
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334333 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 07:52:25 +00:00
Hans Bakker
42341068ec
set memory back to 640k and add demo message
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334331 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 07:43:19 +00:00
Adam Heath
b24617935b
FEATURE: Start supporting commons-daemon explicitly.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327257 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:58:09 +00:00
Adam Heath
ba177f3aca
OPTIMIZE: Add a new FAIL Control, and move the processing into a method on the
...
enum.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327256 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:58:03 +00:00
Adam Heath
ecefbd3452
OPTIMIZE: Don't use static Strings to hold the commands sent over the
...
socket; instead, use an enum.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327255 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:57 +00:00
Adam Heath
fffea48b81
FIX: Fix race condition in startup code; it's possible for all loaders to be
...
started, a shutdown command get's issued, stopping is occurring, but
then the server state ends up being set to RUNNING.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327254 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:50 +00:00
Adam Heath
39db7dfc5a
OPTIMIZE: Remove the 2 boolean variables that encoded the startup/shutdown state,
...
and instead use a single reference, and an enum.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327253 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:44 +00:00
Adam Heath
940ee4480b
OPTIMIZE: If the specified instrumentation class is not found, don't
...
bother printing the thrown exception; this is a standard situation,
where the required jar may not have been downloaded, and the
instrumenter not compiled.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327252 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:38 +00:00
Adam Heath
f319440097
OPTIMIZE: Remove some debug prints from Start.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327251 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:28 +00:00
Jacques Le Roux
1689c99809
Finally revert to previous values, in order to avoid possible confusion with values in properties file
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1325369 13f79535-47bb-0310-9956-ffa450edef68
2012-04-12 16:40:40 +00:00
Jacques Le Roux
c4c9542348
Oops, missed this file in r1324989
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324990 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 20:35:52 +00:00
Jacques Le Roux
c79283dbfc
A patch from Francis ANDRE "unify admin port and key setting: single point of definition in start.properties" https://issues.apache.org/jira/browse/OFBIZ-4793
...
If someone wants to change the admin password or port, he would have to change currently many files (-- build.xml, various .bat and .sh --). In order to avoid this error-prone pratice, I suggest to centralize the definition of the admin kay and port at 2 single points: the framework/start/src/org/ofbiz/base/start/start.properties and the
framework/start/src/org/ofbiz/base/start/jetty.properties
jleroux: in config.java I also changed
String adminPortStr = getProp(props, "ofbiz.admin.port", "0");
adminKey = getProp(props, "ofbiz.admin.key", "NA");
to
String adminPortStr = getProp(props, "ofbiz.admin.port", "10523");
adminKey = getProp(props, "ofbiz.admin.key", "so3du5kasd5dn");
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324989 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 20:32:35 +00:00
Jacques Le Roux
6f6f4d8ec9
Reverts r1308078 http://svn.apache.org/viewvc?view=revision&revision=1308078 due to some pressure on this commit http://markmail.org/message/zqguh6ttd2a5jqcb
...
And even if I'm quite sure it's not harmful, I don't see either a great need for it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308792 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 09:48:28 +00:00
Jacques Le Roux
afde12093c
A patch from Francis ANDRE "Avoid exiting ofbiz when running in debug mode,i.e with -DDEBUG=true set on theJVM arguments" https://issues.apache.org/jira/browse/OFBIZ-4776
...
This is a patch for allowing to run OFBiz in debug mode,i.e with -DDEBUG=true on the JVM arguments, and avoid to exit from the process when a Error or a StartupException occurs.
jleroux: replaced tabs by 4 spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308078 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 11:27:45 +00:00
Erwan de Ferrieres
31a9eaaaa7
tabs to spaces, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1230445 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 09:09:24 +00:00
Erwan de Ferrieres
337aa79464
OFBIZ-3651 - Minor tweaks to the Cobertura integration - A patch from Bob Morley. I've also changed the cobertura version from 1.9.3 to 1.9.4.1 (latest) as your modifications are allowing it
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1230444 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 09:01:06 +00:00
Jacopo Cappellato
1c1421887a
Added missing property needed to successfully run test cases in platforms with locales different from en.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1215142 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 14:22:01 +00:00
Jacques Le Roux
c8c8c21521
Makes the response to ./stopofbiz.sh a bit more clear
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1203511 13f79535-47bb-0310-9956-ffa450edef68
2011-11-18 07:08:32 +00:00
Hans Bakker
d2617ff344
make the response to ./stopofbiz.sh more userfriendly
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173944 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 03:15:21 +00:00
Sascha Rodekamp
2dd668708f
FIX: IO stream objects are not closed ( https://issues.apache.org/jira/browse/OFBIZ-4420 ) A patch from Dimitri Unruh: Some methods are creating an IO stream object without closing it, so it could result on a descriptor leak.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171393 13f79535-47bb-0310-9956-ffa450edef68
2011-09-16 06:04:21 +00:00
Hans Bakker
59219ca106
correction on commit 1139866 which caused demo data also loaded when only ./ant run-install-seed was requested
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1142967 13f79535-47bb-0310-9956-ffa450edef68
2011-07-05 10:21:57 +00:00
Adam Heath
829da95986
FEATURE: Refactored to support -help/-? anywhere; also, cmdline parse errors now
...
send help to System.err, like a normal unix program.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139866 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:37 +00:00
Adam Heath
a92bcce610
OPTIMIZE: The internal loaderArgs variable is now a list instead of a String
...
array.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139864 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:32 +00:00
Adam Heath
83bdc59a57
OPTIMIZE: All the fullinit code is no longer inside an if; instead, if fullinit is
...
not wanted, do an early return. This causes the code to remove one
indent level.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139863 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:26 +00:00
Adam Heath
92bf6d030d
OPTIMIZE: The help method now takes a PrintStream parameter, to which the help is
...
sent.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139862 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:20 +00:00
Adam Heath
2e30fc08d2
OPTIMIZE: Move help printing to separate method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139861 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:15 +00:00
Adam Heath
afd1a0a945
FIX: Print an error message when a path component that is added doesn't
...
actually exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139694 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:11 +00:00
Adam Heath
97ec62675c
FIX: Filter out hidden library files(and prevent recursing into hidden
...
folders).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139692 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:49:57 +00:00
Adrian Crum
5cb181e8fa
Start.java bug fix: Exception is thrown if a string is entered that doesn't contain a ':'. Patch contributed by Chris Snow - https://issues.apache.org/jira/browse/OFBIZ-4237 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1086701 13f79535-47bb-0310-9956-ffa450edef68
2011-03-29 19:49:26 +00:00
Adrian Crum
d04a5d75b0
Final Start class code cleanup - moved remaining Config-specific code to the Config class, simplified some code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085806 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 21:37:00 +00:00
Adrian Crum
11578a9872
Misc Start.java code cleanups: eliminated unnecessary methods, renamed some methods, and fixed another potential thread deadlock issue.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085802 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 21:04:34 +00:00
Adrian Crum
38fb5bae80
Moved Config-specific code from Start class to Config class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085794 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 19:52:44 +00:00
Adrian Crum
df91c022e2
Unraveling Start.java spaghetti code: Moved "admin port" code to a separate class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085781 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 18:44:04 +00:00
Adrian Crum
3855697825
Moved nested class in Start.java to its own file - no functional change. This commit changes the StartupLoader API.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085757 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 16:29:15 +00:00