Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Eclipse + Tomcat 6 & Jguard 2.0 beta 5

2009-11-13
2013-05-08
  • Miłosz Mazur
    Miłosz Mazur
    2009-11-13

    Hi all,
    I want to integrate JGuard(2.0 beta 5)with simple JSF application. I've done steps which was described in doc (integration JGuard with JSF section) but i get following error:

    ….
    2009-11-13 23:37:20 org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class net.sf.jguard.jee.listeners.ContextListener
    java.lang.IllegalArgumentException: E:%5CAI%5Cworkspace%5C.metadata%5C.plugins%5Corg.eclipse.wst.server.core%5Ctmp0%5Cwtpwebapps%5CAI-web%5CWEB-INF%5CjGuardAuthorization.xml (Nie można odnaleźć określonego pliku) Nested exception: E:%5CAI%5Cworkspace%5C.metadata%5C.plugins%5Corg.eclipse.wst.server.core%5Ctmp0%5Cwtpwebapps%5CAI-web%5CWEB-INF%5CjGuardAuthorization.xml (Nie można odnaleźć określonego pliku)
    at net.sf.jguard.core.util.XMLUtils.read(XMLUtils.java:96)
    at net.sf.jguard.core.authorization.AuthorizationHelper.loadConfiguration(AuthorizationHelper.java:119)
    at net.sf.jguard.ext.InitHelper.installAuthorizationAndAuthentication(InitHelper.java:159)
    at net.sf.jguard.jee.listeners.ContextListener.contextInitialized(ContextListener.java:102)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    2009-11-13 23:37:20 com.sun.faces.config.ConfigureListener contextInitialized
    ….
    I see that JGuard can't resolve configuration files path but I don't know how to solve this problem.

    I have jGuardAuthrization.xml and jGuardAuthentication.xml in WEB-INF folder. I run deploy application on server from Eclipse (3.5).

    Thanks in advance

     
  • Charles Lescot
    Charles Lescot
    2009-11-14

    HI,
    does yor file path contains any whitespace, or non-compliant url character?
    it seems that your url contains some encoded character which seems not point to a valid location , isn't it?

    best regards,

    Charles GAY.