3 Replies Latest reply on Dec 30, 2009 8:01 PM by Arbi Sookazian

    Weld on Jboss AS 6.0.0.M1

    Muhammad Yahia Newbie

      Hello,



      I am trying to deploy the HelloWorld weld application to JBoss AS 6.0.0.M1, all I am doing is building that into a war file and dropping it into the server/default/deploy folder of the jboss server. I get the following error:




      2009-12-28 09:59:44,289 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-2) deploy, ctxPath=/weldJPA
      2009-12-28 09:59:44,376 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (Thread-2) Initializing Mojarra 2.0.1 (FCS b02) for context '/weldJPA'
      2009-12-28 09:59:46,709 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (Thread-2) Unsanitized stacktrace from failed start...
      java.lang.UnsupportedOperationException
           at javax.faces.application.Application.getResourceHandler(Application.java:286)
           at org.jboss.weld.integration.webtier.jsf.ForwardingApplication.getResourceHandler(ForwardingApplication.java:293)
           at com.sun.faces.config.processor.ApplicationConfigProcessor.setResourceHandler(ApplicationConfigProcessor.java:751)
           at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:309)
      





      Which implies that a resource-handler is not configured for JSF 2 I guess, i tried looking into /standard/deployers/weld.deployer/lib-int/faces/META-INF/faces-config.xml and there is no resource-handler defined there. Although I am assuming this is probably a red herring since obviously no one else is complaining about this.



      Can anyone figure out what I am doing wrong?


      Thanks.

        • 1. Re: Weld on Jboss AS 6.0.0.M1
          Arbi Sookazian Master

          The HelloWorld app is a JSE app, so you don't drop the WAR (in fact, there is no WAR):


          mvn clean install


          result:


          C:\java\weld-1.0.0.SP1\examples\se\hello-world\target\weld-se-hello-world-1.0.0-CR2.jar


          That's an executable JAR.


          From readme.txt:


          -------------------
          Running the Example
          -------------------
          
          As with all Web Beans SE applications, this example is executed
          by starting Java with org.jboss.weld.environment.se.StartMain
          as the main class. Of course you will need all of the relevant jar dependencies
          on your classpath, which is most easily done by loading the project into your
          favourite Maven-capable IDE and running it from there..
          
          To run this example using Maven directly:
          
          - Open a command line/terminal window in the examples/se/numberguess directory
          - Ensure that Maven 2 is installed and in your PATH
          - Ensure that the JAVA_HOME environment variable is pointing to your JDK installation
          - execute the following command
          
          mvn -Drun -Dname=Pete

          • 2. Re: Weld on Jboss AS 6.0.0.M1
            Muhammad Yahia Newbie

            Hello,


            Thanks for the reply,


            Sorry if I wasn't very clear, I used the weld-jsf-jee archetype for creating a maven project, which produced a war project.

            • 3. Re: Weld on Jboss AS 6.0.0.M1
              Arbi Sookazian Master

              I just did what you're trying to do successfully yesterday.  What JDK are you using?  not sure why you're getting that error.


              I would try re-extracting JBoss 6.0.0.M1 as I did not have this problem.


              here's a partial server.log from yesterday:


              2009-12-29 15:43:29,282 INFO  [org.jboss.web.WebService] (Thread-2) Using RMI server codebase: http://127.0.0.1:8083/
              2009-12-29 15:43:38,797 INFO  [org.jboss.wsf.common.management.AbstractServerConfig] (Thread-2) JBoss Web Services - Native Server
              2009-12-29 15:43:38,813 INFO  [org.jboss.wsf.common.management.AbstractServerConfig] (Thread-2) 3.2.1.GA
              2009-12-29 15:43:43,032 INFO  [org.jboss.logbridge.LogNotificationListener] (Thread-2) Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@1435ec9[ defaultDomain='null' ]
              2009-12-29 15:43:59,985 INFO  [org.jboss.mx.remoting.service.JMXConnectorServerService] (Thread-2) JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
              2009-12-29 15:44:00,235 INFO  [org.jboss.mail.MailService] (Thread-2) Mail Service bound to java:/Mail
              2009-12-29 15:44:02,844 WARN  [org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore] (Thread-2) WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
              2009-12-29 15:44:03,048 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (Thread-2) JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
              2009-12-29 15:44:03,204 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (Thread-2) Setting up property manager MBean and JMX layer
              2009-12-29 15:44:03,954 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (Thread-2) Initializing recovery manager
              2009-12-29 15:44:04,094 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (Thread-2) Recovery manager configured
              2009-12-29 15:44:04,094 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (Thread-2) Binding TransactionManager JNDI Reference
              2009-12-29 15:44:04,126 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (Thread-2) Starting transaction recovery manager
              2009-12-29 15:44:04,735 INFO  [org.apache.catalina.core.AprLifecycleListener] (Thread-2) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_17\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0_17\bin;C:\java\apache-ant-1.7.1\bin;C:\java\flex_sdk_3.4\bin;C:\java\apache-maven-2.2.1\bin;c:\Program Files\CA\SC\CAWIN\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Lenovo;C:\Program Files\Lenovo\Client Security Solution;C:\Program Files\Attachmate\Reflection\;c:\Program Files\CA\DSM\bin;c:\PROGRA~1\CA\SC\CAM\bin
              2009-12-29 15:44:04,813 INFO  [org.apache.coyote.http11.Http11Protocol] (Thread-2) Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
              2009-12-29 15:44:04,813 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
              2009-12-29 15:44:04,860 INFO  [org.apache.catalina.core.StandardService] (Thread-2) Starting service jboss.web
              2009-12-29 15:44:04,860 INFO  [org.apache.catalina.core.StandardEngine] (Thread-2) Starting Servlet Engine: JBoss Web/2.1.6.GA
              2009-12-29 15:44:04,907 INFO  [org.apache.catalina.startup.Catalina] (Thread-2) Server startup in 94 ms
              2009-12-29 15:44:04,923 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-2) deploy, ctxPath=/web-console
              2009-12-29 15:44:05,985 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-2) deploy, ctxPath=/invoker
              2009-12-29 15:44:06,048 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-2) deploy, ctxPath=/jbossws
              2009-12-29 15:44:06,157 INFO  [org.jboss.resource.deployers.RARDeployment] (Thread-2) Required license terms exist, view vfszip:/C:/java/jboss-6.0.0.M1/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
              2009-12-29 15:44:06,173 INFO  [org.jboss.resource.deployers.RARDeployment] (Thread-2) Required license terms exist, view vfszip:/C:/java/jboss-6.0.0.M1/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
              2009-12-29 15:44:06,173 INFO  [org.jboss.resource.deployers.RARDeployment] (Thread-2) Required license terms exist, view vfszip:/C:/java/jboss-6.0.0.M1/server/default/deploy/jms-ra.rar/META-INF/ra.xml
              2009-12-29 15:44:06,188 INFO  [org.jboss.resource.deployers.RARDeployment] (Thread-2) Required license terms exist, view vfszip:/C:/java/jboss-6.0.0.M1/server/default/deploy/mail-ra.rar/META-INF/ra.xml
              2009-12-29 15:44:06,204 INFO  [org.jboss.resource.deployers.RARDeployment] (Thread-2) Required license terms exist, view vfszip:/C:/java/jboss-6.0.0.M1/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
              2009-12-29 15:44:06,266 INFO  [org.quartz.simpl.SimpleThreadPool] (Thread-2) Job execution threads will use class loader of thread: Thread-2
              2009-12-29 15:44:06,298 INFO  [org.quartz.core.QuartzScheduler] (Thread-2) Quartz Scheduler v.1.5.2 created.
              2009-12-29 15:44:06,298 INFO  [org.quartz.simpl.RAMJobStore] (Thread-2) RAMJobStore initialized.
              2009-12-29 15:44:06,298 INFO  [org.quartz.impl.StdSchedulerFactory] (Thread-2) Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
              2009-12-29 15:44:06,298 INFO  [org.quartz.impl.StdSchedulerFactory] (Thread-2) Quartz scheduler version: 1.5.2
              2009-12-29 15:44:06,298 INFO  [org.quartz.core.QuartzScheduler] (Thread-2) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
              2009-12-29 15:44:07,235 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (Thread-2) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
              2009-12-29 15:44:07,985 INFO  [org.jboss.jms.server.ServerPeer] (Thread-2) JBoss Messaging 1.4.3.GA server [0] started
              2009-12-29 15:44:08,063 INFO  [org.jboss.jms.server.destination.QueueService] (Thread-2) Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
              2009-12-29 15:44:08,079 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (Thread-2) supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
              2009-12-29 15:44:08,079 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (Thread-2) supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
              2009-12-29 15:44:08,141 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (Thread-2) Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
              2009-12-29 15:44:08,141 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (Thread-2) org.jboss.jms.server.connectionfactory.ConnectionFactory@69f674 started
              2009-12-29 15:44:08,141 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (Thread-2) Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
              2009-12-29 15:44:08,141 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (Thread-2) org.jboss.jms.server.connectionfactory.ConnectionFactory@1763e0b started
              2009-12-29 15:44:08,141 INFO  [org.jboss.jms.server.destination.QueueService] (Thread-2) Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
              2009-12-29 15:44:08,141 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (Thread-2) Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
              2009-12-29 15:44:08,157 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (Thread-2) org.jboss.jms.server.connectionfactory.ConnectionFactory@114ad15 started
              2009-12-29 15:44:08,282 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (Thread-2) Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
              2009-12-29 15:44:08,438 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-2) deploy, ctxPath=/admin-console
              2009-12-29 15:44:08,673 ERROR [org.apache.myfaces.shared_impl.config.MyfacesConfig] (Thread-2) Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
              2009-12-29 15:44:09,063 WARN  [org.apache.myfaces.shared_impl.util.LocaleUtils] (Thread-2) Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
              2009-12-29 15:44:11,079 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-2) deploy, ctxPath=/
              2009-12-29 15:44:11,641 INFO  [Weld/Version] (Thread-2) WELD-000900 1.0 (0)
              2009-12-29 15:44:12,657 WARN  [org.jboss.interceptor.model.InterceptionTypeRegistry] (Thread-2) Class 'javax.interceptor.AroundTimeout' not found, interception based on it is not enabled
              2009-12-29 15:44:13,298 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-2) deploy, ctxPath=/foo
              2009-12-29 15:44:13,423 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (Thread-2) Initializing Mojarra 2.0.1 (FCS b02) for context '/foo'
              2009-12-29 15:44:20,157 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-2) deploy, ctxPath=/jmx-console
              2009-12-29 15:44:20,376 INFO  [Weld/Version] (Thread-2) WELD-000900 1.0 (0)
              2009-12-29 15:44:20,798 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (Thread-2) deploy, ctxPath=/weld-numberguess
              2009-12-29 15:44:20,907 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (Thread-2) Initializing Mojarra 2.0.1 (FCS b02) for context '/weld-numberguess'
              2009-12-29 15:44:25,782 INFO  [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (Thread-2) Loading profile: ProfileKey@11b4c2[domain=default, server=default, name=default]
              2009-12-29 15:44:25,782 INFO  [org.apache.coyote.http11.Http11Protocol] (Thread-2) Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
              2009-12-29 15:44:25,798 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
              2009-12-29 15:44:25,813 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2) JBossAS [6.0.0.M1 (build: SVNTag=JBoss_6_0_0_M1 date=200912040958)] Started in 1m:19s:594ms
              2009-12-29 15:45:25,189 INFO  [STDOUT] (http-127.0.0.1-8080-1) HelloWorld was constructed
              2009-12-29 15:45:32,532 INFO  [org.hibernate.validator.util.Version] (http-127.0.0.1-8080-1) Hibernate Validator 4.0.2.GA
              2009-12-29 15:45:32,564 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (http-127.0.0.1-8080-1) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 15:45:32,689 INFO  [STDOUT] (http-127.0.0.1-8080-1) HelloWorld was constructed
              2009-12-29 16:02:55,836 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] (HDScanner) Starting persistence unit persistence.unit:unitName=#widgets
              2009-12-29 16:02:55,992 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 16:02:56,039 INFO  [org.hibernate.cfg.annotations.Version] (HDScanner) Hibernate Annotations 3.5.0.Beta1
              2009-12-29 16:02:56,055 INFO  [org.hibernate.cfg.Environment] (HDScanner) Hibernate 3.5.0-Beta-2
              2009-12-29 16:02:56,055 INFO  [org.hibernate.cfg.Environment] (HDScanner) hibernate.properties not found
              2009-12-29 16:02:56,055 INFO  [org.hibernate.cfg.Environment] (HDScanner) Bytecode provider name : javassist
              2009-12-29 16:02:56,070 INFO  [org.hibernate.cfg.Environment] (HDScanner) using JDK 1.4 java.sql.Timestamp handling
              2009-12-29 16:02:56,195 INFO  [org.hibernate.annotations.common.Version] (HDScanner) Hibernate Commons Annotations 3.2.0-SNAPSHOT
              2009-12-29 16:02:56,211 INFO  [org.hibernate.ejb.Version] (HDScanner) Hibernate EntityManager 3.5.0.Beta1
              2009-12-29 16:02:56,242 INFO  [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Processing PersistenceUnitInfo [
                   name: widgets
                   ...]
              2009-12-29 16:02:56,258 ERROR [STDERR] (HDScanner) URL: vfszip:/C:/java/jboss-6.0.0.M1/server/default/deploy/bar.war/WEB-INF/classes/
                META-INF/orm.xml
                **/*.hbm.xml
              2009-12-29 16:02:56,258 WARN  [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
              2009-12-29 16:02:56,258 WARN  [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Defining hibernate.transaction.flush_before_completion=true ignored in HEM
              2009-12-29 16:02:56,320 INFO  [org.hibernate.cfg.AnnotationBinder] (HDScanner) Binding entity from annotated class: org.example.bar.Widget
              2009-12-29 16:02:56,383 INFO  [org.hibernate.cfg.annotations.EntityBinder] (HDScanner) Bind entity org.example.bar.Widget on table Widget
              2009-12-29 16:02:56,445 INFO  [org.hibernate.validator.Version] (HDScanner) Hibernate Validator 3.1.0.GA
              2009-12-29 16:02:56,477 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 16:02:56,555 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 16:02:56,555 INFO  [org.hibernate.cfg.search.HibernateSearchEventListenerRegister] (HDScanner) Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
              2009-12-29 16:02:56,570 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 16:02:56,649 INFO  [org.hibernate.connection.ConnectionProviderFactory] (HDScanner) Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
              2009-12-29 16:02:56,649 INFO  [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] (HDScanner) Using provided datasource
              2009-12-29 16:02:56,664 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) RDBMS: HSQL Database Engine, version: 1.8.0
              2009-12-29 16:02:56,664 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) JDBC driver: HSQL Database Engine Driver, version: 1.8.0
              2009-12-29 16:02:56,695 INFO  [org.hibernate.dialect.Dialect] (HDScanner) Using dialect: org.hibernate.dialect.HSQLDialect
              2009-12-29 16:02:56,711 INFO  [org.hibernate.engine.jdbc.JdbcSupportLoader] (HDScanner) createClob() method threw error : java.lang.reflect.InvocationTargetException
              2009-12-29 16:02:56,711 INFO  [org.hibernate.transaction.TransactionFactoryFactory] (HDScanner) Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
              2009-12-29 16:02:56,711 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] (HDScanner) instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
              2009-12-29 16:02:56,711 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] (HDScanner) instantiated TransactionManagerLookup
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Automatic flush during beforeCompletion(): disabled
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Automatic session close at end of transaction: disabled
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) JDBC batch size: 15
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) JDBC batch updates for versioned data: disabled
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Scrollable result sets: enabled
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) JDBC3 getGeneratedKeys(): disabled
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Connection release mode: auto
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Default batch fetch size: 1
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Generate SQL with comments: disabled
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Order SQL updates by primary key: disabled
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Order SQL inserts for batching: disabled
              2009-12-29 16:02:56,711 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
              2009-12-29 16:02:56,711 INFO  [org.hibernate.hql.ast.ASTQueryTranslatorFactory] (HDScanner) Using ASTQueryTranslatorFactory
              2009-12-29 16:02:56,727 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Query language substitutions: {}
              2009-12-29 16:02:56,727 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) JPA-QL strict compliance: enabled
              2009-12-29 16:02:56,727 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Second-level cache: enabled
              2009-12-29 16:02:56,727 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Query cache: disabled
              2009-12-29 16:02:56,727 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
              2009-12-29 16:02:56,727 INFO  [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] (HDScanner) Cache provider: org.hibernate.cache.HashtableCacheProvider
              2009-12-29 16:02:56,727 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Optimize cache for minimal puts: disabled
              2009-12-29 16:02:56,727 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Cache region prefix: persistence.unit:unitName=#widgets
              2009-12-29 16:02:56,727 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Structured second-level cache entries: disabled
              2009-12-29 16:02:56,742 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Echoing all SQL to stdout
              2009-12-29 16:02:56,742 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Statistics: disabled
              2009-12-29 16:02:56,742 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Deleted entity synthetic identifier rollback: disabled
              2009-12-29 16:02:56,742 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Default entity-mode: pojo
              2009-12-29 16:02:56,742 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Named query checking : enabled
              2009-12-29 16:02:56,742 INFO  [org.hibernate.cfg.SettingsFactory] (HDScanner) Check Nullability in Core (should be disabled when Bean Validation is on): disabled
              2009-12-29 16:02:56,789 INFO  [org.hibernate.impl.SessionFactoryImpl] (HDScanner) building session factory
              2009-12-29 16:02:57,008 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] (HDScanner) Factory name: persistence.unit:unitName=#widgets
              2009-12-29 16:02:57,008 INFO  [org.hibernate.util.NamingHelper] (HDScanner) JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
              2009-12-29 16:02:57,008 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] (HDScanner) Bound factory to JNDI name: persistence.unit:unitName=#widgets
              2009-12-29 16:02:57,008 WARN  [org.hibernate.impl.SessionFactoryObjectFactory] (HDScanner) InitialContext did not implement EventContext
              2009-12-29 16:02:57,024 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 16:02:57,024 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 16:02:57,024 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (HDScanner) Running hbm2ddl schema export
              2009-12-29 16:02:57,024 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (HDScanner) exporting generated schema to database
              2009-12-29 16:02:57,024 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (HDScanner) Executing import script: /import.sql
              2009-12-29 16:02:57,024 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (HDScanner) schema export complete
              2009-12-29 16:02:57,024 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 16:02:57,024 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 16:02:57,024 INFO  [org.hibernate.util.NamingHelper] (HDScanner) JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
              2009-12-29 16:02:57,117 INFO  [Weld/Version] (HDScanner) WELD-000900 1.0 (0)
              2009-12-29 16:02:58,039 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/bar
              2009-12-29 16:02:58,117 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) Initializing Mojarra 2.0.1 (FCS b02) for context '/bar'
              2009-12-29 16:03:26,586 INFO  [STDOUT] (http-127.0.0.1-8080-1) HelloWorld was constructed
              2009-12-29 16:03:26,946 INFO  [STDOUT] (http-127.0.0.1-8080-1) Hibernate: select widget0_.id as id0_, widget0_.description as descript2_0_, widget0_.name as name0_, widget0_.partno as partno0_ from Widget widget0_ order by widget0_.name
              2009-12-29 16:03:40,289 INFO  [STDOUT] (http-127.0.0.1-8080-2) Hibernate: select widget0_.id as id0_, widget0_.description as descript2_0_, widget0_.name as name0_, widget0_.partno as partno0_ from Widget widget0_ order by widget0_.name
              2009-12-29 16:03:40,321 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (http-127.0.0.1-8080-2) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
              2009-12-29 16:03:40,321 INFO  [STDOUT] (http-127.0.0.1-8080-2) HelloWorld was constructed