4 Replies Latest reply on Jun 20, 2010 3:48 PM by Brian unknown

    JNDI name not bound

    Brian unknown Newbie

       

      Hi. I'm going crazy trying to fix this exception: javax.naming.NameNotFoundException: lawless not bound

      This is a Stripes web app built in Intellij and being deployed on Jboss 4.2.3 (Using 4.2.3 because Stripes has issues with later versions. I have successfully used 4.2.3 in the past so I know that's not the problem). I have one session bean called "ListingManagerBean". I checked the jboss jndi tree, and its nowhere to be found. So it seems the problem is that the jar isn't being deployed. I looked in my ear file, and it has both the war and jar. The ear structure looks like this:

      lawless.ear
      |- lawless.jar
      |- lawless.war
      |- [a bunch of other jars]
      |- META-INF
         |- application.xml
         |- MANIFEST.MF

      application.xml looks like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://java.sun.com/xml/ns/javaee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
        http://java.sun.com/xml/ns/javaee/application_5.xsd"
                   version="5">
          <display-name>Lawless</display-name>
          <module id="Lawless-EJB">
              <ejb>lawless.jar</ejb>
          </module>
          <module id="Lawless-Web">
              <web>
                  <web-uri>lawless.war</web-uri>
                  <context-root>/</context-root>
              </web>
          </module>
      </application>

      Am I missing something? Help please.

        • 1. Re: JNDI name not bound
          jaikiran pai Master

          Is it a EJB2.x or EJB3 jar? Does it have a ejb-jar.xml? Please post the console logs (not server.log) from the time the application is being deployed.

          • 2. Re: JNDI name not bound
            Brian unknown Newbie

            Thanks for the reply.  Its EJB 3.  There is no ejb-jar.xml.

             

            This is the console when jboss starts up:

             

            /Applications/jboss-4.2.3.GA/bin/run.sh -c default
            run.sh: Could not set maximum file descriptor limit: unlimited
            /Applications/jboss-4.2.3.GA/bin/run.sh: line 89: ulimit: open files: cannot modify limit: Invalid argument
            =========================================================================
              JBoss Bootstrap Environment
              JBOSS_HOME: /Applications/jboss-4.2.3.GA
              JAVA: /Library/Java/Home/bin/java
              JAVA_OPTS: -Dprogram.name=run.sh -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:53133,suspend=y,server=n
              CLASSPATH: /Applications/jboss-4.2.3.GA/bin/run.jar
            =========================================================================
            Connected to the target VM, address: '127.0.0.1:53133', transport: 'socket'
            09:44:07,658 INFO  [Server] Starting JBoss (MX MicroKernel)...
            09:44:07,659 INFO  [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
            09:44:07,661 INFO  [Server] Home Dir: /Applications/jboss-4.2.3.GA
            09:44:07,661 INFO  [Server] Home URL: file:/Applications/jboss-4.2.3.GA/
            09:44:07,662 INFO  [Server] Patch URL: null
            09:44:07,662 INFO  [Server] Server Name: default
            09:44:07,663 INFO  [Server] Server Home Dir: /Applications/jboss-4.2.3.GA/server/default
            09:44:07,663 INFO  [Server] Server Home URL: file:/Applications/jboss-4.2.3.GA/server/default/
            09:44:07,663 INFO  [Server] Server Log Dir: /Applications/jboss-4.2.3.GA/server/default/log
            09:44:07,663 INFO  [Server] Server Temp Dir: /Applications/jboss-4.2.3.GA/server/default/tmp
            09:44:07,664 INFO  [Server] Root Deployment Filename: jboss-service.xml
            09:44:08,039 INFO  [ServerInfo] Java version: 1.6.0_15,Apple Inc.
            09:44:08,039 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 14.1-b02-90,Apple Inc.
            09:44:08,039 INFO  [ServerInfo] OS-System: Mac OS X 10.6.3,x86_64
            09:44:08,552 INFO  [Server] Core system initialized
            09:44:10,958 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
            09:44:10,960 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
            09:44:11,526 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
            09:44:11,526 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
            09:44:11,809 INFO  [TransactionManagerService] Starting recovery manager
            09:44:11,909 INFO  [TransactionManagerService] Recovery manager started
            09:44:11,909 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
            09:44:14,800 ERROR [STDERR] [Deprecated] Xalan: org.apache.xml.serializer.XMLEntities
            09:44:15,267 INFO  [EJB3Deployer] Starting java:comp multiplexer
            09:44:18,184 INFO  [NativeServerConfig] JBoss Web Services - Native
            09:44:18,184 INFO  [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
            09:44:19,249 INFO  [Embedded] Catalina naming disabled
            09:44:19,461 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Applications/IntelliJ IDEA 8.1.3.app/Contents/Resources/Java:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
            09:44:19,536 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
            09:44:20,254 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-1443
            09:44:20,255 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
            09:44:20,255 INFO  [Catalina] Initialization processed in 1006 ms
            09:44:20,256 INFO  [StandardService] Starting service jboss.web
            09:44:20,259 INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
            09:44:20,328 INFO  [Catalina] Server startup in 72 ms
            09:44:20,469 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
            09:44:21,195 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
            09:44:21,407 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
            09:44:21,508 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
            09:44:22,469 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
            09:44:23,298 INFO  [MailService] Mail Service bound to java:/Mail
            09:44:23,499 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
            09:44:23,540 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
            09:44:23,570 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
            09:44:23,601 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
            09:44:23,702 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
            09:44:23,750 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
            09:44:23,802 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
            09:44:23,815 INFO  [QuartzResourceAdapter] start quartz!!!
            09:44:23,890 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
            09:44:23,967 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
            09:44:23,971 INFO  [RAMJobStore] RAMJobStore initialized.
            09:44:23,975 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
            09:44:23,975 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
            09:44:23,975 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
            09:44:24,226 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=blunt-ds' to JNDI name 'java:blunt-ds'
            09:44:24,336 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=castOfShadows-ds' to JNDI name 'java:castOfShadows-ds'
            09:44:25,046 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
            09:44:25,353 INFO  [A] Bound to JNDI name: queue/A
            09:44:25,355 INFO  [B] Bound to JNDI name: queue/B
            09:44:25,356 INFO  [C] Bound to JNDI name: queue/C
            09:44:25,358 INFO  [D] Bound to JNDI name: queue/D
            09:44:25,359 INFO  [ex] Bound to JNDI name: queue/ex
            09:44:25,380 INFO  [testTopic] Bound to JNDI name: topic/testTopic
            09:44:25,382 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
            09:44:25,384 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
            09:44:25,387 INFO  [testQueue] Bound to JNDI name: queue/testQueue
            09:44:25,429 INFO  [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
            09:44:25,467 INFO  [DLQ] Bound to JNDI name: queue/DLQ
            09:44:25,629 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
            09:44:25,872 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=lawless-ds' to JNDI name 'java:lawless-ds'
            09:44:26,011 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=sloop-ds' to JNDI name 'java:sloop-ds'
            09:44:26,158 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
            09:44:26,671 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
            09:44:26,821 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-1443
            09:44:26,857 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
            09:44:26,891 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 19s:225ms
            Connected to server
            [2010-06-20 09:44:26,921] Facet javaEEApplication: Facet is being deployed, please wait...
            09:44:27,359 INFO  [EARDeployer] Init J2EE application: file:/Users/bcooper/Projects/Lawless/out/lawless.ear
            09:44:36,848 INFO  [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
            09:44:36,853 INFO  [JmxKernelAbstraction] installing MBean: persistence.units:ear=lawless.ear,jar=lawless.jar,unitName=lawless with dependencies:
            09:44:36,853 INFO  [JmxKernelAbstraction]      jboss.jca:name=lawless-ds,service=DataSourceBinding
            09:44:36,856 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=lawless.ear,jar=lawless.jar,unitName=lawless
            09:44:36,887 INFO  [Version] Hibernate EntityManager 3.2.1.GA
            09:44:36,908 INFO  [Version] Hibernate Annotations 3.2.1.GA
            09:44:36,918 INFO  [Environment] Hibernate 3.2.4.sp1
            09:44:36,928 INFO  [Environment] hibernate.properties not found
            09:44:36,931 INFO  [Environment] Bytecode provider name : javassist
            09:44:36,938 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
            09:44:37,136 INFO  [Ejb3Configuration] found EJB3 @MappedSuperclass: com.lawless.entity.BaseEntity
            09:44:37,137 INFO  [Ejb3Configuration] found EJB3 Entity bean: com.lawless.entity.Category
            09:44:37,174 INFO  [Configuration] Reading mappings from resource : META-INF/orm.xml
            09:44:37,178 INFO  [Ejb3Configuration] [PersistenceUnit: lawless] no META-INF/orm.xml found
            09:44:37,255 INFO  [AnnotationBinder] Binding entity from annotated class: com.lawless.entity.Category
            09:44:37,266 INFO  [QueryBinder] Binding Named query: category_findAll => select c from Category c order by c.name
            09:44:37,309 INFO  [EntityBinder] Bind entity com.lawless.entity.Category on table Category
            09:44:37,579 INFO  [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
            09:44:37,585 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource
            09:44:37,822 INFO  [SettingsFactory] RDBMS: MySQL, version: 5.1.39
            09:44:37,823 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19 Oct 2006) $, $Revision: 5908 $ )
            09:44:37,884 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
            09:44:37,892 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
            09:44:37,896 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
            09:44:37,899 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
            09:44:37,899 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
            09:44:37,899 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
            09:44:37,899 INFO  [SettingsFactory] JDBC batch size: 15
            09:44:37,899 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
            09:44:37,901 INFO  [SettingsFactory] Scrollable result sets: enabled
            09:44:37,902 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
            09:44:37,902 INFO  [SettingsFactory] Connection release mode: auto
            09:44:37,903 INFO  [SettingsFactory] Maximum outer join fetch depth: 2
            09:44:37,903 INFO  [SettingsFactory] Default batch fetch size: 1
            09:44:37,903 INFO  [SettingsFactory] Generate SQL with comments: disabled
            09:44:37,903 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
            09:44:37,903 INFO  [SettingsFactory] Order SQL inserts for batching: disabled
            09:44:37,904 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
            09:44:37,908 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
            09:44:37,908 INFO  [SettingsFactory] Query language substitutions: {}
            09:44:37,908 INFO  [SettingsFactory] JPA-QL strict compliance: enabled
            09:44:37,908 INFO  [SettingsFactory] Second-level cache: enabled
            09:44:37,908 INFO  [SettingsFactory] Query cache: disabled
            09:44:37,909 INFO  [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
            09:44:37,913 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
            09:44:37,913 INFO  [SettingsFactory] Cache region prefix: lawless_ear,lawless_jar,lawless
            09:44:37,913 INFO  [SettingsFactory] Structured second-level cache entries: disabled
            09:44:37,927 INFO  [SettingsFactory] Statistics: disabled
            09:44:37,927 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
            09:44:37,928 INFO  [SettingsFactory] Default entity-mode: pojo
            09:44:37,928 INFO  [SettingsFactory] Named query checking : enabled
            09:44:37,986 INFO  [SessionFactoryImpl] building session factory
            09:44:38,388 INFO  [SessionFactoryObjectFactory] Factory name: persistence.units:ear=lawless.ear,jar=lawless.jar,unitName=lawless
            09:44:38,390 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
            09:44:38,398 INFO  [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:ear=lawless.ear,jar=lawless.jar,unitName=lawless
            09:44:38,398 WARN  [SessionFactoryObjectFactory] InitialContext did not implement EventContext
            09:44:38,404 INFO  [SchemaUpdate] Running hbm2ddl schema update
            09:44:38,404 INFO  [SchemaUpdate] fetching database metadata
            09:44:38,417 INFO  [SchemaUpdate] updating schema
            09:44:38,444 INFO  [TableMetadata] table found: lawless.Category
            09:44:38,444 INFO  [TableMetadata] columns: [id, modifieddate, name, createddate]
            09:44:38,444 INFO  [TableMetadata] foreign keys: []
            09:44:38,444 INFO  [TableMetadata] indexes: [primary]
            09:44:38,445 INFO  [SchemaUpdate] schema update complete
            09:44:38,449 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
            09:44:39,012 INFO  [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
            09:44:39,019 INFO  [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=lawless.ear,jar=lawless.jar,name=ListingManagerBean,service=EJB3 with dependencies:
            09:44:39,019 INFO  [JmxKernelAbstraction]      persistence.units:ear=lawless.ear,jar=lawless.jar,unitName=lawless
            09:44:39,090 INFO  [EJBContainer] STARTED EJB: com.lawless.manager.ListingManagerBean ejbName: ListingManagerBean
            09:44:39,116 INFO  [EJB3Deployer] Deployed: file:/Applications/jboss-4.2.3.GA/server/default/tmp/deploy/tmp2113655771296867926lawless.ear-contents/lawless.jar
            09:44:39,137 WARN  [TomcatDeployer] Failed to map vhost: www.lawless.com
            09:44:39,137 WARN  [TomcatDeployer] Failed to map vhost: lawless.com
            09:44:39,137 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp2113655771296867926lawless.ear-contents/lawless-exp.war/
            09:44:39,212 WARN  [config] Unable to process deployment descriptor for context '/conf'
            09:44:40,150 WARN  [config] Unable to process deployment descriptor for context '/data'
            09:44:40,287 WARN  [config] Unable to process deployment descriptor for context '/deploy'
            09:44:40,501 WARN  [config] Unable to process deployment descriptor for context '/lib'
            09:44:40,586 WARN  [config] Unable to process deployment descriptor for context '/log'
            09:44:40,690 WARN  [config] Unable to process deployment descriptor for context '/tmp'
            09:44:40,837 WARN  [config] Unable to process deployment descriptor for context '/work'
            09:44:41,595 INFO  [BootstrapPropertyResolver] Class implementing/extending ActionResolver found in web.xml: com.lawless.controller.framework.LawlessActionResolver
            09:44:41,601 INFO  [ResolverUtil] Scanning for classes in [/Applications/jboss-4.2.3.GA/server/default/tmp/deploy/tmp2113655771296867926lawless.ear-contents/lawless-exp.war/WEB-INF/classes/com/lawless/controller/action/] matching criteria: is assignable to ActionBean
            09:44:41,647 INFO  [DefaultLocalePicker] No locale list specified, defaulting to single locale: en_US
            09:44:41,668 INFO  [DefaultMultipartWrapperFactory] Using net.sourceforge.stripes.controller.multipart.CosMultipartWrapper as MultipartWrapper implementation.
            09:44:41,681 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for RequestInit
            09:44:41,681 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for BindingAndValidation
            09:44:41,681 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for EventHandling
            09:44:41,681 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for HandlerResolution
            09:44:41,681 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for RequestComplete
            09:44:41,681 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for ActionBeanResolution
            09:44:41,681 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for CustomValidation
            09:44:41,682 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for ResolutionExecution
            09:44:41,682 INFO  [StripesFilter] Stripes Initialization Complete. Version: 1.5.1, Build: 1102
            09:44:41,687 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp2113655771296867926lawless.ear-contents/lawless-exp.war/
            09:44:41,746 WARN  [config] Unable to process deployment descriptor for context '/conf'
            09:44:41,929 WARN  [config] Unable to process deployment descriptor for context '/data'
            09:44:42,091 WARN  [config] Unable to process deployment descriptor for context '/deploy'
            09:44:42,182 WARN  [config] Unable to process deployment descriptor for context '/lib'
            09:44:42,277 WARN  [config] Unable to process deployment descriptor for context '/log'
            09:44:42,400 WARN  [config] Unable to process deployment descriptor for context '/tmp'
            09:44:42,492 WARN  [config] Unable to process deployment descriptor for context '/work'
            09:44:43,568 INFO  [BootstrapPropertyResolver] Class implementing/extending ActionResolver found in web.xml: com.lawless.controller.framework.LawlessActionResolver
            09:44:43,577 INFO  [ResolverUtil] Scanning for classes in [/Applications/jboss-4.2.3.GA/server/default/tmp/deploy/tmp2113655771296867926lawless.ear-contents/lawless-exp.war/WEB-INF/classes/com/lawless/controller/action/] matching criteria: is assignable to ActionBean
            09:44:43,628 INFO  [DefaultLocalePicker] No locale list specified, defaulting to single locale: en_US
            09:44:43,658 INFO  [DefaultMultipartWrapperFactory] Using net.sourceforge.stripes.controller.multipart.CosMultipartWrapper as MultipartWrapper implementation.
            09:44:43,676 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for ActionBeanResolution
            09:44:43,676 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for RequestComplete
            09:44:43,676 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for CustomValidation
            09:44:43,676 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for EventHandling
            09:44:43,676 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for HandlerResolution
            09:44:43,676 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for BindingAndValidation
            09:44:43,676 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for RequestInit
            09:44:43,676 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for ResolutionExecution
            09:44:43,677 INFO  [StripesFilter] Stripes Initialization Complete. Version: 1.5.1, Build: 1102
            09:44:43,683 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp2113655771296867926lawless.ear-contents/lawless-exp.war/
            09:44:44,270 INFO  [BootstrapPropertyResolver] Class implementing/extending ActionResolver found in web.xml: com.lawless.controller.framework.LawlessActionResolver
            09:44:44,277 INFO  [ResolverUtil] Scanning for classes in [/Applications/jboss-4.2.3.GA/server/default/tmp/deploy/tmp2113655771296867926lawless.ear-contents/lawless-exp.war/WEB-INF/classes/com/lawless/controller/action/] matching criteria: is assignable to ActionBean
            09:44:44,357 INFO  [DefaultLocalePicker] No locale list specified, defaulting to single locale: en_US
            09:44:44,385 INFO  [DefaultMultipartWrapperFactory] Using net.sourceforge.stripes.controller.multipart.CosMultipartWrapper as MultipartWrapper implementation.
            09:44:44,405 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for RequestComplete
            09:44:44,405 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for EventHandling
            09:44:44,405 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for RequestInit
            09:44:44,405 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for CustomValidation
            09:44:44,405 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for ActionBeanResolution
            09:44:44,405 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for ResolutionExecution
            09:44:44,405 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for HandlerResolution
            09:44:44,405 WARN  [DefaultConfiguration] Interceptor class net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor is configured to run more than once for BindingAndValidation
            09:44:44,406 INFO  [StripesFilter] Stripes Initialization Complete. Version: 1.5.1, Build: 1102
            09:44:44,446 INFO  [EARDeployer] Started J2EE application: file:/Users/bcooper/Projects/Lawless/out/lawless.ear
            [2010-06-20 09:44:44,449] Facet javaEEApplication: Facet is deployed successfully
            This is the console after I hit the web page with my browser:
            09:45:22,761 INFO  [ExpressionValidator] Expression validation will be performed using: net.sourceforge.stripes.validation.expression.Jsp21ExpressionExecutor
            09:45:22,895 WARN  [DefaultExceptionHandler] Unhandled exception caught by the Stripes default exception handler.
            com.google.inject.ProvisionException: Error while locating instance
              bound to com.lawless.manager.ListingManager
              for member at com.lawless.controller.action.CategoriesAction.listingManager(CategoriesAction.java:15)
            at com.google.inject.InjectorImpl$SingleFieldInjector.inject(InjectorImpl.java:486)
            at com.google.inject.InjectorImpl.injectMembers(InjectorImpl.java:674)
            at com.google.inject.InjectorImpl$8.call(InjectorImpl.java:682)
            at com.google.inject.InjectorImpl$8.call(InjectorImpl.java:681)
            at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:747)
            at com.google.inject.InjectorImpl.injectMembers(InjectorImpl.java:680)
            at com.lawless.controller.interceptor.GuiceInterceptor.intercept(GuiceInterceptor.java:19)
            at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
            at net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
            at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
            at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)
            at net.sourceforge.stripes.controller.DispatcherHelper.resolveActionBean(DispatcherHelper.java:102)
            at net.sourceforge.stripes.controller.DispatcherServlet.resolveActionBean(DispatcherServlet.java:238)
            at net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:141)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at net.sourceforge.stripes.controller.DynamicMappingFilter$2.doFilter(DynamicMappingFilter.java:364)
            at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
            at net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:351)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            at java.lang.Thread.run(Thread.java:637)
            Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException: lawless not bound
            at com.google.inject.jndi.JndiIntegration$JndiProvider.get(JndiIntegration.java:62)
            at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
            at com.google.inject.InjectorImpl$SingleFieldInjector.inject(InjectorImpl.java:473)
            ... 35 more
            Caused by: javax.naming.NameNotFoundException: lawless not bound
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
            at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
            at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
            at javax.naming.InitialContext.lookup(InitialContext.java:392)
            at com.google.inject.jndi.JndiIntegration$JndiProvider.get(JndiIntegration.java:59)
            ... 37 more
            09:45:22,897 ERROR [[default]] Servlet.service() for servlet default threw exception
            javax.naming.NameNotFoundException: lawless not bound
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
            at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
            at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
            at javax.naming.InitialContext.lookup(InitialContext.java:392)
            at com.google.inject.jndi.JndiIntegration$JndiProvider.get(JndiIntegration.java:59)
            at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
            at com.google.inject.InjectorImpl$SingleFieldInjector.inject(InjectorImpl.java:473)
            at com.google.inject.InjectorImpl.injectMembers(InjectorImpl.java:674)
            at com.google.inject.InjectorImpl$8.call(InjectorImpl.java:682)
            at com.google.inject.InjectorImpl$8.call(InjectorImpl.java:681)
            at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:747)
            at com.google.inject.InjectorImpl.injectMembers(InjectorImpl.java:680)
            at com.lawless.controller.interceptor.GuiceInterceptor.intercept(GuiceInterceptor.java:19)
            at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
            at net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
            at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
            at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)
            at net.sourceforge.stripes.controller.DispatcherHelper.resolveActionBean(DispatcherHelper.java:102)
            at net.sourceforge.stripes.controller.DispatcherServlet.resolveActionBean(DispatcherServlet.java:238)
            at net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:141)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at net.sourceforge.stripes.controller.DynamicMappingFilter$2.doFilter(DynamicMappingFilter.java:364)
            at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
            at net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:351)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            at java.lang.Thread.run(Thread.java:637)
            • 3. Re: JNDI name not bound
              jaikiran pai Master

              From the logs:

               

              09:44:39,090 INFO  [EJBContainer] STARTED EJB:  com.lawless.manager.ListingManagerBean ejbName: ListingManagerBean

              It does deploy the bean. Can you post the JNDIView tree contents? Maybe it's being bound to a JNDI name which you are not expecting.

              • 4. Re: JNDI name not bound
                Brian unknown Newbie

                 

                Global JNDI Namespace

                 

                  +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
                  +- jmx (class: org.jnp.interfaces.NamingContext)
                  |   +- invoker (class: org.jnp.interfaces.NamingContext)
                  |   |   +- RMIAdaptor (proxy: $Proxy47 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
                  |   +- rmi (class: org.jnp.interfaces.NamingContext)
                  |   |   +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
                  +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
                  +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
                  +- UserTransactionSessionFactory (proxy: $Proxy15 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
                  +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
                  +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
                  +- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
                  +- persistence.units:ear=lawless.ear,jar=lawless.jar,unitName=lawless (class: org.hibernate.impl.SessionFactoryImpl)
                  +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
                  +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
                  +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
                  +- queue (class: org.jnp.interfaces.NamingContext)
                  |   +- A (class: org.jboss.mq.SpyQueue)
                  |   +- testQueue (class: org.jboss.mq.SpyQueue)
                  |   +- ex (class: org.jboss.mq.SpyQueue)
                  |   +- DLQ (class: org.jboss.mq.SpyQueue)
                  |   +- D (class: org.jboss.mq.SpyQueue)
                  |   +- C (class: org.jboss.mq.SpyQueue)
                  |   +- B (class: org.jboss.mq.SpyQueue)
                  +- topic (class: org.jnp.interfaces.NamingContext)
                  |   +- testDurableTopic (class: org.jboss.mq.SpyTopic)
                  |   +- testTopic (class: org.jboss.mq.SpyTopic)
                  |   +- securedTopic (class: org.jboss.mq.SpyTopic)
                  +- console (class: org.jnp.interfaces.NamingContext)
                  |   +- PluginManager (proxy: $Proxy48 implements interface org.jboss.console.manager.PluginManagerMBean)
                  +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
                  +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
                  +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
                  +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
                  +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)