openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Wellmann <>
Subject Setup for Tomcat7?
Date Fri, 17 Aug 2012 15:15:53 GMT
I'm having trouble setting up a simple hello world WAR with OpenWebBeans 
1.1.5 and Tomcat 7, following this article [1], which may not be up to 
date, but I couldn't find anything more recent.

I copied openwebbeans-tomcat7, openwebbeans-web and all dependencies to 
${catalina.home}/lib and added the ContextLifecycleListener to server.xml.

When deploying my app to Tomcat, I get this exception:

Caused by: java.lang.IllegalAccessException: Class 
org.apache.webbeans.web.tomcat.TomcatUtil can not access a member of 
class org.apache.webbeans.inject.OWBInjector with modifiers "private"
	at sun.reflect.Reflection.ensureMemberAccess(
	at java.lang.Class.newInstance0(
	at java.lang.Class.newInstance(
	at org.apache.webbeans.web.tomcat.TomcatUtil.inject(

The problem seems to be that TomcatUtil invokes the default constructor 
of OWBInjector by reflection, but OWBInjector only has a private 
constructor and a static inject() method.

Is it just my setup, or is this a regression caused by [2]?


Best regards,

View raw message