I am working on porting an application from Jboss 5 to Jboss 7, but have had no luck in resolving the error below.<br>Any advice would be greatly appreciated!    <br>Thanks, -Brian<br><br>Jboss Log:<br>09:44:48,135 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)<br>

09:44:48,228 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)<br>09:44:48,330 INFO  [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.<br>

09:44:48,801 INFO  [org.jboss.as.naming] (Controller Boot Thread) Activating Naming Subsystem<br>09:44:48,865 INFO  [org.jboss.as.naming] (MSC service thread 1-1) Starting Naming Service <br>09:44:48,889 INFO  [org.jboss.as.osgi] (Controller Boot Thread) Activating OSGi Subsystem<br>

09:44:48,976 INFO  [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 3.2.0.Beta2<br>09:44:48,977 INFO  [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem<br>09:44:49,053 INFO  [org.xnio] (MSC service thread 1-3) XNIO Version 3.0.0.Beta3<br>

09:44:49,086 INFO  [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation Version 3.0.0.Beta3<br>09:44:49,894 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-3) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/brian/MoveableFeast/pkg/jdk/jre/lib/i386/server:/home/brian/MoveableFeast/pkg/jdk/jre/lib/i386:/home/brian/MoveableFeast/pkg/jdk/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib<br>

09:44:49,982 INFO  [<a href="http://org.jboss.as.ee">org.jboss.as.ee</a>] (Controller Boot Thread) Activating EE subsystem<br>09:44:49,987 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-1) Starting remote JMX connector<br>

09:44:50,178 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) Listening on /<a href="http://127.0.0.1:9999">127.0.0.1:9999</a><br>09:44:50,932 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080<br>

09:44:50,979 INFO  [org.jboss.as.connector] (MSC service thread 1-1) Starting JCA Subsystem (JBoss IronJacamar 1.0.0.CR2)<br>09:44:51,088 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) Bound data source [java:jboss/datasources/security]<br>

09:44:51,097 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) Bound data source [java:jboss/datasources/ExampleDS]<br>09:44:52,578 INFO  [org.jboss.as.deployment] (MSC service thread 1-3) Started FileSystemDeploymentService for directory /home/brian/MoveableFeast/pkg/jboss/standalone/deployments<br>

09:44:52,678 INFO  [<a href="http://org.jboss.as">org.jboss.as</a>] (Controller Boot Thread) JBoss AS 7.0.0.Final &quot;Lightning&quot; started in 12158ms - Started 98 of 153 services (55 services are passive or on-demand)<br>

09:44:52,801 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of &quot;security.ear&quot;<br>09:44:53,495 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of &quot;security-ejb-2.0.jar&quot;<br>

09:44:53,496 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of &quot;security-war-2.0.war&quot;<br>09:44:54,731 INFO  [org.jboss.jpa] (MSC service thread 1-2) read persistence.xml for security<br>

09:44:54,754 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry faces-common-2.0.jar in &quot;/content/security.ear/security-war-2.0.war/WEB-INF/lib/security-ejb-2.0.jar&quot;  does not point to a valid jar for a Class-Path reference.<br>

09:44:54,754 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-logging-1.1.1.jar in &quot;/content/security.ear/security-war-2.0.war/WEB-INF/lib/security-ejb-2.0.jar&quot;  does not point to a valid jar for a Class-Path reference.<br>

09:44:54,896 INFO  [org.jboss.jpa] (MSC service thread 1-1) read persistence.xml for security<br>09:44:55,262 INFO  [org.jboss.jpa] (MSC service thread 1-4) read persistence.xml for security<br>09:44:55,790 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named SecurityManager in deployment unit subdeployment &quot;security-ejb-2.0.jar&quot; of deployment &quot;security.ear&quot; are as follows:<br>

<br>    java:global/security/security-ejb-2.0/SecurityManager!security.ejb.client.SecurityManagerRemote<br>    java:app/security-ejb-2.0/SecurityManager!security.ejb.client.SecurityManagerRemote<br>    java:module/SecurityManager!security.ejb.client.SecurityManagerRemote<br>

    java:global/security/security-ejb-2.0/SecurityManager<br>    java:app/security-ejb-2.0/SecurityManager<br>    java:module/SecurityManager<br><br>09:44:56,013 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named SecurityManager in deployment unit subdeployment &quot;security-war-2.0.war&quot; of deployment &quot;security.ear&quot; are as follows:<br>

<br>    java:global/security/security-war-2.0/SecurityManager!security.ejb.client.SecurityManagerRemote<br>    java:app/security-war-2.0/SecurityManager!security.ejb.client.SecurityManagerRemote<br>    java:module/SecurityManager!security.ejb.client.SecurityManagerRemote<br>

    java:global/security/security-war-2.0/SecurityManager<br>    java:app/security-war-2.0/SecurityManager<br>    java:module/SecurityManager<br><br>09:44:56,682 INFO  [org.jboss.jpa] (MSC service thread 1-3) starting Persistence Unit Service &#39;security.ear#security&#39; <br>

09:44:57,489 INFO  [org.jboss.jpa] (MSC service thread 1-1) starting Persistence Unit Service &#39;security.ear/security-ejb-2.0.jar#security&#39; <br>09:44:57,531 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-3) Hibernate Commons Annotations 3.2.0.Final<br>

09:44:57,597 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-3) HHH00412:Hibernate [WORKING]<br>09:44:57,599 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-3) HHH00206:hibernate.properties not found<br>

09:44:57,606 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-3) HHH00021:Bytecode provider name : javassist<br>09:44:57,718 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-1) HHH00204:Processing PersistenceUnitInfo [<br>

    name: security<br>    ...]<br>09:44:57,730 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-3) HHH00204:Processing PersistenceUnitInfo [<br>    name: security<br>    ...]<br>09:44:57,813 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.persistenceunit.&quot;security.ear#security&quot;: org.jboss.msc.service.StartException in service jboss.persistenceunit.&quot;security.ear#security&quot;: Failed to start service<br>

    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1786)<br>    at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)<br>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_17]<br>

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_17]<br>    at java.lang.Thread.run(Thread.java:619) [:1.6.0_17]<br>Caused by: java.lang.RuntimeException: error trying to scan &lt;jar-file&gt;: vfs:/content/security.ear/<br>

    at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:844)<br>    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:586)<br>    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)<br>

    at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:170)<br>    at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:80)<br>

    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)<br>    ... 4 more<br>Caused by: java.lang.RuntimeException: Missing annotation index to scan entity classes<br>    at org.jboss.as.jpa.hibernate.HibernateAnnotationScanner.getClassesInJar(HibernateAnnotationScanner.java:119)<br>

    at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:474)<br>    at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:841)<br>    ... 9 more<br><br>09:44:58,021 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: security.ejb.server.entity<br>

09:44:58,021 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: security.ejb.server<br>09:44:58,022 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: security.ejb.client<br>

09:44:58,022 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: security.util<br>09:44:58,022 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: security.ejb.util<br>

09:44:59,521 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-1) HHH00130:Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider<br>

09:45:00,046 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit.&quot;security.ear&quot;.&quot;security-war-2.0.war&quot;.INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit.&quot;security.ear&quot;.&quot;security-war-2.0.war&quot;.INSTALL: Failed to process phase INSTALL of subdeployment &quot;security-war-2.0.war&quot; of deployment &quot;security.ear&quot;<br>

    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)<br>    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)<br>    at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)<br>

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_17]<br>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_17]<br>    at java.lang.Thread.run(Thread.java:619) [:1.6.0_17]<br>

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to install component org.jboss.as.ee.component.ComponentConfiguration[name=SecurityManager class=security.ejb.server.SecurityManager]<br>

    at org.jboss.as.ee.component.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:77)<br>    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)<br>    ... 5 more<br>

Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: security.ejb.server.SecurityManager.getUserByLogin(security.ejb.client.User)<br>    at org.jboss.as.ejb3.component.EJBComponentCreateService.getComponentMethod(EJBComponentCreateService.java:114)<br>

    at org.jboss.as.ejb3.component.EJBComponentCreateService.&lt;init&gt;(EJBComponentCreateService.java:90)<br>    at org.jboss.as.ejb3.component.session.SessionBeanComponentCreateService.&lt;init&gt;(SessionBeanComponentCreateService.java:57)<br>

    at org.jboss.as.ejb3.component.stateless.StatelessSessionComponentCreateService.&lt;init&gt;(StatelessSessionComponentCreateService.java:42)<br>    at org.jboss.as.ejb3.component.stateless.StatelessComponentCreateServiceFactory.constructService(StatelessComponentCreateServiceFactory.java:40)<br>

    at org.jboss.as.ee.component.ComponentInstallProcessor.deployComponent(ComponentInstallProcessor.java:97)<br>    at org.jboss.as.ee.component.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:75)<br>    ... 6 more<br>

Caused by: java.lang.NoSuchMethodException: security.ejb.server.SecurityManager.getUserByLogin(security.ejb.client.User)<br>    at java.lang.Class.getMethod(Class.java:1605) [:1.6.0_17]<br>    at org.jboss.as.ejb3.component.EJBComponentCreateService.getComponentMethod(EJBComponentCreateService.java:112)<br>

    ... 12 more<br><br>09:45:00,879 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-1) HHH00400:Using dialect: org.hibernate.dialect.MySQLDialect<br>09:45:00,910 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-1) HHH00268:Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory<br>

09:45:00,926 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-1) HHH00397:Using ASTQueryTranslatorFactory<br>09:45:01,058 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-1) Hibernate Validator 4.1.0.Final<br>

09:45:01,068 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (MSC service thread 1-1) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.<br>09:45:01,787 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of &quot;security.ear&quot; was rolled back with failure message {&quot;Failed services&quot; =&gt; {&quot;jboss.deployment.subunit.\&quot;security.ear\&quot;.\&quot;security-war-2.0.war\&quot;.INSTALL&quot; =&gt; &quot;org.jboss.msc.service.StartException in service jboss.deployment.subunit.\&quot;security.ear\&quot;.\&quot;security-war-2.0.war\&quot;.INSTALL: Failed to process phase INSTALL of subdeployment \&quot;security-war-2.0.war\&quot; of deployment \&quot;security.ear\&quot;&quot;,&quot;jboss.persistenceunit.\&quot;security.ear#security\&quot;&quot; =&gt; &quot;org.jboss.msc.service.StartException in service jboss.persistenceunit.\&quot;security.ear#security\&quot;: Failed to start service&quot;},&quot;Services with missing/unavailable dependencies&quot; =&gt; [&quot;jboss.naming.context.java.comp.security.\&quot;security-war-2.0\&quot;.\&quot;security-war-2.0\&quot;.Validator missing [ jboss.naming.context.java.module.security.\&quot;security-war-2.0\&quot; ]&quot;,&quot;jboss.naming.context.java.comp.security.\&quot;security-war-2.0\&quot;.\&quot;security-war-2.0\&quot;.ValidatorFactory missing [ jboss.naming.context.java.module.security.\&quot;security-war-2.0\&quot; ]&quot;]}<br>

09:45:01,834 INFO  [org.jboss.jpa] (MSC service thread 1-2) stopping Persistence Unit Service &#39;security.ear/security-ejb-2.0.jar#security&#39; <br>09:45:01,878 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment security-ejb-2.0.jar in 89ms<br>

09:45:01,929 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment security-war-2.0.war in 141ms<br>09:45:01,937 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment security.ear in 151ms<br>

09:45:01,941 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {&quot;Composite operation failed and was rolled back. Steps that failed:&quot; =&gt; {&quot;Operation step-2&quot; =&gt; {&quot;Failed services&quot; =&gt; {&quot;jboss.deployment.subunit.\&quot;security.ear\&quot;.\&quot;security-war-2.0.war\&quot;.INSTALL&quot; =&gt; &quot;org.jboss.msc.service.StartException in service jboss.deployment.subunit.\&quot;security.ear\&quot;.\&quot;security-war-2.0.war\&quot;.INSTALL: Failed to process phase INSTALL of subdeployment \&quot;security-war-2.0.war\&quot; of deployment \&quot;security.ear\&quot;&quot;,&quot;jboss.persistenceunit.\&quot;security.ear#security\&quot;&quot; =&gt; &quot;org.jboss.msc.service.StartException in service jboss.persistenceunit.\&quot;security.ear#security\&quot;: Failed to start service&quot;},&quot;Services with missing/unavailable dependencies&quot; =&gt; [&quot;jboss.naming.context.java.comp.security.\&quot;security-war-2.0\&quot;.\&quot;security-war-2.0\&quot;.Validator missing [ jboss.naming.context.java.module.security.\&quot;security-war-2.0\&quot; ]&quot;,&quot;jboss.naming.context.java.comp.security.\&quot;security-war-2.0\&quot;.\&quot;security-war-2.0\&quot;.ValidatorFactory missing [ jboss.naming.context.java.module.security.\&quot;security-war-2.0\&quot; ]&quot;]}}}<br>

<br><br>Standalone.xml:<br>&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;<br><br>&lt;server name=&quot;BigShortyComputer&quot; xmlns=&quot;urn:jboss:domain:1.0&quot;&gt;<br>    &lt;extensions&gt;<br>        &lt;extension module=&quot;org.jboss.as.clustering.infinispan&quot;/&gt;<br>

        &lt;extension module=&quot;org.jboss.as.connector&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.deployment-scanner&quot;/&gt;<br>        &lt;extension module=&quot;<a href="http://org.jboss.as.ee">org.jboss.as.ee</a>&quot;/&gt;<br>

        &lt;extension module=&quot;org.jboss.as.ejb3&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.jaxrs&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.jmx&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.jpa&quot;/&gt;<br>

        &lt;extension module=&quot;org.jboss.as.logging&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.naming&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.osgi&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.remoting&quot;/&gt;<br>

        &lt;extension module=&quot;org.jboss.as.sar&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.security&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.threads&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.transactions&quot;/&gt;<br>

        &lt;extension module=&quot;org.jboss.as.web&quot;/&gt;<br>        &lt;extension module=&quot;org.jboss.as.weld&quot;/&gt;<br>    &lt;/extensions&gt;<br>    &lt;management&gt;<br>        &lt;security-realms&gt;<br>

            &lt;security-realm name=&quot;PropertiesMgmtSecurityRealm&quot;&gt;<br>                &lt;authentication&gt;<br>                    &lt;properties path=&quot;mgmt-users.properties&quot; relative-to=&quot;jboss.server.config.dir&quot;/&gt;<br>

                &lt;/authentication&gt;<br>            &lt;/security-realm&gt;<br>        &lt;/security-realms&gt;<br>        &lt;management-interfaces&gt;<br>            &lt;native-interface interface=&quot;management&quot; port=&quot;9999&quot;/&gt;<br>

            &lt;http-interface interface=&quot;management&quot; port=&quot;9990&quot;/&gt;<br>        &lt;/management-interfaces&gt;<br>    &lt;/management&gt;<br>    &lt;profile&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:logging:1.0&quot;&gt;<br>

            &lt;console-handler name=&quot;CONSOLE&quot; autoflush=&quot;true&quot;&gt;<br>                &lt;level name=&quot;INFO&quot;/&gt;<br>                &lt;formatter&gt;<br>                    &lt;pattern-formatter pattern=&quot;%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n&quot;/&gt;<br>

                &lt;/formatter&gt;<br>            &lt;/console-handler&gt;<br>            &lt;periodic-rotating-file-handler name=&quot;FILE&quot; autoflush=&quot;true&quot;&gt;<br>                &lt;level name=&quot;INFO&quot;/&gt;<br>

                &lt;formatter&gt;<br>                    &lt;pattern-formatter pattern=&quot;%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n&quot;/&gt;<br>                &lt;/formatter&gt;<br>                &lt;file relative-to=&quot;jboss.server.log.dir&quot; path=&quot;server.log&quot;/&gt;<br>

                &lt;suffix value=&quot;.yyyy-MM-dd&quot;/&gt;<br>            &lt;/periodic-rotating-file-handler&gt;<br>            &lt;logger category=&quot;com.arjuna&quot;&gt;<br>                &lt;level name=&quot;WARN&quot;/&gt;<br>

            &lt;/logger&gt;<br>            &lt;logger category=&quot;org.apache.tomcat.util.modeler&quot;&gt;<br>                &lt;level name=&quot;WARN&quot;/&gt;<br>            &lt;/logger&gt;<br>            &lt;logger category=&quot;sun.rmi&quot;&gt;<br>

                &lt;level name=&quot;WARN&quot;/&gt;<br>            &lt;/logger&gt;<br>            &lt;root-logger&gt;<br>                &lt;level name=&quot;INFO&quot;/&gt;<br>                &lt;handlers&gt;<br>                    &lt;handler name=&quot;CONSOLE&quot;/&gt;<br>

                    &lt;handler name=&quot;FILE&quot;/&gt;<br>                &lt;/handlers&gt;<br>            &lt;/root-logger&gt;<br>        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:datasources:1.0&quot;&gt;<br>

            &lt;datasources&gt;<br>                &lt;datasource jndi-name=&quot;java:jboss/datasources/security&quot; pool-name=&quot;POOL&quot; enabled=&quot;true&quot; jta=&quot;true&quot; use-java-context=&quot;true&quot; use-ccm=&quot;true&quot;&gt;<br>

                    &lt;connection-url&gt;<br>                        jdbc:mysql://localhost/security<br>                    &lt;/connection-url&gt;<br>                    &lt;driver&gt;<br>                        mysqldriver<br>

                    &lt;/driver&gt;<br>                    &lt;pool&gt;<br>                        &lt;prefill&gt;<br>                            false<br>                        &lt;/prefill&gt;<br>                        &lt;use-strict-min&gt;<br>

                            false<br>                        &lt;/use-strict-min&gt;<br>                        &lt;flush-strategy&gt;<br>                            FailingConnectionOnly<br>                        &lt;/flush-strategy&gt;<br>

                    &lt;/pool&gt;<br>                    &lt;security&gt;<br>                        &lt;user-name&gt;<br>                            bunnies<br>                        &lt;/user-name&gt;<br>                        &lt;password&gt;<br>

                            bunnies<br>                        &lt;/password&gt;<br>                    &lt;/security&gt;<br>                    &lt;validation&gt;<br>                        &lt;validate-on-match&gt;<br>
                            false<br>
                        &lt;/validate-on-match&gt;<br>                        &lt;background-validation&gt;<br>                            false<br>                        &lt;/background-validation&gt;<br>                        &lt;useFastFail&gt;<br>

                            false<br>                        &lt;/useFastFail&gt;<br>                    &lt;/validation&gt;<br>                &lt;/datasource&gt;<br>                &lt;datasource jndi-name=&quot;java:jboss/datasources/ExampleDS&quot; pool-name=&quot;H2DS&quot; enabled=&quot;true&quot; jta=&quot;true&quot; use-java-context=&quot;true&quot; use-ccm=&quot;true&quot;&gt;<br>

                    &lt;connection-url&gt;<br>                        jdbc:h2:mem:test;DB_CLOSE_DELAY=-1<br>                    &lt;/connection-url&gt;<br>                    &lt;driver&gt;<br>                        h2<br>

                    &lt;/driver&gt;<br>                    &lt;pool&gt;<br>                        &lt;prefill&gt;<br>                            false<br>                        &lt;/prefill&gt;<br>                        &lt;use-strict-min&gt;<br>

                            false<br>                        &lt;/use-strict-min&gt;<br>                        &lt;flush-strategy&gt;<br>                            FailingConnectionOnly<br>                        &lt;/flush-strategy&gt;<br>

                    &lt;/pool&gt;<br>                    &lt;security&gt;<br>                        &lt;user-name&gt;<br>                            sa<br>                        &lt;/user-name&gt;<br>                        &lt;password&gt;<br>

                            sa<br>                        &lt;/password&gt;<br>                    &lt;/security&gt;<br>                    &lt;validation&gt;<br>                        &lt;validate-on-match&gt;<br>                            false<br>

                        &lt;/validate-on-match&gt;<br>                        &lt;background-validation&gt;<br>                            false<br>                        &lt;/background-validation&gt;<br>                        &lt;useFastFail&gt;<br>

                            false<br>                        &lt;/useFastFail&gt;<br>                    &lt;/validation&gt;<br>                &lt;/datasource&gt;<br>                &lt;drivers&gt;<br>                    &lt;driver name=&quot;h2&quot; module=&quot;com.h2database.h2&quot;&gt;<br>

                        &lt;xa-datasource-class&gt;<br>                            org.h2.jdbcx.JdbcDataSource<br>                        &lt;/xa-datasource-class&gt;<br>                    &lt;/driver&gt;<br>                    &lt;driver name=&quot;mysqldriver&quot; module=&quot;com.mysql&quot;&gt;<br>

                        &lt;xa-datasource-class&gt;<br>                            com.mysql.jdbc.jdbc2.optional.MysqlXADataSource<br>                        &lt;/xa-datasource-class&gt;<br>                    &lt;/driver&gt;<br>

                &lt;/drivers&gt;<br>            &lt;/datasources&gt;<br>        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:deployment-scanner:1.0&quot;&gt;<br>            &lt;deployment-scanner name=&quot;default&quot; path=&quot;deployments&quot; scan-enabled=&quot;true&quot; scan-interval=&quot;5000&quot; relative-to=&quot;jboss.server.base.dir&quot; deployment-timeout=&quot;60&quot;/&gt;<br>

        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:ee:1.0&quot;/&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:ejb3:1.0&quot;/&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:infinispan:1.0&quot; default-cache-container=&quot;hibernate&quot;&gt;<br>

            &lt;cache-container name=&quot;hibernate&quot; default-cache=&quot;local-query&quot;&gt;<br>                &lt;local-cache name=&quot;entity&quot;&gt;<br>                    &lt;eviction strategy=&quot;LRU&quot; max-entries=&quot;10000&quot;/&gt;<br>

                    &lt;expiration max-idle=&quot;100000&quot;/&gt;<br>                &lt;/local-cache&gt;<br>                &lt;local-cache name=&quot;local-query&quot;&gt;<br>                    &lt;eviction strategy=&quot;LRU&quot; max-entries=&quot;10000&quot;/&gt;<br>

                    &lt;expiration max-idle=&quot;100000&quot;/&gt;<br>                &lt;/local-cache&gt;<br>                &lt;local-cache name=&quot;timestamps&quot;&gt;<br>                    &lt;eviction strategy=&quot;NONE&quot;/&gt;<br>

                &lt;/local-cache&gt;<br>            &lt;/cache-container&gt;<br>        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:jaxrs:1.0&quot;/&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:jca:1.0&quot;&gt;<br>

            &lt;archive-validation enabled=&quot;false&quot;/&gt;<br>            &lt;bean-validation enabled=&quot;false&quot;/&gt;<br>            &lt;default-workmanager&gt;<br>                &lt;short-running-threads blocking=&quot;true&quot; allow-core-timeout=&quot;false&quot;&gt;<br>

                    &lt;core-threads count=&quot;10&quot; per-cpu=&quot;20&quot;/&gt;<br>                    &lt;queue-length count=&quot;10&quot; per-cpu=&quot;20&quot;/&gt;<br>                    &lt;max-threads count=&quot;10&quot; per-cpu=&quot;20&quot;/&gt;<br>

                    &lt;keepalive-time time=&quot;10&quot; unit=&quot;SECONDS&quot;/&gt;<br>                &lt;/short-running-threads&gt;<br>                &lt;long-running-threads blocking=&quot;true&quot; allow-core-timeout=&quot;false&quot;&gt;<br>

                    &lt;core-threads count=&quot;10&quot; per-cpu=&quot;20&quot;/&gt;<br>                    &lt;queue-length count=&quot;10&quot; per-cpu=&quot;20&quot;/&gt;<br>                    &lt;max-threads count=&quot;10&quot; per-cpu=&quot;20&quot;/&gt;<br>

                    &lt;keepalive-time time=&quot;10&quot; unit=&quot;SECONDS&quot;/&gt;<br>                &lt;/long-running-threads&gt;<br>            &lt;/default-workmanager&gt;<br>        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:jmx:1.0&quot;&gt;<br>

            &lt;jmx-connector server-binding=&quot;jmx-connector-server&quot; registry-binding=&quot;jmx-connector-registry&quot;/&gt;<br>        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:jpa:1.0&quot;&gt;<br>

            &lt;jpa default-datasource=&quot;&quot;/&gt;<br>        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:naming:1.0&quot;/&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:osgi:1.0&quot; activation=&quot;lazy&quot;&gt;<br>

            &lt;configuration pid=&quot;org.apache.felix.webconsole.internal.servlet.OsgiManager&quot;&gt;<br>                &lt;property name=&quot;manager.root&quot;&gt;<br>                    jboss-osgi<br>                &lt;/property&gt;<br>

            &lt;/configuration&gt;<br>            &lt;properties&gt;<br>                &lt;property name=&quot;org.jboss.osgi.system.modules&quot;&gt;<br>                    org.apache.commons.logging,<br>                                                        org.apache.log4j,<br>

                                                        org.jboss.as.osgi,<br>                                                        org.slf4j,<br>                &lt;/property&gt;<br>                &lt;property name=&quot;org.osgi.framework.system.packages.extra&quot;&gt;<br>

                    org.apache.commons.logging;version=1.1.1,<br>                                                        org.apache.log4j;version=1.2,<br>                                                        org.jboss.as.osgi.service;version=7.0,<br>

                                                        org.jboss.osgi.deployment.interceptor;version=1.0,<br>                                                        org.jboss.osgi.spi.capability;version=1.0,<br>                                                        org.jboss.osgi.spi.util;version=1.0,<br>

                                                        org.jboss.osgi.testing;version=1.0,<br>                                                        org.jboss.osgi.vfs;version=1.0,<br>                                                        org.slf4j;version=1.5.10,<br>

                &lt;/property&gt;<br>                &lt;property name=&quot;org.osgi.framework.startlevel.beginning&quot;&gt;<br>                    1<br>                &lt;/property&gt;<br>            &lt;/properties&gt;<br>

            &lt;modules&gt;<br>                &lt;module identifier=&quot;javaee.api&quot;/&gt;<br>                &lt;module identifier=&quot;org.jboss.logging&quot;/&gt;<br>                &lt;module identifier=&quot;org.apache.aries.util&quot;/&gt;<br>

                &lt;module identifier=&quot;org.jboss.osgi.webconsole&quot;/&gt;<br>                &lt;module identifier=&quot;org.osgi.compendium&quot;/&gt;<br>                &lt;module identifier=&quot;org.apache.felix.log&quot; startlevel=&quot;1&quot;/&gt;<br>

                &lt;module identifier=&quot;org.jboss.osgi.logging&quot; startlevel=&quot;1&quot;/&gt;<br>                &lt;module identifier=&quot;org.apache.felix.configadmin&quot; startlevel=&quot;1&quot;/&gt;<br>                &lt;module identifier=&quot;org.jboss.as.osgi.configadmin&quot; startlevel=&quot;1&quot;/&gt;<br>

                &lt;module identifier=&quot;org.apache.aries.jmx&quot; startlevel=&quot;2&quot;/&gt;<br>                &lt;module identifier=&quot;org.apache.felix.eventadmin&quot; startlevel=&quot;2&quot;/&gt;<br>                &lt;module identifier=&quot;org.apache.felix.metatype&quot; startlevel=&quot;2&quot;/&gt;<br>

                &lt;module identifier=&quot;org.apache.felix.scr&quot; startlevel=&quot;2&quot;/&gt;<br>                &lt;module identifier=&quot;org.apache.felix.webconsole&quot; startlevel=&quot;2&quot;/&gt;<br>                &lt;module identifier=&quot;org.jboss.osgi.jmx&quot; startlevel=&quot;2&quot;/&gt;<br>

                &lt;module identifier=&quot;org.jboss.osgi.http&quot; startlevel=&quot;2&quot;/&gt;<br>                &lt;module identifier=&quot;org.jboss.osgi.blueprint&quot; startlevel=&quot;3&quot;/&gt;<br>                &lt;module identifier=&quot;org.jboss.osgi.webapp&quot; startlevel=&quot;3&quot;/&gt;<br>

                &lt;module identifier=&quot;org.jboss.osgi.xerces&quot; startlevel=&quot;3&quot;/&gt;<br>            &lt;/modules&gt;<br>        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:remoting:1.0&quot;/&gt;<br>

        &lt;subsystem xmlns=&quot;urn:jboss:domain:resource-adapters:1.0&quot;/&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:sar:1.0&quot;/&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:security:1.0&quot;&gt;<br>

            &lt;security-domains&gt;<br>                &lt;security-domain name=&quot;password&quot;&gt;<br>                    &lt;authentication&gt;<br>                        &lt;login-module code=&quot;org.jboss.security.auth.spi.DatabaseServerLoginModule&quot; flag=&quot;required&quot;&gt;<br>

                            &lt;module-option name=&quot;securityDomain&quot; value=&quot;java:/jaas/password&quot;/&gt;<br>                            &lt;module-option name=&quot;dsJndiName&quot; value=&quot;java:/jboss/datasources/security&quot;/&gt;<br>

                            &lt;module-option name=&quot;principalsQuery&quot; value=&quot;select PASSWORD from USERS where LOGIN=?&quot;/&gt;<br>                            &lt;module-option name=&quot;rolesQuery&quot; value=&quot;select <a href="http://ROLES.NAME">ROLES.NAME</a>, USERS.PASSWORD from ROLES,USERS,USER_ROLE where USER_ROLE.ROLE_ID=<a href="http://ROLES.ID">ROLES.ID</a> and USER_ROLE.USER_ID=<a href="http://USERS.ID">USERS.ID</a> and USERS.LOGIN=?&quot;/&gt;<br>

                            &lt;module-option name=&quot;hashAlgorithm&quot; value=&quot;SHA-256&quot;/&gt;<br>                            &lt;module-option name=&quot;hashEncoding&quot; value=&quot;base64&quot;/&gt;<br>
                        &lt;/login-module&gt;<br>
                    &lt;/authentication&gt;<br>                &lt;/security-domain&gt;<br>                &lt;security-domain name=&quot;other&quot; cache-type=&quot;default&quot;&gt;<br>                    &lt;authentication&gt;<br>

                        &lt;login-module code=&quot;UsersRoles&quot; flag=&quot;required&quot;/&gt;<br>                    &lt;/authentication&gt;<br>                &lt;/security-domain&gt;<br>            &lt;/security-domains&gt;<br>

        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:threads:1.0&quot;/&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:transactions:1.0&quot;&gt;<br>            &lt;core-environment&gt;<br>

                &lt;process-id&gt;<br>                    &lt;uuid/&gt;<br>                &lt;/process-id&gt;<br>            &lt;/core-environment&gt;<br>            &lt;recovery-environment socket-binding=&quot;txn-recovery-environment&quot; status-socket-binding=&quot;txn-status-manager&quot;/&gt;<br>

            &lt;coordinator-environment default-timeout=&quot;300&quot;/&gt;<br>            &lt;object-store/&gt;<br>        &lt;/subsystem&gt;<br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:web:1.0&quot; default-virtual-server=&quot;default-host&quot;&gt;<br>

            &lt;connector name=&quot;http&quot; protocol=&quot;HTTP/1.1&quot; socket-binding=&quot;http&quot; scheme=&quot;http&quot;/&gt;<br>            &lt;virtual-server name=&quot;default-host&quot; enable-welcome-root=&quot;true&quot;&gt;<br>

                &lt;alias name=&quot;localhost&quot;/&gt;<br>                &lt;alias name=&quot;<a href="http://example.com">example.com</a>&quot;/&gt;<br>            &lt;/virtual-server&gt;<br>        &lt;/subsystem&gt;<br>

        &lt;subsystem xmlns=&quot;urn:jboss:domain:weld:1.0&quot;/&gt;<br>    &lt;/profile&gt;<br>    &lt;interfaces&gt;<br>        &lt;interface name=&quot;management&quot;&gt;<br>            &lt;inet-address value=&quot;127.0.0.1&quot;/&gt;<br>

        &lt;/interface&gt;<br>        &lt;interface name=&quot;public&quot;&gt;<br>            &lt;inet-address value=&quot;127.0.0.1&quot;/&gt;<br>        &lt;/interface&gt;<br>    &lt;/interfaces&gt;<br>    &lt;socket-binding-group name=&quot;standard-sockets&quot; default-interface=&quot;public&quot;&gt;<br>

        &lt;socket-binding name=&quot;http&quot; port=&quot;8080&quot;/&gt;<br>        &lt;socket-binding name=&quot;https&quot; port=&quot;8443&quot;/&gt;<br>        &lt;socket-binding name=&quot;jmx-connector-registry&quot; port=&quot;1090&quot;/&gt;<br>

        &lt;socket-binding name=&quot;jmx-connector-server&quot; port=&quot;1091&quot;/&gt;<br>        &lt;socket-binding name=&quot;jndi&quot; port=&quot;1099&quot;/&gt;<br>        &lt;socket-binding name=&quot;osgi-http&quot; port=&quot;8090&quot;/&gt;<br>

        &lt;socket-binding name=&quot;remoting&quot; port=&quot;4447&quot;/&gt;<br>        &lt;socket-binding name=&quot;txn-recovery-environment&quot; port=&quot;4712&quot;/&gt;<br>        &lt;socket-binding name=&quot;txn-status-manager&quot; port=&quot;4713&quot;/&gt;<br>

    &lt;/socket-binding-group&gt;<br>&lt;/server&gt;<br><br><br>Maven pom, for security-ejb:<br>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;project<br>  xmlns=&quot;<a href="http://maven.apache.org/POM/4.0.0">http://maven.apache.org/POM/4.0.0</a>&quot;<br>

  xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>  xsi:schemaLocation=&quot;<a href="http://maven.apache.org/POM/4.0.0">http://maven.apache.org/POM/4.0.0</a> <a href="http://maven.apache.org/maven-v4_0_0.xsd">http://maven.apache.org/maven-v4_0_0.xsd</a>&quot;&gt;<br>

  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;<br>  &lt;groupId&gt;security&lt;/groupId&gt;<br>  &lt;artifactId&gt;security-ejb&lt;/artifactId&gt;<br>  &lt;packaging&gt;ejb&lt;/packaging&gt;<br>  &lt;version&gt;2.0&lt;/version&gt;<br>

  &lt;name&gt;Security Management EJB Project&lt;/name&gt;<br>  &lt;description&gt;This is the EJB 3.0 project used for accessing database information<br>    pertaining to the Security Management application.<br>  &lt;/description&gt;<br>

  &lt;parent&gt;<br>    &lt;groupId&gt;security&lt;/groupId&gt;<br>    &lt;artifactId&gt;app&lt;/artifactId&gt;<br>    &lt;version&gt;2.0&lt;/version&gt;<br>  &lt;/parent&gt;<br>  &lt;dependencies&gt;<br><br>    &lt;dependency&gt;<br>

      &lt;groupId&gt;security&lt;/groupId&gt;<br>      &lt;artifactId&gt;faces-common&lt;/artifactId&gt;<br>      &lt;version&gt;2.0&lt;/version&gt;<br>    &lt;/dependency&gt;<br><br>    &lt;dependency&gt;<br>     &lt;groupId&gt;org.jboss.spec.javax.ejb&lt;/groupId&gt;<br>

     &lt;artifactId&gt;jboss-ejb-api_3.1_spec&lt;/artifactId&gt;<br>     &lt;version&gt;1.0.1.Final&lt;/version&gt;<br>     &lt;scope&gt;provided&lt;/scope&gt; <br>   &lt;/dependency&gt;<br><br>&lt;dependency&gt;<br>  &lt;groupId&gt;org.jboss.spec.javax.annotation&lt;/groupId&gt;<br>

  &lt;artifactId&gt;jboss-annotations-api_1.1_spec&lt;/artifactId&gt;<br>  &lt;version&gt;1.0.0.Final&lt;/version&gt;<br>  &lt;scope&gt;provided&lt;/scope&gt; <br>&lt;/dependency&gt;<br><br>&lt;dependency&gt;<br>  &lt;groupId&gt;<a href="http://org.jboss.ws">org.jboss.ws</a>&lt;/groupId&gt;<br>

  &lt;artifactId&gt;jbossws-spi&lt;/artifactId&gt;<br>  &lt;version&gt;2.0.0.Beta5&lt;/version&gt;<br>  &lt;scope&gt;provided&lt;/scope&gt; <br>&lt;/dependency&gt;<br><br> &lt;dependency&gt;<br>  &lt;groupId&gt;org.jboss.ejb3&lt;/groupId&gt;<br>

  &lt;artifactId&gt;jboss-ejb3-ext-api&lt;/artifactId&gt;<br>  &lt;version&gt;2.0.0-beta-1&lt;/version&gt;<br>  &lt;scope&gt;provided&lt;/scope&gt; <br> &lt;/dependency&gt; <br><br>&lt;dependency&gt;<br>  &lt;groupId&gt;javax.inject&lt;/groupId&gt;<br>

  &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;<br>  &lt;version&gt;1&lt;/version&gt;<br>  &lt;scope&gt;provided&lt;/scope&gt; <br>&lt;/dependency&gt;<br><br>&lt;dependency&gt;<br>     &lt;groupId&gt;commons-logging&lt;/groupId&gt;<br>

     &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;<br>     &lt;version&gt;1.1.1&lt;/version&gt;<br>     &lt;!-- &lt;scope&gt;provided&lt;/scope&gt; --&gt;<br>   &lt;/dependency&gt;<br><br>    &lt;dependency&gt;<br>

        &lt;groupId&gt;commons-lang&lt;/groupId&gt;<br>        &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;<br>        &lt;version&gt;2.4&lt;/version&gt;<br>     &lt;scope&gt;provided&lt;/scope&gt; <br>    &lt;/dependency&gt;<br>

<br>&lt;dependency&gt;<br> &lt;groupId&gt;javax.faces&lt;/groupId&gt;<br> &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;<br> &lt;version&gt;1.2_13&lt;/version&gt;<br>     &lt;scope&gt;provided&lt;/scope&gt; <br>&lt;/dependency&gt;<br>

<br>&lt;dependency&gt;<br> &lt;groupId&gt;org.jboss.spec.javax.servlet&lt;/groupId&gt;<br> &lt;artifactId&gt;jboss-servlet-api_3.0_spec&lt;/artifactId&gt;<br> &lt;version&gt;1.0.0.Final&lt;/version&gt;<br> &lt;scope&gt;provided&lt;/scope&gt; <br>

&lt;/dependency&gt;<br><br>&lt;dependency&gt;<br>  &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;<br>  &lt;artifactId&gt;hibernate-jpa-2.0-api&lt;/artifactId&gt;<br>  &lt;version&gt;1.0.1.Final&lt;/version&gt;<br>

  &lt;scope&gt;provided&lt;/scope&gt; <br>&lt;/dependency&gt;<br><br>&lt;!-- From login example --&gt;<br><br>&lt;dependency&gt;<br>         &lt;groupId&gt;org.jboss.spec.javax.annotation&lt;/groupId&gt;<br>         &lt;artifactId&gt;jboss-annotations-api_1.1_spec&lt;/artifactId&gt;<br>

     &lt;version&gt;1.0.0.Final&lt;/version&gt;<br>         &lt;scope&gt;provided&lt;/scope&gt;<br>      &lt;/dependency&gt;<br><br><br>  &lt;/dependencies&gt;<br>    &lt;build&gt;<br>        &lt;plugins&gt;<br>            &lt;plugin&gt;<br>

                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>                &lt;artifactId&gt;maven-ejb-plugin&lt;/artifactId&gt;<br>        &lt;version&gt;2.3&lt;/version&gt;<br>                &lt;configuration&gt;<br>

                    &lt;ejbVersion&gt;3.0&lt;/ejbVersion&gt;<br>                    &lt;generateClient&gt;true&lt;/generateClient&gt;<br>                    &lt;archive&gt;<br>                        &lt;manifest&gt;<br>
                            &lt;addClasspath&gt;true&lt;/addClasspath&gt;<br>
                        &lt;/manifest&gt;<br>                    &lt;/archive&gt;<br>                      &lt;clientExcludes&gt;<br>                         &lt;clientExclude&gt;**/*CMP.class&lt;/clientExclude&gt;<br>                          &lt;clientExclude&gt;**/*Session.class&lt;/clientExclude&gt;<br>

                        &lt;clientExclude&gt;**/*package.html&lt;/clientExclude&gt;<br>                      &lt;/clientExcludes&gt;<br>                &lt;/configuration&gt;<br>            &lt;/plugin&gt;<br>            &lt;plugin&gt;<br>

                    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>                    &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;<br>                    &lt;version&gt;1.6&lt;/version&gt;            <br>

                &lt;executions&gt;<br>                    &lt;execution&gt;<br>                          &lt;id&gt;construct-jboss-xml&lt;/id&gt;<br>                        &lt;phase&gt;process-classes&lt;/phase&gt;<br>                        &lt;configuration&gt;<br>

                            &lt;tasks&gt;<br>                              &lt;copy<br>                                file=&quot;src/main/etc/jboss-${<a href="http://login.policy.name">login.policy.name</a>}.xml&quot;<br>

                                tofile=&quot;target/classes/META-INF/jboss.xml&quot;<br>                                overwrite=&quot;true&quot;&gt;<br>                                &lt;filterset&gt;<br>                                  &lt;filter<br>

                                     token=&quot;DOMAIN&quot;<br>                                     value=&quot;${login.domain}&quot; /&gt;<br>                                  &lt;filter<br>                                     token=&quot;AUTH_METHOD&quot;<br>

                                     value=&quot;${auth.method}&quot; /&gt;<br>                                  &lt;/filterset&gt;<br>                                &lt;/copy&gt;<br>                             &lt;!--    &lt;copy<br>

                                    file=&quot;src/main/etc/persistence.xml.template&quot;<br>                                    tofile=&quot;target/classes/META-INF/persistence.xml&quot;<br>                                    overwrite=&quot;true&quot;&gt;<br>

                                    &lt;filterset&gt;<br>                                        &lt;filter<br>                                            token=&quot;HIBERNATE_DIALECT&quot;<br>                                            value=&quot;${hibernate.dialect}&quot; /&gt;<br>

                                    &lt;/filterset&gt;<br>                                &lt;/copy&gt; --&gt;<br>                            &lt;/tasks&gt;<br>                        &lt;/configuration&gt;<br>                        &lt;goals&gt;<br>

                            &lt;goal&gt;run&lt;/goal&gt;<br>                        &lt;/goals&gt;<br>                    &lt;/execution&gt;<br>            &lt;/executions&gt;<br>          &lt;/plugin&gt; <br>        &lt;/plugins&gt;<br>

    &lt;/build&gt;<br>    &lt;reporting&gt;<br>    &lt;/reporting&gt;<br>&lt;/project&gt;<br><br><br>Maven pom, security-war<br>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;project<br>  xmlns=&quot;<a href="http://maven.apache.org/POM/4.0.0">http://maven.apache.org/POM/4.0.0</a>&quot;<br>

  xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>  xsi:schemaLocation=&quot;<a href="http://maven.apache.org/POM/4.0.0">http://maven.apache.org/POM/4.0.0</a> <a href="http://maven.apache.org/maven-v4_0_0.xsd">http://maven.apache.org/maven-v4_0_0.xsd</a>&quot;&gt;<br>

  &lt;parent&gt;<br>    &lt;groupId&gt;security&lt;/groupId&gt;<br>    &lt;artifactId&gt;app&lt;/artifactId&gt;<br>    &lt;version&gt;2.0&lt;/version&gt;<br>  &lt;/parent&gt;<br>  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;<br>

  &lt;groupId&gt;security&lt;/groupId&gt;<br>  &lt;artifactId&gt;security-war&lt;/artifactId&gt;<br>  &lt;packaging&gt;war&lt;/packaging&gt;<br>  &lt;version&gt;2.0&lt;/version&gt;<br>  &lt;name&gt;Security Management WAR Project&lt;/name&gt;<br>

  &lt;description&gt;This is the WAR project used for displaying information<br>    pertaining to the Security Management application.<br>  &lt;/description&gt;<br>  &lt;dependencies&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;security&lt;/groupId&gt;<br>

      &lt;artifactId&gt;security-ejb&lt;/artifactId&gt;<br>      &lt;version&gt;2.0&lt;/version&gt;<br>    &lt;/dependency&gt;<br><br>   &lt;dependency&gt;<br>      &lt;groupId&gt;security&lt;/groupId&gt;<br>      &lt;artifactId&gt;faces-common&lt;/artifactId&gt;<br>

      &lt;version&gt;2.0&lt;/version&gt;<br>    &lt;/dependency&gt;<br><br>&lt;dependency&gt;<br>  &lt;groupId&gt;<a href="http://org.jboss.ws">org.jboss.ws</a>&lt;/groupId&gt;<br>  &lt;artifactId&gt;jbossws-spi&lt;/artifactId&gt;<br>

  &lt;version&gt;2.0.0.Beta5&lt;/version&gt;<br>  &lt;scope&gt;provided&lt;/scope&gt; <br>&lt;/dependency&gt;<br><br>&lt;dependency&gt;<br>     &lt;groupId&gt;commons-logging&lt;/groupId&gt;<br>     &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;<br>

     &lt;version&gt;1.1.1&lt;/version&gt;<br>     &lt;!-- &lt;scope&gt;provided&lt;/scope&gt; --&gt;<br>   &lt;/dependency&gt;<br><br>        &lt;dependency&gt;<br>                &lt;groupId&gt;commons-lang&lt;/groupId&gt;<br>

                &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;<br>                &lt;version&gt;2.4&lt;/version&gt;<br>             &lt;scope&gt;provided&lt;/scope&gt; <br>        &lt;/dependency&gt;<br><br>&lt;dependency&gt;<br>

 &lt;groupId&gt;javax.faces&lt;/groupId&gt;<br> &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;<br> &lt;version&gt;1.2_13&lt;/version&gt;<br> &lt;scope&gt;provided&lt;/scope&gt; <br>&lt;/dependency&gt;<br><br>&lt;dependency&gt;<br>

 &lt;groupId&gt;javax.faces&lt;/groupId&gt;<br> &lt;artifactId&gt;jsf-impl&lt;/artifactId&gt;<br> &lt;version&gt;1.2_13&lt;/version&gt;<br> &lt;scope&gt;provided&lt;/scope&gt; <br>&lt;/dependency&gt;<br><br>&lt;dependency&gt;<br>

 &lt;groupId&gt;org.jboss.spec.javax.servlet&lt;/groupId&gt;<br> &lt;artifactId&gt;jboss-servlet-api_3.0_spec&lt;/artifactId&gt;<br> &lt;version&gt;1.0.0.Final&lt;/version&gt;<br> &lt;scope&gt;provided&lt;/scope&gt; <br>
&lt;/dependency&gt;<br>
<br>&lt;!-- Old Jsf --&gt;<br><br>            &lt;dependency&gt;<br>                    &lt;groupId&gt;com.sun.facelets&lt;/groupId&gt;<br>                    &lt;artifactId&gt;jsf-facelets&lt;/artifactId&gt;<br>            &lt;version&gt;1.1.15.B1&lt;/version&gt;<br>

            &lt;/dependency&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.richfaces.framework&lt;/groupId&gt;<br>            &lt;artifactId&gt;richfaces-impl&lt;/artifactId&gt;<br>            &lt;version&gt;3.3.3.Final&lt;/version&gt;<br>

        &lt;/dependency&gt;<br>           &lt;dependency&gt;<br>                  &lt;groupId&gt;org.apache.myfaces.core&lt;/groupId&gt;<br>                  &lt;artifactId&gt;myfaces-api&lt;/artifactId&gt;<br>                  &lt;version&gt;1.2.2&lt;/version&gt;<br>

                &lt;/dependency&gt;<br>            &lt;dependency&gt;<br>                  &lt;groupId&gt;org.apache.myfaces.core&lt;/groupId&gt;<br>                  &lt;artifactId&gt;myfaces-impl&lt;/artifactId&gt;<br>
                  &lt;version&gt;1.2.2&lt;/version&gt;<br>
            &lt;/dependency&gt;<br>           &lt;dependency&gt;<br>                  &lt;groupId&gt;org.apache.myfaces.tomahawk&lt;/groupId&gt;<br>                  &lt;artifactId&gt;tomahawk&lt;/artifactId&gt;<br>                  &lt;version&gt;1.1.6&lt;/version&gt;<br>

            &lt;/dependency&gt;<br><br>  &lt;/dependencies&gt;<br>    &lt;build&gt;<br>      &lt;plugins&gt;<br>        &lt;plugin&gt;<br>                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>            &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;<br>

            &lt;version&gt;1.6&lt;/version&gt;<br>            &lt;executions&gt;<br>              &lt;execution&gt;<br>                &lt;id&gt;copy&lt;/id&gt;<br>                &lt;phase&gt;process-sources&lt;/phase&gt;<br>

                &lt;goals&gt;<br>                  &lt;goal&gt;run&lt;/goal&gt;<br>                &lt;/goals&gt;<br>                &lt;configuration&gt;<br>                  &lt;target&gt;<br>                    &lt;copy file=&quot;src/main/xmltemplates/WEB-INF/web.xml.${<a href="http://login.policy.name">login.policy.name</a>}&quot;<br>

                          toFile=&quot;src/main/webapp/WEB-INF/web.xml&quot;<br>                              overwrite=&quot;true&quot;&gt;<br>                              &lt;/copy&gt;<br>                                 &lt;copy<br>

                                file=&quot;src/main/xmltemplates/WEB-INF/jboss-web.xml.${<a href="http://login.policy.name">login.policy.name</a>}&quot;<br>                                toFile=&quot;src/main/webapp/WEB-INF/jboss-web.xml&quot;<br>

                                overwrite=&quot;true&quot;&gt;<br>                              &lt;/copy&gt;<br>                                 &lt;copy<br>                                file=&quot;src/main/xmltemplates/WEB-INF/faces-beans.xml&quot;<br>

                                toFile=&quot;src/main/webapp/WEB-INF/faces-beans.xml&quot;<br>                                overwrite=&quot;true&quot;&gt;<br>                                &lt;filterset&gt;<br>                                  &lt;filter<br>

                                    token=&quot;PASS_VISIBLE_VALUE&quot;<br>                                    value=&quot;${faces.passvisible.value}&quot; /&gt;<br>                                  &lt;filter<br>                                    token=&quot;HOST&quot;<br>

                                    value=&quot;${<a href="http://host.name">host.name</a>}&quot; /&gt;<br>                                  &lt;filter<br>                                    token=&quot;PROJECT&quot;<br>
                                    value=&quot;${<a href="http://overall.name">overall.name</a>}&quot; /&gt;<br>
                                &lt;/filterset&gt;<br>                              &lt;/copy&gt;<br>                                 &lt;copy<br>                                file=&quot;src/main/resources/${<a href="http://overall.name">overall.name</a>}.properties&quot;<br>

                                toFile=&quot;src/main/resources/logosAndStrings.properties&quot;<br>                                overwrite=&quot;true&quot;&gt;<br>                              &lt;/copy&gt;<br>                              &lt;copy<br>

                                file=&quot;src/main/webapp/images/${<a href="http://overall.name">overall.name</a>}.png&quot;<br>                                toFile=&quot;src/main/webapp/images/logo.png&quot;<br>                                overwrite=&quot;true&quot;&gt;<br>

                              &lt;/copy&gt;<br>                            &lt;/target&gt;<br>                        &lt;/configuration&gt;<br>                    &lt;/execution&gt;<br>                &lt;/executions&gt;<br>

            &lt;/plugin&gt;<br>        &lt;/plugins&gt;<br>    &lt;/build&gt;<br>    &lt;reporting&gt;<br>    &lt;/reporting&gt;<br>&lt;/project&gt;<br><br><br><br>Thanks, <br>-Brian<br><br><br><br>