12 Replies Latest reply on Mar 29, 2012 6:44 AM by Stephen Coy

    Jboss As7.1.0 Final local EJB lookup problem

    Ali Yagmur Newbie

      I have been trying to port an application from Jboss4.2.3 to Jboss 7.1.0 final version. I solved some problems I encountered. But I can't find any solution for this problem.

       

      1. If I deploy xxx-ejb.jar alone and I can lookup remotely and call the ejb method.

       

      2. But If I deploy xxx-ejb.jar in xxx-ear.ear file with xxx-war.war,

                     I cannot reach the local interface, Exception: NameNotFoundException.

                     I can reach the remote interface, get it, but when I try to call the method of remote ejb, i get : IllegalArgumentException.

       

      While testing  second case, I use the same code, same jars and same jboss-client-properties (war/METAINF) with first case.

      I'm stuck in.Could you please help me?

       

      Thanks in advance,

        • 1. Re: Jboss As7.1.0 Final local EJB lookup problem
          thinksteep thinksteep Novice

          Hi Ali,

           

          Are you getting any errors? Could you post your lookup code? Recently I did upgrade for same versions and things are going fine so far.

           

          Thank you,

          • 2. Re: Jboss As7.1.0 Final local EJB lookup problem
            Ali Yagmur Newbie

            I send lookup code :

             

            String JBOSS_CONTEXT="org.jboss.naming.remote.client.InitialContextFactory";;

            Properties props = new Properties();

            props.put(Context.INITIAL_CONTEXT_FACTORY, JBOSS_CONTEXT);

            props.put(Context.PROVIDER_URL, "remote://localhost:4447");

            props.put(Context.SECURITY_PRINCIPAL, "testuser");

            props.put(Context.SECURITY_CREDENTIALS, "testpassword");

            context = new InitialContext(props);


            XXXRemote remote=(XXXRemote)context.lookup("xxx-ear/xxx-EJB//XXXBean!xxx.XXXRemote");

            System.out.println(remote.testMethod());


            XXXLocal local=(XXXLocal)context.lookup("xxx-ear/xxx-EJB//XXXBean!xxx.XXXLocal");

            System.out.println(local.testMethod());


            Error is too standard. I tried to understand but found nothing.

            • 3. Re: Jboss As7.1.0 Final local EJB lookup problem
              Prasad Deshpande Expert

              2. But If I deploy xxx-ejb.jar in xxx-ear.ear file with xxx-war.war,

                             I cannot reach the local interface, Exception: NameNotFoundException.

                             I can reach the remote interface, get it, but when I try to call the method of remote ejb, i get : IllegalArgumentException.

              Are you trying to lookup from remote client (separate VM) or from WAR file? Local interfaces are not allowed to looked-up from remote clients, that's against the specs.

               

              For remote interfaces, can you please attach server.logs?

              • 4. Re: Jboss As7.1.0 Final local EJB lookup problem
                Prasad Deshpande Expert
                I send lookup code :

                 

                String JBOSS_CONTEXT="org.jboss.naming.remote.client.InitialContextFactory";;

                Properties props = new Properties();

                props.put(Context.INITIAL_CONTEXT_FACTORY, JBOSS_CONTEXT);

                props.put(Context.PROVIDER_URL, "remote://localhost:4447");

                props.put(Context.SECURITY_PRINCIPAL, "testuser");

                props.put(Context.SECURITY_CREDENTIALS, "testpassword");

                context = new InitialContext(props);


                XXXRemote remote=(XXXRemote)context.lookup("xxx-ear/xxx-EJB//XXXBean!xxx.XXXRemote");

                System.out.println(remote.testMethod());


                XXXLocal local=(XXXLocal)context.lookup("xxx-ear/xxx-EJB//XXXBean!xxx.XXXLocal");

                System.out.println(local.testMethod());


                Error is too standard. I tried to understand but found nothing.

                If you are trying to create InitialContext from WAR that is part of same ear as your EJB jar, then you don't need to provide Initial Context Factory/Provider Url. You can simply create InitialContext() with no argument constructor & do a lookup. As I said in previous post, if this is remote client, then you won't be able to lookup local interface outside VM. Also for remote interface try adding "ejb:" to your lookup string (i.e. "ejb:xxx-ear/xxx-EJB/XXXBean!xxx.XXXRemote" )

                 

                Please refer to https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI for creating InitialContext().

                • 5. Re: Jboss As7.1.0 Final local EJB lookup problem
                  Ali Yagmur Newbie

                  I think I found some things.

                  My ear file :

                       xxx.ear

                            xxx.war

                            xxx.jar

                            xxx.sar

                   

                  I have some dependencies for jar, sar and war files.To represent these dependencies, i add subdeployment tag for them in jboss-deployment-structure.xml:

                   

                  <jboss-deployment-structure>

                      <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

                  <deployment>

                       <sub-deployment name="xxx.jar">

                            <dependencies>

                            </dependencies>

                       </sub-deployment>

                       <sub-deployment name="xxx.sar">

                            <dependencies>

                            </dependencies>

                       </sub-deployment>

                   

                       <sub-deployment name="xxx.war">

                            <dependencies>

                            </dependencies>

                       </sub-deployment>

                   

                  </deployment>

                   

                  If I don't set initialize-in-order to true (in application.xml), when I make a remote interface call i get IllegalArgumentException exception.

                   

                  If I set it to true, when i make a remote interface call, it works, but I get ClassNotFoundException/MarshallingException due to classes of xxx.jar does not see classes of xxx.war.

                   

                  I don't try it for local interface.

                   

                  Now, could you help me based on this information?

                   

                  Thank you in advance.

                   

                  Ps : I try to call ejb class from war class, but ejb class depends on war class.

                  • 6. Re: Jboss As7.1.0 Final local EJB lookup problem
                    Prasad Deshpande Expert

                    If I don't set initialize-in-order to true, when I make a remote interface call i get IllegalArgumentException exception.

                    If I set it to true, when i make a remote interface call, it works, but I get ClassNotFoundException/MarshallingException due to xxx.jar does not see xxx.war.

                    Do you mean to say your JAR is referring some classes in WAR file & because of which you have to set "initialize-in-order" in application.xml? If that's the case I'd suggest you to bundle those classes in a separate jar & drop that jar in EAR/lib directory. This way classes in newly created jar will be available to EJB jar & WAR both modules by default. I guess that way you may not even need to have "initialize-in-order".

                    Your EAR structure will be something like below :

                    EAR

                      +--- lib

                             +-- newly_created.jar & other helping jar's

                      +-- EJB.jar

                      +-- WAR files

                      +-- SAR files.

                     

                    Give it a try & see if you succeed. Also, make sure that your EAR does not have jndi.properties in it while creating InitialContext() with default constructor.

                    • 7. Re: Jboss As7.1.0 Final local EJB lookup problem
                      Ali Yagmur Newbie

                      Hi Prasad,

                       

                      while I was editing to correct my message, you sent me an answer:

                       

                      There is a cyclic dependency, as I stated in ps section of my message. War classes call ejb classes but at the same time ejb classes depends on war classes. Do you think that this design should be changed or it can work as it could in Jboss 4.2.3?

                       

                      I use initialize-in-order in application.xml because, as i saw, war file deploys faster than ejb file , thus classes of war  file couldn't find the beans.

                      • 8. Re: Jboss As7.1.0 Final local EJB lookup problem
                        Prasad Deshpande Expert

                        Structure of application that used to be with Jboss 4.2.3 & 7.1.1 is different, this does mean that you might have to consider repackaging application for issue like classloading etc.

                        There is a cyclic dependency, as I stated in ps section of my message. War classes call ejb classes but at the same time ejb classes depends on war classes. Do you think that this design should be changed or it can work as it could in Jboss 4.2.3?

                        when you say WAR classes call ejb classes, I assume you mean EJB interfaces and/or other helper classes. What you can do is you can package your interfaces separately in a jar and make that jar available to EJB's & WAR both by putting it in EAR/lib. That way you'll be able to decouple the dependency of EJB & WAR on each other. I personally would try to decouple that cyclic dependency.

                         

                         

                        I use initialize-in-order in application.xml because, as i saw, war file deploys faster than ejb file , thus classes of war  file couldn't find the beans.

                        well, that means setting "initialize-in-oder" is not really helping you. Also, having EJB deployed first before WAR makes sense as WAR is really dependent on EJB's. I'll suggest consider repackaging for your application.

                        1 of 1 people found this helpful
                        • 9. Re: Jboss As7.1.0 Final local EJB lookup problem
                          Ali Yagmur Newbie

                          Thank you Prasad,

                           

                          The reason of wish to get your idea on design change is "<ear-subdeployments-isolated>false</ear-subdeployments-isolated>" line make possible all the war classes to see all ejb classes and vice versa. But as I see, using "sub-deployment" tag breaks that facility down. Have you any plan to change this behaviour? If I can add dependencies of sub-deployment modules to ear dependencies section, probably my problem would be solved.

                           

                          Following your suggestion, After moving the necessary classes to ear/lib/xxx.jar, everythink works fine.

                           

                          Thank you for your help.

                          • 10. Re: Jboss As7.1.0 Final local EJB lookup problem
                            Ali Yagmur Newbie

                            Actually, I should correct "everything". Because remote ejb interface works fine, but local ejb interface lookup still fails.

                            Do you have any suggestion for it?

                             

                            server.log  :

                             

                            10:18:45,953 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 58) JBAS015537: Activating WebServices Extension

                            10:18:45,960 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 32) JBAS016200: Activating ConfigAdmin Subsystem

                            10:18:45,964 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 48) JBAS011800: Activating Naming Subsystem

                            10:18:45,967 INFO  [org.jboss.as.jacorb] (ServerService Thread Pool -- 38) JBAS016300: Activating JacORB Subsystem

                            10:18:45,973 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 54) JBAS013101: Activating Security Subsystem

                            10:18:45,984 INFO  [org.jboss.as.security] (MSC service thread 1-8) JBAS013100: Current PicketBox version=4.0.6.final

                            10:18:45,995 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 37) JBAS010280: Activating Infinispan subsystem.

                            10:18:45,999 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 49) JBAS011940: Activating OSGi Subsystem

                            10:18:46,090 INFO  [org.jboss.as.connector] (MSC service thread 1-5) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.7.Final)

                            10:18:46,124 INFO  [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service

                            10:18:46,179 INFO  [org.jboss.as.jaxr] (MSC service thread 1-1) Binding JAXR ConnectionFactory: java:jboss/jaxr/ConnectionFactory

                            10:18:46,216 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-5) JBAS015400: Bound mail session [java:jboss/mail/Default]

                            10:18:46,334 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-6) JBoss Web Services - Stack CXF Server 4.0.1.GA

                            10:18:46,338 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.1)

                            10:18:46,407 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080

                            10:18:46,529 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7.1.0.Final\standalone\deployments

                            10:18:46,534 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:9999

                            10:18:46,536 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /127.0.0.1:4447

                            10:18:46,539 WARN  [jacorb.codeset] (MSC service thread 1-5) Warning - unknown codeset (Cp1252) - defaulting to ISO-8859-1

                            10:18:46,579 INFO  [org.jboss.as.jacorb] (MSC service thread 1-5) JBAS016330: CORBA ORB Service started

                            10:18:46,585 WARN  [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal

                            10:18:46,588 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/cmsDS]

                            10:18:46,610 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=C:\jboss-as-7.1.0.Final\standalone\data\messagingjournal,bindingsDirectory=C:\jboss-as-7.1.0.Final\standalone\data\messagingbindings,largeMessagesDirectory=C:\jboss-as-7.1.0.Final\standalone\data\messaginglargemessages,pagingDirectory=C:\jboss-as-7.1.0.Final\standalone\data\messagingpaging)

                            10:18:46,613 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) Waiting to obtain live lock

                            10:18:46,630 INFO  [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (MSC service thread 1-2) Using NIO Journal

                            10:18:46,631 INFO  [org.jboss.as.jacorb] (MSC service thread 1-5) JBAS016328: CORBA Naming Service started

                            10:18:46,781 INFO  [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-2) Waiting to obtain live lock

                            10:18:46,782 INFO  [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-2) Live Server Obtained live lock

                            10:18:47,128 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-2) Started Netty Acceptor version 3.2.5.Final-a96d88c 127.0.0.1:5455 for CORE protocol

                            10:18:47,130 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-2) Started Netty Acceptor version 3.2.5.Final-a96d88c 127.0.0.1:5445 for CORE protocol

                            10:18:47,131 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) Server is now live

                            10:18:47,132 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) HornetQ Server version 2.2.11.Final (HQ_2_2_11_FINAL_AS7, 122) [8248f674-78bc-11e1-ad41-ac5920524153]) started

                            10:18:47,135 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-8) trying to deploy queue jms.queue.testQueue

                            10:18:47,140 INFO  [org.jboss.as.messaging] (MSC service thread 1-8) JBAS011601: Bound messaging object to jndi name java:/queue/test

                            10:18:47,141 INFO  [org.jboss.as.messaging] (MSC service thread 1-8) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/queue/test

                            10:18:47,151 INFO  [org.jboss.as.messaging] (MSC service thread 1-3) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory

                            10:18:47,159 INFO  [org.jboss.as.messaging] (MSC service thread 1-3) JBAS011601: Bound messaging object to jndi name java:/RemoteConnectionFactory

                            10:18:47,166 INFO  [org.jboss.as.messaging] (MSC service thread 1-5) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory

                            10:18:47,169 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-4) trying to deploy queue jms.topic.testTopic

                            10:18:47,174 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-2) JBAS010406: Registered connection factory java:/JmsXA

                            10:18:47,181 INFO  [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-2) HornetQ resource adaptor started

                            10:18:47,181 INFO  [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-2) IJ020002: Deployed: file://RaActivatorhornetq-ra

                            10:18:47,189 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-3) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]

                            10:18:47,228 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:/topic/test

                            10:18:47,230 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/topic/test

                            10:18:47,249 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.0.Final "Thunder" started in 2309ms - Started 168 of 244 services (75 services are passive or on-demand)

                            10:18:47,254 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "cms-ear.ear"

                            10:18:50,003 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "cms-ejb.jar"

                            10:18:50,003 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "cms-web.war"

                            10:18:50,003 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "cms-mbean.sar"

                            10:19:01,838 INFO  [org.jboss.as.jpa] (MSC service thread 1-6) JBAS011401: Read persistence.xml for default

                            10:19:01,930 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.cms-ear.ear.cms-mbean.sar" is using a private module ("org.jboss.as.jmx:main") which may be changed or removed in future versions without notice.

                            10:19:01,939 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.cms-ear.ear.cms-mbean.sar" is using a private module ("org.jboss.as.jmx:main") which may be changed or removed in future versions without notice.

                            10:19:02,160 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named TopolojiYonetimiFacadeBean in deployment unit subdeployment "cms-ejb.jar" of deployment "cms-ear.ear" are as follows:

                             

                            10:19:02,305 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named InventoryManagementFacadeBean in deployment unit subdeployment "cms-ejb.jar" of deployment "cms-ear.ear" are as follows:

                             

                                java:global/cms-ear/cms-ejb/InventoryManagementFacadeBean!de.xxx.cmsservice.envanter.InventoryManagementFacadeLocal

                                java:app/cms-ejb/InventoryManagementFacadeBean!de.xxx.cmsservice.envanter.InventoryManagementFacadeLocal

                                java:module/InventoryManagementFacadeBean!de.xxx.cmsservice.envanter.InventoryManagementFacadeLocal

                                java:global/cms-ear/cms-ejb/InventoryManagementFacadeBean

                                java:app/cms-ejb/InventoryManagementFacadeBean

                                java:module/InventoryManagementFacadeBean

                             

                            10:19:02,379 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named GenericEAOBean in deployment unit subdeployment "cms-ejb.jar" of deployment "cms-ear.ear" are as follows:

                             

                                java:global/cms-ear/cms-ejb/GenericEAOBean!de.xxx.cmspersistence.GenericEAOLocal

                                java:app/cms-ejb/GenericEAOBean!de.xxx.cmspersistence.GenericEAOLocal

                                java:module/GenericEAOBean!de.xxx.cmspersistence.GenericEAOLocal

                                java:global/cms-ear/cms-ejb/GenericEAOBean

                                java:app/cms-ejb/GenericEAOBean

                                java:module/GenericEAOBean

                             

                            10:19:02,415 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named AlarmManagementFacadeBean in deployment unit subdeployment "cms-ejb.jar" of deployment "cms-ear.ear" are as follows:

                             

                                java:global/cms-ear/cms-ejb/AlarmManagementFacadeBean!de.xxx.cmsservice.alarm.AlarmManagementFacadeLocal

                                java:app/cms-ejb/AlarmManagementFacadeBean!de.xxx.cmsservice.alarm.AlarmManagementFacadeLocal

                                java:module/AlarmManagementFacadeBean!de.xxx.cmsservice.alarm.AlarmManagementFacadeLocal

                                java:jboss/exported/cms-ear/cms-ejb/AlarmManagementFacadeBean!de.xxx.cmsservice.alarm.AlarmManagementFacadeLocal

                                java:global/cms-ear/cms-ejb/AlarmManagementFacadeBean

                                java:app/cms-ejb/AlarmManagementFacadeBean

                                java:module/AlarmManagementFacadeBean

                             

                            10:19:02,484 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("com.sun.jsf-impl:main") which may be changed or removed in future versions without notice.

                            10:19:02,486 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("com.sun.jsf-impl:main") which may be changed or removed in future versions without notice.

                            10:19:02,488 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.apache.velocity:main") which may be changed or removed in future versions without notice.

                            10:19:02,491 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.apache.velocity:main") which may be changed or removed in future versions without notice.

                            10:19:02,493 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.apache.xml-resolver:main") which may be changed or removed in future versions without notice.

                            10:19:02,501 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.apache.xml-resolver:main") which may be changed or removed in future versions without notice.

                            10:19:02,503 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.codehaus.jackson.jackson-core-asl:main") which may be changed or removed in future versions without notice.

                            10:19:02,509 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.codehaus.jackson.jackson-core-asl:main") which may be changed or removed in future versions without notice.

                            10:19:02,511 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.codehaus.jackson.jackson-mapper-asl:main") which may be changed or removed in future versions without notice.

                            10:19:02,514 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.codehaus.jackson.jackson-mapper-asl:main") which may be changed or removed in future versions without notice.

                            10:19:02,516 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.jacorb:main") which may be changed or removed in future versions without notice.

                            10:19:02,517 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.jacorb:main") which may be changed or removed in future versions without notice.

                            10:19:02,520 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.jaxen:main") which may be changed or removed in future versions without notice.

                            10:19:02,521 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.jaxen:main") which may be changed or removed in future versions without notice.

                            10:19:02,523 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.jboss.as.web:main") which may be changed or removed in future versions without notice.

                            10:19:02,530 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.cms-ear.ear.cms-web.war" is using a private module ("org.jboss.as.web:main") which may be changed or removed in future versions without notice.

                            10:19:03,440 INFO  [stdout] (MSC service thread 1-4) nntStarting start() StartupService invoked

                             

                            10:19:03,441 INFO  [stdout] (MSC service thread 1-7) nntStarting start() CMSService invoked

                             

                            10:19:03,441 INFO  [de.xxx.cmscommon.jmx.mbean.StartupService] (MSC service thread 1-4) StartupService basladi

                            10:19:03,442 INFO  [stdout] (MSC service thread 1-7) SnmpAdaptor henuz sisteme kaydedilmemis

                             

                            10:19:03,890 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-5) Add Service

                            id=MDBService

                            address=http://localhost:8080/cms-ejb/MDBService

                            implementor=de.xxx.cmswebservices.endpoint.MDBService

                            invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker

                            serviceName={urn:MDBService}MDBServiceService

                            portName={urn:MDBService}MDBServicePort

                            wsdlLocation=null

                            mtomEnabled=false

                            properties=[org.jboss.as.webservices.metadata.modelEjbComponentViewName -> service jboss.deployment.subunit."cms-ear.ear"."cms-ejb.jar".component.MDBService.VIEW."de.xxx.cmswebservices.endpoint.MDBService".SERVICE_ENDPOINT]

                            10:19:04,062 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-5) Creating Service {urn:MDBService}MDBServiceService from class de.xxx.cmswebservices.endpoint.MDBServiceLocal

                            10:19:04,892 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-5) Setting the server's publish address to be http://localhost:8080/cms-ejb/MDBService

                            10:19:05,221 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-5) WSDL published to: file:/C:/jboss-as-7.1.0.Final/standalone/data/wsdl/cms-ear.ear/cms-ejb.jar/MDBServiceService.wsdl

                            10:19:05,286 INFO  [org.jboss.as.webservices] (MSC service thread 1-4) JBAS015539: Starting service jboss.ws.port-component-link

                            10:19:05,299 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011402: Starting Persistence Unit Service 'cms-ear.ear/cms-ejb.jar#default'

                            10:19:05,406 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-4) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

                            10:19:05,411 INFO  [org.hibernate.Version] (MSC service thread 1-4) HHH000412: Hibernate Core {4.0.1.Final}

                            10:19:05,412 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-4) HHH000206: hibernate.properties not found

                            10:19:05,414 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-4) HHH000021: Bytecode provider name : javassist

                            10:19:05,426 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-4) HHH000204: Processing PersistenceUnitInfo [

                                name: default

                                ...]

                            10:19:06,013 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-4) HHH000139: Illegal use of @Table in a subclass of a SINGLE_TABLE hierarchy: de.xxx.cmsmodel.security.CertificateEquipment

                            10:19:06,019 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-4) HHH000139: Illegal use of @Table in a subclass of a SINGLE_TABLE hierarchy: de.xxx.cmsmodel.message.

                            MessageTYP

                            10:19:06,059 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-4) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

                            10:19:06,583 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-4) HHH000400: Using dialect: org.hibernatespatial.oracle.OracleSpatial10gDialect

                            10:19:06,601 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-4) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

                            10:19:06,604 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-4) HHH000397: Using ASTQueryTranslatorFactory

                            10:19:06,626 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-4) Hibernate Validator 4.2.0.Final

                            10:19:07,880 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000228: Running hbm2ddl schema update

                            10:19:07,880 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000102: Fetching database metadata

                            10:19:08,053 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000396: Updating schema

                            10:19:08,109 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.EXXE

                            10:19:08,111 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, exxe, exxe_id, date, obj_version, stt]

                            10:19:08,112 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fkb944188dbaf24885]

                            10:19:08,113 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [ffds_pk]

                            10:19:08,134 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.EXXE_AUD

                            10:19:08,135 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [revtype, id, rev, exxe, tarih, stt]

                            10:19:08,136 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fkd16737defc1c52a2]

                            10:19:08,138 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [aciklama_aud_pk]

                            10:19:08,158 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.ALARM_ESK

                            10:19:08,159 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, max_cms_ccffd, min_cms_ccffd, max_orl, max_try, min_try_lose, max_total_lose, max_kon_lose, max_ek_lose, max_ter, obj_version]

                            10:19:08,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

                            10:19:08,163 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [alarm_essk_pk]

                            10:19:08,187 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.ALARM_ESK_AUD

                            10:19:08,188 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [revtype, id, max_cms_length, rev, min_cms_uzunluk, max_orl, max_yansima, min_toplam_kayip, max_toplam_kayip, max_kon_kaybi, max_ek_kaybi, max_egim]

                            10:19:08,191 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk77299cdffc1c52a2]

                            10:19:08,193 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

                            10:19:08,209 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.ALARM_TYPE_LEVEL

                            10:19:08,210 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, seviye, tip, obj_version]

                            10:19:08,213 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

                            10:19:08,214 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [idx_alarm_seviye]

                            10:19:08,239 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.ALARM_TEST

                            10:19:08,240 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [ariza_id, optik_mesafe, cihaz_id, olcum_sonuc_id, alarm_durumu, aciklama, tip, obj_version, id, cbs_alarm_durumu, kumulatif_optik_mesafe, kullanici_id, olusma_tarihi, dtype, alarm_yorumu, onay_tarihi, bitis_tarihi, lif_id]

                            10:19:08,243 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fke5a9a600a3c1d62f, fke5a9a6001e5824fb, fke5a9a6003a0b89dc, fke5a9a6005d4e6835, fke5a9a600c3458e70]

                            10:19:08,245 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [sys_c0034643]

                            10:19:08,685 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.INVENTORY_ELEMANI

                            10:19:08,686 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [onay_durumu, bir_on_tar, dev_al_tar, is_paketi_id, obj_version, id, devreye_alindi, evre, kurulus_id, dtype, alt_bolge_id, ik_on_tar, pl_dev_al_tar]

                            10:19:08,688 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk7a11e7958b71cffb, fk7a11e7956b74f08f, fk7a11e795843823f1]

                            10:19:08,690 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [envanter_elemani_pk]

                            10:19:08,708 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.INVENTORY_ELEMANI_AUD

                            10:19:08,709 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [revtype, id, rev, devreye_alindi, evre, onay_durumu, pl_dev_al_tar, ik_on_tar, dev_al_tar, bir_on_tar]

                            10:19:08,710 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fkc92642e6fc1c52a2]

                            10:19:08,711 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

                            10:19:08,726 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.CMS

                            10:19:08,726 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, adi]

                            10:19:08,727 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: []

                            10:19:08,728 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [cms_pk]

                            10:19:08,745 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.CMS_AUD

                            10:19:08,746 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [revtype, id, rev, adi]

                            10:19:08,747 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [cms_aud_model_revision_e_fk1, fk5fccf7e5fc1c52a2]

                            10:19:08,748 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: []

                            10:19:09,567 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.LINK

                            10:19:09,569 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, udbid, adi, objectid]

                            10:19:09,570 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [fk23a7fa3f8df40d]

                            10:19:09,572 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [r72_sde_rowid_uk, link_pk]

                            10:19:09,588 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.MDB

                            10:19:09,589 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, cms_id, master]

                            10:19:09,590 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [mdb_cms_fk1, mdb_cihaz_cms_fk1]

                            10:19:09,592 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [mdb_pk]

                            10:19:09,608 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000261: Table found: CMS.MDB_AUD

                            10:19:09,609 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000037: Columns: [id, rev, master]

                            10:19:09,610 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000108: Foreign keys: [mdb_aud_cihaz_cms_aud_fk1]

                            10:19:09,612 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-4) HHH000126: Indexes: [mdb_aud_pk]

                            10:19:10,826 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000388: Unsuccessful: alter table BBB_AUD add constraint FK668E9D0BA9C3B551 foreign key (ID, REV) references TRYP_AUD

                            10:19:10,827 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) ORA-02268: referenced table does not have a primary key

                             

                            10:19:10,942 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-4) HHH000232: Schema update complete

                            10:19:12,821 INFO  [org.jboss.as.webservices] (MSC service thread 1-5) JBAS015539: Starting service jboss.ws.endpoint."cms-ear.ear"."cms-ejb.jar".MDBService

                            10:19:12,825 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-5) register: jboss.ws:context=cms-ejb,endpoint=MDBService

                            10:19:12,835 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /cms-ejb

                            10:19:12,921 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.

                            10:19:12,938 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/cms-web]] (MSC service thread 1-3) Initializing Spring root WebApplicationContext

                            10:19:12,939 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-3) Root WebApplicationContext: initialization started

                            10:19:12,956 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-3) Refreshing Root WebApplicationContext: startup date [Thu Mar 29 10:19:12 EEST 2012]; root of context hierarchy

                            10:19:13,372 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-3) Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]

                            10:19:13,622 INFO  [org.springframework.security.config.http.FilterInvocationSecurityMetadataSourceParser] (MSC service thread 1-3) Creating access control expression attribute 'permitAll' for /inc/login.iface

                            10:19:13,624 INFO  [org.springframework.security.config.http.FilterInvocationSecurityMetadataSourceParser] (MSC service thread 1-3) Creating access control expression attribute 'permitAll' for /inc/errordisplay.iface

                            10:19:13,625 INFO  [org.springframework.security.config.http.FilterInvocationSecurityMetadataSourceParser] (MSC service thread 1-3) Creating access control expression attribute 'isAuthenticated()' for /inc/**

                            10:19:13,628 INFO  [org.springframework.security.config.http.FilterInvocationSecurityMetadataSourceParser] (MSC service thread 1-3) Creating access control expression attribute 'permitAll' for /**

                            10:19:13,643 INFO  [org.springframework.security.config.http.HttpSecurityBeanDefinitionParser] (MSC service thread 1-3) Checking sorted filter chain: [Root bean: class [org.springframework.security.web.session.ConcurrentSessionFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 200, Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 300, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, Root bean: class [org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 800, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1200, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1300, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1400, Root bean: class [org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1500, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1600, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1800, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 1900]

                            10:19:13,737 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-3) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e9e6c9: defining beans [org.springframework.security.web.PortMapperImpl#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.core.session.SessionRegistryImpl#0,org.springframework.security.web.authentication.session.ConcurrentSessionControlStrategy#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices#0,org.springframework.security.authentication.RememberMeAuthenticationProvider#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.config.http.UserDetailsServiceInjectionBeanPostProcessor#0,org.springframework.security.filterChainProxy,org.springframework.security.authentication.dao.DaoAuthenticationProvider#0,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager,sha256Encoder,userDetailsService,cmsUserDetailsProvider,loggerListener]; root of factory hierarchy

                            10:19:13,805 INFO  [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (MSC service thread 1-3) Validated configuration attributes

                            10:19:13,850 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-3) Root WebApplicationContext: initialization completed in 910 ms

                            10:19:13,853 CONFIG [com.esri.adf.web.data.WebApplication] (MSC service thread 1-3) XML Resource bundle set: vfs:/C:/jboss-as-7.1.0.Final/bin/content/cms-ear.ear/cms-web.war/WEB-INF/classes/res/Res.xml

                            10:19:14,291 INFO  [com.esri.adf.web.util.ADFServletContextListener] (MSC service thread 1-3) WebSpatialReference loaded.

                            10:19:14,299 INFO  [de.xxx.cmscontent.ext.JMXConnector] (MSC service thread 1-3) JMX init() STARTING...

                            10:19:14,305 INFO  [de.xxx.cmscontent.ext.JMXConnector] (MSC service thread 1-3) JMX init() DONE...

                            10:19:14,309 INFO  [de.xxx.cmscontent.ext.JMXInitializer] (MSC service thread 1-3) de.xxx.cmsservice.cbs.jmx.CbsJmxApplicationListener ADDED.

                            10:19:14,310 INFO  [de.xxx.cmscontent.ext.JMXInitializer] (MSC service thread 1-3) de.xxx.cmscontent.ext.ModelJmxListener ADDED.

                            10:19:14,333 ERROR [stderr] (MSC service thread 1-3) javax.naming.NameNotFoundException: cms-ear/cms-ejb//InventoryManagementFacadeBean!de.xxx.cmsservice.envanter.InventoryManagementFacadeLocal -- service jboss.naming.context.java.cms-ear.cms-ejb."InventoryManagementFacadeBean!de.xxx.cmsservice.envanter.InventoryManagementFacadeLocal"

                             

                            10:19:14,336 ERROR [stderr] (MSC service thread 1-3)     at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)

                             

                            10:19:14,337 ERROR [stderr] (MSC service thread 1-3)     at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:177)

                             

                            10:19:14,339 ERROR [stderr] (MSC service thread 1-3)     at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:113)

                             

                            10:19:14,340 ERROR [stderr] (MSC service thread 1-3)     at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:213)

                             

                            10:19:14,341 ERROR [stderr] (MSC service thread 1-3)     at javax.naming.InitialContext.lookup(InitialContext.java:392)

                             

                            10:19:14,342 ERROR [stderr] (MSC service thread 1-3)     at de.xxx.cmsservice.ejb.EJBLocator.getInventoryManagement(EJBLocator.java:73)

                             

                            10:19:14,343 ERROR [stderr] (MSC service thread 1-3)     at de.xxx.cmsservice.ejb.EJBIslemleriDelegate.<init>(EJBIslemleriDelegate.java:137)

                             

                            10:19:14,344 ERROR [stderr] (MSC service thread 1-3)     at de.xxx.cmsservice.ejb.EJBIslemleriDelegate.<init>(EJBIslemleriDelegate.java:117)

                             

                            10:19:14,346 ERROR [stderr] (MSC service thread 1-3)     at de.xxx.cmsservice.ejb.EJBIslemleriDelegate$EJBIslemleriDelegateHolder.<clinit>(EJBIslemleriDelegate.java:166)

                             

                            10:19:14,347 ERROR [stderr] (MSC service thread 1-3)     at de.xxx.cmsservice.ejb.EJBIslemleriDelegate.getInstance(EJBIslemleriDelegate.java:170)

                             

                            10:19:14,349 ERROR [stderr] (MSC service thread 1-3)     at de.xxx.cmssecurity.CryptoAdapter.<init>(CryptoAdapter.java:89)

                             

                            10:19:14,352 ERROR [stderr] (MSC service thread 1-3)     at de.xxx.cmsutil.CmsApplicationContextListener.contextInitialized(CmsApplicationContextListener.java:77)

                             

                            10:19:14,354 ERROR [stderr] (MSC service thread 1-3)     at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

                             

                            10:19:14,356 ERROR [stderr] (MSC service thread 1-3)     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)

                             

                            10:19:14,357 ERROR [stderr] (MSC service thread 1-3)     at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

                             

                            10:19:14,358 ERROR [stderr] (MSC service thread 1-3)     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                             

                            10:19:14,359 ERROR [stderr] (MSC service thread 1-3)     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                             

                            10:19:14,360 ERROR [stderr] (MSC service thread 1-3)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                             

                            10:19:14,362 ERROR [stderr] (MSC service thread 1-3)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                             

                            10:19:14,363 ERROR [stderr] (MSC service thread 1-3)     at java.lang.Thread.run(Thread.java:619)

                             

                            10:19:14,364 ERROR [de.xxx.cmssecurity.CryptoAdapter] (MSC service thread 1-3) MDB listesi alinamadi: java.lang.NullPointerException

                                at de.xxx.cmsservice.ejb.EJBIslemleriDelegate.mdbList(EJBIslemleriDelegate.java:2397) [classes:]

                                at de.xxx.cmssecurity.CryptoAdapter.<init>(CryptoAdapter.java:89) [classes:]

                                at de.xxx.cmsutil.CmsApplicationContextListener.contextInitialized(CmsApplicationContextListener.java:77) [classes:]

                                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.10.Final.jar:]

                                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.10.Final.jar:]

                                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]

                                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_11]

                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_11]

                                at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_11]

                            • 11. Re: Jboss As7.1.0 Final local EJB lookup problem
                              Prasad Deshpande Expert

                              can you please paste the relavent code? As how are you doing lookup/where is the corresponding class (which jar/location) & namespace?

                              • 12. Re: Jboss As7.1.0 Final local EJB lookup problem
                                Stephen Coy Master

                                JNDI naming conventions have changed (some might say mandated)  in JEE6.

                                 

                                You need to look up "java:app/cms-ejb/InventoryManagementFacadeBean" instead of "cms-ear/cms-ejb//InventoryManagementFacadeBean!de.xxx.cmsservice.envanter.InventoryManagementFacadeLocal".

                                 

                                You can see these names in your log fragment near the top.

                                 

                                However, if you change your web.xml to be 3.0 compatible version you can just inject this one with no lookup at all on your part. You will not even need to specify a name.

                                 

                                ie.

                                 

                                {code:xml}

                                <?xml version="1.0" encoding="UTF-8"?>

                                <web-app version="3.0" 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/web-app_3_0.xsd">

                                    ...

                                </web-app>

                                {code}

                                 

                                 

                                and

                                 

                                 

                                {code:java}

                                class CmsApplicationContextListener implements ServletContextListener {

                                 

                                      @EJB

                                      private InventoryManagementFacadeLocal inventoryManagement;

                                 

                                      ...

                                }

                                {code}

                                }

                                {code}

                                1 of 1 people found this helpful