Quantcast

Error When Trying to Login to Webconsole

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error When Trying to Login to Webconsole

nminshew
Hi.  I've been trying for the past couple of days to get the Petals Webconsole to deploy on a Tomcat 5.5.23 application server running on CentOS5.  I downloaded the source code from the petalslink repository and ran the maven target "install" creating petals-webconsole-ui-2.1-SNAPSHOT.war.  After much tweaking and configuration, I've reach an error that I'm not sure how to resolve.  When I bring up the webconsole in a browser, and try to login, I get an error stating that it is missing an xmlmap-method jar file.  I can't seem to find this jar anywhere.  It was not downloaded when I ran the maven target and I can't find it on a google search.  Does anyone know where this jar is or what might be causing the error.  Below is the stack trace from the error

09:26:31,067 DEBUG AuthenticatorBase:386 - Security checking request POST /petals-webconsole-ui/j_security_check
09:26:31,067 DEBUG FormAuthenticator:257 - Authenticating username 'ustcadmin'
09:26:31,068 DEBUG JAASRealm:337 - JAASRealm login requested for username "ustcadmin" using LoginContext for application "WebconsoleJAAS"
09:26:31,068 DEBUG JAASRealm:361 - Login context created ustcadmin
09:26:31,069 DEBUG [/petals-webconsole-ui]:129 - Returned username "ustcadmin"
09:26:31,069 DEBUG WebappClassLoader:1064 - getResource(security.xml)
09:26:31,069 DEBUG WebappClassLoader:942 -     findResource(security.xml)
09:26:31,069 DEBUG WebappClassLoader:959 -     --> Returning 'file:/usr/share/tomcat5/webapps/petals-webconsole-ui/WEB-INF/classes/security.xml'
09:26:31,069 DEBUG WebappClassLoader:1102 -   --> Returning 'file:/usr/share/tomcat5/webapps/petals-webconsole-ui/WEB-INF/classes/security.xml'
09:26:31,070 DEBUG WebappClassLoader:1139 - getResourceAsStream(META-INF/services/javax.xml.parsers.SAXParserFactory)
09:26:31,070 DEBUG WebappClassLoader:1168 -   Searching local repositories
09:26:31,070 DEBUG WebappClassLoader:942 -     findResource(META-INF/services/javax.xml.parsers.SAXParserFactory)
09:26:31,070 DEBUG WebappClassLoader:961 -     --> Resource not found, returning null
09:26:31,070 DEBUG WebappClassLoader:1188 -   Delegating to parent classloader unconditionally org.apache.catalina.loader.StandardClassLoader@5d3e754f
09:26:31,071 DEBUG WebappClassLoader:1196 -   --> Returning stream from parent
09:26:31,071 DEBUG WebappClassLoader:1254 - loadClass(org.apache.xerces.jaxp.SAXParserFactoryImpl, false)
09:26:31,071 DEBUG WebappClassLoader:1139 - getResourceAsStream(META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration)
09:26:31,071 DEBUG WebappClassLoader:1168 -   Searching local repositories
09:26:31,071 DEBUG WebappClassLoader:942 -     findResource(META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration)
09:26:31,071 DEBUG WebappClassLoader:961 -     --> Resource not found, returning null
09:26:31,072 DEBUG WebappClassLoader:1188 -   Delegating to parent classloader unconditionally org.apache.catalina.loader.StandardClassLoader@5d3e754f
09:26:31,078 DEBUG WebappClassLoader:1203 -   --> Resource not found, returning null
09:26:31,078 DEBUG WebappClassLoader:1254 - loadClass(org.apache.xerces.parsers.XIncludeAwareParserConfiguration, false)
09:26:31,079 DEBUG WebappClassLoader:1254 - loadClass(org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl, false)
[xmlmap://org.ow2.petals.tools.webconsole.services.security.auth/unversioned] ERROR: No mapping method found. Please add an xmlmap-method jar file to your classpath.
09:26:31,081  WARN JAASRealm:386 - Login exception authenticating username "ustcadmin"
javax.security.auth.login.LoginException: java.lang.NullPointerException
        at org.ow2.opensuit.xmlmap.impl.SchemaImpl.getElement(SchemaImpl.java:302)
        at org.ow2.opensuit.xmlmap.schema.SchemasManager.getElement(SchemasManager.java:131)
        at org.ow2.opensuit.xmlmap.XmlInstantiator.instanciateElt(XmlInstantiator.java:858)
        at org.ow2.opensuit.xmlmap.XmlInstantiator.instantiateFile(XmlInstantiator.java:451)
        at org.ow2.opensuit.xmlmap.XmlInstantiator.instantiateMainDoc(XmlInstantiator.java:439)
        at org.ow2.opensuit.xmlmap.XmlInstantiator.instantiate(XmlInstantiator.java:79)
        at org.ow2.opensuit.xmlmap.XmlInstantiator.instantiate(XmlInstantiator.java:72)
        at org.ow2.opensuit.xmlmap.XmlInstantiator.instantiate(XmlInstantiator.java:68)
        at org.ow2.petals.tools.webconsole.services.security.util.FilerDAOHelper.readConfig(FilerDAOHelper.java:66)
        at org.ow2.petals.tools.webconsole.services.security.auth.EntityJAASLoginModule.retrievePrincipalByName(EntityJAASLoginModule.java:217)
        at org.ow2.petals.tools.webconsole.services.security.auth.EntityJAASLoginModule.authenticate(EntityJAASLoginModule.java:168)
        at org.ow2.petals.tools.webconsole.services.security.auth.EntityJAASLoginModule.login(EntityJAASLoginModule.java:126)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:594)
        at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:366)
        at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:636)

        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:887)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:594)
        at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:366)
        at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:636)
09:26:31,081 DEBUG ApplicationDispatcher:185 - servletPath=/WebConsole, pathInfo=/pg/pages/LoginError, queryString=null, name=null
09:26:31,082 DEBUG ApplicationDispatcher:375 -  Path Based Forward
09:26:31,082 DEBUG StandardWrapper:804 -   Returning non-STM instance
09:26:31,084 DEBUG ApplicationDispatcher:185 - servletPath=/error_login.jsp, pathInfo=null, queryString=null, name=null
09:26:31,084 DEBUG ApplicationDispatcher:565 -  Path Based Include
09:26:31,085 DEBUG StandardWrapper:804 -   Returning non-STM instance
09:26:31,085 DEBUG JspServlet:248 - JspEngine --> /error_login.jsp
09:26:31,085 DEBUG JspServlet:249 -          ServletPath: /WebConsole
09:26:31,085 DEBUG JspServlet:250 -             PathInfo: /pg/pages/LoginError
09:26:31,085 DEBUG JspServlet:251 -             RealPath: /usr/share/tomcat5/webapps/petals-webconsole-ui/error_login.jsp
09:26:31,085 DEBUG JspServlet:252 -           RequestURI: /petals-webconsole-ui/WebConsole/pg/pages/LoginError
09:26:31,085 DEBUG JspServlet:253 -          QueryString: null
09:26:31,085 DEBUG JspServlet:254 -       Request Params:
09:26:31,085 DEBUG JspServlet:258 -              j_password = s
09:26:31,086 DEBUG JspServlet:258 -              j_username = ustcadmin
09:26:31,088 DEBUG ApplicationDispatcher:412 -  Disabling the response for futher output
09:26:31,088 DEBUG AuthenticatorBase:419 -  Failed authenticate() test ??/petals-webconsole-ui/j_security_check

Any help would be much appreciated!

- Nate
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error When Trying to Login to Webconsole

Vincent Zurczak
Administrator
Hi,

nminshew wrote
I've been trying for the past couple of days to get the Petals Webconsole to deploy on a Tomcat 5.5.23 application server running on CentOS5.
The Petals web console requires Tomcat 6 (or any server that supports the version 2.5 of the Servlet specification).
« Petals M.D. »
Loading...