Kim,

I can't help directly with Weblogic, but I can hopefully help with debugging the problem.

The basic problem is that keel-server cannot figure out the lib directory for JARs. KeelClientDirect uses org.keel.clients.KeelStarter, which deduces the "lib" directory based on the "conf" directory which is supplied to Keel by the user. In a webapp (direct client), this comes from WEB-INF/web.xml, where the "keel..config.dir" parameter is specified as a servlet context-parameter. It should be specified as "WEB-INF/keel/server/conf".
In org.keel.clients.webapp.AbstractWebappClientConnector there is a getWebappPath() method which finally returns the absolute path to the config directory. Looks like there is a bug in Weblogic's request.getRealPath() method, such that it returns "null" instead of the webapp context name. You could search appropriate forums to see if there is a BEA fix for that.


The other option would be to provide a Java system property "keel.config.dir", which would overwrite the setting in web.xml. To do this, when Weblogic is started by the JVM add the "-Dkeel.config.dir=C:\bea\user_projects\domains\keeldomain\struts\WEB-INF\keel\server\conf" as an option to "java".

HTH,
Shash

Kim Nielsen wrote:

I've downloaded and installed the default keel package without any problems, and it runs perfectly under Tomcat. Then I've tried to deploy the "default" Struts.war under weblogic V 7.0, but here I'm currently into various problems including JVM version issues. (Which is understandable since Keel requires JDK 1.4, and WLS 7 only supports 1.3) Is it possible to run Keel under Weblogic at all? Do you need V 8.1 which is JDK 1.4 based? I've tried deploying on 8.1, and here I can access the index page (http://localhost:7001/struts/index.jsp), but when triggering the "Keel main menu" link (http://localhost:7001/struts/model.do) I get the following Exception:

org.keel.services.model.ModelException: null, Specified path 'C:\bea\user_projects\domains\keeldomain\null\WEB-INF\keel\server\lib' is not a directory at org.keel.clients.direct.KeelClientDirect.execute(KeelClientDirect.java:61)

The "\null\" in the path should probably not be there!? Do I have to change some setting in the Keel config files / Ant properties?

If it should be possible to run Keel under WLS, can you point me to some resources / links describing how-to, troubleshooting etc.? (I can't really find anything on the net mentioning Keel+Weblogic) Thanks!

Kim Nielsen
http://keelframework.org/documentation
Keelgroup mailing list
[EMAIL PROTECTED]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com




http://keelframework.org/documentation
Keelgroup mailing list
[EMAIL PROTECTED]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com

Reply via email to