5 Replies Latest reply on Apr 22, 2011 2:02 AM by Akshay Sahu

    Dependency Injection Jboss 5

    Gunnar Maluf Newbie

      Hello all,

      I am trying to use DI with Jboss and I am getting errors. I'm trying to follow the docs in this site:
      http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html_single/index.html

      and in this one: http://www.mastertheboss.com/en/web-interfaces/166-ejb-injection-in-servlet-fixed-in-jboss-as-5.html

      I have the following bean:

      package ejb3inaction.example.buslogic;
      
      import javax.ejb.Local;
      import javax.ejb.Stateless;
      
      import ejb3inaction.example.buslogic.interfaces.PlaceBidLocal;
      import ejb3inaction.example.persistence.Bid;
      
      /**
       * Session Bean implementation class PlaceBidBean
       */
      @Stateless(name="PlaceBidBeanLocal")
      @Local(PlaceBidLocal.class)
      public class PlaceBidBean implements PlaceBidLocal {
      
       /**
       * Default constructor.
       */
       public PlaceBidBean() {
       // TODO Auto-generated constructor stub
       }
      
       @Override
       public Bid addBid(Bid bid) {
       System.out.println("Adding bid, Bidder Id = " + bid.getBidderID()
       + " item ID = " + bid.getItemID() + " bid amount = "
       + bid.getBidAmount());
       return null;
       }
      }
      


      and the servlet:
      package ejb3inaction.example.buslogic;
      
      import java.io.IOException;
      
      import javax.ejb.EJB;
      import javax.naming.InitialContext;
      import javax.servlet.ServletException;
      import javax.servlet.http.HttpServlet;
      import javax.servlet.http.HttpServletRequest;
      import javax.servlet.http.HttpServletResponse;
      
      import ejb3inaction.example.buslogic.interfaces.PlaceBidLocal;
      import ejb3inaction.example.persistence.Bid;
      
      /**
       * Servlet implementation class PlaceBidServlet
       */
      public class PlaceBidServlet extends HttpServlet {
       private static final long serialVersionUID = 1L;
       @EJB( name="PlaceBidBeanLocal")
       private PlaceBidLocal placeBid;
       private InitialContext context;
       /**
       * @throws Exception
       * @see HttpServlet#HttpServlet()
       */
       public PlaceBidServlet() throws Exception {
       super();
       /*Properties properties = new Properties();
       properties.put("java.naming.factory.initial",
       "org.jnp.interfaces.NamingContextFactory");
       properties.put("java.naming.factory.url.pkgs",
       "=org.jboss.naming:org.jnp.interfaces");
       properties.put("java.naming.provider.url", "jnp://localhost:1099");
       context = new InitialContext(properties);*/
      
       }
      
       /**
       * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
       */
       protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       // TODO Auto-generated method stub
       long bidderID = 1;//Long.parseLong(request.getParameter("bidder_id"));
       long itemID = 1;//Integer.parseInt(request.getParameter("item_id"));
       double bidAmount = 15.0;//Double.parseDouble(request.getParameter("bid_amount"));
      
       Bid bid = new Bid();
       bid.setBidAmount(bidAmount);
       bid.setBidderID(bidderID);
       bid.setItemID(itemID);
      
       /*try {
       placeBid = (PlaceBidLocal) context.lookup("PlaceBidBean/local");
       } catch (NamingException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
       }*/
       placeBid.addBid(bid);
       }
      
       /**
       * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
       */
       protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       // TODO Auto-generated method stub
       }
      
      }
      


      If I don't comment the constructor and use JNDI to locate my bean it works fine, but when I try to use DI it gives me an error EJBTHREE-1289 while trying to start the server. I am deploying the servlet as a web application(Dynamic Web project) and the beans as a EJB application (EJB project) using eclipse.

      Log:
      
      23:14:00,624 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      23:14:00,624 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)
      23:14:00,625 INFO [ServerImpl] Bootstrap URL: null
      23:14:00,625 INFO [ServerImpl] Home Dir: C:\jboss-5.1.0.GA
      23:14:00,625 INFO [ServerImpl] Home URL: file:/C:/jboss-5.1.0.GA/
      23:14:00,625 INFO [ServerImpl] Library URL: file:/C:/jboss-5.1.0.GA/lib/
      23:14:00,626 INFO [ServerImpl] Patch URL: null
      23:14:00,626 INFO [ServerImpl] Common Base URL: file:/C:/jboss-5.1.0.GA/common/
      23:14:00,626 INFO [ServerImpl] Common Library URL: file:/C:/jboss-5.1.0.GA/common/lib/
      23:14:00,633 INFO [ServerImpl] Server Name: default
      23:14:00,633 INFO [ServerImpl] Server Base Dir: C:\jboss-5.1.0.GA\server
      23:14:00,633 INFO [ServerImpl] Server Base URL: file:/C:/jboss-5.1.0.GA/server/
      23:14:00,633 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.1.0.GA/server/default/conf/
      23:14:00,633 INFO [ServerImpl] Server Home Dir: C:\jboss-5.1.0.GA\server\default
      23:14:00,633 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.1.0.GA/server/default/
      23:14:00,633 INFO [ServerImpl] Server Data Dir: C:\jboss-5.1.0.GA\server\default\data
      23:14:00,633 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.1.0.GA/server/default/lib/
      23:14:00,634 INFO [ServerImpl] Server Log Dir: C:\jboss-5.1.0.GA\server\default\log
      23:14:00,634 INFO [ServerImpl] Server Native Dir: C:\jboss-5.1.0.GA\server\default\tmp\native
      23:14:00,634 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.1.0.GA\server\default\tmp
      23:14:00,634 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.1.0.GA\server\default\tmp\deploy
      23:14:08,881 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
      23:14:11,655 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
      23:14:11,657 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
      23:14:11,984 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.1.0.GA\server\default\tmp
      23:14:12,417 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
      23:14:14,901 INFO [ServerInfo] Java version: 1.6.0_07,Sun Microsystems Inc.
      23:14:14,901 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
      23:14:14,901 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 10.0-b23,Sun Microsystems Inc.
      23:14:14,901 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86
      23:14:14,951 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=Cp1252
      23:14:15,161 INFO [JMXKernel] Legacy JMX core initialized
      23:14:17,352 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@1991ba7[domain=default, server=default, name=default]
      23:14:20,300 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
      23:14:38,345 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
      23:14:38,345 INFO [NativeServerConfig] 3.1.2.GA
      23:14:39,258 INFO [AttributeCallbackItem] Owner callback not implemented.
      23:14:40,568 INFO [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@13c296b[ defaultDomain='jboss' ]
      23:15:25,509 WARN [MappedReferenceMetaDataResolverDeployer] Unresolved references exist in JBossWebMetaData:[#web-app:AnnotatedEJBReferenceMetaData{name=PlaceBidBeanLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface ejb3inaction.example.buslogic.interfaces.PlaceBidLocal}]
      23:15:25,531 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30968234{vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ActionBazar.jar/}
      23:15:25,531 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30968234{vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ActionBazar.jar/}
      23:15:25,531 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30968234{vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ActionBazar.jar/}
      23:15:25,531 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30968234{vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ActionBazar.jar/}
      23:15:25,532 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@22766466{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
      23:15:25,532 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@22766466{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
      23:15:25,532 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@22766466{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
      23:15:25,532 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@22766466{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
      23:15:29,008 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
      23:15:29,169 INFO [MailService] Mail Service bound to java:/Mail
      23:15:32,884 WARN [JBossASSecurityMetadataStore] 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.
      23:15:32,901 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
      23:15:33,000 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
      23:15:33,102 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
      23:15:33,102 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      23:15:33,402 INFO [TransactionManagerService] Initializing recovery manager
      23:15:33,612 INFO [TransactionManagerService] Recovery manager configured
      23:15:33,612 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      23:15:33,651 INFO [TransactionManagerService] Starting transaction recovery manager
      23:15:34,183 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Program Files\PC Connectivity Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\Common Files\DivX Shared\;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program Files\psqlJDBC\postgresql-8.3-603.jdbc2.jar;C:\Program Files\QuickTime\QTSystem\
      23:15:34,236 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
      23:15:34,240 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
      23:15:34,272 INFO [StandardService] Starting service jboss.web
      23:15:34,275 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA
      23:15:34,319 INFO [Catalina] Server startup in 79 ms
      23:15:34,340 INFO [TomcatDeployment] deploy, ctxPath=/invoker
      23:15:35,520 INFO [TomcatDeployment] deploy, ctxPath=/jbossws
      23:15:35,559 INFO [TomcatDeployment] deploy, ctxPath=/web-console
      23:15:36,004 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
      23:15:36,017 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
      23:15:36,036 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
      23:15:36,051 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
      23:15:36,083 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
      23:15:36,188 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
      23:15:36,212 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      23:15:36,215 INFO [RAMJobStore] RAMJobStore initialized.
      23:15:36,215 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
      23:15:36,215 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      23:15:36,215 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      23:15:37,029 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      23:15:38,193 INFO [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started
      23:15:38,269 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      23:15:38,275 INFO [ConnectionFactoryJNDIMapper] 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
      23:15:38,275 INFO [ConnectionFactoryJNDIMapper] 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
      23:15:38,318 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
      23:15:38,318 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@102dfd9 started
      23:15:38,319 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
      23:15:38,319 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1d6ca0c started
      23:15:38,320 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      23:15:38,322 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
      23:15:38,322 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@dca162 started
      23:15:38,432 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      23:15:38,952 INFO [JBossASKernel] Created KernelDeployment for: ActionBazar.jar
      23:15:38,959 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=ActionBazar.jar,name=PlaceBidBeanLocal,service=EJB3
      23:15:38,959 INFO [JBossASKernel] with dependencies:
      23:15:38,959 INFO [JBossASKernel] and demands:
      23:15:38,959 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      23:15:38,959 INFO [JBossASKernel] and supplies:
      23:15:38,959 INFO [JBossASKernel] jndi:PlaceBidBeanLocal/local
      23:15:38,959 INFO [JBossASKernel] jndi:PlaceBidBeanLocal/local-ejb3inaction.example.buslogic.interfaces.PlaceBidLocal
      23:15:38,959 INFO [JBossASKernel] jndi:PlaceBidBeanLocal/remote
      23:15:38,959 INFO [JBossASKernel] Class:ejb3inaction.example.buslogic.interfaces.PlaceBidLocal
      23:15:38,959 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=ActionBazar.jar,name=PlaceBidBeanLocal,service=EJB3) to KernelDeployment of: ActionBazar.jar
      23:15:38,960 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=ActionBazar.jar,name=PlaceOrderBean,service=EJB3
      23:15:38,960 INFO [JBossASKernel] with dependencies:
      23:15:38,960 INFO [JBossASKernel] and demands:
      23:15:38,960 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      23:15:38,960 INFO [JBossASKernel] and supplies:
      23:15:38,960 INFO [JBossASKernel] jndi:PlaceOrderBean/remote-ejb3inaction.example.buslogic.interfaces.PlaceOrderRemote
      23:15:38,960 INFO [JBossASKernel] jndi:PlaceOrderBean/remote
      23:15:38,960 INFO [JBossASKernel] Class:ejb3inaction.example.buslogic.interfaces.PlaceOrderRemote
      23:15:38,960 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=ActionBazar.jar,name=PlaceOrderBean,service=EJB3) to KernelDeployment of: ActionBazar.jar
      23:15:38,966 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@1eb01e5{name=jboss.j2ee:jar=ActionBazar.jar,name=PlaceBidBeanLocal,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
      23:15:38,966 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@151aae{name=jboss.j2ee:jar=ActionBazar.jar,name=PlaceOrderBean,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
      23:15:39,070 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=ActionBazar.jar,name=PlaceBidBeanLocal,service=EJB3
      23:15:39,077 INFO [EJBContainer] STARTED EJB: ejb3inaction.example.buslogic.PlaceBidBean ejbName: PlaceBidBeanLocal
      23:15:39,117 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
      
       PlaceBidBeanLocal/local - EJB3.x Default Local Business Interface
       PlaceBidBeanLocal/local-ejb3inaction.example.buslogic.interfaces.PlaceBidLocal - EJB3.x Local Business Interface
      
      23:15:39,247 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=ActionBazar.jar,name=PlaceOrderBean,service=EJB3
      23:15:39,248 INFO [EJBContainer] STARTED EJB: ejb3inaction.example.buslogic.PlaceOrderBean ejbName: PlaceOrderBean
      23:15:39,271 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
      
       PlaceOrderBean/remote - EJB3.x Default Remote Business Interface
       PlaceOrderBean/remote-ejb3inaction.example.buslogic.interfaces.PlaceOrderRemote - EJB3.x Remote Business Interface
      
      23:15:39,462 INFO [JBossASKernel] Created KernelDeployment for: profileservice-secured.jar
      23:15:39,462 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
      23:15:39,462 INFO [JBossASKernel] with dependencies:
      23:15:39,462 INFO [JBossASKernel] and demands:
      23:15:39,462 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
      23:15:39,462 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      23:15:39,462 INFO [JBossASKernel] and supplies:
      23:15:39,462 INFO [JBossASKernel] Class:org.jboss.profileservice.spi.ProfileService
      23:15:39,462 INFO [JBossASKernel] jndi:SecureProfileService/remote
      23:15:39,462 INFO [JBossASKernel] jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService
      23:15:39,462 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3) to KernelDeployment of: profileservice-secured.jar
      23:15:39,463 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
      23:15:39,463 INFO [JBossASKernel] with dependencies:
      23:15:39,463 INFO [JBossASKernel] and demands:
      23:15:39,463 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      23:15:39,463 INFO [JBossASKernel] and supplies:
      23:15:39,463 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager
      23:15:39,464 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management.deploy.DeploymentManager
      23:15:39,464 INFO [JBossASKernel] jndi:SecureDeploymentManager/remote
      23:15:39,464 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3) to KernelDeployment of: profileservice-secured.jar
      23:15:39,464 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
      23:15:39,464 INFO [JBossASKernel] with dependencies:
      23:15:39,464 INFO [JBossASKernel] and demands:
      23:15:39,464 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      23:15:39,464 INFO [JBossASKernel] and supplies:
      23:15:39,464 INFO [JBossASKernel] jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
      23:15:39,464 INFO [JBossASKernel] Class:org.jboss.deployers.spi.management.ManagementView
      23:15:39,465 INFO [JBossASKernel] jndi:SecureManagementView/remote
      23:15:39,465 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3) to KernelDeployment of: profileservice-secured.jar
      23:15:39,465 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@1286f78{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
      23:15:39,465 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@16a973f{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
      23:15:39,466 INFO [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@1682962{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
      23:15:39,511 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
      23:15:39,512 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureDeploymentManager ejbName: SecureDeploymentManager
      23:15:39,538 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
      
       SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface
       SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager - EJB3.x Remote Business Interface
      
      23:15:39,579 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
      23:15:39,579 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView
      23:15:39,591 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
      
       SecureManagementView/remote - EJB3.x Default Remote Business Interface
       SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView - EJB3.x Remote Business Interface
      
      23:15:39,656 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
      23:15:39,657 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService
      23:15:39,668 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
      
       SecureProfileService/remote - EJB3.x Default Remote Business Interface
       SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface
      
      23:15:39,821 INFO [TomcatDeployment] deploy, ctxPath=/admin-console
      23:15:40,028 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
      23:15:43,650 INFO [TomcatDeployment] deploy, ctxPath=/ActionBazarWeb
      23:15:43,683 WARN [WebEJBRemoteHandler] EJBTHREE-1289: Using legacy EjbEncInjector, because mappedName for enc "env/PlaceBidBeanLocal", field "null" is null (container.environmentRefGroup.annotatedEjbReferences = [AnnotatedEJBReferenceMetaData{name=PlaceBidBeanLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface ejb3inaction.example.buslogic.interfaces.PlaceBidLocal}])
      23:15:43,688 ERROR [TomcatDeployment] ENC setup failed
      java.lang.IllegalStateException: Resolution should not happen via injection container
       at org.jboss.web.tomcat.service.TomcatInjectionContainer.getEjbJndiName(TomcatInjectionContainer.java:640)
       at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:80)
       at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
       at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
       at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
       at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
       at $Proxy38.start(Unknown Source)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
       at org.jboss.system.ServiceController.start(ServiceController.java:460)
       at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
       at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
       at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
       at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
       at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
       at org.jboss.Main.boot(Main.java:221)
       at org.jboss.Main$1.run(Main.java:556)
       at java.lang.Thread.run(Unknown Source)
      23:15:44,389 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/ActionBazarWeb state=Create mode=Manual requiredState=Installed
      org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-5.1.0.GA/server/default/tmp/5c4o12s-2pwbll-g0pymqzh-1-g0pyosjy-9r/ActionBazarWeb.war/ deployment failed
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
       at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
       at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
       at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
       at $Proxy38.start(Unknown Source)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
       at org.jboss.system.ServiceController.start(ServiceController.java:460)
       at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
       at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
       at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
       at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
       at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
       at org.jboss.Main.boot(Main.java:221)
       at org.jboss.Main$1.run(Main.java:556)
       at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Resolution should not happen via injection container
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:483)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
       ... 66 more
      Caused by: java.lang.IllegalStateException: Resolution should not happen via injection container
       at org.jboss.web.tomcat.service.TomcatInjectionContainer.getEjbJndiName(TomcatInjectionContainer.java:640)
       at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:80)
       at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
       ... 69 more
      23:15:44,407 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ActionBazarWeb.war/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-5.1.0.GA/server/default/tmp/5c4o12s-2pwbll-g0pymqzh-1-g0pyosjy-9r/ActionBazarWeb.war/ deployment failed
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
       at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
       at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
       at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
       at $Proxy38.start(Unknown Source)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
       at org.jboss.system.ServiceController.start(ServiceController.java:460)
       at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
       at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
       at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
       at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
       at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
       at org.jboss.Main.boot(Main.java:221)
       at org.jboss.Main$1.run(Main.java:556)
       at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Resolution should not happen via injection container
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:483)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
       ... 66 more
      Caused by: java.lang.IllegalStateException: Resolution should not happen via injection container
       at org.jboss.web.tomcat.service.TomcatInjectionContainer.getEjbJndiName(TomcatInjectionContainer.java:640)
       at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:80)
       at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
       ... 69 more
      23:15:44,461 INFO [TomcatDeployment] deploy, ctxPath=/
      23:15:44,612 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
      23:15:44,779 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      DEPLOYMENTS IN ERROR:
       Deployment "vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ActionBazarWeb.war/" is in error due to the following reason(s): java.lang.IllegalStateException: Resolution should not happen via injection container
      
      23:15:44,792 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
      23:15:44,811 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      23:15:44,816 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 1m:44s:116ms
      


      Any help?

      Best regards
      Gunnar