Cuong Le Manh | 28 Nov 05:26

How to config to change URL to run Nuxeo

Hi,

I have problem when config jboss virtual host with nuxeo 5. I dont want my application run in test.com/nuxeo but run in test.com.
I modify server.xml to add new virtual host and modify :
<module>
    <web>
        <web-uri>nuxeo.war</web-uri>
        <context-root>/nuxeo</context-root>
    </web>
</module>
to:
<module>
    <web>
        <web-uri>nuxeo.war</web-uri>
        <context-root>/<context-root>
    </web>
</module>
Bu when i login using test.com/login.jsp, it go to error page:

Exception: javax.security.auth.login.LoginException. message: Authentication Failed

javax.el.ELException org.nuxeo.ecm.core.api.ClientException: org.nuxeo.ecm.core.api.WrappedException: Exception: javax.ejb.EJBAccessException. message: Authentication failure com.sun.el.parser.AstValue.invoke(AstValue.java:155) com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) org.nuxeo.ecm.platform.ui.web.rest.services.URLPolicyServiceImpl.navigate(URLPolicyServiceImpl.java:397) org.nuxeo.ecm.platform.ui.web.rest.RestfulPhaseListener.beforePhase(RestfulPhaseListener.java:76) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)

Anyone can help me please?

Cuonglm.
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
Julien CARSIQUE | 2 Dec 12:07

Re: How to config to change URL to run Nuxeo

Hi,

You won't succeed by this way.
We recommend to configure a virtual host (or any redirect) outside JBoss.
See http://doc.nuxeo.org/5.1/books/nuxeo-book/html/admin-virtualhosting.html

Regards,
Julien

Cuong Le Manh a écrit :
> Hi,
>
> I have problem when config jboss virtual host with nuxeo 5. I dont 
> want my application run in test.com/nuxeo <http://test.com/nuxeo> but 
> run in test.com <http://test.com>.
> I modify server.xml to add new virtual host and modify :
> <module>
>     <web>
>         <web-uri>nuxeo.war</web-uri>
>         <context-root>/nuxeo</context-root>
>     </web>
> </module>
> to:
> <module>
>     <web>
>         <web-uri>nuxeo.war</web-uri>
>         <context-root>/<context-root>
>     </web>
> </module>
> Bu when i login using test.com/login.jsp <http://test.com/login.jsp>, 
> it go to error page:
>
>
>     Exception: javax.security.auth.login.LoginException. message:
>     Authentication Failed
>
> javax.el.ELException org.nuxeo.ecm.core.api.ClientException: 
> org.nuxeo.ecm.core.api.WrappedException: Exception: 
> javax.ejb.EJBAccessException. message: Authentication failure 
> com.sun.el.parser.AstValue.invoke(AstValue.java:155) 
> com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) 
>
org.nuxeo.ecm.platform.ui.web.rest.services.URLPolicyServiceImpl.navigate(URLPolicyServiceImpl.java:397) 
>
org.nuxeo.ecm.platform.ui.web.rest.RestfulPhaseListener.beforePhase(RestfulPhaseListener.java:76) 
> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) 
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) 
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
>
> Anyone can help me please?
>
> Cuonglm.
> ------------------------------------------------------------------------
>
> _______________________________________________
> ECM mailing list
> ECM@...
> http://lists.nuxeo.com/mailman/listinfo/ecm
>   

--

-- 
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
jcarsique@... | Tel: +33 1 40 33 79 87

Attachment (jcarsique.vcf): text/x-vcard, 307 bytes
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm

Gmane