[jboss-user] [JBoss Seam] - Re: Issue with Seam and Tomcat 6 during tomcat startup

lle do-not-reply at jboss.com
Fri Mar 9 19:18:24 EST 2007


hi Michael,

Did you have your jndi configured correctly?

This is what I got in my log file of a successful Seam + Tomcat 5.5:

2007.03.09 14:29:08,808 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2007.03.09 14:29:08,808 INFO  [DatasourceConnectionProvider] Using datasource: java:/hibernateDatasource-mysql
  | 2007.03.09 14:29:08,808 INFO  [SettingsFactory] RDBMS: MySQL, version: 5.0.22-community-nt
  | 2007.03.09 14:29:08,808 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.13 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
  | 2007.03.09 14:29:08,808 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
  | 2007.03.09 14:29:08,824 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
  | 2007.03.09 14:29:08,824 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2007.03.09 14:29:08,824 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
  | 2007.03.09 14:29:08,824 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
  | 2007.03.09 14:29:08,824 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
  | 2007.03.09 14:29:08,824 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup

>From your exception, it seems that your JNDI doesn't get set up correctly.
You need to have the jndi.properties under your WEB-INF/lib directory.  The file should contain these lines:
java.naming.factory.initial org.jnp.interfaces.LocalOnlyContextFactory
  | java.naming.factory.url.pkgs org.jboss.naming:org.jnp.interfaces

If that doesn't help, turn on your seam debug level and full debug log file.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026800#4026800

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026800



More information about the jboss-user mailing list