[JBoss Seam] - Re: NullPointerException in D2DViewHandler.calculateRenderKi
by JessicaSant
I reproduced this using the "icefaces" seam example
environment:
Seam 1.1.GA
JBoss 4.0.5.GA
Sun RI 1.2
I followed the "Running the booking example on JBoss with the JSF 1.2 RI" sticky (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=94738), namely:
1- setup a configuration of JBossAS 4.0.5 to use the SunRI instead of myFaces
2- modified the iceFaces\resources\META-INF\application.xml, commented out the el-api.jar and el-ri.jar:
| <!-- <module>
| <java>el-api.jar</java>
| </module>
| <module>
| <java>el-ri.jar</java>
| </module> -->
|
3- modified iceFaces\resources\WEB-INF\faces-config.xml to use the SeamELResolver
| <application>
| <el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
| </application>
|
4- modified iceFaces\resources\WEB-INF\web.xml to use SunRI:
| <!-- MyFaces -->
| <!-- <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener> -->
|
| <!-- JSF RI -->
| <listener>
| <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
| </listener>
|
5- built the ear, then removed the el-ri.jar and el-api.jar from the generated ear.
6- deployed jboss-seam-icefaces.ear and icefaces-ds.xml to the SunRI configured JBossAS
7- when I run, I get a NullPointerException
| 10:41:31,890 ERROR [STDERR] Jan 16, 2007 10:41:31 AM com.sun.faces.config.ConfigureListener isJspTwoOne
| WARNING: Incorrect JSP version found, method getJspApplicationContext does not exist.
| 10:41:31,906 ERROR [STDERR] Jan 16, 2007 10:41:31 AM com.sun.faces.config.ConfigureListener contextInitialized
| INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context 'null'
| 10:41:31,921 INFO [ResponseStateManager] using response state manager: com.icesoft.faces.webapp.xmlhttp.ResponseStateManager
| 10:41:32,000 INFO [EARDeployer] Started J2EE application: file:/F:/jboss-4.0.5.GA-ejb3/server/default/deploy/jboss-seam-icefaces.ear
| 10:41:37,531 ERROR [STDERR] Jan 16, 2007 10:41:37 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
| INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
| 10:41:37,531 INFO [Events] no events.xml file found
| 10:41:37,531 ERROR [STDERR] Jan 16, 2007 10:41:37 AM com.sun.faces.lifecycle.LifecycleImpl phase
| WARNING: executePhase(RESTORE_VIEW 1,com.icesoft.faces.context.BridgeFacesContext@1155013) threw exception
| java.lang.NullPointerException
| at com.icesoft.faces.application.D2DViewHandler.calculateRenderKitId(D2DViewHandler.java:696)
| at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:241)
| at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:170)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
| at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| ....
| 10:41:37,546 ERROR [PersistentFacesServlet] Exception executing lifecycle or setting up persistent context. java.lang.NullPointerException
| javax.faces.FacesException: java.lang.NullPointerException
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:305)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
| at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| ...
| 10:41:37,562 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
| javax.servlet.ServletException: java.lang.NullPointerException
| at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:437)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 10:41:37,562 ERROR [[Persistent Faces Servlet]] Servlet.service() for servlet Persistent Faces Servlet threw exception
| javax.faces.FacesException: java.lang.NullPointerException
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:305)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
| at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| ...
| Caused by: java.lang.NullPointerException
| at com.icesoft.faces.application.D2DViewHandler.calculateRenderKitId(D2DViewHandler.java:696)
| at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:241)
| at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:170)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
| ... 25 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002322#4002322
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002322
19 years, 3 months
[Security & JAAS/JBoss] - LdapLoginModule configuration
by MelampO
Hello
I'm trying to configure a very simple login system using LdapLoginModule. I had never worked with LDAP, so, searching the web and the jboss wiki I found the LoginModulesTestCase which works perfectly for me adding my personal configuration.
Following this example, I developed my first version, and it works fine:
LoginAction:
| @In(required = false)
| @Out(required = false)
| private Usuario usuario;
|
| /**
| * Hard coded login configurations for the test cases. The configuration
| * name corresponds to the unit test function that uses the configuration.
| */
|
| static {
| try {
| Configuration.setConfiguration(new LdapConfig());
| } catch (Exception e) {
| e.printStackTrace();
| }
| }
|
| static class LdapConfig extends Configuration {
| public void refresh() {
| }
|
| public AppConfigurationEntry[] getAppConfigurationEntry(String name) {
| AppConfigurationEntry[] entry = null;
| try {
| Class[] parameterTypes = {};
| Method m = getClass().getDeclaredMethod(name, parameterTypes);
| Object[] args = {};
| entry = (AppConfigurationEntry[]) m.invoke(this, args);
| } catch (Exception e) {
| }
| return entry;
| }
|
| AppConfigurationEntry[] BibliotecaLdap() {
| String name = "org.jboss.security.auth.spi.LdapLoginModule";
| HashMap options = new HashMap();
| options.put("java.naming.factory.initial",
| "com.sun.jndi.ldap.LdapCtxFactory");
| options.put("java.naming.provider.url", "ldap://trasgu/");
| options.put("java.naming.security.authentication", "simple");
|
| AppConfigurationEntry ace = new AppConfigurationEntry(name,
| AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
| options);
| AppConfigurationEntry[] entry = { ace };
| return entry;
| }
| }
|
| /**
| * @see org.fundacion.biblioteca.actions.usuario.ValidarUsuario#login()
| */
| public String login() {
|
| UsernamePasswordHandler handler = new UsernamePasswordHandler(usuario
| .getUsername(), password.toCharArray());
|
| LoginContext lc;
|
| try {
| lc = new LoginContext("BibliotecaLdap", handler);
| lc.login();
| Subject subject = lc.getSubject();
| System.out.println("Subject: " + subject);
| } catch (LoginException e) {
| e.printStackTrace();
| }
|
| return null;
| }
|
Ok. This works and I could authenticate my users with LDAP (at this momment I don't need roles or groups).
My second step was do the same in a pretty way, without hardcoding configurations and adding everything in they configuration file. Now, I have this:
LoginAction:
| @In(required = false)
| @Out(required = false)
| private Usuario usuario;
|
| public String login() {
|
| UsernamePasswordHandler handler = new UsernamePasswordHandler(usuario
| .getUsername(), password.toCharArray());
|
| LoginContext lc;
|
| try {
| lc = new LoginContext("BibliotecaSecurity", handler);
| lc.login();
| Subject subject = lc.getSubject();
| System.out.println("Subject: " + subject);
| } catch (LoginException e) {
| e.printStackTrace();
| }
|
| return null;
| }
|
login-config.xml (very simple, but just with the same configuration that was working in the fisrt case)
| <application-policy name="BibliotecaSecurity">
| <authentication>
| <login-module
| code="org.jboss.security.auth.spi.LdapLoginModule"
| flag="required">
| <module-option name="java.naming.factory.initial">
| com.sun.jndi.ldap.LdapCtxFactory
| </module-option>
| <module-option name="java.naming.provider.url ">
| ldap://trasgu:389
| </module-option>
| <module-option
| name="java.naming.security.authentication">
| simple
| </module-option>
| </login-module>
| </authentication>
| </application-policy>
|
jboss-web.xml
| <jboss-web>
| <security-domain>java:/jaas/BibliotecaSecurity</security-domain>
| </jboss-web>
|
With this configuration, I have a FailedLoginException each time I call login() action...
| 14:16:13,170 ERROR [STDERR] javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
| 14:16:13,172 ERROR [STDERR] at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)
| 14:16:13,172 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 14:16:13,172 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 14:16:13,172 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,172 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,172 ERROR [STDERR] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
| 14:16:13,173 ERROR [STDERR] at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
| 14:16:13,173 ERROR [STDERR] at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
| 14:16:13,173 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
| 14:16:13,173 ERROR [STDERR] at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
| 14:16:13,173 ERROR [STDERR] at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
| 14:16:13,173 ERROR [STDERR] at org.fundacion.biblioteca.actions.usuario.ValidarUsuarioLdap.login(ValidarUsuarioLdap.java:123)
| 14:16:13,173 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 14:16:13,173 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 14:16:13,174 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,174 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,174 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| 14:16:13,174 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| 14:16:13,174 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
| 14:16:13,174 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| 14:16:13,174 ERROR [STDERR] at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
| 14:16:13,174 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
| 14:16:13,174 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,174 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,174 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 14:16:13,174 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 14:16:13,175 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 14:16:13,175 ERROR [STDERR] at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
| 14:16:13,175 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
| 14:16:13,175 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,175 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,176 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 14:16:13,176 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 14:16:13,176 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 14:16:13,176 ERROR [STDERR] at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
| 14:16:13,176 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
| 14:16:13,176 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,176 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,176 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 14:16:13,176 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 14:16:13,177 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 14:16:13,177 ERROR [STDERR] at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:50)
| 14:16:13,177 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source)
| 14:16:13,177 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,177 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,177 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 14:16:13,177 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 14:16:13,177 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 14:16:13,177 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| 14:16:13,177 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| 14:16:13,177 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| 14:16:13,177 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
| 14:16:13,178 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
| 14:16:13,178 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,178 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,178 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| 14:16:13,179 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| 14:16:13,179 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,179 ERROR [STDERR] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| 14:16:13,179 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,179 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| 14:16:13,179 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,179 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| 14:16:13,179 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,180 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| 14:16:13,180 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| 14:16:13,184 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,184 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| 14:16:13,184 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,184 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
| 14:16:13,185 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,185 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| 14:16:13,185 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,185 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| 14:16:13,185 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,185 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| 14:16:13,185 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 14:16:13,185 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
| 14:16:13,185 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| 14:16:13,185 ERROR [STDERR] at $Proxy150.login(Unknown Source)
| 14:16:13,185 ERROR [STDERR] at org.fundacion.biblioteca.actions.usuario.ValidarUsuario$$FastClassByCGLIB$$845a45ae.invoke(<generated>)
| 14:16:13,185 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| 14:16:13,185 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| 14:16:13,186 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| 14:16:13,186 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| 14:16:13,187 ERROR [STDERR] at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
| 14:16:13,187 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)
| 14:16:13,187 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,187 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,187 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 14:16:13,187 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 14:16:13,187 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 14:16:13,187 ERROR [STDERR] at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
| 14:16:13,187 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
| 14:16:13,188 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,188 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,188 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 14:16:13,188 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 14:16:13,188 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 14:16:13,188 ERROR [STDERR] at org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:30)
| 14:16:13,188 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
| 14:16:13,188 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,188 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,189 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 14:16:13,192 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 14:16:13,193 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 14:16:13,193 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| 14:16:13,193 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| 14:16:13,193 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| 14:16:13,193 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:82)
| 14:16:13,193 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| 14:16:13,194 ERROR [STDERR] at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$2fd8a7d4_2.login(<generated>)
| 14:16:13,195 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 14:16:13,195 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 14:16:13,195 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:16:13,195 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:16:13,195 ERROR [STDERR] at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
| 14:16:13,195 ERROR [STDERR] at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
| 14:16:13,199 ERROR [STDERR] at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| 14:16:13,199 ERROR [STDERR] at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
| 14:16:13,199 ERROR [STDERR] at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| 14:16:13,199 ERROR [STDERR] at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| 14:16:13,199 ERROR [STDERR] at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
| 14:16:13,199 ERROR [STDERR] at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
| 14:16:13,199 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
| 14:16:13,199 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| 14:16:13,199 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
| 14:16:13,199 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 14:16:13,202 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 14:16:13,203 ERROR [STDERR] at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 14:16:13,203 ERROR [STDERR] at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 14:16:13,203 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| 14:16:13,203 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 14:16:13,203 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| 14:16:13,203 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| 14:16:13,203 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| 14:16:13,204 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| 14:16:13,204 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| 14:16:13,204 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| 14:16:13,204 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 14:16:13,204 ERROR [STDERR] Caused by: javax.naming.InvalidNameException: [LDAP: error code 34 - invalid DN]
| 14:16:13,204 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2926)
| 14:16:13,204 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2732)
| 14:16:13,204 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2646)
| 14:16:13,204 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
| 14:16:13,204 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
| 14:16:13,205 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
| 14:16:13,205 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
| 14:16:13,205 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
| 14:16:13,205 ERROR [STDERR] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
| 14:16:13,205 ERROR [STDERR] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| 14:16:13,205 ERROR [STDERR] at javax.naming.InitialContext.init(InitialContext.java:223)
| 14:16:13,205 ERROR [STDERR] at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
| 14:16:13,205 ERROR [STDERR] at org.jboss.security.auth.spi.LdapLoginModule.createLdapInitContext(LdapLoginModule.java:307)
| 14:16:13,205 ERROR [STDERR] at org.jboss.security.auth.spi.LdapLoginModule.validatePassword(LdapLoginModule.java:239)
| 14:16:13,206 ERROR [STDERR] at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:210)
| 14:16:13,206 ERROR [STDERR] ... 150 more
|
Ithink that it can find the configuration (BibliotecaSecurity policy) but it can't authenticate the users. I have missed something? In my opinion this is the same that I have in the first version but without hardcoding the configuration. I think that I have the same configuration but I don't know where is the error... any help?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002319#4002319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002319
19 years, 3 months
[JBoss Portal] - Re: JCR CMS Repository on distant machine
by Antoine_h
I don't know much about Magnolia.
here under is just my opinion.
what made us go to Alfresco is :
- a good tool for content editing, that can work with jboss portal (and a good classic repository and CMS tool).
- the XML Authoring : being able to compose content with several pieces and make the presentation layout at the end. That is to have a form to type the content in xml format, and then use this to build the content document, with some presentation transformation.
- the WCM feature, to edit the content and the source code in the same time and use some sandbox to have several person work at it independantly.
the first is a good thing we need.
the second is great : we haven't seen a open source global software offering this feature (as part of the more general and usual CMS features).
the third is more for the potential, for "later"... but it s a great feature.
the bonus with alfresco : brand new, nice and powerfull architecture.
if you are not looking for a mature software that as run for a few years yet, then alfresco looks good.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002311#4002311
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002311
19 years, 3 months