cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kompromiss <>
Subject Cocoon 2.2 - XSP - ESQL - Pool
Date Tue, 12 Mar 2013 08:56:45 GMT
Hello, I have strange problem in Cocoon 2.2, with block cocoon-xsp.

There is rather old application, which was written in Cocoon 2.1 with XSP.
I'm trying to migrate this application from C 2.1 to C 2.2
XSP-pages working fine, except for ESQL-component. The thing is I cannot use
esql:pool to use datasource from datasources configuration

If I specify parameters esql:driver, esql:dburl, esql:username,
esql:password with correct values - everything works. But when I'm trying to
use esql:pool - application just hangs. No errors in logs, nothing.

I was trying to investigate this problem on my own - by putting this code
into XSP-page:

String res = "";
try {
ServiceSelector selector = (ServiceSelector)
+ "Selector");
    DataSourceComponent datasource = (DataSourceComponent)"web24");
    if (datasource == null)
      res = Boolean.toString(selector.isSelectable("web24"));
		catch(Exception e)
			System.out.println("error: " + e.getMessage());
			res = res + " error" + e.getMessage();

And I've found out that the datasource component is null - selector selects
nothing. At this point I'm completely stuck. Obviously, I can specify
datasource (through esql:driver, esql:dburl, esql:username, esql:password)
in every XSP-page, but it's not exactly right, I think.

Is cocoon-xsp incompatible with spring beans or I just don't understand

View this message in context:
Sent from the Cocoon - Dev mailing list archive at

View raw message