Commit graph

  • 67c03ca7ae Further cleanup in TypeManager. Zip files are now very close to work just like unzipped files: They can add to existing type.properties, and the files they contain are removed from Prototypes when the zip files are removed. hns 2002-10-01 15:56:28 +00:00
  • 2ce2f6fd0c Mark prototype as updated when functions, actions or templates are removed from it. hns 2002-10-01 15:54:31 +00:00
  • 7799423ae5 Added public remove() method, which is now required by Updatable interface. hns 2002-10-01 15:53:51 +00:00
  • 52739414bd Added public remove() method,. hns 2002-10-01 15:53:22 +00:00
  • e01c244d40 Improved check if cached NullNode is still valid. hns 2002-10-01 15:52:22 +00:00
  • e6de4746d9 Added mechanism to add properties from other sources than the primary properties file, e.g. a Zip file. hns 2002-10-01 15:50:59 +00:00
  • 6f96481c2b Made remove() public since it is now part of the Updatable interface. Removed old obsolete code. hns 2002-10-01 15:49:36 +00:00
  • 9a585f9b40 Made remove() public since it is now part of the Updatable interface. hns 2002-10-01 15:48:56 +00:00
  • 22ec65ab3b added property app.cacheusage that holds current number of elements in the object cache. stefanp 2002-09-30 09:41:55 +00:00
  • 972507995c - append only to logfiles that were lastmodified today - first name tried for archive doesn't have a counter anymore stefanp 2002-09-30 09:39:43 +00:00
  • 23cd196c72 - rotate the logfiles at midnight and not each 10MB. - append to existing logs after a restart stefanp 2002-09-27 16:07:44 +00:00
  • fb90032ffd Made scriptingEngine protected again, since it is used by Skin. hns 2002-09-27 07:19:07 +00:00
  • 36b7ce8221 Do lazy initialization of scripting engine. If immediate creation is desired, calling code can do this by invoking the iniitScriptingEngine() method. hns 2002-09-27 07:12:50 +00:00
  • c591ab2e7d If no evaluator is available in getEvaluator() and a new one can't be allocated, try waiting a few seconds several times before throwing a max thread count exception. hns 2002-09-27 07:11:23 +00:00
  • 7cea5ece31 updated version string hns 2002-09-26 16:59:03 +00:00
  • 50853a16c6 The RMI interface to Application is now put into a separate RemoteApplication class. hns 2002-09-26 16:43:46 +00:00
  • 2be26331b6 Replaced by helma.objectmodel.db.IReplicationListener. hns 2002-09-26 16:43:10 +00:00
  • 50428e56ec minor change in comment hns 2002-09-26 16:40:07 +00:00
  • 5c7dbb717c It is now possible to bind to RMI and embedded Web/AJP1.3 server at the same time. (this used to be mutually exclusive until now). hns 2002-09-26 16:39:08 +00:00
  • ef18e63042 Replaces helma.framework.IReplicatedApp, since replication takes part mostly in the helma.objectmodel.db package. hns 2002-09-26 16:37:21 +00:00
  • be021b25ea Added logReplication option (works like logSql) to log events regarding cache replication. Errors in replication are now logged to the application event log. hns 2002-09-26 16:36:29 +00:00
  • dbd45f573c Rewrote servlet classes to be independent from IRemoteApp interface, i.e. the AbstractServletClient now does not mind whether a remote application or a local reference to an application are used. hns 2002-09-26 16:33:35 +00:00
  • d09006f985 Greatly improved type checking performance for large application directories. Fixed bug 117 (skins not inherited from hopobject proto). Generally cleaned up things a lot. hns 2002-09-25 17:38:05 +00:00
  • 131ae0c6a9 Fixed handling of type.properties entries and creation of DbMappings. Not fixed all the way, though - still needs some work. hns 2002-09-25 17:36:49 +00:00
  • 5a6f044c40 Added getProperties() method to let others access the properties underlying this database mapping. hns 2002-09-25 17:32:27 +00:00
  • 93e6af7799 overrided load() function to load properties into a fresh map, added add() function to load a file without discarding old entries. hns 2002-09-25 17:31:28 +00:00
  • f3371c79f1 Check for null and unwrap EcmaScript object to Java object in putProperty(). Especially the toJavaObject() may break something somewhere, not 100% sure, but we should do this to avoid references from map values to the wrong EcmaScript evaluator. hns 2002-09-25 15:17:33 +00:00
  • 8a598b3371 default parameter is now used for all macros, including those handled by request, response and parameter objects. Slightly optimized retrieval of prefix and suffix, which is now done only once instead of each time the macro is rendered. hns 2002-09-25 14:22:18 +00:00
  • 7e7a335f14 set notModified flag to false in reset(). hns 2002-09-25 13:08:05 +00:00
  • 04bcc845ef Fixed emberassing bug in prefetchChildren() array index calculation. (I knew I was too overworked when I wrote the code!) hns 2002-09-25 12:42:53 +00:00
  • 0e1ea8b8c0 show loaded extensions stefanp 2002-09-24 09:04:19 +00:00
  • 5e1913d98b sort works again, uncommented line 116 p3k 2002-09-24 08:56:04 +00:00
  • a358574fed Updated version string. hns 2002-09-23 15:24:22 +00:00
  • f105b8a516 - Try to detect recursive skin invocation: When more than 50 skins are rendered recursively, rendering is interrupted by throwing a RuntimeException. - If a macro does not produce any output, the default macro attribute is written out if it is specified. hns 2002-09-23 15:23:04 +00:00
  • 107dbbea7e Added skinDepth counter to allow skins to detect recursive skin invocation. hns 2002-09-23 15:21:36 +00:00
  • 4839b658b5 Fixed bug #106: emtpy hsp-files prevent prototypes from being evaluated hns 2002-09-23 14:39:10 +00:00
  • d8190ed3b2 Fix: Don't set parent prototype in prototypes unless it is exlicitly defined in type.properties file. If it isn't explicitly defined, the scripting engine will check the right runtime parent prototype depending on whether the prototype is a HopObject or Java object prototype. hns 2002-09-23 14:27:32 +00:00
  • d3837363e9 added blank onRequest() stefanp 2002-09-23 12:22:13 +00:00
  • 38ec696cf2 temporary fix to have a working list of apps stefanp 2002-09-23 12:21:47 +00:00
  • 7938ab4e8d Fix bug where xxx.readonly and xxx.private where not read correctly. Yep, that's right, these two did not work so far. hns 2002-09-20 17:06:44 +00:00
  • ad6221e101 Try to workaround bug where getChildElement doesn't work for named child objects in the embedded non-relational database. hns 2002-09-20 14:17:28 +00:00
  • 8080570bf7 Added support for AJP1.3 protocoll in Jetty. hns 2002-09-20 14:12:26 +00:00
  • 93685a87af Updated to Jetty 4.1.0RC6, which adds support for AJP1.3 (mod_jk) hns 2002-09-20 14:11:09 +00:00
  • 2aa00ca219 now the commit-mails should work again stefanp 2002-09-18 16:46:51 +00:00
  • f3084ba727 a testcommit stefanp 2002-09-18 16:44:19 +00:00
  • 2a5fc3b0c2 a testcommit stefanp 2002-09-18 16:38:03 +00:00
  • 4e6f33dd68 Do not append "null" to URLs generated by href() when baseURI is not specified ;-)= hns 2002-09-18 00:33:39 +00:00
  • 75f033f6a5 Fixed bug 105: entity was not passed through if it occurred at end of string. hns 2002-09-17 23:02:43 +00:00
  • 7dfdd39240 Slightly tweaked update check routines. hns 2002-09-17 22:44:51 +00:00
  • 369a36534a Most properties in app.properties are now updatable during runtime. hns 2002-09-17 22:44:03 +00:00
  • 2dda7607c5 Updated size of internal HashMap and rotation threshold to avoid rehashing to take place in internal maps. hns 2002-09-17 22:43:19 +00:00
  • d4f379a54d Slightly tweaked initial string buffer size. hns 2002-09-17 22:39:26 +00:00
  • 0c4ae4da46 Make getChildElement smart enough to actually look at the DbMapping of the Node when trying to fetch a child element. As a side effect, retrieving a child object by ID when an accessname is defined for the child collection and no object was found using the accessname column does not work anymore. hns 2002-09-17 17:02:17 +00:00
  • 9abb4cc1e4 Don't explicitly exclude null group columns when querying for group nodes. hns 2002-09-17 16:48:34 +00:00
  • 5372bd8fc8 Use order when prefetching grouped child objects. hns 2002-09-17 16:47:32 +00:00
  • 6e3c814e08 Set maxSize field to 0 if it is not specified in the type.properties file. hns 2002-09-16 15:55:26 +00:00
  • b7fa063e4e Updated version string. hns 2002-09-13 16:32:07 +00:00
  • 299c732772 Transmit charset as separate object when serializing, instead of pre-mangling it into the contentType. hns 2002-09-13 16:31:18 +00:00
  • 9f76a1c03b Fixed bug: character variable is called 'c', not 'ch'. hns 2002-09-13 16:26:13 +00:00
  • b6f8c5edb3 Added JavaScript function stub to Node.prefetchChildren(). hns 2002-09-13 16:15:40 +00:00
  • abd0b867b3 Filter out invalid XML characters below 0x20 in encodeXml(). hns 2002-09-13 15:47:27 +00:00
  • 3d6da645c5 Extended prefetchChildren to push secondary keys into the cache. hns 2002-09-13 15:45:11 +00:00
  • be1dd61a19 Do not set write locks when adding a node or setting a node to a transient parent. hns 2002-09-13 13:28:00 +00:00
  • 7a95ff731b Fixed bug in updatePrototypes where new Prototypes (that didn't exist when the evaluator was initialized) weren't created. Correctly rethrow Timeout, Redirection and Concurrency Exceptions in invoke(). hns 2002-09-13 13:26:05 +00:00
  • fa53c338ac Fixed bug where type.properties of newly created prototypes were potentially not updated correctly because another freshly created DbMapping was still missing. hns 2002-09-13 13:24:28 +00:00
  • 6b06734adc made application directory available as app.dir-property stefanp 2002-09-12 18:25:06 +00:00
  • 9da41c78e6 Implemented utility method containsKeys(Object[]) to let us check which of an array of keys are present in the CacheMap. This is used by Node.prefetchChildren() to get only those child nodes which aren't in the cache already. hns 2002-09-12 17:20:52 +00:00
  • 2a4d03ac13 Implemented experimental prefetchChildren method on nodes. Try calling prefetchChildren(start, length) on internal node objects. Works also on nodes with groupby-collections. hns 2002-09-12 17:18:45 +00:00
  • 7c759d694f Added support for encoding and decoding XML-RPC parameters. hns 2002-09-12 17:09:50 +00:00
  • 3c561e4003 Catch all exceptions in Xml.read(). Nicer error messages. hns 2002-09-11 15:59:37 +00:00
  • 5c0ec5544a Fixed an error reported by Roland Kofler where in the case of wrong command line options the Logger was used before being initialized, causing a NullPointerException. Now the message is written to System.err instead. hns 2002-09-11 14:48:19 +00:00
  • f0d7311b33 XmlReader now uses the SAX API to read XML files into HopObjects. SAX is generally faster than DOM because it doesn't report an intermediary DOM tree, but reports parsing events directly to the application. hns 2002-09-11 14:44:57 +00:00
  • 006aebe292 delete newlines at end of file. hns 2002-09-11 14:41:44 +00:00
  • b6a8d2a41e Added <s> (old strikethrough) to list of recognized HTML tags. hns 2002-09-07 02:06:35 +00:00
  • d573bd1479 Updated version string. hns 2002-09-06 20:04:43 +00:00
  • 38a4e6e765 Append charset to contentType when externalizing (serializing) ResponseTrans objects. Without this, responses don't contain info about their encoding. hns 2002-09-06 20:03:00 +00:00
  • df0639c02f Big patch to clean up checking type.properties files. Changes in type.properties are now reflected on existing collection objects (aka virtual subnodes). hns 2002-09-06 19:42:32 +00:00
  • 64b766ea35 Cut off newlines at end of file. hns 2002-09-06 19:08:08 +00:00
  • 8d35255716 Renamed DbMapping.isStringColumn() method to DbMapping.needsQuotes and included DATE, TIME and TIMESTAMP in the list of types that need to be quoted. hns 2002-09-06 14:09:11 +00:00
  • 2f74c6cc03 Rewrote equals() to do without a try/catch statement. hns 2002-09-05 13:38:15 +00:00
  • d1e173039b use internalized string for typename field to allow comparison using ==. hns 2002-09-05 13:37:55 +00:00
  • 78cc65f88b req may have been unset in recycle() by the time we reach the catch clause, so use the current thread for debugging output. hns 2002-09-04 16:38:28 +00:00
  • 9c8c460355 Recognize Timeouts without explicit timeout flag, just comparing if we still "own" the evaluator thread. hns 2002-09-04 16:32:26 +00:00
  • 3713d73580 Marked timeout field as volatile. hns 2002-09-04 15:47:10 +00:00
  • 003caed8d7 Implement timeout field to know when to rethrow exceptions in script execution as TimeoutExceptions. The field is set to true in abort() and set to false in enterContext(). hns 2002-09-04 15:24:55 +00:00
  • 38c9d3cff5 rethrow TimeoutExceptions caught in Macro execution. hns 2002-09-04 14:30:57 +00:00
  • 67b6d434f3 Log abort messages to the access log instead of the event log to give a better idea about request activity and the ratio between successful/aborted requests. hns 2002-09-04 14:03:48 +00:00
  • 5b0d8935e8 Call abort() on the scriptingEngine to let it know that the current execution is being aborted. hns 2002-09-04 14:01:29 +00:00
  • 495495da18 Added abort() method to let the Engine/Evaluator know that the current execution is being aborted (usually due to a request timeout). hns 2002-09-04 14:00:28 +00:00
  • 9eb0955806 Updated version string. hns 2002-09-04 13:37:03 +00:00
  • 06430a62e8 Do not call stop() method on threads when aborting a transaction. The method is deprecated, and it seemed to leave db connections in an unreclaimable state. hns 2002-09-04 13:35:50 +00:00
  • 921e4787cb Do not try to perform path translation relative to the servlet mountpoint since this is done already by the servlet container. hns 2002-08-30 15:26:57 +00:00
  • 251b9e0fa3 Added <hr> to list of recognized HTML tags. hns 2002-08-30 14:28:10 +00:00
  • 9b9e73f508 temporary fix: made Xml.write() use default UTF-8 encoding. stefanp 2002-08-21 17:11:58 +00:00
  • e4979a7175 made XmlDatabase use the app's charset (app.properties/charset=ISO...) new method: Application.getCharset() stefanp 2002-08-16 18:22:47 +00:00
  • eb397b6def fixed bug that caused default xml-conversion not to work properly. removed commented out code. stefanp 2002-08-11 17:26:04 +00:00
  • a0ce604062 Do not locally define pwfile field, which is meant to be an instance variable. hns 2002-08-07 12:44:42 +00:00
  • 51a564cd60 Updated version string. hns 2002-08-06 14:50:27 +00:00
  • 65bef92295 Perform getCanonicalFile() immediately when creating hopHome in main method of Server instead of only doing it when needed. hns 2002-08-06 14:47:30 +00:00
  • 1f6e49e791 Fixed bug where serving of static files didn't work on Windows with hopHome property set by using File.getCanonicalFile(). hns 2002-08-06 12:57:24 +00:00