Hi again. I managed to ran my application. I am not very sure what is the reason but.... here is my adventure:
I removed from jboss-4.0.3SP1/server/default/deploy/jbossweb-tomcat55.sar jsf-libs dir. I put all necessary libs in my web application, which are jsf-api.jar jsf-impl.jar and myfaces-impl.jar, which I took from jboss-4.0.3SP1/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs before removing it, because I had a Class not foun exception. After all this I tryied again with my URL: http://localhost:8080/TestWebApp/mainJsp the following exception appeared: javax.servlet.jsp.JspException: Cannot find FacesContext javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:405) com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:105) org.apache.jsp.jsp.main_jsp._jspx_meth_f_view_0(org.apache.jsp.jsp.main_jsp:170) org.apache.jsp.jsp.main_jsp._jspService(org.apache.jsp.jsp.main_jsp:127) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) Then I tryied the following URL: http://localhost:8080/TestWebApp/faces/mainJsp ..... and everything is now OK !!!!!! I am not sure, that I understand what happened as my jsp is defined in web.xml as: <servlet-mapping> <servlet-name>mainJsp</servlet-name> <url-pattern>/mainJsp</url-pattern> </servlet-mapping> so the last URL must not be walid, although the Face servlet is mapped: <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping> Then I tried to map Face Servlet in the following way (guess why) <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/*.jsp</url-pattern> </servlet-mapping> not working: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUtils.java:921) at org.apache.tomcat.util.digester.CallMethodRule.end(CallMethodRule.java:578) at org.apache.tomcat.util.digester.Rule.end(Rule.java:228) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown S Can anyone explain me all this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954326#3954326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954326 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user