anonymous wrote :
| You created a web project - so it is deploying as a WAR - right?
|
Yes it's a war.
anonymous wrote :
|
|
| Also what does your Authenticator class look like, and your components.xml. The error
is saying that it can't find your Authenticator class/component.
| package org.domain.Simple.session;
|
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Logger;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.log.Log;
| import org.jboss.seam.security.Identity;
|
|
| @Name("authenticator")
| public class Authenticator
| {
| @Logger Log log;
|
| @In Identity identity;
|
| public boolean authenticate()
| {
| log.info("authenticating #0", identity.getUsername());
| //write your authentication logic here,
| //return true if the authentication was
| //successful, false otherwise
| identity.addRole("admin");
| return true;
| }
| }
|
| <?xml version="1.0" encoding="UTF-8"?>
| <components
xmlns="http://jboss.com/products/seam/components"
|
xmlns:core="http://jboss.com/products/seam/core"
|
xmlns:persistence="http://jboss.com/products/seam/persistence"
|
xmlns:drools="http://jboss.com/products/seam/drools"
|
xmlns:bpm="http://jboss.com/products/seam/bpm"
|
xmlns:security="http://jboss.com/products/seam/security"
|
xmlns:mail="http://jboss.com/products/seam/mail"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation=
| "http://jboss.com/products/seam/core
http://jboss.com/products/seam/core-2.0.xsd
|
http://jboss.com/products/seam/persistence
http://jboss.com/products/seam/persistence-2.0.xsd
|
http://jboss.com/products/seam/drools
http://jboss.com/products/seam/drools-2.0.xsd
|
http://jboss.com/products/seam/bpm
http://jboss.com/products/seam/bpm-2.0.xsd
|
http://jboss.com/products/seam/security
http://jboss.com/products/seam/security-2.0.xsd
|
http://jboss.com/products/seam/mail
http://jboss.com/products/seam/mail-2.0.xsd
|
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.0.xsd">
|
| <core:init debug="true" jndi-pattern="@jndiPattern@"/>
|
| <core:manager concurrent-request-timeout="500"
| conversation-timeout="120000"
| conversation-id-parameter="cid"/>
|
| <persistence:managed-persistence-context name="entityManager"
| auto-create="true"
|
entity-manager-factory="#{SimpleEntityManagerFactory}"/>
|
| <persistence:entity-manager-factory name="SimpleEntityManagerFactory"
| persistence-unit-name="Simple"/>
|
| <drools:rule-base name="securityRules">
|
<drools:rule-files><value>/security.drl</value></drools:rule-files>
| </drools:rule-base>
|
| <security:identity
authenticate-method="#{authenticator.authenticate}"
| security-rules="#{securityRules}"
| remember-me="true"/>
|
| <event type="org.jboss.seam.notLoggedIn">
| <action execute="#{redirect.captureCurrentView}"/>
| </event>
| <event type="org.jboss.seam.postAuthenticate">
| <action execute="#{redirect.returnToCapturedView}"/>
| </event>
|
| <mail:mail-session host="localhost" port="2525"
username="test" password="test" />
|
| <!-- For use with jBPM pageflow or process management -->
| <!--
| <bpm:jbpm>
| <bpm:process-definitions></bpm:process-definitions>
| <bpm:pageflow-definitions></bpm:pageflow-definitions>
| </bpm:jbpm>
| -->
|
| </components>
|
OK this is it. I'll head out and generate an EAR.
Also do I make of this ?
| --- Packages waiting for a deployer ---
| org.jboss.deployment.DeploymentInfo@86b0359d {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/as-ear.ear/ }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/as-ear.ear/
| altDD: null
| lastDeployed: 1201379415187
| lastModified: 1201249808750
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@4f36fae6 {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/jboss-seam-dvd.ear }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch:
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/jboss-seam-dvd.ear
| altDD: null
| lastDeployed: 1201379415281
| lastModified: 1201379415281
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@5a00c1c7 {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/numberguess.ear }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch:
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/numberguess.ear
| altDD: null
| lastDeployed: 1201379415546
| lastModified: 1201379415546
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@8aeb7948 {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/build.xml }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/build.xml
| altDD: null
| lastDeployed: 1201379415562
| lastModified: 1201379415562
| mbeans:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@9fa5ed2b {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/diff-prod-ds.xml }
| deployer: org.jboss.deployment.XSLSubDeployer@6c08b2
| status: Deployment FAILED reason: Trying to install an already registered mbean:
jboss.jca:service=LocalTxCM,name=diffDatasource
| state: FAILED
| watch:
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/diff-prod-ds.xml
| altDD: null
| lastDeployed: 1201379381421
| lastModified: 1201379381406
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@dfc49f49 {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Damm.war/ }
| deployer: MBeanProxyExt[jboss.web:service=WebServer]
| status: Deployment FAILED reason: URL
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Damm.war/ deployment
failed
| state: FAILED
| watch:
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Damm.war/WEB-INF/web.xml
| altDD: null
| lastDeployed: 1201379383296
| lastModified: 1201336427593
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@4930c95a {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Simple2.war/ }
| deployer: MBeanProxyExt[jboss.web:service=WebServer]
| status: Deployment FAILED reason: URL
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Simple2.war/ deployment
failed
| state: FAILED
| watch:
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Simple2.war/WEB-INF/web.xml
| altDD: null
| lastDeployed: 1201379402093
| lastModified: 1201379351796
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@b2abf990 {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/tomcattest.war/ }
| deployer: MBeanProxyExt[jboss.web:service=WebServer]
| status: Deployment FAILED reason: URL
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/tomcattest.war/
deployment failed
| state: FAILED
| watch:
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/tomcattest.war/WEB-INF/web.xml
| altDD: null
| lastDeployed: 1201379409671
| lastModified: 1201342432734
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@86b0359d {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/as-ear.ear/ }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/as-ear.ear/
| altDD: null
| lastDeployed: 1201379415187
| lastModified: 1201249808750
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@4f36fae6 {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/jboss-seam-dvd.ear }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch:
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/jboss-seam-dvd.ear
| altDD: null
| lastDeployed: 1201379415281
| lastModified: 1201379415281
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@5a00c1c7 {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/numberguess.ear }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch:
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/numberguess.ear
| altDD: null
| lastDeployed: 1201379415546
| lastModified: 1201379415546
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@8aeb7948 {
url=file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/build.xml }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/build.xml
| altDD: null
| lastDeployed: 1201379415562
| lastModified: 1201379415562
| mbeans:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.ws:service=DeployerInterceptorEJB21
| State: CONFIGURED
| I Depend On:
| jboss.ejb:service=EJBDeployer
|
| ObjectName: jboss.ws:service=DeployerInterceptorEJB3
| State: CONFIGURED
| I Depend On:
| jboss.ejb3:service=EJB3Deployer
|
| ObjectName: jboss.web.deployment:war=Damm.war,id=-540762295
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: URL
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Damm.war/ deployment
failed
|
| ObjectName: jboss.web.deployment:war=Simple2.war,id=1227934042
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: URL
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Simple2.war/ deployment
failed
|
| ObjectName: jboss.web.deployment:war=tomcattest.war,id=-1297352304
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: URL
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/tomcattest.war/
deployment failed
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.web.deployment:war=tomcattest.war,id=-1297352304
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: URL
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/tomcattest.war/
deployment failed
|
| ObjectName: jboss.web.deployment:war=Simple2.war,id=1227934042
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: URL
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Simple2.war/ deployment
failed
|
| ObjectName: jboss.ejb3:service=EJB3Deployer
| State: NOTYETINSTALLED
| Depends On Me:
| jboss.ws:service=DeployerInterceptorEJB3
|
| ObjectName: jboss.ejb:service=EJBDeployer
| State: NOTYETINSTALLED
| Depends On Me:
| jboss.ws:service=DeployerInterceptorEJB21
|
| ObjectName: jboss.web.deployment:war=Damm.war,id=-540762295
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: URL
file:/D:/rhdevstudiorc1/jboss-eap/jboss-as/server/default/deploy/Damm.war/ deployment
failed
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123730#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...