Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: JSF Authentication

$
0
0

Hey Nikolay

 

Thanks for the tip. I added this in the web.xml:

<security-constraint>

  <web-resource-collection>

  <web-resource-name>CommunicationChannelUtilWeb</web-resource-name>

  <url-pattern>*</url-pattern>

  <http-method>GET</http-method>

  <http-method>POST</http-method>

  </web-resource-collection>

  <!-- Specify the role that all users must have to access the application -->

  <auth-constraint>

  <role-name>CommunicationChannelUtilRole</role-name>

  </auth-constraint>

  <user-data-constraint>

  <transport-guarantee>NONE</transport-guarantee>

  </user-data-constraint>

</security-constraint>

 

and this in the web-j2ee-engine.xml:

<security-role-map>

  <role-name>CommunicationChannelUtilRole</role-name>

  <server-role-name>Everyone</server-role-name>

</security-role-map>

 

I think the page now tries to route me to the login page first.

 

However If I access the page I get a 500 Internal Server Error. The log shows these Exceptions:

500 Internal Server Error is returned for HTTP request [https://system:port/CommunicationChannelUtilWeb/faces/login.xhtml]:
  component [Faces Servlet],
  web module [CommunicationChannelUtilWeb],
  application [sap.com/CommunicationChannelUtilEAR],
  DC name [sap.com/CommunicationChannelUtilEAR],
  CSN component[],
  problem categorization [com.sap.ASJ.web.000137],
  internal categorization [1833011496].

[EXCEPTION]
com.sap.engine.services.servlets_jsp.server.exceptions.WebServletException: Error occurred in dispatching request to servlet [/faces/login.xhtml].
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doCached(RequestDispatcherImpl.java:683)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:497)
at com.sap.engine.interfaces.security.auth.WebCallbackHandler.forward(WebCallbackHandler.java:304)
...


Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.render.RenderKitFactory
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:725)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)
at com.sun.faces.context.FacesContextImpl.<init>(FacesContextImpl.java:130)
at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:108)
at com.sap.tc.ls.faces.context.UCFFacesContextFactory.getFacesContext(UCFFacesContextFactory.java:58)
at com.sap.tc.ls.faces.context.UCFFacesContextFactory.getFacesContext(UCFFacesContextFactory.java:28)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:261)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doCached(RequestDispatcherImpl.java:664)
... 48 more

 

I checked these thread without finding a solution to my problem.

 

Thanks for the help.

 

Best regards

Fabio


Viewing all articles
Browse latest Browse all 9129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>