[Beginners Corner] - Re: JB Security + JB Identity
by PeterJ
There is no standard schema for the database login server. As an example you can look at what it done for messaging - it uses a database login module and stores users and roles in the database. The db login module is made to be very generic so that you can use almost any schema to configure login, which is handy is you are already storing user info in the database.
I guess I fail to see what using Portal to do you security would buy you. The only thing it provides above the database login module is an access control mechanism which is applied to portals, pages and portlet instances. And it has some gotchas when it comes to defining access control. I think that if your access control is already defined in your web.xml, then the login module is all that you need.
I do have a resource that goes into some detail on JBoss AS security (even for the Portal), but it is not free. I can provide a link if you like.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235759#4235759
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235759
16 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Jboss-log4j.xml configuration
by vinayarammohan@yahoo.com
Hi,
I am using Jboss 4.2.2GA
I am fine when I have log4j.properties file. But I want to switch to jboss-log4j.xml. I wanted to go with this because, this file can be hot deployed.
When trying to do this, I am getting the following error
16:50:32,765 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
16:50:32,765 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
16:50:32,765 ERROR [STDERR] log4j:ERROR [WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
java.net.FactoryURLClassLoader@1891732
] whereas object of type
16:50:32,765 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@10f6d3].
16:50:32,765 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
My jboss-log4j.xml is
<!-- Rollover at midnight each day -->
<!-- Rollover at the top of each hour
<param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
-->
<!-- The default pattern: Date Priority [Category] Message\n -->
<!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
-->
Is there any thing wrong with my file?
Thanks in Advance
Vinaya
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235752#4235752
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235752
16 years, 10 months
[Beginners Corner] - Re: JB Security + JB Identity
by mad_rug
Thanks again, PeterJ
The topic you linked is very useful, I intend to use form/DBLogin, so this will come in hand. The http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch8.chapter.html page is a good reference.
I looked at Identity docs, and SAML is not useful for be, so I'll leave it alone (I thought it had another purpose).
I could not find Security documentation (except the one provided with Portal and the one above), and I'd like to know better what features it provides. Sorry, but I really couldn't find any clarifying docs about what Security project can do out-of-the-box or provide as default implementation. I was expecting it could offer a standard DB schema for auth/roles, allowing certain customization, like Portal does when it is first used, speeding up app dev.
Can you clarify this?
If such default security implementation is not part of Security project itself but an addition by Portal, maybe I will try using Portal and remove its uneeded features, and theme redesign.
I know it seems I'm just trying to avoid implementing Security code myself, but I fear for robustness of this code, and I believe it would be safer use a default implementation and polish it.
Thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235750#4235750
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235750
16 years, 10 months
[JCA/JBoss] - MySql XA Datasource with JBoss 5.1.GA
by mdesignz
Hello, I have an existing Seam 2.1.2.CR2 application with a MySql XA datasource using the 5.1.7 MySql connector that works fine under JBoss 4.2.3.GA. When I deploy under 5.1.GA, it complains with the below exception. I didn't notice an XA example in the 5.1.GA distribution...is it supported? Any suggestions on what the issue might be? Thanks.
13:32:06,865 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Could not find accessor on XADataSource: ; - nested throwable: (java.lang.NoSuchMethodException: com.mysql.jdbc.jdbc2.optional.MysqlXADataSource.setJdbc(java.lang.String)))
| at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:465)
| at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:409)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235748#4235748
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235748
16 years, 10 months