I found it myself :) :)
The tomcat7 installation does not contain a tomcat-jdbc.jar. I copied
the one from the stand-alone tomee and after the restart my applications
work.
Regards,
Marco
Op 28-10-12 15:40, Marco de Booij schreef:
I nearly gave up :(
Then I saw that the listener that I used was wrong (I used
org.apache.tomee.catalina.ServerListener like in my 'all-in
installation'). I replaced it by
org.apache.tomee.loader.OpenEJBListener and now tomee starts and it
has a listener. I also added the agent in the catalina.sh by hand
agent :)
Unfortunately this still does not solve the problem that I started
with. I still have:
INFO: Creating Resource(id=My DataSource)
Oct 28, 2012 3:22:05 PM org.apache.openejb.util.OpenEJBErrorHandler
handleUnknownError
SEVERE: FATAL ERROR: Unknown error in Assembler. Please send the
following stack trace and this message to [email protected] :
org.apache.xbean.recipe.ConstructionException: Error invoking factory
method: public static javax.sql.DataSource
org.apache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration)
throws
java.lang.IllegalAccessException,java.lang.InstantiationException,java.io.IOException
at
org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:1006)
When I check further I see that it is always related to a datasource.
Both the default ones in hsql as my own in postgres. Where is it
writing the internal databases? It might be a directory that is not
write accessible to tomcat7.
Regards,
Marco