Carsten Ziegeler wrote:
Ate Douma wrote:
Sample apps using the bridges are still part of Jetspeed-2.
We already having some discussions about moving pure bridges bases
examples to the bridges project itself though.
You can build/adapt the examples yourself if you download the jetspeed-2
sources, or you can download the prebuild wars like from
http://www.bluesunrise.com/maven/jetspeed2/wars/.
A good testcase example probably is the jpetstore (Struts bridge).
I tried the jpetstore war from above, and it works now in the Cocoon
portal - well partially. I get the front page in the portal and can
click the link to see the categories but clicking on any category
results in an jsp error. Is this sample supposed to work? If so, I have
to search for a bug in our container implementation :(
Yes it is supposed to work, and it works very well in Jetspeed.
What you might want to look at is the database access.
The JPetstore demo provides an embedded hsqldb database for which the
file location access is dynamically configured on first usage.
Look at the com.ibatis.jpetstore.persistence.LocalHsqldbConfigurator
listener configured in web.xml.
It will write out the WEB-INF/classes/db/database.properties file
containing the db (hsqldb) connection parameters, including the
database location in the url property.
If that doesn't work for some reason you can edit/create it yourself
with the following contents:
driver=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:D:/tomcat5.5/webapps/jpetstore/WEB-INF/db/jpetstore
username=sa
password=
The above example is for my local tomcat 5.5 installation. You will need
to adjust the url property to your setup.
Of course, this isn't a real solution but at least you then can test the
portlet (and container) itself.
Hope this helps.
Ate
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]