[JBoss Portal] - JBoss Portal Security - You're losing your way...
by bsmithjj
As I look into this more, look at the source code for 2.6, the wiki link you supplied, etc. I really am beginning to think that in some ways, you're losing your way with the security layer of JBoss Portal. All I want to do is customize the login for the dang thing for my environment. Instead, I find suggestions of JACC, and the promise of a large amount of volatility in the part of the portal related to authentication/authorization either with JAAS or JACC (and let's not forget that there's really no good documentation for customizing security now in any of the releases - download one and see if you can figure out from the docs how to get started with customizing security)
The wiki link you supplied earlier suggests that you are attempting to create a first class framework for authorization as part of developing point releases of JBoss Portal; furthermore, it suggests that you expect to have to create several versions of the security framework in the path to whatever you're trying to reach - the first version will be based on JACC...what's the next version going to be based on?
Are corporate customers really clamoring for such a massive overhaul in the security layer in a point release of the portal? We're customers - all we want is the portal/portlet functionality and the ability to customize security similar to what was available in 2.0.X versions of the portal. We like the page model, themes, the overall ease of developing/deploying portlets, etc. We also like how easy it has been in the past to customize security. We like the 2.6 DR1 release a lot - what we don't like is the fact that the security integration point is a moving target.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996119#3996119
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996119
19 years, 4 months
[JBoss Eclipse IDE (users)] - Re: XDoclet shortcoming?
by scramer
Hello again.
I got the problem narrowed down a little... While studying the xdoclet source I found a way of generating the <foreign-key-mapping/>
I just had to add an undocumented setting:
| /**
| * Getter for CMR Relationship.
| * @return The personal data for this patient.
| *
| * @ejb.interface-method view-type = "local"
| * @ejb.relation name = "Patient-To-Person"
| * role-name = "Patient-To-Person-Role"
| * target-ejb = "CMPPerson"
| * target-role-name = "Patient-Is-Person-Role"
| * target-multiple = "false"
| *
| * @jboss.relation-mapping style = "foreign-key"
| */
| public abstract CMPPersonLocal getPerson();
|
which is completly GREAT. But now I run into the next problem: The generated jbosscmp-jdbc.xml is messed up:
| <ejb-relation>
| <ejb-relation-name>Patient-To-Person</ejb-relation-name>
| <foreign-key-mapping/>
| <ejb-relationship-role>
| <ejb-relationship-role-name>
| Patient-To-Person-Role
| </ejb-relationship-role-name>
| <key-fields/>
| </ejb-relationship-role>
| <ejb-relationship-role>
| <ejb-relationship-role-name>
| Patient-Is-Person-Role
| </ejb-relationship-role-name>
| <key-fields/>
| </ejb-relationship-role>
| </ejb-relation>
|
It is AT LEAST having an excess <key-fields/> in the relationship role named "Patient-Is-Person-Role"; and on top of that it seems to be lacking <cmr-field-name/> and <cmr-field-type/>.
Where am I going wrong now?
Greetings
Sebastian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996106#3996106
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996106
19 years, 4 months
[JBoss Portal] - Error Displaying Flash in JBoss Portal 2.4.1.CR2
by 733nb
Environmental info follows:
Release ID: JBoss [Zion] 4.0.5.GA
Home Dir: E:\Apache Group\jboss-portal-2.4.1-CR2
Java version: 1.4.2_09,Sun Microsystems Inc.
Java VM: Java HotSpot(TM) Server VM 1.4.2_09-b05,Sun Microsystems Inc.
OS-System: Windows 2000 5.0,x86
Database: Oracle 9i
I'm having two problems with running the flash plugin in Jboss Portel window.
1. When I try to set the height and width on the object tag to a 100%, the window goes totally blank, like I didn't have any statements in the jsp. However, if I set the width="100%" and set a specific height="450" the flash plugin will be displayed.
<center>
| <object width="100%" height="100%">
| <param name="movie" value="<%= request.getAttribute("flashurl") %>"/>
| <embed src="<%= request.getAttribute("flashurl") %>" width="100%" height="100%"/>
| </object>
| </center>
2. The second problem that I'm seeing when trying to view a flash plungin in a Portlet Window is when I specify the classid on the object tag, the footer of the Portlet Window gets clipped off.
<center>
| <object width="100%" height="455"
| classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" >
| <param name="movie" value="<%= request.getAttribute("flashurl") %>"/>
| <embed src="<%= request.getAttribute("flashurl") %>" width="100%" height="455"/>
| </object>
| </center>
I need to specify the classid so as the flash plugin can make an Ajax call back into the server.
Any insight on how to resolve the above issues would be greatly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996104#3996104
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996104
19 years, 4 months
[EJB 3.0] - Getting javax.ejb.EJBException: Application Error: tried to
by PamJoshua
Hi,
I am using Jboss-4.0.3sp1 and EJB.
My Issue:
In my application, i do a search. During this search, it goes for an EJB call.
Now, if suppose a user cancels the search operation, immediatly after doing the search then i am getting the error below. Its throwing this error on the console and throwing it to the app screen also. Also, sometimes it doesnt throws this error but takes around 5 seconds to return the application to its normal form (By showing an hour glass)
I can understand that its trying to destroy that EJB call and the EJB is already engaged in a transaction means the EJB is still not passivated.
But i am not able to find the rootcause of this problem.
I am getting an EJBException. Here is the error log:
**********************************************
15:53:39,585 ERROR [LogInterceptor] EJBException in method: public abstract void javax.ejb.EJBObject.remove() throws java.rmi.RemoteException,javax.ejb.RemoveException:
javax.ejb.EJBException: Application Error: tried to enter Stateful bean with different tx context, contextTx: TransactionImpl:XidImpl[FormatId=257, GlobalId=dscp12800/119, BranchQual=, localId=119], methodTx: TransactionImpl:XidImpl[FormatId=257, GlobalId=dscp12800/120, BranchQual=, localId=120]
at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:268)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
**********************************************
I tried to search in the forums about this exception but didnt got much help besides synchronizing the EJB call.
I dont want to show this error to the user and also, i dont want this error to come on Jboss console. Is it possible to find a solution without touching the EJB code? For the GUI part i am using Swings.
I am strucked in this problem for long. It would be really great if someone suggests some solution.
Thanks in Advance
PamJoshua
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996099#3996099
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996099
19 years, 4 months