4 Replies Latest reply: Oct 7, 2008 9:35 PM by Thomas Hartwig RSS

Tomcat Kickstart Problems with 2.1.0.BETA1

Thomas Hartwig Newbie
Unfortunately a kickstart of the seam example is not as easy as described in "Getting Started" under Tomcat 6, Java(TM) SE Runtime Environment (build 1.6.0_04-b12).

The database is not found with following error (hsqldb.jar is copied into tomcat/lib):

Null component Catalina:type=DataSource,path=/jboss-seam-jpa,host=localhost,class=javax.sql.DataSource,name="jdbc/TestDB"

Where should the datasource be defined?

Further more this error happens in the very early stage of the webapp initialization. Then the internal logger of jboss is called which is not available in the distributed packages. I did resolve this error by copying jboss-common.jar from the Hibernate to the library path of the seam webapp:

Null component Catalina:type=DataSource,path=/jboss-seam-jpa,host=localhost,class=javax.sql.DataSource,name="jdbc/TestDB"                                                                                               
log4j:ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErrorHandler].                             
java.lang.ClassNotFoundException: org.jboss.logging.util.OnlyOnceErrorHandler                                      
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)                     
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)                     
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)                                           
        at java.lang.Class.forName0(Native Method)                                                                 
        at java.lang.Class.forName(Class.java:169)                                                                 
        at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)