[Security & JAAS/JBoss] - Re: FORM based authenticated session not logged out properly
by mp30130
Ok; I have simplified my test and removed my portal from the equation; I am simply using JSPs and the LdapExtLoginModule, and BASIC authentication. I still observe the same issue ? where I am granted access to resources when I would expect to have to re-login after invalidating my session.
I have a secure directory which has a resource constraint on it. In the secure directory, I have a invalidate.jsp file. When this jsp file is visited, I invalidate the session. I would then expect I would not be able to visit any other pages under my secure directory; rather, I would expect that I would be prompted to login again if I visit another page under my secure directory. It appears that even though I have set flushOnSessionInvalidation=true in my jboss-web.xml configuration, it appears that caching is still going on and the LdapExtLoginModule.login is being called w/o having me needing to reenter the password through the BASIC authentication dialog box.
Here is the output from my simplified test program. The session invalidation occurs at
2006-12-11 23:22:47,446 and the auto re-login occurs at 2006-12-11 23:23:28,886. How do I disable this caching and force a re-login?
2006-12-11 23:22:44,304 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecretProtection]' against GET /pages/secure/invalidate.jsp --> false
| 2006-12-11 23:22:44,304 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[secure pages]' against GET /pages/secure/invalidate.jsp --> true
| 2006-12-11 23:22:44,305 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecretProtection]' against GET /pages/secure/invalidate.jsp --> false
| 2006-12-11 23:22:44,305 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[secure pages]' against GET /pages/secure/invalidate.jsp --> true
| 2006-12-11 23:22:44,305 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling hasUserDataPermission()
| 2006-12-11 23:22:44,305 DEBUG [org.apache.catalina.realm.RealmBase] User data constraint has no restrictions
| 2006-12-11 23:22:44,305 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling authenticate()
| 2006-12-11 23:22:44,305 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] Begin authenticate, username=testuser
| 2006-12-11 23:22:44,306 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] Begin isValid, principal:testuser, cache info: org.jboss.security.plugins.JaasSecurityManager$DomainInfo@bcecc7[Subject(7838822).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader)),credential.class=java.lang.String@21479899,expirationTime=1165899151778]
| 2006-12-11 23:22:44,306 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] Begin validateCache, info=org.jboss.security.plugins.JaasSecurityManager$DomainInfo@bcecc7[Subject(7838822).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader)),credential.class=java.lang.String@21479899,expirationTime=1165899151778];credential.class=java.lang.String@21479899
| 2006-12-11 23:22:44,306 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] End validateCache, isValid=true
| 2006-12-11 23:22:44,306 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] End isValid, true
| 2006-12-11 23:22:44,306 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] User: testuser is authenticated
| 2006-12-11 23:22:44,306 TRACE [org.jboss.security.SecurityAssociation] pushSubjectContext, subject=Subject:
| Principal: testuser
| Principal: Roles(members:trader)
| , sc=org.jboss.security.SecurityAssociation$SubjectContext@d34b8c{principal=testuser,subject=325274}
|
| 2006-12-11 23:22:44,306 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] getPrincipal, cache info: org.jboss.security.plugins.JaasSecurityManager$DomainInfo@bcecc7[Subject(7838822).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader)),credential.class=java.lang.String@21479899,expirationTime=1165899151778]
| 2006-12-11 23:22:44,306 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] Mapped from input principal: testuserto: testuser
| 2006-12-11 23:22:44,306 TRACE [org.jboss.security.SecurityAssociation] getSubject, sc=org.jboss.security.SecurityAssociation$SubjectContext@d34b8c{principal=testuser,subject=325274}
| 2006-12-11 23:22:44,307 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] getUserRoles, subject: Subject:
| Principal: testuser
| Principal: Roles(members:trader)
|
| 2006-12-11 23:22:44,307 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] End authenticate, principal=GenericPrincipal[testuser(trader,)]
| 2006-12-11 23:22:44,307 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Authenticated 'testuser' with type 'BASIC'
| 2006-12-11 23:22:44,307 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling accessControl()
| 2006-12-11 23:22:44,307 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] Checking roles GenericPrincipal[testuser(trader,)]
| 2006-12-11 23:22:44,307 DEBUG [org.apache.catalina.realm.RealmBase] Username testuser has role trader
| 2006-12-11 23:22:44,307 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] No role found: trader
| 2006-12-11 23:22:44,307 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Successfully passed all security constraints
| 2006-12-11 23:22:44,307 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] Begin invoke, callerGenericPrincipal[testuser(trader,)]
| 2006-12-11 23:22:44,307 TRACE [org.jboss.security.SecurityAssociation] pushRunAsIdentity, runAs=null
| 2006-12-11 23:22:44,307 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] Restoring principal info from cache
| 2006-12-11 23:22:44,307 TRACE [org.jboss.security.SecurityAssociation] pushSubjectContext, subject=Subject:
| Principal: testuser
| Principal: Roles(members:trader)
| , sc=org.jboss.security.SecurityAssociation$SubjectContext@1da1845{principal=testuser,subject=325274}
| 2006-12-11 23:22:44,307 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
| 2006-12-11 23:22:44,307 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
| 2006-12-11 23:22:46,648 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1165897366647 sessioncount 0
| 2006-12-11 23:22:46,648 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 1 expired sessions: 0
| 2006-12-11 23:22:46,648 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1165897366648 sessioncount 0
| 2006-12-11 23:22:46,648 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
| 2006-12-11 23:22:47,435 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Session Created with id=1C3E4585A5D9B5916FB1C2B2DDC911C9
| 2006-12-11 23:22:47,446 INFO [STDOUT] Invalidating session...
| 2006-12-11 23:22:47,446 INFO [STDOUT] ***** request = org.apache.catalina.connector.RequestFacade@1024864
| 2006-12-11 23:22:47,447 DEBUG [org.apache.catalina.realm.RealmBase] Username testuser has role trader
| 2006-12-11 23:22:47,447 INFO [STDOUT] Invalidating the session: org.apache.catalina.session.StandardSessionFacade@deb65f
| 2006-12-11 23:22:47,447 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Session Destroy with id=1C3E4585A5D9B5916FB1C2B2DDC911C9
| 2006-12-11 23:22:47,450 TRACE [org.jboss.security.SecurityAssociation] getSubject, sc=org.jboss.security.SecurityAssociation$SubjectContext@1da1845{principal=testuser,subject=325274}
| 2006-12-11 23:22:47,450 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Jacc Subject = Subject:
| Principal: testuser
| Principal: Roles(members:trader)
|
| 2006-12-11 23:22:47,450 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] securityDomain=mydomain
| 2006-12-11 23:22:47,450 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Authenticated Principal=testuser2006-12-11 23:22:47,450 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Before flush of authentication cache::
| 2006-12-11 23:22:47,451 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Number of authenticated principals remaining in cache=1
| 2006-12-11 23:22:47,451 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Authenticated principal in cache=testuser
| 2006-12-11 23:22:47,451 TRACE [org.jboss.security.plugins.JaasSecurityManager$DomainInfo] destroy, subject=Subject:
| Principal: testuser
| Principal: Roles(members:trader)
| , this=org.jboss.security.plugins.JaasSecurityManager$DomainInfo@bcecc7[Subject(7838822).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader)),credential.class=java.lang.String@21479899,expirationTime=1165899151778], activeUsers=0
| 2006-12-11 23:22:47,451 TRACE [org.jboss.security.plugins.JaasSecurityManager$DomainInfo] logout, subject=Subject:
| Principal: testuser
| Principal: Roles(members:trader)
| , this=org.jboss.security.plugins.JaasSecurityManager$DomainInfo@bcecc7[Subject(7838822).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader)),credential.class=java.lang.String@21479899,expirationTime=1165899151778]
| 2006-12-11 23:22:47,451 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] logout
| 2006-12-11 23:22:47,451 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] After flush of authentication cache::
| 2006-12-11 23:22:47,451 TRACE [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Number of authenticated principals remaining in cache=0
| 2006-12-11 23:22:47,452 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
| 2006-12-11 23:22:47,452 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null
| 2006-12-11 23:22:47,453 TRACE [org.jboss.security.SecurityAssociation] popRunAsIdentity, runAs=null
| 2006-12-11 23:22:47,453 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] End invoke, callerGenericPrincipal[testuser(trader,)]
| 2006-12-11 23:22:47,453 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
| 2006-12-11 23:22:56,650 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1165897376650 sessioncount 0
| 2006-12-11 23:22:56,650 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
| 2006-12-11 23:23:16,653 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1165897396653 sessioncount 0
| 2006-12-11 23:23:16,653 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
| 2006-12-11 23:23:16,653 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1165897396653 sessioncount 0
| 2006-12-11 23:23:16,653 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Security checking request GET /testsec/pages/
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecretProtection]' against GET /pages/ --> false
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[secure pages]' against GET /pages/ --> false
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecretProtection]' against GET /pages/ --> false
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[secure pages]' against GET /pages/ --> false
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecretProtection]' against GET /pages/ --> false
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[secure pages]' against GET /pages/ --> false
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecretProtection]' against GET /pages/ --> false
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[secure pages]' against GET /pages/ --> false
| 2006-12-11 23:23:20,538 DEBUG [org.apache.catalina.realm.RealmBase] No applicable constraint located
| 2006-12-11 23:23:20,539 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Not subject to any constraint
| 2006-12-11 23:23:20,539 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] Begin invoke, callernull
| 2006-12-11 23:23:20,539 TRACE [org.jboss.security.SecurityAssociation] pushRunAsIdentity, runAs=null
| 2006-12-11 23:23:20,539 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
| 2006-12-11 23:23:20,539 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
| 2006-12-11 23:23:20,541 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
| 2006-12-11 23:23:20,541 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
| 2006-12-11 23:23:20,541 TRACE [org.jboss.security.SecurityAssociation] popRunAsIdentity, runAs=null
| 2006-12-11 23:23:20,541 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] End invoke, callernull
| 2006-12-11 23:23:20,541 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
| 2006-12-11 23:23:28,885 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Security checking request GET /testsec/pages/secure/
| 2006-12-11 23:23:28,885 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecretProtection]' against GET /pages/secure/ --> false
| 2006-12-11 23:23:28,885 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[secure pages]' against GET /pages/secure/ --> true
| 2006-12-11 23:23:28,885 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecretProtection]' against GET /pages/secure/ --> false
| 2006-12-11 23:23:28,885 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[secure pages]' against GET /pages/secure/ --> true
| 2006-12-11 23:23:28,885 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling hasUserDataPermission()
| 2006-12-11 23:23:28,885 DEBUG [org.apache.catalina.realm.RealmBase] User data constraint has no restrictions
| 2006-12-11 23:23:28,885 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling authenticate()
| 2006-12-11 23:23:28,885 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] Begin authenticate, username=testuser
| 2006-12-11 23:23:28,886 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] Begin isValid, principal:testuser, cache info: null
| 2006-12-11 23:23:28,886 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] defaultLogin, principal=testuser
| 2006-12-11 23:23:28,886 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] End getAppConfigurationEntry(mydomain), authInfo=AppConfigurationEntry[]:
| [0]
| LoginModule Class: org.jboss.security.auth.spi.LdapExtLoginModule
| ControlFlag: LoginModuleControlFlag: required
| Options:name=roleFilter, value=(memberUid={0})
| name=baseFilter, value=(uid={0})
| name=bindCredential, value=somePortal
| name=bindDN, value=cn=SomePortal,dc=somebrokerage,dc=com
| name=roleRecursion, value=-1
| name=java.naming.provider.url, value=ldap://ldapserver:389
| name=roleAttributeID, value=cn
| name=baseCtxDN, value=dc=somebrokerage,dc=com
| name=rolesCtxDN, value=ou=Group,dc=somebrokerage,dc=com
|
| 2006-12-11 23:23:28,886 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] initialize, instance=@8443349
| 2006-12-11 23:23:28,886 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] login
| 2006-12-11 23:23:28,906 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] Assign user to role trader
| 2006-12-11 23:23:28,907 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] User 'testuser' authenticated, loginOk=true
| 2006-12-11 23:23:28,907 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] commit, loginOk=true
| 2006-12-11 23:23:28,907 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] defaultLogin, lc=javax.security.auth.login.LoginContext@56c88c, subject=Subject(25727428).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader))
| 2006-12-11 23:23:28,907 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] updateCache, inputSubject=Subject(25727428).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader)), cacheSubject=Subject(18477885).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader))
| 2006-12-11 23:23:28,907 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] Inserted cache info: org.jboss.security.plugins.JaasSecurityManager$DomainInfo@b041f3[Subject(18477885).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader)),credential.class=java.lang.String@21479899,expirationTime=1165899151778]
| 2006-12-11 23:23:28,907 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] End isValid, true
| 2006-12-11 23:23:28,907 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] User: testuser is authenticated
| 2006-12-11 23:23:28,907 TRACE [org.jboss.security.SecurityAssociation] pushSubjectContext, subject=Subject:
| Principal: testuser
| Principal: Roles(members:trader)
| , sc=org.jboss.security.SecurityAssociation$SubjectContext@1b9e1e7{principal=testuser,subject=10368983}
| 2006-12-11 23:23:28,908 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] getPrincipal, cache info: org.jboss.security.plugins.JaasSecurityManager$DomainInfo@b041f3[Subject(18477885).principals=org.jboss.security.SimplePrincipal@32394345(testuser)org.jboss.security.SimpleGroup@27381857(Roles(members:trader)),credential.class=java.lang.String@21479899,expirationTime=1165899151778]
| 2006-12-11 23:23:28,908 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] Mapped from input principal: testuserto: testuser
| 2006-12-11 23:23:28,908 TRACE [org.jboss.security.SecurityAssociation] getSubject, sc=org.jboss.security.SecurityAssociation$SubjectContext@1b9e1e7{principal=testuser,subject=10368983}
| 2006-12-11 23:23:28,908 TRACE [org.jboss.security.plugins.JaasSecurityManager.mydomain] getUserRoles, subject: Subject:
| Principal: testuser
| Principal: Roles(members:trader)
|
| 2006-12-11 23:23:28,908 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] End authenticate, principal=GenericPrincipal[testuser(trader,)]
| 2006-12-11 23:23:28,908 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Authenticated 'testuser' with type 'BASIC'
| 2006-12-11 23:23:28,908 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling accessControl()
| 2006-12-11 23:23:28,908 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] Checking roles GenericPrincipal[testuser(trader,)]
| 2006-12-11 23:23:28,908 DEBUG [org.apache.catalina.realm.RealmBase] Username testuser has role trader
| 2006-12-11 23:23:28,908 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] No role found: trader
| 2006-12-11 23:23:28,908 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Successfully passed all security constraints
| 2006-12-11 23:23:28,908 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] Begin invoke, callerGenericPrincipal[testuser(trader,)]
| 2006-12-11 23:23:28,908 TRACE [org.jboss.security.SecurityAssociation] pushRunAsIdentity, runAs=null
| 2006-12-11 23:23:28,908 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] Restoring principal info from cache
| 2006-12-11 23:23:28,909 TRACE [org.jboss.security.SecurityAssociation] pushSubjectContext, subject=Subject:
| Principal: testuser
| Principal: Roles(members:trader)
| , sc=org.jboss.security.SecurityAssociation$SubjectContext@1642565{principal=testuser,subject=10368983}
| 2006-12-11 23:23:28,909 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
| 2006-12-11 23:23:28,909 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
| 2006-12-11 23:23:28,910 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
| 2006-12-11 23:23:28,910 TRACE [org.jboss.web.tomcat.security.RunAsListener] default, runAs: null
| 2006-12-11 23:23:28,910 TRACE [org.jboss.security.SecurityAssociation] popRunAsIdentity, runAs=null
| 2006-12-11 23:23:28,910 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] End invoke, callerGenericPrincipal[testuser(trader,)]
| 2006-12-11 23:23:28,910 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
| 2006-12-11 23:23:36,657 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1165897416657 sessioncount 0
| 2006-12-11 23:23:36,657 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
| 2006-12-11 23:23:36,657 DEBUG [org.apache.catalina.session.ManagerBase] Start expire sessions StandardManager at 1165897416657 sessioncount 0
| 2006-12-11 23:23:36,657 DEBUG [org.apache.catalina.session.ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992970#3992970
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992970
19 years, 7 months
[EJB/JBoss] - Using entity bean in JBoss storing
by ponds81
Using entity bean in JBoss storing "IMAGE" data type in SYBASE
We are using JBoss-4.0.4.GA, Entity Bean 2.x (CMP), Sybase 12.5
File Name :- jconn2.jar
File Version :- 1.4.2_04
File Size :- 876 kb
When we try to insert an object in to column of data type "IMAGE" in Sybase by using EJB 2.x we get the fallowing exception
2006-11-24 13:31:58,328 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2006-11-24 13:31:58,359 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2006-11-24 13:31:58,359 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2006-11-24 13:31:58,218 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Exception destroying ManagedConnection org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@a97cec[state=DESTROYED mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@1f71b53 handles=0 lastUse=1164355312640 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@22f376 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@9ddfa3]
org.jboss.resource.JBossResourceException: SQLException; - nested throwable: (java.sql.SQLException: JZ0C0: Connection is already closed.)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkException(BaseWrapperManagedConnection.java:541)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.destroy(BaseWrapperManagedConnection.java:255)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.doDestroy(InternalManagedConnectionPool.java:539)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.returnConnection(InternalManagedConnectionPool.java:329)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.returnConnection(JBossManagedConnectionPool.java:552)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.returnManagedConnection(BaseConnectionManager2.java:407)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$BaseConnectionEventListener.connectionErrorOccurred(BaseConnectionManager2.java:768)
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionErrorOccurred(TxConnectionManager.java:550)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.broadcastConnectionError(BaseWrapperManagedConnection.java:327)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.connectionError(BaseWrapperManagedConnection.java:313)
at org.jboss.resource.adapter.jdbc.WrappedConnection.checkException(WrappedConnection.java:757)
at org.jboss.resource.adapter.jdbc.WrappedStatement.checkException(WrappedStatement.java:768)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:320)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCIdentityColumnCreateCommand.executeInsert(JDBCIdentityColumnCreateCommand.java:51)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:286)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:137)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:572)
at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:222)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:266)
at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:612)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113)
at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:192)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212)
at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:117)
at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:126)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:99)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
at org.jboss.ejb.Container.invoke(Container.java:891)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:342)
at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)
at $Proxy94.create(Unknown Source)
_____________________________________________________________________________________________________
Here is the code for the bean
/**
* RecoverLogBean is an EntityBean. This EJBean illustrates:
*
* Container-managed JDBC persistence and transactions;
* the code in this file never directly accesses the data storage.
* Application-defined exceptions.
* Use of EJB 2.0 relationships.
* Use of EJB-QL in query methods.
*
* The javadoc comments in this document are critical and should be changed with consideration.
* The EJBGen tool reads these comments and creates corresponding
* EJB2.0 XML files as well as Home and Remote interfaces
*
* This bean uses EJBGen tags.
*
* @ejb.bean description="RecoverLog"
* name="RecoverLog"
* local-jndi-name="abs.RecoverLog"
* type="CMP"
* primkey-field = "id"
* view-type="local"
* cmp-version = "2.x"
*
* @jboss.persistence
* table-name = "recoverLog"
*
* @ejb.pk class = "java.lang.Integer"
*
* @jboss.unknown-pk
* column-name = "id"
* jdbc-type = "INTEGER"
* sql-type = "INTEGER"
* class = "java.lang.Integer"
*
*
* @jboss.entity-command name = "sybase-fetch-key"
* class = "org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCSybaseCreateCommand"
* @jboss.entity-command-attribute name = "pk-sql"
* value = "SELECT @@IDENTITY"
*
* @ejb.finder
* signature = "Collection findAll()"
* query = "SELECT OBJECT(o) FROM RecoverLog o WHERE o.id IS NOT NULL"
*
* @ejb.finder
* signature = "Collection findByStatus(java.lang.String status)"
* query = "SELECT OBJECT(o) FROM RecoverLog o WHERE o.status = ?1"
*
* @ejb.finder
* signature = "Collection findByStatusUnique(java.lang.String status)"
* query = "SELECT OBJECT(o) FROM RecoverLog o WHERE o.status = ?1 AND o.id = (SELECT MIN(o1.id) FROM RecoverLog o1 WHERE o1.status = ?1 AND o1.attemptCount = (SELECT MIN(o2.attemptCount) FROM RecoverLog o2 WHERE o2.status = ?1))"
*
* @jboss.declared-sql alias = "o"
* signature = "Collection findByStatusUnique(java.lang.String status)"
* where = "o.status = {0} AND o.id = (SELECT MIN(o1.id) FROM RecoverLog o1 WHERE o1.status = {0} AND o1.attemptCount = (SELECT MIN(o2.attemptCount) FROM RecoverLog o2 WHERE o2.status = {0}))"
*
*/
abstract public class RecoverLogBean implements EntityBean
{
// ----------------------------------------------------------- Constants
// JNDI name of the EJB home object
// NOTE: Any changes here should also be reflected in the deployment descriptor.
public final static String JNDI_NAME = "abs.RecoverLog";
public final static String TYPE_CANCEL_BET = "Bet Cancel";
public final static String TYPE_PERSIST_BET = "Bet Persist";
public final static String TYPE_ACCOUNT_BALANCE = "Account Balance";
public final static String STATUS_PENDING = "Pending";
public final static String STATUS_RESOLVED = "Resolved";
public final static String STATUS_INPROGRESS = "InProgress";
// Added for CR 4311 - status for reaching the max attempt with failures
public static final String STATUS_DISCARDED = "Discarded";
// ----------------------------------------------------------- Member Variables
/**
* The container assigned reference to the entity
*/
private EntityContext context;
// ----------------------------------------------------------- Constructors
public RecoverLogBean() { /* do nothing */ }
// ----------------------------------------------------------- Public EJB Methods
/**
* Sets the context of the bean
* @param ec EntityContext
*/
public void setEntityContext(EntityContext ec) { context = ec; }
/**
* Clears the context of the bean
*/
public void unsetEntityContext() { this.context = null; }
/**
* This method is called when the container picks this entity object
* and assigns it to a specific entity object. Insert code here to
* acquire any additional resources that it needs when it is in the
* ready state.
*/
public void ejbActivate() { /* do nothing */ }
/**
* This method is called when the container diassociates the bean
* from the entity object identity and puts the instance back into
* the pool of available instances. Insert code to release any
* resources that should not be held while the instance is in the
* pool.
*/
public void ejbPassivate() { /* do nothing */ }
/**
* The container invokes this method on the bean whenever it
* becomes necessary to synchronize the bean's state with the
* state in the database. This method is called after the container
* has loaded the bean's state from the database.
*/
public void ejbLoad() { /* do nothing */ }
/**
* The container invokes this method on the bean whenever it
* becomes necessary to synchronize the state in the database
* with the state of the bean. This method is called before the
* container extracts the fields and writes them into the database.
*/
public void ejbStore() { /* do nothing */ }
/**
* The container invokes this method in response to a client-invoked
* remove request. Insert code to implement any actions before the
* bean is removed from the database.
*/
public void ejbRemove() throws javax.ejb.RemoveException { /* do nothing */ }
/**
* This method is invoked when a client invokes the matching create()
* on the home interface. Initialize the fields that will be used
* used by the container to create a record in the database
*
* @ejb.create-method view-type = "local"
*
* @param info RecoverLogInfo
* @return Integer pk
* @throws CreateException
*/
public Integer ejbCreate(RecoverLogInfo info) throws CreateException
{
//this.setId(new Long(new Date().getTime()));
setAttemptCount(info.getAttemptCount());
if(info.getStatus()==null)
setStatus(STATUS_PENDING);
else
setStatus(info.getStatus());
Object o = info.getObject();
if(o instanceof BetPersistLogObject)
this.setType(TYPE_PERSIST_BET);
else if(o instanceof BetCancelLogObject)
this.setType(TYPE_CANCEL_BET);
else if(o instanceof BalanceLogObject) // Added for CR#3274 dt:5aug04
this.setType(TYPE_ACCOUNT_BALANCE);
this.setReferenceName(info.getReferenceName());
setObject(o);
setTimeEntered(info.getTimeEntered());
setTimeUpdated(info.getTimeUpdated());
return null;
}
/**
* The container invokes this method after invoking the ejbCreate
* method with the same arguments.
* @param info RecoverLogInfo
* @throws CreateException
*/
public void ejbPostCreate(RecoverLogInfo info) throws CreateException
{
// do nothing
}
// ----------------------------------------------------------- Public Business Methods
_____________________________________________________________________________________________________
Here is the data sourse file for sybase ie. sybaseDataSource-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- New ConnectionManager setup for Sybase ASE/ASA jConnect driver -->
<!-- Thanks to Marc Zampetti <zampetti(a)aol.net> -->
<!-- This is a minimal example. See the generic example for other stuff -->
<!-- ===================================================================== -->
<!-- $Id: sybase-ds.xml,v 1.4 2004/09/15 14:37:40 loubyansky Exp $ -->
<local-tx-datasource>
<jndi-name>sybaseDataSource</jndi-name>
<connection-url>jdbc:sybase:Tds:system-name:5000/abs_dev?JCONNECT_VERSION=6</connection-url>
<driver-class>com.sybase.jdbc2.jdbc.SybDriver</driver-class>
<user-name>abs_dev</user-name>
abs_dev
<min-pool-size>5</min-pool-size>
<max-pool-size>5</max-pool-size>
<track-statements/>true<track-statements/>
<new-connection-sql><![CDATA[SELECT COUNT(*) FROM SYSTEMPROPERTY]]></new-connection-sql>
<check-valid-connection-sql><![CDATA[SELECT COUNT(*) FROM SYSTEMPROPERTY]]></check-valid-connection-sql>
<no-tx-separate-pools/>
<track-connection-by-tx/>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter</exception-sorter-class-name>
<type-mapping>Sybase</type-mapping>
</local-tx-datasource>
______________________________________________________________________________
The Script which create the table is as fallows
create table recoverLog1 (
id numeric(8,0) identity ,
status varchar(30) not null ,
type varchar(30) not null ,
referenceName varchar(60) not null ,
object varchar(260) not null ,
attemptCount numeric(2,0) not null ,
timeEntered datetime not null ,
timeUpdated datetime null ,
constraint PK_recoverlog1 PRIMARY KEY CLUSTERED ( id )
) with identity_gap = 50 on 'default'
go
create unique index type_referenceName_ux on RecoverLog1 (type, referenceName)
go
create index recoverLogIdx on recoverLog1 (id)
go
grant select on recoverLog1 to public
go
grant update on recoverLog1 to public
go
grant insert on recoverLog1 to public
go
_________________________________________________________________________________________
The fallowing things were observed
1) No call to callback method ie. ejbPostCreate, ejbStore
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992962#3992962
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992962
19 years, 7 months
[Tomcat, HTTPD, Servlets & JSP] - Session attribute event listener problem !!!!
by sumit.malik@redalkemi.com
Hi Everyone !!
Previously i have posted a query and now i can make out where exactly the problem is lying...
Please refer http://www.jboss.com/index.html?module=bb&op=viewtopic&t=96839
Here is actual log trace from server.log file
Code:
| ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test]] Session attribute event listener threw exception
|
|
| java.lang.RuntimeException: Could not resolve beanClass method from proxy call: public abstract void
| javax.ejb.EJBLocalObject.remove() throws javax.ejb.RemoveException,javax.ejb.EJBException
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:169)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy128.remove(Unknown Source)
| at net.java.dev.strutsejb.web.SessionRemover.attributeRemoved(SessionRemover.java:39)
| at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:
| 1623)
| at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1179)
| at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1151)
| at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1234)
| at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java
| :129)
| at org.apache.jsp.update2AppTrans_jsp._jspService(update2AppTrans_jsp.java:85)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
| ava:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
|
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
| ava:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
|
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
| va:174)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt
| p11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcp
| Endpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
|
Here i have found that there its the tomcat instance running with EJB3 deployer which is invalidation the session. I haven't got much assistance in this regard.
Please assist on this regard because here i m just stuck up with stateful session bean funcationality. Message driven and stateless session bean are running smooth fashion but just session invalidate problem from tomcat is creatin the problem.
Any suggestion would be a great help for me....
Looking forward for you responses...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992960#3992960
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992960
19 years, 7 months
[EJB 3.0] - Deploy ejb failed
by lpoliver27
I just installed Jboss4.0.5 with no error. When I deployed my application ejb, it failed. The application ejb runs well on my previous server and they are EJB2.0. I compiled it with the late javeEE lib and unchange the ejb-jar.xml. They are all session beans. When I depolyed them, Jboss gave me the following error:
14:52:04,026 WARN [verifier] EJB spec violation:
Bean : SYS/User
Method : public abstract MutableUser addMobileTagUser(MutableTagUser, int, boolean) throws CodeException, RemoteException
Section: 7.10.5
Warning: The methods defined in the remote interface must have a matching method in the bean's class with the same name and same number and types of arguments.
14:52:04,208 ERROR [MainDeployer] Could not create deployment: file:/home/oyang/jboss-4.0.5.GA/server/default/deploy/ejb.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
............
Please help.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992951#3992951
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992951
19 years, 7 months
[JNDI/Naming/Network] - EJB to EJB communication via local interface
by g3rd
Hello,
I am attempting to make an application project (WAR/EAR) talk to another EJB (EJB/EAR) in the same container. JBoss 4.0.2. with EJB 2.0. The EJB/EAR is being called by the WAR/EAR project.
EJB/EAR's ejb-jar.xml:
<session id="Session_Team">
| <description><![CDATA[SessionBean: Team]]></description>
| <display-name>Team</display-name>
| <ejb-name>TeamEJB</ejb-name>
| <home>com.g3rdmedia.sports.ejb.team.TeamHome</home>
| <remote>com.g3rdmedia.sports.ejb.team.Team</remote>
| <local-home>com.g3rdmedia.sports.ejb.team.TeamLocalHome</local-home>
| <local>com.g3rdmedia.sports.ejb.team.TeamLocal</local>
| <ejb-class>com.g3rdmedia.sports.ejb.team.TeamSession</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| </session>
...
<assembly-descriptor id="AssemblyDescriptor_1">
| <method-permission>
| <unchecked />
| <method>
| <ejb-name>TeamEJB</ejb-name>
| <method-name>*</method-name>
| </method>
| </method-permission>
| </assembly-descriptor>
EJB/EAR's jboss.xml:
<session>
| <ejb-name>TeamEJB</ejb-name>
| <jndi-name>TeamEJB</jndi-name>
| <local-jndi-name>ejb/local/TeamEJB</local-jndi-name>
|
| <method-attributes>
| </method-attributes>
| </session>
WAR/EAR's web.xml:
<ejb-local-ref>
| <ejb-ref-name>ebj/local/TeamEJB</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>com.g3rdmedia.sports.ejb.team.TeamLocalHome</local-home>
| <local>com.g3rdmedia.sports.ejb.team.TeamLocal</local>
| <ejb-link>TeamEJB</ejb-link>
| </ejb-local-ref>
Server.log:
19:58:14,572 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'TeamEJB' to jndi 'ejb/local/TeamEJB'
| 19:58:14,578 INFO [ProxyFactory] Bound EJB Home 'TeamEJB' to jndi 'TeamEJB'
...
| 19:58:34,565 WARN [ServiceController] Problem starting service jboss.web.deployment:war=portal-web.war,id=819617493
| org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/local/TeamEJB', with web.xml ejb-link: 'TeamEJB' failed to resolve to an ejb with a LocalHome)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:380)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy38.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy39.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:613)
| Caused by: javax.naming.NamingException: ejb-local-ref: 'ejb/local/TeamEJB', with web.xml ejb-link: 'TeamEJB' failed to resolve to an ejb with a LocalHome
| at org.jboss.web.AbstractWebDeployer.linkEjbLocalRefs(AbstractWebDeployer.java:727)
| at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:516)
| at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:865)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:157)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| ... 113 more
| 19:58:34,568 ERROR [MainDeployer] Could not start deployment: file:/usr/local/jboss/server/default/deploy/liferay-portal.ear/portal-web.war/
| org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/local/TeamEJB', with web.xml ejb-link: 'TeamEJB' failed to resolve to an ejb with a LocalHome)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:380)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy38.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy39.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:613)
| Caused by: javax.naming.NamingException: ejb-local-ref: 'ejb/local/TeamEJB', with web.xml ejb-link: 'TeamEJB' failed to resolve to an ejb with a LocalHome
| at org.jboss.web.AbstractWebDeployer.linkEjbLocalRefs(AbstractWebDeployer.java:727)
| at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:516)
| at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:865)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:157)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| ... 113 more
| 19:58:34,571 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@30da5ed5 { url=file:/usr/local/jboss/server/default/deploy/liferay-portal.ear/portal-web.war/ }
| deployer: MBeanProxyExt[jboss.web:service=WebServer]
| status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/local/TeamEJB', with web.xml ejb-link: 'TeamEJB' failed to resolve to an ejb with a LocalHome)
| state: FAILED
| watch: file:/usr/local/jboss/server/default/deploy/liferay-portal.ear/portal-web.war/WEB-INF/web.xml
| altDD: null
| lastDeployed: 1165885105531
| lastModified: 1165879998000
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@4ed79259 { url=file:/usr/local/jboss/server/default/deploy/liferay-portal.ear/tunnel-web.war/ }
| deployer: MBeanProxyExt[jboss.web:service=WebServer]
| status: Created
| state: CREATED
| watch: file:/usr/local/jboss/server/default/deploy/liferay-portal.ear/tunnel-web.war/WEB-INF/web.xml
| altDD: null
| lastDeployed: 1165885106577
| lastModified: 1165879971000
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@ba435403 { url=file:/usr/local/jboss/server/default/deploy/liferay-portal.ear/ }
| deployer: org.jboss.deployment.EARDeployer@437ab2
| status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/local/TeamEJB', with web.xml ejb-link: 'TeamEJB' failed to resolve to an ejb with a LocalHome)
| state: FAILED
| watch: file:/usr/local/jboss/server/default/deploy/liferay-portal.ear/META-INF/application.xml
| altDD: null
| lastDeployed: 1165885106578
| lastModified: 1165880001000
| mbeans:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=Invoker
| jboss.web:service=WebServer
|
| ObjectName: jboss.mq:service=Invoker
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=TracingInterceptor
| jboss:service=Naming
| Depends On Me:
| jboss.mq:service=InvocationLayer,type=HTTP
| jboss.mq:service=InvocationLayer,type=JVM
| jboss.mq:service=InvocationLayer,type=UIL2
|
| ObjectName: jboss.mq:service=TracingInterceptor
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=SecurityManager
| Depends On Me:
| jboss.mq:service=Invoker
|
| ObjectName: jboss.mq:service=SecurityManager
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
| Depends On Me:
| jboss.mq:service=TracingInterceptor
| jboss.mq.destination:service=Queue,name=DLQ
|
| ObjectName: jboss.mq.destination:service=Queue,name=DLQ
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
| jboss.mq:service=SecurityManager
|
| ObjectName: jboss.mq:service=InvocationLayer,type=JVM
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=Invoker
|
| ObjectName: jboss.mq:service=DestinationManager
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=MessageCache
| jboss.mq:service=PersistenceManager
| jboss.mq:service=StateManager
| Depends On Me:
| jboss.mq:service=SecurityManager
| jboss.mq.destination:service=Queue,name=DLQ
|
| ObjectName: jboss.mq:service=PersistenceManager
| State: CONFIGURED
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=MySqlDS
| Depends On Me:
| jboss.mq:service=DestinationManager
|
| ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=Invoker
|
| ObjectName: jboss.web.deployment:war=portal-web.war,id=819617493
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/local/TeamEJB', with web.xml ejb-link: 'TeamEJB' failed to resolve to an ejb with a LocalHome)
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.web.deployment:war=portal-web.war,id=819617493
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/local/TeamEJB', with web.xml ejb-link: 'TeamEJB' failed to resolve to an ejb with a LocalHome)
|
| ObjectName: jboss.jca:service=DataSourceBinding,name=MySqlDS
| State: NOTYETINSTALLED
| Depends On Me:
| jboss.mq:service=PersistenceManager
|
Any ideas?
Thanks,
Chad.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992942#3992942
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992942
19 years, 7 months
[JBoss AOP] - Re: probleam in granularity of interception
by fabiocsilva
return true:
| ...
| [aopc] [debug] was controllers.HealthWatcherFacade converted: true
| [aopc] [compiled] /home/fabio/workspace/HealthWatcher_AO_JBossAOP/bin/controllers/HealthWatcherFacade.class
| [aopc] [trying to transform] exceptions.ExceptionMessages
| [aopc] [debug] javassist.CtConstructor@1ef9157[public ExceptionMessages ()V] matches no pointcuts
| [aopc] [debug] was exceptions.ExceptionMessages converted: false
| [aopc] [no comp needed] /home/fabio/workspace/HealthWatcher_AO_JBossAOP/bin/exceptions/ExceptionMessages.class
| [aopc] [trying to transform] gui.servlets.ServletInsertSpecialComplaint
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] javassist.CtMethod@4401295e[public init (Ljavax/servlet/ServletConfig;)V] matches no pointcuts
| [aopc] [debug] javassist.CtMethod@8bb1d60[public doPost (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V] matches no pointcuts
| [aopc] [debug] javassist.CtConstructor@12f0999[public ServletInsertSpecialComplaint ()V] matches no pointcuts
| [aopc] [debug] gui.servlets.ServletInsertSpecialComplaint.healthWatcher:Lcontrollers/HealthWatcherFacade; matches no pointcuts
| [aopc] [debug] gui.servlets.ServletInsertSpecialComplaint.healthWatcher:Lcontrollers/HealthWatcherFacade; matches no pointcuts
| [aopc] [debug] was gui.servlets.ServletInsertSpecialComplaint converted: false
| [aopc] [no comp needed] /home/fabio/workspace/HealthWatcher_AO_JBossAOP/bin/gui/servlets/ServletInsertSpecialComplaint.class
| [aopc] [trying to transform] aspects.distribution.AbstractServerSideAspect
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] javassist.CtMethod@6c0a65c0[abstract initFacadeInstance ()Ljava/rmi/Remote;] matches no pointcuts
| [aopc] [debug] javassist.CtMethod@2e5a5a51[abstract getSystemName ()Ljava/lang/String;] matches no pointcuts
| [aopc] [debug] javassist.CtMethod@a03c8b01[public beforeFacadeMainExecution (Lorg/jboss/aop/joinpoint/Invocation;)Ljava/lang/Object;] matches no pointcuts
| [aopc] [debug] javassist.CtMethod@f62fe68a[private rmiFacadeExceptionHandling (Ljava/lang/Throwable;)V] matches no pointcuts
| [aopc] [debug] javassist.CtConstructor@11f2ee1[public AbstractServerSideAspect ()V] matches no pointcuts
| [aopc] [debug] was aspects.distribution.AbstractServerSideAspect converted: false
| [aopc] [no comp needed] /home/fabio/workspace/HealthWatcher_AO_JBossAOP/bin/aspects/distribution/AbstractServerSideAspect.class
| [aopc] [trying to transform] aspects.distribution.HealthWatcherServerSideAspect
| [aopc] [debug] MethodCall does not match: call(employee.EmployeeRecord->new(..))
| [aopc] [debug] MethodCall does not match: recordsCreation
| [aopc] [debug] javassist.CtMethod@2e5a5a51[ getSystemName ()Ljava/lang/String;] matches no pointcuts
| [aopc] [debug] javassist.CtMethod@c93af865[ getServerName ()Ljava/lang/String;] matches no pointcuts
| [aopc] [debug] javassist.CtMethod@ccba27a7[public setServerName (Ljava/lang/String;)V] matches no pointcuts
| [aopc] [debug] javassist.CtMethod@6c0a65c0[ initFacadeInstance ()Ljava/rmi/Remote;] matches no pointcuts
| [aopc] [debug] javassist.CtConstructor@3ecfff[public HealthWatcherServerSideAspect ()V] matches no pointcuts
| [aopc] [debug] aspects.distribution.HealthWatcherServerSideAspect.RMI_SERVER_NAME:Ljava/lang/String; matches no pointcuts
| [aopc] [debug] aspects.distribution.HealthWatcherServerSideAspect.RMI_SERVER_NAME:Ljava/lang/String; matches no pointcuts
| [aopc] [debug] was aspects.distribution.HealthWatcherServerSideAspect converted: false
| [aopc] [no comp needed] /home/fabio/workspace/HealthWatcher_AO_JBossAOP/bin/aspects/distribution/HealthWatcherServerSideAspect.class
| [aopc] [trying to transform] exceptions.ObjectNotFoundException
| [aopc] [debug] javassist.CtConstructor@1c99159[public ObjectNotFoundException (Ljava/lang/String;)V] matches no pointcuts
| [aopc] [debug] was exceptions.ObjectNotFoundException converted: false
| [aopc] [no comp needed] /home/fabio/workspace/HealthWatcher_AO_JBossAOP/bin/exceptions/ObjectNotFoundException.class
| [aopc] Build Successful: 4153 ms
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992933#3992933
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992933
19 years, 7 months
[EJB 3.0] - Problem when deploy java persistence on jboss-4.0.4.GA
by boomboom
I am trying to deploy the sample code --masteringEJB3.0Code\Micah Examples--from Mastering Enterprise JavaBeans 3.0 by Rima Patel Sriganesh, Gerald Brose, and Micah Silverman on jboss-4.0.4.GA.
I used its build.xml to build a package called EntityExamplesEJB.jar, and when I deployed on jboss-4.0.4.GA. I got the following exceptions:
2006-12-11 14:37:29,178 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/Karen/tools/jboss-4.0.4.GA/server/default/deploy/jmx-console.war/
2006-12-11 14:37:29,178 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/Karen/tools/jboss-4.0.4.GA/server/default/deploy/jmx-console.war/ -> file:/C:/Karen/tools/jboss-4.0.4.GA/server/default/deploy/jmx-console.war/WEB-INF/web.xml
2006-12-11 14:37:29,178 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=jdbc/__default,service=ManagedConnectionFactory
Depends On Me:
jboss.j2ee:jar=EntityExamplesEJB.jar,name=StudentCourseBidBean,service=EJB3
jboss.j2ee:jar=EntityExamplesEJB.jar,name=CompanyEmployeeOMBidBean,service=EJB3
jboss.j2ee:jar=EntityExamplesEJB.jar,name=OrderShipmentBidBean,service=EJB3
jboss.j2ee:jar=EntityExamplesEJB.jar,name=RoadVehicleStatelessJoinedBean,service=EJB3
jboss.j2ee:jar=EntityExamplesEJB.jar,name=RoadVehicleStatelessBean,service=EJB3
jboss.j2ee:jar=EntityExamplesEJB.jar,name=StudentCourseUniBean,service=EJB3
jboss.j2ee:jar=EntityExamplesEJB.jar,name=EmployeeAddressMOUniBean,service=EJB3
jboss.j2ee:jar=EntityExamplesEJB.jar,name=CompanyEmployeeOMUniBean,service=EJB3
jboss.j2ee:jar=EntityExamplesEJB.jar,name=OrderShipmentUniBean,service=EJB3
ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=StudentCourseBidBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1
ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=CompanyEmployeeOMBidBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1
ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=OrderShipmentBidBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1
ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=RoadVehicleStatelessJoinedBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1
ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=RoadVehicleStatelessBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1
ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=StudentCourseUniBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1
The following is persistence.xml. Actually, I didnot use oracle toplink or derby platform. I am not sure how to write the right persistence.xml. Please help me.
<persistence-unit name="pu1" transaction-type="JTA">
<jta-data-source>jdbc/__default</jta-data-source>
<!--Use the java2db feature -->
<!-- -->
<!-- Generate the sql specific to Derby database -->
</persistence-unit>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992924#3992924
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992924
19 years, 7 months
[Security & JAAS/JBoss] - Re: Login encryption not working
by ewade
Ok. Then perhaps I am not being clear. That is precisely what I am trying to do.
I have (correctly) encrypted and encoded passwords stored in my database.
We are using the database server login module. It works fine for clear text passwords -- that is passwords stored and entered as plain text. However, when we try to turn on the encryption/encoding it does not work any differently than it did when we did not have these options enabled.
You can see my config set up in the first post.
Here is what happens. For purposes of this test, I have stored one user with a plain text password.
Scenario 1:
User has plain text (clear) password stored.
Logon with correct plain text password works.
It should not work with encryption turned on.
(I can provide a excerpt of the server log file if you need it, but it is lengthy.)
Scenario 2:
User has plain text password stored.
Logon with incorrect password.
It fails, which is the expected outcome.
Here is an excerpt from the server log.
2006-12-11 15:58:13,656 DEBUG [org.jboss.security.auth.spi.DatabaseServerLoginModule] Bad password for username=E0andre
2006-12-11 15:58:13,656 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
2006-12-11 15:58:13,656 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
2006-12-11 15:58:13,656 DEBUG [org.jboss.seam.core.Manager] No stored conversation
2006-12-11 15:58:13,656 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init
2006-12-11 15:58:13,656 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(5)
2006-12-11 15:58:13,656 DEBUG [org.jboss.seam.Component] instantiating Seam component: facesMessages
2006-12-11 15:58:13,687 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 5
2006-12-11 15:58:13,687 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing page context
2006-12-11 15:58:13,687 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 5
2006-12-11 15:58:13,687 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing page context
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.servlet.forward.request_uri
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.servlet.forward.context_path
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.servlet.forward.servlet_path
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Contexts] destroying: class org.apache.myfaces.renderkit.html.util.JavascriptUtils.OLD_VIEW_ID
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.application.jsp.JspStateManagerImpl.SERIALIZED_VIEW
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.sun.facelets.legacy.ELCONTEXT
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Contexts] destroying: facesMessages
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
2006-12-11 15:58:13,703 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
Scenario 3.
User has (correctly) encrypted password stored in the database.
Logon using matching plain text password.
It fails as it should not. Here is the excerpt from the server.log
2006-12-11 16:03:06,343 DEBUG [org.jboss.security.auth.spi.DatabaseServerLoginModule] Bad password for username=E0ewade
2006-12-11 16:03:06,343 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
2006-12-11 16:03:06,343 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
2006-12-11 16:03:06,343 DEBUG [org.jboss.seam.core.Manager] No stored conversation
2006-12-11 16:03:06,343 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init
2006-12-11 16:03:06,343 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(14)
2006-12-11 16:03:06,343 DEBUG [org.jboss.seam.Component] instantiating Seam component: facesMessages
2006-12-11 16:03:06,343 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 14
2006-12-11 16:03:06,343 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing page context
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 14
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing page context
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.servlet.forward.request_uri
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.servlet.forward.context_path
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.servlet.forward.servlet_path
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Contexts] destroying: class org.apache.myfaces.renderkit.html.util.JavascriptUtils.OLD_VIEW_ID
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.application.jsp.JspStateManagerImpl.SERIALIZED_VIEW
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.sun.facelets.legacy.ELCONTEXT
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Contexts] destroying: facesMessages
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
2006-12-11 16:03:06,359 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
Scenario 4:
User has encrypted password stored in the database.
Logon is done with the encrypted string.
Result: Logon succeeds when it should fail.
(Again this is a really long log entry. But it is exactly like scenario 1)
In summary, even though I have done my very best to enable ecryption (hashing) and encoding, the login module is behaving as though these things are not turned on. What do I need to do to get it to work?
Elise
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992922#3992922
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992922
19 years, 7 months
[Tomcat, HTTPD, Servlets & JSP] - Re: JSF JBoss question
by stan.silvert@jboss.com
In JBoss 4.x, the main advantage JSF has over other frameworks is that it is already installed and supported by JBoss support. Also, JSF standard taglibs are cached and available globally.
In JBoss 5.x, the integration is deeper. As part of JEE 5, JSF becomes the standard web framework. JBoss 5 integrates everything in JBoss 4.x plus support for resource injection, JBoss Serialization, and automatic initialization.
See http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossFaces for links to details.
Again, the ability to get support from JBoss for both the app server and JSF is often see as a big plus whereas you would need to find support for other frameworks from separate vendors.
As long as you are evaluating frameworks, you should also take a close look at JBoss Seam. There is a lot of advanced stuff in there that complements and builds on JSF. In many ways, Seam is the big answer to how we are making things easier for developers. See http://www.jboss.com/products/seam. I think you'll be duly impressed.
Everything you mention is addressed one way or another in either JSF, third-party JSF components, or Seam. The possible exception is FB2 (I don't know what that is). For the enum support you need JSF 1.2 which is in JBoss 5.
Stan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992920#3992920
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992920
19 years, 7 months
[JBoss Seam] - Combinding Seam's pages.xml and the a4j:include of Ajax4Jsf?
by andrew.rw.robinson
The pages.xml features have been invaluable for executing actions when a page is loaded. I also see that it now has support for changing the view if a conversation is not active.
These features are great, but unfortunately on apply to root views. Ajax4Jsf has a include tag that pulls in a page to make up part of the parent page. This included, child page is a normal view-id.
I would love to see Seam enhance and support this control so that the pages.xml can react to the child view. For example:
a.xhtml:
...
| <aj4:include viewId="/includes/b.xhtml" />...
And then be able to:
pages.xml
<page view-id="/includes/b.xhtml"
| action="#{someBean.onLoad}"
| no-conversation-view-id="/includes/noConversation.xhtml" />
Do you think that this would be possible, and if not, what kind of work would be required to integrate this into an extended version of a4j:include?
Thanks,
Andrew
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992913#3992913
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992913
19 years, 7 months