4 Replies Latest reply on Sep 28, 2012 5:00 PM by macdaddyaz

    Unexplainable WELD-001408 in remote GlassFish 3.1.2

    macdaddyaz

      I'm getting the infamous "WELD-001408 Unsatisfied dependencies", but can't see any reason for it. This is a Maven project, running the test from Eclipse. This is the stack trace I get in Eclipse's JUnit Runner:

       

      {code}

      java.lang.RuntimeException: Could not inject members

                at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectClass(CDIInjectionEnricher.java:135)

                at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.enrich(CDIInjectionEnricher.java:78)

                at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:616)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:616)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:616)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:616)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:95)

                at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:222)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)

                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)

                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)

                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)

                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)

                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)

                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

                at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

                at org.junit.runner.JUnitCore.run(JUnitCore.java:157)

                at org.junit.runner.JUnitCore.run(JUnitCore.java:136)

                at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65)

                at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.executeTest(ServletTestRunner.java:160)

                at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execute(ServletTestRunner.java:126)

                at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:90)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)

                at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

                at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

                at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)

                at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

                at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)

                at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)

                at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)

                at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)

                at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)

                at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)

                at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

                at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

                at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

                at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

                at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

                at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

                at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

                at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

                at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

                at java.lang.Thread.run(Thread.java:679)

      Caused by: org.jboss.arquillian.test.spi.ArquillianProxyException: org.jboss.weld.exceptions.DeploymentException : WELD-001408 Unsatisfied dependencies for type [AuthorizeNetGateway] with qualifiers [@Default] at injection point [[field] @Inject com.idt911.payments.anet.AuthorizeNetGatewayTest.gateway] [Proxied because : Original exception not deserilizable, ClassNotFoundException]

                at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:274)

                at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:243)

                at org.jboss.weld.bootstrap.Validator.validateInjectionTarget(Validator.java:301)

                at org.jboss.weld.manager.InjectionTargetValidator.addInjectionTarget(InjectionTargetValidator.java:29)

                at org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:907)

                at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectNonContextualInstance(CDIInjectionEnricher.java:143)

                at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectClass(CDIInjectionEnricher.java:125)

                ... 90 more

      {code}

       

      However, the test artifact appears to deploy just fine. Here is the log from the remote GlassFish instance:

       

      {code}

      INFO: Processing PersistenceUnitInfo [

                name: idt911-app-model

                ...]

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Region

      INFO: Bind entity com.idt911.app.shared.entity.Region on table Region

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Program

      INFO: Binding type definition: purchaseType

      INFO: Binding type definition: com.idt911.app.shared.entity.PurchaseType

      INFO: Binding type definition: programType

      INFO: Binding type definition: com.idt911.app.shared.entity.ProgramType

      INFO: Bind entity com.idt911.app.shared.entity.Program on table Program

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ProductVendor

      INFO: Bind entity com.idt911.app.shared.entity.ProductVendor on table product_vendor

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ProductSupportType

      INFO: Bind entity com.idt911.app.shared.entity.ProductSupportType on table product_support_type

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ProductCodeGroup

      INFO: Bind entity com.idt911.app.shared.entity.ProductCodeGroup on table product_code_group

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ProductCode

      INFO: Bind entity com.idt911.app.shared.entity.ProductCode on table product_code

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Product

      INFO: Bind entity com.idt911.app.shared.entity.Product on table Product

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.PhoneType

      INFO: Bind entity com.idt911.app.shared.entity.PhoneType on table phone_type

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.NameSuffix

      INFO: Bind entity com.idt911.app.shared.entity.NameSuffix on table name_suffix

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.NamePrefix

      INFO: Bind entity com.idt911.app.shared.entity.NamePrefix on table name_prefix

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.InstitutionType

      INFO: Bind entity com.idt911.app.shared.entity.InstitutionType on table institution_type

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.InstitutionProgramGroup

      INFO: Bind entity com.idt911.app.shared.entity.InstitutionProgramGroup on table institution_program_group

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.InstitutionProgram

      INFO: Bind entity com.idt911.app.shared.entity.InstitutionProgram on table institution_program

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Institution

      INFO: Binding type definition: uri

      INFO: Binding type definition: encoded

      INFO: Bind entity com.idt911.app.shared.entity.Institution on table Institution

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ImportLog

      INFO: Bind entity com.idt911.app.shared.entity.ImportLog on table import_log

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ImpUserPhone

      INFO: Bind entity com.idt911.app.shared.entity.ImpUserPhone on table imp_user_phone

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ImpUserEmail

      INFO: Bind entity com.idt911.app.shared.entity.ImpUserEmail on table imp_user_email

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ImpUserAddress

      INFO: Bind entity com.idt911.app.shared.entity.ImpUserAddress on table imp_user_address

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ImpUser

      INFO: Binding type definition: secureHash

      INFO: Binding type definition: com.idt911.utils.encryption.SecureHash

      INFO: Binding type definition: encryptedString

      INFO: Bind entity com.idt911.app.shared.entity.ImpUser on table imp_user

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ImpSubscriberAssignment

      INFO: Bind entity com.idt911.app.shared.entity.ImpSubscriberAssignment on table imp_subscriber_assignment

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ImpSubscriber

      INFO: Bind entity com.idt911.app.shared.entity.ImpSubscriber on table imp_subscriber

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.CustomerProductEntitlement

      INFO: Bind entity com.idt911.app.shared.entity.CustomerProductEntitlement on table customer_product_entitlement

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.CustomerProductAssignment

      INFO: Bind entity com.idt911.app.shared.entity.CustomerProductAssignment on table customer_product_assignment

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.CustomerPhone

      INFO: Bind entity com.idt911.app.shared.entity.CustomerPhone on table customer_phone

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.CustomerEnrollment

      INFO: Bind entity com.idt911.app.shared.entity.CustomerEnrollment on table customer_enrollment

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Customer

      INFO: Binding type definition: encoded

      INFO: Bind entity com.idt911.app.shared.entity.Customer on table Customer

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.CsidSubscriberAssignment

      INFO: Bind entity com.idt911.app.shared.entity.CsidSubscriberAssignment on table csid_subscriber_assignment

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.CsidSubscriber

      INFO: Bind entity com.idt911.app.shared.entity.CsidSubscriber on table csid_subscriber

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.CsidMigration

      INFO: Bind entity com.idt911.app.shared.entity.CsidMigration on table csid_migration

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Country

      INFO: Bind entity com.idt911.app.shared.entity.Country on table Country

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ApplicationOption

      INFO: Bind entity com.idt911.app.shared.entity.ApplicationOption on table application_option

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Victim

      INFO: Bind entity com.idt911.app.shared.entity.Victim on table Victim

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Relationship

      INFO: Bind entity com.idt911.app.shared.entity.Relationship on table Relationship

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.FarmersStaging2

      INFO: Bind entity com.idt911.app.shared.entity.FarmersStaging2 on table farmers_staging2

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.EmailQueue

      INFO: Bind entity com.idt911.app.shared.entity.EmailQueue on table email_queue

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.CustomerStaging

      INFO: Bind entity com.idt911.app.shared.entity.CustomerStaging on table customer_staging

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.CsidSubscriberChangeQueue

      INFO: Bind entity com.idt911.app.shared.entity.CsidSubscriberChangeQueue on table csid_subscription_change_queue

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.ProductPurchase

      INFO: Bind entity com.idt911.app.shared.entity.ProductPurchase on table product_purchase

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Pricing

      INFO: Binding type definition: frequencyType

      INFO: Binding type definition: com.idt911.app.shared.entity.FrequencyType

      INFO: Bind entity com.idt911.app.shared.entity.Pricing on table Pricing

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.Merchant

      INFO: Bind entity com.idt911.app.shared.entity.Merchant on table Merchant

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.InstitutionMerchant

      INFO: Bind entity com.idt911.app.shared.entity.InstitutionMerchant on table institution_merchant

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.VictimProductEntitlement

      INFO: Bind entity com.idt911.app.shared.entity.VictimProductEntitlement on table victim_product_entitlement

      INFO: Binding entity from annotated class: com.idt911.app.shared.entity.FraudType

      INFO: Bind entity com.idt911.app.shared.entity.FraudType on table fraud_type

      INFO: Mapping collection: com.idt911.app.shared.entity.Program.customerProductEntitlements -> customer_product_entitlement

      INFO: Mapping collection: com.idt911.app.shared.entity.Program.institutionPrograms -> institution_program

      INFO: Mapping collection: com.idt911.app.shared.entity.Program.programs -> Program

      INFO: Mapping collection: com.idt911.app.shared.entity.Program.victimProductEntitlements -> victim_product_entitlement

      INFO: Mapping collection: com.idt911.app.shared.entity.ProductVendor.products -> Product

      INFO: Mapping collection: com.idt911.app.shared.entity.ProductCodeGroup.productCodes -> product_code

      INFO: Mapping collection: com.idt911.app.shared.entity.ProductCode.customerProductAssignments -> customer_product_assignment

      INFO: Mapping collection: com.idt911.app.shared.entity.Product.customerProductAssignments -> customer_product_assignment

      INFO: Mapping collection: com.idt911.app.shared.entity.Product.customerProductEntitlements -> customer_product_entitlement

      INFO: Mapping collection: com.idt911.app.shared.entity.Product.productCodeGroups -> product_code_group

      INFO: Mapping collection: com.idt911.app.shared.entity.Product.productCodes -> product_code

      INFO: Mapping collection: com.idt911.app.shared.entity.InstitutionType.institutions -> Institution

      INFO: Mapping collection: com.idt911.app.shared.entity.InstitutionProgramGroup.institutionPrograms -> institution_program

      INFO: Mapping collection: com.idt911.app.shared.entity.InstitutionProgram.customers -> Customer

      INFO: Mapping collection: com.idt911.app.shared.entity.Institution.institutionPrograms -> institution_program

      INFO: Mapping collection: com.idt911.app.shared.entity.ImpUser.impUserAddresses -> imp_user_address

      INFO: Mapping collection: com.idt911.app.shared.entity.ImpUser.impUserEmails -> imp_user_email

      INFO: Mapping collection: com.idt911.app.shared.entity.ImpUser.impUserPhones -> imp_user_phone

      INFO: Mapping collection: com.idt911.app.shared.entity.ImpSubscriber.impSubscriberAssignments -> imp_subscriber_assignment

      INFO: Mapping collection: com.idt911.app.shared.entity.CustomerEnrollment.customerProductAssignments -> customer_product_assignment

      INFO: Mapping collection: com.idt911.app.shared.entity.Customer.customerEnrollments -> customer_enrollment

      INFO: Mapping collection: com.idt911.app.shared.entity.Customer.customerPhones -> customer_phone

      INFO: Mapping collection: com.idt911.app.shared.entity.Customer.victims -> Victim

      INFO: Mapping collection: com.idt911.app.shared.entity.CsidSubscriber.csidSubscriberAssignments -> csid_subscriber_assignment

      INFO: Mapping collection: com.idt911.app.shared.entity.Country.regions -> Region

      INFO: Mapping collection: com.idt911.app.shared.entity.Victim.customerProductAssignmentSet -> customer_product_assignment

      INFO: Mapping collection: com.idt911.app.shared.entity.Merchant.institutionMerchants -> institution_merchant

      INFO: Mapping collection: com.idt911.app.shared.entity.FraudType.victimProductEntitlements -> victim_product_entitlement

      INFO: Hibernate Validator not found: ignoring

       

       

      INFO: Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

      INFO: Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

      INFO: Using provided datasource

      INFO: RDBMS: PostgreSQL, version: 9.1.3

      INFO: JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.4 JDBC4 (build 703)

      INFO: Using dialect: org.hibernate.dialect.PostgreSQLDialect

      INFO: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException

      INFO: Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory

      INFO: instantiating TransactionManagerLookup: org.hibernate.transaction.SunONETransactionManagerLookup

      INFO: instantiated TransactionManagerLookup

      INFO: Automatic flush during beforeCompletion(): disabled

      INFO: Automatic session close at end of transaction: disabled

      INFO: JDBC batch size: 15

      INFO: JDBC batch updates for versioned data: disabled

      INFO: Scrollable result sets: enabled

      INFO: JDBC3 getGeneratedKeys(): enabled

      INFO: Connection release mode: auto

      INFO: Default schema: public

      INFO: Default batch fetch size: 1

      INFO: Generate SQL with comments: disabled

      INFO: Order SQL updates by primary key: disabled

      INFO: Order SQL inserts for batching: disabled

      INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

      INFO: Using ASTQueryTranslatorFactory

      INFO: Query language substitutions: {}

      INFO: JPA-QL strict compliance: enabled

      INFO: Second-level cache: disabled

      INFO: Query cache: disabled

      INFO: Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory

      INFO: Optimize cache for minimal puts: disabled

      INFO: Structured second-level cache entries: disabled

      INFO: Statistics: disabled

      INFO: Deleted entity synthetic identifier rollback: disabled

      INFO: Default entity-mode: pojo

      INFO: Named query checking : enabled

      INFO: Check Nullability in Core (should be disabled when Bean Validation is on): disabled

      INFO: building session factory

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > orderByFragment(order-by)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > sortSpecification({sort specification})

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > sortKeySpecification(sort key)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > sortKey($PlaceHolder$.report_date)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < sortKey(null)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < sortKeySpecification(desc)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > orderingSpecification(desc)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < orderingSpecification(null)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < sortSpecification(null)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < orderByFragment(null)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > orderByFragment(order-by)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > sortSpecification({sort specification})

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > sortKeySpecification(sort key)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > sortKey($PlaceHolder$.id)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < sortKey(null)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < sortKeySpecification(asc)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: > orderingSpecification(asc)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < orderingSpecification(null)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < sortSpecification(null)

      INFO: The log message is empty or null. Please log an issue against the component in the logger field.

      INFO: < orderByFragment(null)

      INFO: Not binding factory to JNDI, no JNDI name configured

      INFO: JNDI InitialContext properties:{}

       

       

      WARNING: Error while trying to load Bean Class com.idt911.app.shared.validator.MatchingPropertyValidator : java.lang.NoClassDefFoundError: org/hibernate/validator/Validator

      WARNING: Error while trying to load Bean Class com.idt911.app.shared.validator.RelativeDateRangeValidator : java.lang.NoClassDefFoundError: org/hibernate/validator/Validator

      WARNING: Error while trying to load Bean Class WEB-INF.classes.com.idt911.payments.PaymentGateway : java.lang.ClassNotFoundException: WEB-INF.classes.com.idt911.payments.PaymentGateway

      WARNING: Error while trying to load Bean Class WEB-INF.classes.com.idt911.payments.anet.AuthorizeNetGatewayTest : java.lang.ClassNotFoundException: WEB-INF.classes.com.idt911.payments.anet.AuthorizeNetGatewayTest

      WARNING: Error while trying to load Bean Class WEB-INF.classes.com.idt911.payments.anet.AuthorizeNetGateway : java.lang.ClassNotFoundException: WEB-INF.classes.com.idt911.payments.anet.AuthorizeNetGateway

      WARNING: Error while trying to load Bean Class WEB-INF.classes.com.idt911.payments.PaymentInfo : java.lang.ClassNotFoundException: WEB-INF.classes.com.idt911.payments.PaymentInfo

      SEVERE: log4j:WARN No appenders could be found for logger (org.jboss.solder.logging.internal).

      SEVERE: log4j:WARN Please initialize the log4j system properly.

      SEVERE: log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

       

       

      INFO: Initializing Mojarra 2.1.6 (SNAPSHOT 20111206) for context '/AuthorizeNetGatewayTest'

       

       

      INFO: PWC1412: WebModule[null] ServletContext.log():Context initialized.... Bootstrapping encryption

      INFO: Using encryption passphrase system property

      INFO: Initializing the Transparent Encryption subsystem

      INFO: WEB0671: Loading application [AuthorizeNetGatewayTest] at [/AuthorizeNetGatewayTest]

      INFO: AuthorizeNetGatewayTest was successfully deployed in 4,361 milliseconds.

      {code}

       

      So I can't figure out what the missing dependency is.

       

      For completeness, here is my test class:

       

      {code:java}

      package com.idt911.payments.anet;

       

       

      import static org.junit.Assert.assertNotNull;

      import static org.junit.Assert.assertSame;

       

       

      import javax.inject.Inject;

       

       

      import net.authorize.Environment;

       

       

      import org.jboss.arquillian.container.test.api.Deployment;

      import org.jboss.arquillian.junit.Arquillian;

      import org.jboss.shrinkwrap.api.Archive;

      import org.jboss.shrinkwrap.api.ArchivePaths;

      import org.jboss.shrinkwrap.api.ShrinkWrap;

      import org.jboss.shrinkwrap.api.spec.WebArchive;

      import org.jboss.shrinkwrap.resolver.api.DependencyResolvers;

      import org.jboss.shrinkwrap.resolver.api.maven.EffectivePomMavenDependencyResolver;

      import org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver;

      import org.junit.Test;

      import org.junit.runner.RunWith;

       

       

      import com.idt911.app.shared.entity.ProductPurchase;

      import com.idt911.payments.PaymentGateway;

      import com.idt911.payments.PaymentInfo;

       

       

      @RunWith(Arquillian.class)

      public class AuthorizeNetGatewayTest {

       

       

          @Deployment

          public static Archive<?> createTestArchive() {

       

       

              EffectivePomMavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class).loadEffectivePom("pom.xml").importAllDependencies();

              //@formatter:off

              return ShrinkWrap.create(WebArchive.class, AuthorizeNetGatewayTest.class.getSimpleName() + ".war")

                      .addClasses(AuthorizeNetGateway.class, PaymentGateway.class, PaymentInfo.class)

                      .addAsLibraries(resolver.resolveAsFiles())

                      .addAsManifestResource("META-INF/beans.xml", ArchivePaths.create("beans.xml"))

                      .addAsWebInfResource("META-INF/persistence.xml", ArchivePaths.create("classes/META-INF/persistence.xml"))

                      ;

              //@formatter:on

          }

       

       

          @Inject

          @AuthorizeNet

          AuthorizeNetGateway gateway;

       

       

          @Test

          public void purchaseAnnuallyRecurringSub() {

       

       

              assertNotNull(gateway);

              ProductPurchase result = gateway.purchaseRecurringSubscription(null, null);

              assertNotNull(result);

          }

       

       

          @Test

          public void isSandboxEnvironment() {

       

       

              assertNotNull(gateway);

              Environment env = gateway.getEnvironment();

              assertNotNull(env);

              assertSame(Environment.SANDBOX, env);

          }

      }

      {code}

       

      ... and Arquillian dependencies:

       

      {code:xml}

          <dependency>

            <groupId>org.jboss.arquillian.junit</groupId>

            <artifactId>arquillian-junit-container</artifactId>

            <version>1.0.0.CR8</version>

            <scope>test</scope>

          </dependency>

          <dependency>

            <groupId>org.jboss.arquillian.container</groupId>

            <artifactId>arquillian-glassfish-remote-3.1</artifactId>

            <version>1.0.0.CR3</version>

            <scope>test</scope>

          </dependency>

          <dependency>

            <groupId>org.jboss.shrinkwrap.resolver</groupId>

            <artifactId>shrinkwrap-resolver-impl-maven</artifactId>

            <version>2.0.0-alpha-1</version>

            <scope>test</scope>

          </dependency>

      {code}

       

      ... and arquillian.xml:

       

      {code:xml}

      <?xml version="1.0"?>

      <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://jboss.org/schema/arquillian"

          xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

       

       

          <engine>

              <property name="deploymentExportPath">target/arquillian</property>

          </engine>

       

       

          <container qualifier="glassfish" default="true">

              <configuration>

                  <property name="adminHost">${test.glassfish.adminHost}</property>

                  <property name="adminPort">${test.glassfish.adminPort}</property>

                  <property name="adminHttps">${test.glassfish.adminHttps}</property>

                  <property name="adminUser">${test.glassfish.adminUser}</property>

                  <property name="adminPassword">${test.glassfish.adminPassword}</property>

              </configuration>

          </container>

       

       

      </arquillian>

      {code}

       

      If anyone has an idea what might be happening, I sure would appreciate it. I've been trying to get this running for 3 days now.

       

      Thanks

      = Eric

        • 1. Re: Unexplainable WELD-001408 in remote GlassFish 3.1.2
          atiyou

          HI Eric,

           

          Did you find where is the problem?

          I have the same exception when i build my WebArchive with ShrinkWrap resolver (version 2.0.0-alpha4)

           

          Tks for feedback

          • 2. Re: Unexplainable WELD-001408 in remote GlassFish 3.1.2
            macdaddyaz

            No, sorry. I never was able to get around it. I ended up abandoning Arquillian for the time being.

            • 3. Re: Unexplainable WELD-001408 in remote GlassFish 3.1.2
              alrubinger

              Looks like some ClassNotFoundExceptions and NoClassDefFoundErrors are hiding under it all:

               

              WARNING: Error while trying to load Bean Class com.idt911.app.shared.validator.MatchingPropertyValidator : java.lang.NoClassDefFoundError: org/hibernate/validator/Validator
              WARNING: Error while trying to load Bean Class com.idt911.app.shared.validator.RelativeDateRangeValidator : java.lang.NoClassDefFoundError: org/hibernate/validator/Validator
              WARNING: Error while trying to load Bean Class WEB-INF.classes.com.idt911.payments.PaymentGateway : java.lang.ClassNotFoundException: WEB-INF.classes.com.idt911.payments.PaymentGateway
              WARNING: Error while trying to load Bean Class WEB-INF.classes.com.idt911.payments.anet.AuthorizeNetGatewayTest : java.lang.ClassNotFoundException: WEB-INF.classes.com.idt911.payments.anet.AuthorizeNetGatewayTest
              WARNING: Error while trying to load Bean Class WEB-INF.classes.com.idt911.payments.anet.AuthorizeNetGateway : java.lang.ClassNotFoundException: WEB-INF.classes.com.idt911.payments.anet.AuthorizeNetGateway
              WARNING: Error while trying to load Bean Class WEB-INF.classes.com.idt911.payments.PaymentInfo : java.lang.ClassNotFoundException: WEB-INF.classes.com.idt911.payments.PaymentInfo

               

              Where are these in your ShrinkWrap archive used as your @Deployment?  "System.out.println(archive.toString(true))" should give some more context.

              • 4. Re: Unexplainable WELD-001408 in remote GlassFish 3.1.2
                macdaddyaz

                Hmm, looks like the same bad Hibernate Validator dependency that happened to rear its head the other day. We've since gotten rid of those Validators, so I'll try to give it another shot next week. Thanks for pointing that out.