Commit Graph
164 Commits
Author SHA1 Message Date
Jacopo Cappellato 02415d77ea Upgraded Apache Tomcat to the latest bug fix release of the 7 series: 7.0.64
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701164 13f79535-47bb-0310-9956-ffa450edef68
2015-09-04 06:56:13 +00:00
Adrian Crum f315f0d5be Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1669537 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 10:04:14 +00:00
Jacopo Cappellato b387dcb2b4 Upgraded Tomcat from 7.0.57 to the latest bug fix release 7.0.59.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667253 13f79535-47bb-0310-9956-ffa450edef68
2015-03-17 10:52:34 +00:00
Ashish Vijaywargiya 9e044d163a Applied patch from jira issue - OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue(). Thanks so much Arun for this important contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1644015 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 10:09:22 +00:00
Jacopo Cappellato 1f802e5e77 Added to all the Tomcat connectors the commented out setting for the "address" parameter: this is useful when you run multiple instances of OFBiz in the same server each bound to a different hostname/IP address.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1643315 13f79535-47bb-0310-9956-ffa450edef68
2014-12-05 15:05:20 +00:00
Jacques Le Roux afac2070b3 With Tomcat 7.0.57 we no longer need to force the TLS version to v1.2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640299 13f79535-47bb-0310-9956-ffa450edef68
2014-11-18 10:33:50 +00:00
Jacques Le Roux d2104a85af Updates embedded Tomcat to 7.0.57 - https://issues.apache.org/jira/browse/OFBIZ-5881
Notably related to OFBIZ-5848 (Poodle) changes in Coyote:

Add support for TLSv1.1 and TLSv1.2 for APR connector. Based upon a patch by Marcel Šebek. This feature requires Tomcat Native library 1.1.32 or later. (schultz/jfclere)
Add Disable SSLv3 by default for JSSE based HTTPS connectors (BIO and NIO). The change also ensures that SSLv2 is disabled for these connectors although SSLv2 should already be disabled by default by the JRE. (markt)
Add Disable SSLv3 by default for the APR/native HTTPS connector. (markt)

I will test later if we can get rid of forcing TLSv2 in OFBiz

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640288 13f79535-47bb-0310-9956-ffa450edef68
2014-11-18 09:20:38 +00:00
Jacques Le Roux 3e0382835b Fixes the Poodle vulnerability following indications from "The Poodle fixer" at https://issues.apache.org/jira/browse/OFBIZ-5848
We will certainly have to evolve this in the future because this correction forces the protocol to TLSv1.2

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636864 13f79535-47bb-0310-9956-ffa450edef68
2014-11-05 13:06:19 +00:00
Jacopo Cappellato 19d7606913 Use the default value of the Tomcat connectors for the enableLookups parameter: this is false by default.
From Tomcat connector configurator documentation:
enableLookups
Set to true if you want calls to request.getRemoteHost() to perform DNS lookups in order to return the actual host name of the remote client. Set to false to skip the DNS lookup and return the IP address in String form instead (thereby improving performance). By default, DNS lookups are disabled.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627490 13f79535-47bb-0310-9956-ffa450edef68
2014-09-25 09:03:48 +00:00
Jacopo Cappellato adc41ad5bf Moved the thread pool executor object from GenericDAO to the DatabaseUtil class where it was actually used: this change simplifies the API and allows to shutdown the pool when it is no more needed.
Removed a series of methods that are no more needed after this refactoring or were not used.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627092 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 17:04:20 +00:00
Jacopo Cappellato 3e5b24806e Removed some code that was not used by the CatalinaContainer.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626971 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 09:24:37 +00:00
Jacopo Cappellato bac3fd452f Explicitly setting the keyPass and keyAlias to the Tomcat connector: this is similar to keystorePass but is more flexible when the keystore contains multiple values.
In the log info, don't print the content of Connector parameters that may contain a password. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626677 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 07:19:41 +00:00
Jacopo Cappellato 2f234a01af Further improvements to the way we use the Tomcat startup API: removed the deprecated (will be removed in Tomcat 8) memory realm (not really used in OFBiz) and a series of minor adjustments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626531 13f79535-47bb-0310-9956-ffa450edef68
2014-09-21 06:23:57 +00:00
Jacopo Cappellato 91573e60fb Attempt to improve the code that setups the Tomcat instance, the engine, hosts and contexts: this is still a work in progress but at least now the Tomcat instance is initialized without warning messages as was before.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626060 13f79535-47bb-0310-9956-ffa450edef68
2014-09-18 19:48:01 +00:00
Jacopo Cappellato e0fc2b318c Simplified and improved the logic to setup the Tomcat connectors: the logic was overly complex and messed up (probably after all the various upgrades to new Tomcat versions), there were a series of parameters that could not be set, some hardcoded values, some old and no more used (by Tomcat) parameters.
Improved the information logged about the actual parameters set for the connectors.
Removed Javolution from CatalinaContainer.
Cleaned up the connector configuration file: removed no more used parameters, commented out some parameters (that didn't change the default), commented out some parameters in order to use the Tomcat default values that may improve the performance (e.g. maxThreads in OFBiz was set to a lower value than the default one of newer Tomcat releases and this limits the throughput in default OFBiz setups), updated URLs to Tomcat documentation.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625919 13f79535-47bb-0310-9956-ffa450edef68
2014-09-18 09:00:15 +00:00
Jacopo Cappellato 1a71a69ea6 Removed the ClassLoaderContainer: it is no more used.
Moved the portOffset field from ClassLoaderContainer to the Start/Config class.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624700 13f79535-47bb-0310-9956-ffa450edef68
2014-09-13 06:57:02 +00:00
Jacopo Cappellato fa8115dba5 Removed the custom CachedClassLoader and related artifacts in favour of a simpler bootstrap process and a simpler classpath tree; now the classpath tree is made of: bootstrap classloader (primordial+ext) -> system classloader (aka applications or classpath classloader) -> two custom classloaders (one loads the framework/base classes and one loads all the other classes) -> Webapp classloaders (one per web application).
Junit tests are included. The two custom classloaders could be merged into one but this will be addressed in a second phase because it will require some changes to the bootstrap componenr and process.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624549 13f79535-47bb-0310-9956-ffa450edef68
2014-09-12 13:49:17 +00:00
Jacopo Cappellato 4483e59e1d removed unused old file in the catalina component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623268 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 04:51:55 +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 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
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
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 ef5976a228 Fixed Tomcat internal logging that was broken after the upgrade to the 7 series; log4j configuration for Tomcat is now inline with the one described in http://tomcat.apache.org/tomcat-7.0-doc/logging.html
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1609047 13f79535-47bb-0310-9956-ffa450edef68
2014-07-09 07:53:23 +00:00
Jacques Le Roux 3a6709473f Updates Tomcat to 7.0.54
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598113 13f79535-47bb-0310-9956-ffa450edef68
2014-05-28 19:50:16 +00:00
Jacopo Cappellato db1d807f07 Upgrade to Tomcat 7.0.52 (latest bug fix release). I have used the standard release and not the "embedded" version after I have realized (from a conversation with Mark Thomas @ Tomcat and then directly checking the content of each jar) that the embedded jars contain also the J2ee apis that we already have in the OFBiz classpath.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570639 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 17:09:19 +00:00
Jacopo Cappellato 731518d2eb A series of cleanups, simplifications and improvements (to leverage some of the features of the recent Tomcat API) to the way that the CatalinaContainer sets up the embedded Tomcat instance.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1568269 13f79535-47bb-0310-9956-ffa450edef68
2014-02-14 13:13:29 +00:00
Jacques Le Roux 0c9fccc6c8 Upgrades to Tomcat latest bug fix release: 7.0.50
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557593 13f79535-47bb-0310-9956-ffa450edef68
2014-01-12 18:55:53 +00:00
Jacques Le Roux 6f114277d4 Better for nowadays!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557195 13f79535-47bb-0310-9956-ffa450edef68
2014-01-10 16:58:26 +00:00
Jacques Le Roux c2f81951cf Adds the JreMemoryLeakPreventionListener, see https://issues.apache.org/jira/browse/OFBIZ-5395 for details
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542795 13f79535-47bb-0310-9956-ffa450edef68
2013-11-17 18:53:17 +00:00
Jacques Le Roux 90d37ce794 After my main external backup disk crashed, my main Eclipse workspace crashed also.
While rebuilding it, it seems I inadvertently pushed a OK button somewhere...
This reverts r1541470 and all pending stuff which should not have slipped in

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541485 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 12:01:48 +00:00
Jacques Le Roux d0bd4e8617 This was committed by error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541470 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 11:07:04 +00:00
Jacopo Cappellato 489bee58c2 Upgrade to Tomcat latest bug fix release: 7.0.47
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536656 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 11:01:37 +00:00
Adrian Crum cd43d99579 ComponentConfig.java refactor - improved thread-safety for the WebappInfo inner class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1534331 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 19:22:21 +00:00
Jacques Le Roux c386f6ab30 Set different ports for testing in a CI environment (e.g. Jenkins) https://issues.apache.org/jira/browse/OFBIZ-4794
*What's for?*
Finally, OOTB the port offset is interesting in 2 cases:
# To eventually run Sonar on OFBiz sources https://issues.apache.org/jira/browse/INFRA-3590
# To simultaneously run the demos without having to change much things, just one parameter (this will need to have the same commited in R13.07... to be discussed...)

Of course, It can be used for other purposes outside of the ASF context...

*How it's done?*
Basically, I just added a portoffset integer parameter to 3 ant targets (of course this JVM param can also be used in a Java call from command line): start, start-pos, start-both,

The portoffset parameter is set to zero by default in ClassLoaderContainer.java. 
If a value is passed, it's then grabed by Config.java and passed to ClassLoaderContainer.java, where it's set to this value.

 The portoffset is then used to change in one shoot all the default ports values defined (in config or hardcoded), and the admin port value
This is done in following classes:
CatalinaContainer
NamingServiceContainer
ServiceEngine through ServiceLocation
RmiServiceContainer
XMLRPCClientEngine
XmlRpcTests

To avoid hardcoding locations in services definitions, I also created 2 service-locations: main-http and main-soap

*To summarize:* these changes will be used to run "ant start" with a portoffset value which will take care of all ports values, including admin port. For running R12.04 demo as stable we will still need to create a patch for the last time. R13.07 could have a similar patch applied since it's not yet released...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1533839 13f79535-47bb-0310-9956-ffa450edef68
2013-10-19 22:07:35 +00:00
Jacques Le Roux 0ef1ff543e Reverts revisions: 1525909 + 1526533 + 1526560, OFBIZ-4794 is not yet ready
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526583 13f79535-47bb-0310-9956-ffa450edef68
2013-09-26 15:44:40 +00:00
Jacques Le Roux c86a579cf8 Set different ports for testing in a CI environment (e.g. Jenkins) https://issues.apache.org/jira/browse/OFBIZ-4794
*What's for?*
OOTB the port offset is interesting in at least 3 cases:
# To simultaneously run tests on the same Buildbot machine. This is related to http://mail-archives.apache.org/mod_mbox/www-builds/201209.mbox/%3C002101cd991b$0a16de50$1e449af0$@16degrees.com.au%3E
# To simultaneously run the demos without having to change much things, just one parameter
# To eventually run Sonar on OFBiz sources https://issues.apache.org/jira/browse/INFRA-3590

*How it's done?*
Basically, I just added a portoffset integer parameter to some ant targets (of course this JVM param can also be used in a Java call from command line):
* in trunk and R13.07: start, start-batch, start-debug, start-pos, start-both, run-tests and run-test
* in R12.04 and R11.04: run-tests, run-test. I did not set start targets because anyway it would miss the admin port offset, withouh much changes. So can't be used to demonstrate. We will continue to use the current paches for those.

The portoffset parameter is set to zero by default in ClassLoaderContainer.java. 
If a value is passed, it's then grabed by Config.java and passed to ClassLoaderContainer.java, where it's set to this value.

 The portoffset is then used to change in one shoot all the default ports values defined (in config or hardcoded), and the admin port value in R13.07 and trunk.
This is done in following classes:
CatalinaContainer
NamingServiceContainer
ServiceEngine through ServiceLocation
RmiServiceContainer
XMLRPCClientEngine
XmlRpcTests

To avoid hardcoding locations in services definitions, I also had to create some service-locations: main-local-soap and main-remote-soap 

*What are the constraints?*
* For demos: the offset should not be applied to trunk because <service-location name="main-remote-soap" location="http://demo-trunk.ofbiz.apache.org:8080/webtools/control/SOAPService"/> is used for tests by trunk *and all releases*. It's useless to apply to trunk anyway,  offsetting port in releases is enough.
* I did not take into account the Ideal payment harcoded port values in IdealPaymentServiceTest.java. Weirdly I did not cross error during tests, though it seems there are tests using an harcoded port in url.

*What is the status?*
Locally (on Win XP)  I ran many tests combinations with <<ant load-demo run-tests>>.  
Applying the portoffset on a sole running test instance has no effects. I have still some fails (no errors) but those are not related to my changes, they appear also without.
But when I run a combination of any releases/trunk but with R11.04, I get a time out error with testSOAPSimpleService, that I can't explain so far. 
If I run the trunk alone with the portoffset no errors occur. Same if I run a release with portoffset and only testSOAPSimpleService in trunk (w/ or w/o portoffset)

*To summarize:* these changes will be used to run Buildot tests instances simultaneously . And, for coming releases, to run demos without having to create patches. Simply running ant start with a portoffset value which will take care of all ports values, including admin port. For running R12.04 demo as stable we will still need to create a patch for the last time.

*What I will to do for now:* commit the patches and test if I cross the same issue on Buildbot. If it's the same (99% chances it will) I will revert and will continue to locally try to find the reason . I believe this issue is unrelated to the changes I implemened.  And it's just because it's now possible to simultaneously run tests that it appears. 

BTW I just noticed that when you run R11.04 with R12.04, R12.04 takes almost all the CPU (XP is not very, while when running any combinations w/o R11.04 the CPU load is shared. 
Also there are far less tests in R11.04, which coul be the reason when I run it with another test run instance there are no issues.  Because R11.04 tests finish before the other instance gets to run testSOAPSimpleService.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1525909 13f79535-47bb-0310-9956-ffa450edef68
2013-09-24 14:47:30 +00:00
Jacopo Cappellato 3911dc9aeb Removed parameter from the catalina-container setup that is deprecated:
public void setResolveHosts(boolean resolveHosts)
Deprecated. Unused, removed in Tomcat 8. See org.apache.catalina.connector.Connector.setEnableLookups(boolean).

and according to the above notes I have enabled the same behavior using the enableLookups flag in the Connectors.
This change resolves a warning during compilation but requires more testing.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1519577 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 06:20:23 +00:00
Jacques Le Roux 1956e731a3 No functional changes, only formatting.
While looking for other cases like r1459222 and r1509164 introduced by r1300812 and r1305309. I noticed there were a lot of wrong for loops formatting (miss a white space after for), this changes it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1511742 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 12:28:01 +00:00
Jacques Le Roux 107a6762b6 No functional change.
When I reverted r1311214 for "set different ports for testing in a CI environment (e.g. Jenkins)" https://issues.apache.org/jira/browse/OFBIZ-4794 I did not notice Jacopo's also changed some ports value at r1324614
This reverts r1324614 to have things consistent. I don't backport (only R12.04 is concerned) because as long as catalina/ofbiz-component.xml is consistent (port =+ 1) things are working

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502121 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 05:38:47 +00:00
Jacopo Cappellato 15b6e19cc5 Upgrade from Tomcat 7.0.41 to 7.0.42
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1500760 13f79535-47bb-0310-9956-ffa450edef68
2013-07-08 14:26:34 +00:00
Jacopo Cappellato dbc1d23f5d Upgrade from Tomcat 7.0.40 to Tomcat 7.0.41
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1499732 13f79535-47bb-0310-9956-ffa450edef68
2013-07-04 12:30:52 +00:00
Jacopo Cappellato f4fad5a6a9 Upgraded Tomcat from 7.0.39 to latest 7.0.40
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481739 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 09:09:16 +00:00
Jacopo Cappellato 50858f3a6d Upgrade to Tomcat 7.0.39
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1461665 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 15:49:14 +00:00
Scott Gray f180a447c7 Remove redundant implements declarations where the interface is already implemented by the base class
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418649 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:04:37 +00:00
Erwan de Ferrieres 4e60dbe157 Upgrading to latest tomcat release 7.0.32
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1405298 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 07:09:41 +00:00
Sascha Rodekamp 49adbc5bcc Bug Fix: No Url encoding for get parameters (https://issues.apache.org/jira/browse/OFBIZ-2628). Thanks Wojciech Szymanowski for the hint. The CatalinaContainer.createConnector() method does not initialize Connector.URIEncoding property from ContainerConfig class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1390542 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 15:03:23 +00:00
Adrian Crum a8793d83dd Fixed a bug introduced in rev 1334336 - do not throw an exception if the web.xml file does not exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1389802 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 11:12:34 +00:00
Erwan de Ferrieres 21c0d55c09 Upgrading to tomcat 7.0.30
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381977 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 11:11:42 +00:00