0 Replies Latest reply on Sep 26, 2005 12:06 AM by zaid haque

    Weblogic 9 + JBoss Embeddable

    zaid haque Newbie

      Hi Bill,

      Thanks for your response. With my hevay schedule at work, I try to test Emebeddable EJB3 with Weblogic as a part of my intrest.

      I have 2 queries:

      (1)
      As you suggested with my previous query, I built the embedded-war and deployed directly. I get follwoing error

      ERROR 26-09 07:35:05,593 (AbstractController.java:incrementState:332) -Error in
      stalling to Create: name=EJBDeployment state=Configured
      java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot
      find class : null
      at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfiguration
      Factory(PolicyConfigurationFactory.java:143)
      at org.jboss.ejb3.security.JaccHelper.initialiseJacc(JaccHelper.java:48)

      at org.jboss.ejb3.embedded.EJB3StandaloneDeployment.createPolicyConfigur
      ation(EJB3StandaloneDeployment.java:53)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:238)
      at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.create(EJB3StandaloneD
      eployer.java:390)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(R
      eflectMethodJoinPoint.java:57)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$Li
      fecycleAction.installAction(KernelControllerContextActions.java:312)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$Ke
      rnelControllerContextAction.install(KernelControllerContextActions.java:84)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install
      (AbstractControllerContextActions.java:36)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:211)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:560)
      at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:328)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:411)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:361)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:207)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:133)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
      (AbstractKernelDeployer.java:257)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
      s(AbstractKernelDeployer.java:236)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(Abs
      tractKernelDeployer.java:87)
      at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXM
      LDeployer.java:70)
      at org.jboss.ejb3.embedded.ServletBootstrapListener.deployXmlResource(Se
      rvletBootstrapListener.java:54)
      at org.jboss.ejb3.embedded.ServletBootstrapListener.contextInitialized(S
      ervletBootstrapListener.java:101)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run
      (EventsManager.java:336)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(Eve
      ntsManager.java:79)
      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
      pServletContext.java:1549)
      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCon
      text.java:2565)
      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav
      a:859)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:321)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(Module
      ListenerInvoker.java:114)
      at weblogic.application.internal.flow.StartModulesFlow.activate(StartMod
      ulesFlow.java:28)
      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.ja
      va:635)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
      river.java:26)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.
      java:257)
      at weblogic.application.internal.DeploymentStateChecker.activate(Deploym
      entStateChecker.java:154)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(Ap
      pContainerInvoker.java:80)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicD
      eployment.java:383)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromSer
      verLifecycle(BasicDeployment.java:560)
      at weblogic.management.deploy.internal.DeploymentAdapter$1.activate(Depl
      oymentAdapter.java:50)
      at weblogic.management.deploy.internal.AppTransition$2.transitionApp(App
      Transition.java:30)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionA
      pps(ConfiguredDeployments.java:232)
      at weblogic.management.deploy.internal.ConfiguredDeployments.activate(Co
      nfiguredDeployments.java:168)
      at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(Conf
      iguredDeployments.java:122)
      at weblogic.management.deploy.internal.DeploymentServerService.resume(De
      ploymentServerService.java:166)
      at weblogic.management.deploy.internal.DeploymentServerService.start(Dep
      loymentServerService.java:81)
      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkMan
      agerImpl.java:518)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
      Caused by: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFacto
      ry : property not set : javax.security.jacc.PolicyConfigurationFactory.provider
      at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfiguration
      Factory(PolicyConfigurationFactory.java:128)
      ... 53 more
      <26-Sep-2005 07:35:05 o'clock GMT+04:00> <BEA-101162> <User def
      ined listener org.jboss.ejb3.embedded.ServletBootstrapListener failed: java.lang
      .RuntimeException: java.lang.RuntimeException: java.lang.IllegalStateException:
      Incompletely deployed:

      *** DEPLOYMENTS IN ERROR:
      EJBDeployment -> java.lang.ClassNotFoundException: JACC:Error PolicyConfiguratio
      nFactory : cannot find class : null
      .
      java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalStateEx
      ception: Incompletely deployed:

      *** DEPLOYMENTS IN ERROR:
      EJBDeployment -> java.lang.ClassNotFoundException: JACC:Error PolicyConfiguratio
      nFactory : cannot find class : null

      at org.jboss.ejb3.embedded.ServletBootstrapListener.contextInitialized(S
      ervletBootstrapListener.java:107)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run
      (EventsManager.java:336)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(Eve
      ntsManager.java:79)
      Truncated. see log file for complete stacktrace
      java.lang.RuntimeException: java.lang.IllegalStateException: Incompletely deploy
      ed:

      *** DEPLOYMENTS IN ERROR:
      EJBDeployment -> java.lang.ClassNotFoundException: JACC:Error PolicyConfiguratio
      nFactory : cannot find class : null

      at org.jboss.ejb3.embedded.ServletBootstrapListener.deployXmlResource(Se
      rvletBootstrapListener.java:60)
      at org.jboss.ejb3.embedded.ServletBootstrapListener.contextInitialized(S
      ervletBootstrapListener.java:101)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run
      (EventsManager.java:336)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      Truncated. see log file for complete stacktrace
      java.lang.IllegalStateException: Incompletely deployed:

      *** DEPLOYMENTS IN ERROR:
      EJBDeployment -> java.lang.ClassNotFoundException: JACC:Error PolicyConfiguratio
      nFactory : cannot find class : null

      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalVa
      lidate(AbstractKernelDeployer.java:216)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(A
      bstractKernelDeployer.java:134)
      at org.jboss.ejb3.embedded.ServletBootstrapListener.deployXmlResource(Se
      rvletBootstrapListener.java:55)
      at org.jboss.ejb3.embedded.ServletBootstrapListener.contextInitialized(S
      ervletBootstrapListener.java:101)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run
      (EventsManager.java:336)
      Truncated. see log file for complete stacktrace
      >
      <26-Sep-2005 07:35:05 o'clock GMT+04:00> <BEA-149231> <Unable
      to set the activation state to true for the application 'standalone'.
      weblogic.management.DeploymentException:
      at weblogic.application.internal.flow.StartModulesFlow.activate(StartMod
      ulesFlow.java:30)
      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.ja
      va:635)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
      river.java:26)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.
      java:257)
      at weblogic.application.internal.DeploymentStateChecker.activate(Deploym
      entStateChecker.java:154)
      Truncated. see log file for complete stacktrace
      java.lang.IllegalStateException: Incompletely deployed:

      *** DEPLOYMENTS IN ERROR:
      EJBDeployment -> java.lang.ClassNotFoundException: JACC:Error PolicyConfiguratio
      nFactory : cannot find class : null

      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalVa
      lidate(AbstractKernelDeployer.java:216)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(A
      bstractKernelDeployer.java:134)
      at org.jboss.ejb3.embedded.ServletBootstrapListener.deployXmlResource(Se
      rvletBootstrapListener.java:55)
      at org.jboss.ejb3.embedded.ServletBootstrapListener.contextInitialized(S
      ervletBootstrapListener.java:101)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run
      (EventsManager.java:336)
      Truncated. see log file for complete stacktrace
      >
      <26-Sep-2005 07:35:05 o'clock GMT+04:00> <BEA-000365>
      <Server state changed to ADMIN>
      <26-Sep-2005 07:35:05 o'clock GMT+04:00> <BEA-000365>
      <Server state changed to RESUMING>
      <26-Sep-2005 07:35:06 o'clock GMT+04:00> <BEA-002613> <Channel
      "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, h
      ttp.>
      <26-Sep-2005 07:35:06 o'clock GMT+04:00> <BEA-002613> <Channel
      "Default" is now listening on 10.12.86.43:7001 for protocols iiop, t3, ldap, ht
      tp.>
      <26-Sep-2005 07:35:06 o'clock GMT+04:00> <BEA-000331>
      <Started WebLogic Admin Server "AdminServer" for domain "ekibenew" running in De
      velopment Mode>
      <26-Sep-2005 07:35:06 o'clock GMT+04:00> <BEA-000365>
      <Server state changed to RUNNING>
      <26-Sep-2005 07:35:06 o'clock GMT+04:00> <BEA-000360>
      <Server started in RUNNING mode>
      WARN 26-09 07:37:35,140 (InternalManagedConnectionPool.java:doDestroy:554) -Ex
      ception destroying ManagedConnection org.jboss.resource.connectionmanager.TxConn
      ectionManager$TxConnectionEventListener@1441dc0[state=DESTROYED mc=org.jboss.res
      ource.adapter.jdbc.local.LocalManagedConnection@17583b9 handles=0 lastUse=112770
      5705562 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JB
      ossManagedConnectionPool$OnePool@1b22ed context=org.jboss.resource.connectionman
      ager.InternalManagedConnectionPool@192322e xaResource=org.jboss.resource.connect
      ionmanager.TxConnectionManager$LocalXAResource@11ca33b txSync=null]
      java.lang.NoClassDefFoundError: org/hsqldb/lib/IntKeyIntValueHashMap$KeySet
      at org.hsqldb.lib.IntKeyIntValueHashMap.keySet(Unknown Source)
      at org.hsqldb.CompiledStatementManager.removeSession(Unknown Source)
      at org.hsqldb.Session.close(Unknown Source)
      at org.hsqldb.jdbc.jdbcConnection.close(Unknown Source)
      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.destroy(
      BaseWrapperManagedConnection.java:251)
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.do
      Destroy(InternalManagedConnectionPool.java:550)
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.re
      moveTimedOut(InternalManagedConnectionPool.java:415)
      at org.jboss.resource.connectionmanager.IdleRemover$1.run(IdleRemover.ja
      va:77)
      at java.lang.Thread.run(Thread.java:595)


      (2)
      Also what is the change I required in ejb3-deployment.xml??? I still get following when I run my own EJB3 created:

      CLASSPATH component D:\zaid\downloads\jboss\jboss-EJB-3.0_Embeddable_ALPHA\conf\
      log4j.xml: java.util.zip.ZipException: error in opening zip file
      javax.naming.NameNotFoundException: com.emirates.ibe.testejb3.business.interface
      s.Calculator not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at jsp_servlet.__calculator.jspInit(__calculator.java:122)
      at weblogic.servlet.jsp.JspBase.init(JspBase.java:27)
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
      ubSecurityHelper.java:265)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
      tyHelper.java:61)
      at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
      ifecycleHelper.java:58)
      at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHel
      per.java:48)
      at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
      mpl.java:502)
      at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:225)
      at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:224)
      at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(Servlet
      StubImpl.java:383)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:298)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:165)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:3022)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:1925)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:1848)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1288)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)


      Your response is higly appreciated

      Rgds

      Zaid