jsf 2 and maven with eclipse "run on server" -


I check with the Mojarra JSF 2.0 helloworld sample (only enter as a user name). I import it as a Maven project to accept it with Tomato 6 servers (V 3.5) I have Mozierra dependencies to run JSF 2.0 inside a servlet container. I

When I Package and JSF Dependency are within the scope of compilation, so this Jar is already in the web-INF / Lib. Then I put it in a fresh tomcat insent, it works without complaining about the ClassNantFound exception.

My problem is that I can not run the project without putting this jar in the eclipse tomcat insert.

Am I doing something wrong?

I have masjar dependency to run JSF 2.0 inside a servlet container.

>

Do you mean that you have modified the dependencies of the provided palm according to the suggested suggestions in the comment:

   & Lt; Version & gt; 2.0 & lt; / Edition & gt; & Lt; Scope & gt; Provided & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt ;! - Delete these dependencies and make an over-comment to use a simple servlet container instead of Java EE application server & lt; Dependency & gt; & Lt; Group & gt; Com.sun.faces & lt; / Group & gt; & Lt; ArtifactId & gt; JSF-api & lt; / ArtifactId> & Lt; Version & gt; [2.0.1,) & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Com.sun.faces & lt; / Group & gt; & Lt; ArtifactId & gt; JSF-implication & lt; / ArtifactId> & Lt; Version & gt; [2.0.1,) & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Javax.servlet & lt; / Group & gt; & Lt; ArtifactId & gt; Servlet-api & lt; / ArtifactId> & Lt; Version & gt; 2.5 & lt; / Edition & gt; & Lt; Scope & gt; Provided & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Javax.servlet.jsp & lt; / Group & gt; & Lt; ArtifactId & gt; Jsp-api & lt; / ArtifactId> & Lt; Version & gt; 2.1 & lt; / Edition & gt; & Lt; Scope & gt; Provided & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Javax.servlet.jsp.jstl & lt; / Group & gt; & Lt; ArtifactId & gt; JSTL-api & lt; / ArtifactId> & Lt; Version & gt; 1.2 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.glassfish.web & lt; / Group & gt; & Lt; ArtifactId & gt; JSTL-impl? & Lt; / ArtifactId> & Lt; Version & gt; 1.2 & lt; / Edition & gt; & Lt; / Dependencies & gt; - & gt; & Lt; / Dependencies & gt;  

Can you confirm this? Actually, a modified pom can help.

When I use "run on the server", it always says that " javax.faces.web.FacesServlet

I did not find you mean javax.faces.webapp.FacesServlet . This is definitely jsf-api. Jar and jsf-api.jar and jsf-impl.jar in the WEB-INF / lib . You can correct m2eclipse ?

But when posted

are you out of eclipse? And tomake Without putting Mojarra jar Lib folder?


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -