[Installation, Configuration & Deployment] - Re: war file webcontext not available after restart
by jaikiran
The logs are not showing any errors except the one that you mentioned. Looking at the other war files that are getting deployed, i can see logs like:
anonymous wrote : 00:12:15,086 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=0,context=/invoker
anonymous wrote : 00:12:15,836 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=/jmx-console
anonymous wrote : 00:12:16,992 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=2,context=/outbound-dialing
However, the one for webtest.war is missing. I can however see these 2 messages for webtest.war:
anonymous wrote : 00:12:13,523 INFO [MainDeployer] Starting deployment of package: file:/F:/jboss-3.2.1/server/default/deploy/webtest.war
|
| 00:12:13,539 INFO [MainDeployer] Deployed package: file:/F:/jboss-3.2.1/server/default/deploy/webtest.war
I am clueless as to what might be wrong. See if you get rid of the port in use error, however i am not sure whether this is the reason why your application is not getting registered to the context.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980889#3980889
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980889
19 years, 6 months
[Beginners Corner] - Re: EJB SecurityException on AccountBean EJB dukesbank
by jaikiran
anonymous wrote : 2006-10-25 21:10:19,625 ERROR [STDERR] Debug: AccountControllerBean getAccountsOfCustomer
| 2006-10-25 21:10:19,625 TRACE [org.jboss.security.SecurityAssociation] getPrincipal, principal=200
| 2006-10-25 21:10:19,625 TRACE [org.jboss.security.plugins.JaasSecurityManager.dukesbank] Begin isValid, principal:200, cache info: org.jboss.security.plugins.JaasSecurityManager$DomainInfo@a998c1[Subject(20835673).principals=org.jboss.security.SimplePrincipal@4751287(200)org.jboss.security.SimpleGroup@33296132(Roles(members:bankCustomer)),credential.class=java.lang.String@11372121,expirationTime=1161805098170]
| 2006-10-25 21:10:19,625 TRACE [org.jboss.security.plugins.JaasSecurityManager.dukesbank] Begin validateCache, info=org.jboss.security.plugins.JaasSecurityManager$DomainInfo@a998c1[Subject(20835673).principals=org.jboss.security.SimplePrincipal@4751287(200)org.jboss.security.SimpleGroup@33296132(Roles(members:bankCustomer)),credential.class=java.lang.String@11372121,expirationTime=1161805098170];credential.class=java.lang.String@11372121
| 2006-10-25 21:10:19,625 TRACE [org.jboss.security.plugins.JaasSecurityManager.dukesbank] End validateCache, isValid=true
| 2006-10-25 21:10:19,625 TRACE [org.jboss.security.plugins.JaasSecurityManager.dukesbank] End isValid, true
| 2006-10-25 21:10:19,635 TRACE [org.jboss.security.SecurityAssociation] pushSubjectContext, subject=Subject:
| Principal: 200
| Principal: Roles(members:bankCustomer)
| , sc=org.jboss.security.SecurityAssociation$SubjectContext@15651df{principal=200,subject=1655982}
| 2006-10-25 21:10:19,635 TRACE [org.jboss.security.SecurityAssociation] getSubject, sc=org.jboss.security.SecurityAssociation$SubjectContext@15651df{principal=200,subject=1655982}
| 2006-10-25 21:10:19,635 TRACE [org.jboss.security.plugins.JaasSecurityManager.dukesbank] doesUserHaveRole(Set), subject: Subject:
| Principal: 200
| Principal: Roles(members:bankCustomer)
|
| 2006-10-25 21:10:19,635 TRACE [org.jboss.security.plugins.JaasSecurityManager.dukesbank] roles=Roles(members:bankCustomer)
| 2006-10-25 21:10:19,635 TRACE [org.jboss.security.plugins.JaasSecurityManager.dukesbank] hasRole=false
Looking at the logs the user has been authenticated successfully but he does not have the necessary roles to use the getAccountsOfCustomer method. In your ejb-jar.xml check what role is required to access this method. The you will have to login with that username/password to be able to successfully invoke this method.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980885#3980885
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980885
19 years, 6 months
[JBoss Messaging] - Re: JBoss Messaging Assistance
by jbossbill
Also, I'd like to note that our application works fine when used with ActiveMQ. We can stop either or both of the JMS Servers and re-start them without having either of them effect each other.
We use the following properties when connecting to JBoss Messaging Server:
Hashtable properties = new Hashtable();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
properties.put(Context.PROVIDER_URL, "jnp://localhost:1099");
properties.put(Context.SECURITY_PRINCIPAL, "username");
properties.put(Context.SECURITY_CREDENTIALS, "password");
If you require any further information, please ask for it.
Cheers,
Bill
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980884#3980884
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980884
19 years, 6 months