[JBoss Portal] - AJAX4JSF in Portal
by chuaky
Dear all,
I'm trying to do partial page refresh in Jboss portal and was trying to incooperate AJAX4JSF into portal, but failed. Can AJAX4JSF work in portal?
My setup is:
- JBoss AS 4.0.5
- Portal 2.4.1
- Seam 1.1.1
I compare the seam booking example and added the necessary statements in my web.xml file. But when i click on a normal .xhtml page, i got this nasty error. Whats wrong? Should i try icefaces. Btw, i don't know which is better: icefaces or ajax4jsf?
Note that my web pages are working fine before i start to incooperate ajax4jsf.
Your help is very much appreciated.
Thank you.
===============
java.lang.ClassCastException: org.jboss.portlet.JBossRenderRequest
at com.sun.facelets.FaceletViewHandler.createResponseWriter(FaceletViewHandler.java:398)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:527)
at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:222)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:322)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:297)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:379)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:518)
.....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006734#4006734
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006734
19 years, 2 months
[JCA/JBoss] - Re: EJB3 - XA datasource - Transactions - XAER_OUTSIDE
by apill
What is your concern with me using DB2 Express C 9.1?
As far as I can tell XA is not disabled in this version.
http://www-306.ibm.com/software/data/db2/express/getstarted.html
anonymous wrote :
| DB2 Express-C technical info
|
| Restrictions:
|
| * Maximum processors: 2
| * Maximum addressable memory: 4GB
| * Database Partitioning Feature N/A
| * Connection Concentrator N/A
| * DB2 Geodetic Extender N/A
| * Query Patroller N/A
| * Net Search Extender N/A
|
| Operating Systems
|
| * Linux
| * Windows
|
| DB2 Express extended features not included in DB2 Express-C:
|
| * Spatial Extender Client and Samples
| * Microsoft Cluster Server support
| * Informix Data Source Support,
| * Replication Data Capture (both SQL Replication and Replication with MQ Server)
| * DB2 Web tools
| * GSKit
| * APPC and Netbios
|
| In addition to these extended features which are available in DB2 Express Edition but are not available in DB2 Express-C, there are also a number of add-on features that can be purchased to add functionality to DB2 Express Edition. These add-on features include:
|
| * Workload Management
| * Performance Optimization
| * High Availability
|
| These add-on features can not be added to DB2 Express-C. If you would like to use any of these add-on features, you must first purchase a license for DB2 Express Edition, and then purchase the desired add-on features.
|
| pureXML?
|
| * In general, DB2 Express-C is a subset of DB2 Express Edition. pureXML is the only exception to this. pureXML is available as an add-on feature to DB2 Express Edition, however it is available for use with DB2 Express-C, and the use of pureXML is included in the base DB2 Express-C license.
| * Check this link for more information about pureXML.
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006733#4006733
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006733
19 years, 2 months
[Security & JAAS/JBoss] - Using JAAS authentication with JBoss !! Please help me !!!!
by violon
Dear All !
I am beginner with JBoss. I were read some article about Using Jaas authentication with JBoss. But I have some difficults about using JAAS with JBoss.
I have a file config: "client.config" with content:
helloDomain {
auth.client.MyLoginModule required debug=false;
org.jboss.security.ClientLoginModule required;
};
and a file policy: "client.policy" with content:
grant codebase "file:./-" {
permission javax.security.auth.AuthPermission "modifyPrincipals";
permission javax.security.auth.AuthPermission
"createLoginContext.helloDomain";
};
On the Client side, I do:
I write a MyLoginModule to authenticate a user (MyLoginModule implements javax.security.auth.spi.LoginModule) and it always return true.
In my main(), I write:
--------------
...
LoginContext lc = new LoginContext("helloDomain", new CustomCallbackHandler());
lc.login();
Properties env = new Properties();
env.put(Context.PROVIDER_URL,"violon:1099");
env.put(Context.SECURITY_PRINCIPAL, SecurityAssociation.getPrincipal());
env.put(Context.SECURITY_CREDENTIALS, SecurityAssociation.getCredential());
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");
-----------------
But when I complie, I have two problem :
1. I must enter username and password twice. So, in client.config I must delete the line: "org.jboss.security.ClientLoginModule required;" ?
2. I not allow read SecurityAssociation...
On the Server side, I do :
I have a bean called "HelloBean". The HelloBean's remote interface defines two methods, printA() and printB().
-------------
@Stateless
public class HelloBean implements Hello {
public String printA() {
System.out.println("This is person A");
return "Hello A !!! ";
}
public String printB() {
System.out.println("This is person B");
return "Hello B";
}
}
---------------
I write a file ejb-jar.xml with contents:
---------------
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<enterprise-beans>
<assembly-descriptor>
<Security-role>
<role-name>RoleA</role-name>
</Security-role>
<Security-role>
<role-name>RoleB</role-name>
</Security-role>
<method-permission>
<role-name>RoleA</role-name>
<ejb-name>Hello</ejb-name>
<method-name>printA</method-name>
</method-permission>
<method-permission>
<role-name>RoleB</role-name>
<ejb-name>Hello</ejb-name>
<method-name>printB</method-name>
</method-permission>
</assembly-descriptor>
</enterprise-beans>
</ejb-jar>
-------------------
and a file jboss.xml :
------------------
<?xml version="1.0" encoding="UTF-8"?>
<security-domain>helloDomain</security-domain>
------------------
and I write class CustomServerLoginModule (extends AbstractServerLoginModule)
------------------
private Principal identity;
public boolean login() throws LoginException {
identity = org.jboss.security.SecurityAssociation.getPrincipal();
if ( identity == null )
{
throw new LoginException( "The principal was not found in the SecurityAssociation." );
}
loginOk = true;
return true;
}
@Override
protected Principal getIdentity() {
return identity;
}
@Override
protected Group[] getRoleSets() throws LoginException {
Group rolesGroup = new SimpleGroup( "Roles" );
rolesGroup.addMember(new SimplePrincipal("RoleA"));
rolesGroup.addMember(new SimplePrincipal("RoleB"));
return new Group[]{ rolesGroup };
}
------------------
I package my HelloBean with two file ejb-jar.xml and jboss.xml. So, anything that I missing ? My class CustomServerLoginModule I must which place ?
I hope your help to solve my problems.
Sorry because my E is not good ! Thanks you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006728#4006728
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006728
19 years, 2 months