jguard w/ mysql

maremv
2009-11-25
2013-05-08
  • maremv

    maremv - 2009-11-25

    I am trying to use jguard to connect to a mysql server. I had got it to the point where it was using usernames & passwords out of the xml file, but once I have tired to get it pointed to the database I have hit the following error:
    <code>
    Nov 24, 2009 11:24:17 PM 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.LinkageError: loader constraint violation: when resolving method "net.sf.jguard.ext.authentication.manager.AuthenticationHelper.initAuthentication(Lnet/sf/jguard/core/authentication/configuration/JGuardConfiguration;Ljava/util/Map;Ljava/lang/String;)Lnet/sf/jguard/ext/authentication/manager/AuthenticationManager;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, net/sf/jguard/jee/listeners/ContextListener, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, net/sf/jguard/ext/authentication/manager/AuthenticationHelper, have different Class objects for the type net/sf/jguard/core/authentication/configuration/JGuardConfiguration used in the signature
            at net.sf.jguard.jee.listeners.ContextListener.initAuthentication(ContextListener.java:195)
            at net.sf.jguard.jee.listeners.ContextListener.contextInitialized(ContextListener.java:103)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
            at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511)
            at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1229)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
            at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
            at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1465)
            at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:821)
            at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:349)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:619)
    Nov 24, 2009 11:24:17 PM 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.LinkageError: loader constraint violation: when resolving method "net.sf.jguard.ext.authentication.manager.AuthenticationHelper.initAuthentication(Lnet/sf/jguard/core/authentication/configuration/JGuardConfiguration;Ljava/util/Map;Ljava/lang/String;)Lnet/sf/jguard/ext/authentication/manager/AuthenticationManager;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, net/sf/jguard/jee/listeners/ContextListener, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, net/sf/jguard/ext/authentication/manager/AuthenticationHelper, have different Class objects for the type net/sf/jguard/core/authentication/configuration/JGuardConfiguration used in the signature
            at net.sf.jguard.jee.listeners.ContextListener.initAuthentication(ContextListener.java:195)
            at net.sf.jguard.jee.listeners.ContextListener.contextInitialized(ContextListener.java:103)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
            at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1244)
            at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:374)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:619)
    </code>

    version jguard ver = 1.0.4
    tomcat ver = 6.0.16
    netbeans ver = 6.7.1
    what other info can I provide? -Thanks

     
  • Charles Lescot

    Charles Lescot - 2009-11-25

    Hi,
    it seems a clasloader problem occurs:
    i suspect multiple locations of the same jguard jar archive.can you check that jguard archives are only located under the WEB-INF/lib directory of your webapp?

    best regards,

    Charles.

     
  • maremv

    maremv - 2009-11-26

    Fixed the above error, and spent the night debuging finding some xml files I had messed up, but now i have hit a wall. It looks like from the dump the XPath is not finding my userTemplate->name->default and bombing. Any Ideas on this one? I dont know anything about XPaths other than they look like regular expressions for XML. -Thanks!

    jGuardUsersPrincipals.xml
    <code>
    &lt;?xml&nbsp;version="1.0"&nbsp;encoding="UTF-8"&nbsp;standalone="no"?&gt;<br/>
    &lt;!DOCTYPE&nbsp;usersPrincipals&nbsp;SYSTEM&nbsp;"jGuardUsersPrincipals_1.00.dtd"&gt;<br/>
    &lt;usersPrincipals&gt;<br/>
    &nbsp;&nbsp;&lt;principals&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principal&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;name&gt;admin&lt;/name&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;class&gt;net.sf.jguard.core.principals.RolePrincipal&lt;/class&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;applicationName&gt;NWODB&lt;/applicationName&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/principal&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principal&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;name&gt;guest&lt;/name&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;class&gt;net.sf.jguard.core.principals.RolePrincipal&lt;/class&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;applicationName&gt;NWODB&lt;/applicationName&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/principal&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principal&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;name&gt;customer&lt;/name&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;class&gt;net.sf.jguard.core.principals.RolePrincipal&lt;/class&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;applicationName&gt;anotherApplication&lt;/applicationName&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/principal&gt;<br/>
    &nbsp;&nbsp;&lt;/principals&gt;<br/>
    &nbsp;&nbsp;&lt;users&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;userTemplate&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;name&gt;default&lt;/name&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;privateRequiredCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credTemplateId&nbsp;identity="true"&gt;login&lt;/credTemplateId&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credTemplateId&nbsp;digestNeeded="true"&gt;password&lt;/credTemplateId&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/privateRequiredCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;publicRequiredCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credTemplateId&gt;firstname&lt;/credTemplateId&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credTemplateId&gt;lastname&lt;/credTemplateId&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credTemplateId&gt;location&lt;/credTemplateId&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/publicRequiredCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;privateOptionalCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credTemplateId&gt;country&lt;/credTemplateId&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credTemplateId&gt;religion&lt;/credTemplateId&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/privateOptionalCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;publicOptionalCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credTemplateId&gt;hobbies&lt;/credTemplateId&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/publicOptionalCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;genericPrincipals&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principalRef&nbsp;name="admin"&nbsp;applicationName="NWODB"/&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principalRef&nbsp;name="customer"&nbsp;applicationName="anotherApplication"/&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/genericPrincipals&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;specificPrincipalFactories/&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/userTemplate&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;user&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;privateCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;id&gt;login&lt;/id&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;value&gt;admin&lt;/value&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;id&gt;password&lt;/id&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;value&gt;admin&lt;/value&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/privateCredentials&gt;<br/>
    <br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;publicCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;id&gt;firstname&lt;/id&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;value&gt;Rick&lt;/value&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;id&gt;lastname&lt;/id&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;value&gt;Dangerous&lt;/value&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;id&gt;location&lt;/id&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;value&gt;Paris&lt;/value&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/publicCredentials&gt;<br/>
    <br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principalsRef&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principalRef&nbsp;name="admin"&nbsp;applicationName="NWODB"&nbsp;definition="${subject.publicCredentials.location.contains('Paris')}"&nbsp;active="true"/&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principalRef&nbsp;name="customer"&nbsp;applicationName="anotherApplication"&nbsp;active="false"&nbsp;/&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/principalsRef&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;/user&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;user&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;privateCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;id&gt;login&lt;/id&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;value&gt;guest&lt;/value&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;/credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;id&gt;password&lt;/id&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;value&gt;guest&lt;/value&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;/credential&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;/privateCredentials&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;publicCredentials/&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principalsRef&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;principalRef&nbsp;name="guest"&nbsp;applicationName="NWODB"&nbsp;/&gt;<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/principalsRef&gt;<br/>
    &nbsp;&nbsp;&nbsp;&lt;/user&gt;<br/>
    &nbsp;&nbsp;&lt;/users&gt;<br/>
    &lt;/usersPrincipals&gt;<br/>
    </code>

    Stack Trace:
    <code>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:03:07&nbsp;AM&nbsp;org.apache.catalina.core.StandardContext&nbsp;listenerStart<br/>
    SEVERE:&nbsp;Exception&nbsp;sending&nbsp;context&nbsp;initialized&nbsp;event&nbsp;to&nbsp;listener&nbsp;instance&nbsp;of&nbsp;class&nbsp;net.sf.jguard.jee.listeners.ContextListener<br/>
    org.dom4j.InvalidXPathException:&nbsp;Invalid&nbsp;XPath&nbsp;expression:&nbsp;'//userTemplate'.&nbsp;Caused&nbsp;by:&nbsp;org/dom4j/Element<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:362)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.dom4j.tree.AbstractNode.selectNodes(AbstractNode.java:164)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;net.sf.jguard.ext.authentication.manager.XmlAuthenticationManager.getSubjectTemplate(XmlAuthenticationManager.java:402)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;net.sf.jguard.ext.authentication.manager.XmlAuthenticationManager.init(XmlAuthenticationManager.java:165)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;net.sf.jguard.ext.authentication.manager.JdbcAuthenticationManager.insertRequiredData(JdbcAuthenticationManager.java:238)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;net.sf.jguard.ext.authentication.manager.JdbcAuthenticationManager.init(JdbcAuthenticationManager.java:147)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;net.sf.jguard.ext.authentication.manager.AuthenticationManagerFactory.createAuthenticationManager(AuthenticationManagerFactory.java:77)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;net.sf.jguard.ext.authentication.manager.AuthenticationHelper.initAuthentication(AuthenticationHelper.java:92)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;net.sf.jguard.jee.listeners.ContextListener.initAuthentication(ContextListener.java:195)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;net.sf.jguard.jee.listeners.ContextListener.contextInitialized(ContextListener.java:103)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:514)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.startup.HostConfig.check(HostConfig.java:1288)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;sun.reflect.NativeMethodAccessorImpl.invoke0(Native&nbsp;Method)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;java.lang.reflect.Method.invoke(Method.java:597)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1473)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:824)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:350)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:617)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)<br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;java.lang.Thread.run(Thread.java:619)
    <br/>
    </code>

    Log:
    <code>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;org.apache.catalina.core.StandardContext&nbsp;stop<br/>
    INFO:&nbsp;Container&nbsp;org.apache.catalina.core.ContainerBase...&nbsp;has&nbsp;not&nbsp;been&nbsp;started<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;org.apache.catalina.startup.HostConfig&nbsp;checkResources<br/>
    INFO:&nbsp;Undeploying&nbsp;context&nbsp;<br/>
    log4j:WARN&nbsp;No&nbsp;appenders&nbsp;could&nbsp;be&nbsp;found&nbsp;for&nbsp;logger&nbsp;(net.sf.jguard.jee.listeners.ContextListener).<br/>
    log4j:WARN&nbsp;Please&nbsp;initialize&nbsp;the&nbsp;log4j&nbsp;system&nbsp;properly.<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;net.sf.jguard.ext.authentication.manager.AuthenticationManagerFactory&nbsp;createAuthenticationManager<br/>
    INFO:&nbsp;authenticationManagerImpl=net.sf.jguard.ext.authentication.manager.JdbcAuthenticationManager<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;net.sf.jguard.ext.database.DatabaseUtils&nbsp;createEntities<br/>
    INFO:&nbsp;JG_PRINCIPAL_SEQ&nbsp;entry&nbsp;is&nbsp;not&nbsp;present&nbsp;in&nbsp;the&nbsp;properties&nbsp;file&nbsp;<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;net.sf.jguard.ext.database.DatabaseUtils&nbsp;createEntities<br/>
    INFO:&nbsp;JG_USER_SEQ&nbsp;entry&nbsp;is&nbsp;not&nbsp;present&nbsp;in&nbsp;the&nbsp;properties&nbsp;file&nbsp;<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;net.sf.jguard.ext.database.DatabaseUtils&nbsp;createEntities<br/>
    INFO:&nbsp;JG_CREDENTIAL_SEQ&nbsp;entry&nbsp;is&nbsp;not&nbsp;present&nbsp;in&nbsp;the&nbsp;properties&nbsp;file&nbsp;<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;net.sf.jguard.ext.database.DatabaseUtils&nbsp;createEntities<br/>
    INFO:&nbsp;JG_ST_CREDENTIAL_SEQ&nbsp;entry&nbsp;is&nbsp;not&nbsp;present&nbsp;in&nbsp;the&nbsp;properties&nbsp;file&nbsp;<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;net.sf.jguard.ext.database.DatabaseUtils&nbsp;createEntities<br/>
    INFO:&nbsp;JG_ST_PRINCIPAL_SEQ&nbsp;entry&nbsp;is&nbsp;not&nbsp;present&nbsp;in&nbsp;the&nbsp;properties&nbsp;file&nbsp;<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;net.sf.jguard.ext.database.DatabaseUtils&nbsp;createEntities<br/>
    INFO:&nbsp;JG_ST_USER_SEQ&nbsp;entry&nbsp;is&nbsp;not&nbsp;present&nbsp;in&nbsp;the&nbsp;properties&nbsp;file&nbsp;<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;org.apache.catalina.core.StandardContext&nbsp;start<br/>
    SEVERE:&nbsp;Error&nbsp;listenerStart<br/>
    Nov&nbsp;26,&nbsp;2009&nbsp;12:26:38&nbsp;AM&nbsp;org.apache.catalina.core.StandardContext&nbsp;start<br/>
    SEVERE:&nbsp;Context&nbsp;&nbsp;startup&nbsp;failed&nbsp;due&nbsp;to&nbsp;previous&nbsp;errors<br/>
    </code>

     
  • maremv

    maremv - 2009-11-26

    herm, sorry but the line feeds looked good on the preview….

     
  • Vinicius Pitta Lima de Araujo

    Hi,
    Have you debug the code and check if it is looking in the right file? There is nothing wrong with the xpath expression. I tested it on a online tool and worked fine(considering that aren't this brs tags).

    's

    Vinícius Pitta Lima de Araújo

    http://www.viniciusaraujo.net

     
  • maremv

    maremv - 2009-11-27

    was using wrong version of jaxen / dom4j -Thanks

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks