Re: Keel Newbie
Raoul Pierre <[email protected]>
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
Michael Brown a écrit :
>Found the problem...
>
>For some reason the line
>File overrideDirFile = new File(overrideDir);
>
>Found at line 801 in KeelContainerFactory.java
>Creates the file with its path equal to the webapp directory with
>overrideDir appended to it
>(in my instance d:\java\keel-2_1\app-cms\webapp\d:\java\keel-2_1\app-cms)
>
>Of course there is no such directory.
>
>Like I said, my quick fix was to change the config.overide to ..\
>
>It could be the fact that we are using this:
> if (!overrideDir.endsWith("/")) {
> overrideDir = overrideDir + "/";
>
>if (!overrideDir.endsWith(System.getProperty("file.separator"))) {
> overrideDir = overrideDir +
>System.getProperty("file.separator");
> }
>
>
>
The only thing you have to do is to change in
{KEEL_HOME}\keel-client\src\java\org\keel\clients\webapp\AbstractWebappClientConnector.java
these lines:
protected String getWebappPath(WebappRequest request, String configPath)
throws ClientException {
String sep = System.getProperty("file.separator");
String newPath = configPath;
if (!configPath.startsWith("/") && !configPath.startsWith(sep)
&& !(configPath.charAt(1) == ':')) {
String contextPath = request.getRealPath(".");
newPath = contextPath + sep + configPath;
}
where the test is added on "!(configPath.charAt(1) == ':')"
Indeed you can directly update from the CVS.
After that, to use hsqldb, check:
- {KEEL_PROJECT}/keel.properties exists and includes
"svc.persist.dbtype.hsqldb=keel-dbtype"
- "service.persist.base=true" in {KEEL_PROJECT}/ant.properties
- {KEEL_HOME]/svc-persist-base/conf/server/keel-map.properties exists
and includes XPath for "svc.persist.dbtype.hsqldb"
About this last point, a file keel-map.properties must be generated in
{KEEL_PROJECT}/keel-map.properties. But it's to you to update
{KEEL_PROJECT}/keel.properties and {KEEL_PROJECT}/ant.properties
Pierre
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com