incubator-wookie-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Wilson (JIRA)" <>
Subject [jira] Commented: (WOOKIE-63) HibernateException: flush is not valid without active transaction
Date Tue, 17 Nov 2009 10:22:39 GMT


Scott Wilson commented on WOOKIE-63:

Hi Anton, this problem is caused by the Tomcat Security Manager. If you run tomcat using: start -security

Then it starts up applying its default policies.

If you start up Tomcat without Security Manager running (e.g. for development) then you won't
get this error.

To run Wookie on Tomcat with Security Manager active you need to edit catalina.policy and
grant permissions for everything Wookie wants to do (use JDBC, connect to MySQL, run JSPs

I'll add this to the FAQ

> HibernateException: flush is not valid without active transaction
> -----------------------------------------------------------------
>                 Key: WOOKIE-63
>                 URL:
>             Project: Wookie
>          Issue Type: Bug
>          Components: Server
>         Environment: Ubuntu 9.10 x86, Apache Tomcat 6.0.20, MySQL 5.1
>            Reporter: Anton Zolotarjov
>            Priority: Blocker
> Build for use with MySQL and Tomcat went fine with no errors, and the Wookie Widget Server
is shown in the Tomcat Web Application Manager. However, on trying to access http://localhost/wookie
or http://localhost:8080/wookie/admin this exception is thrown:
> org.hibernate.HibernateException: flush is not valid without active transaction
> org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(
> 	$Proxy0.flush(Unknown Source)
> 	org.apache.wookie.util.hibernate.impl.DBManagerImpl.closeSession(
> 	org.apache.wookie.server.MainFilter.doFilter(
> 	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	sun.reflect.NativeMethodAccessorImpl.invoke(
> 	sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	java.lang.reflect.Method.invoke(
> Method)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message