What exactly is the web-app version? What does it affect?

Web.xml is a central place where you define the configuration of your Web application. For instance you can specify there: servlet mapping, i.e. which URL path refers to which Java class (e.g. when user types http://something.com/Koray you can point that request to KorayServlet.java class where you keep the implementation of the servlet) authorization parameters, e.g. … Read more

JSF request scoped bean keeps recreating new Stateful session beans on every request?

Stateful session beans (SFSB) are not exactly what you think they are. You seem to think that they behave somehow like session scoped JSF managed beans. This is untrue. The term “session” in EJBs has an entirely different meaning than the HTTP session which you’ve had in mind. The “session” in EJBs must be interpreted … Read more

javax.servlet.ServletException: HV000030: No validator could be found for type: java.lang.Integer

HV000030: No validator could be found for type: java.lang.Integer That will happen when you use JSR303 bean validation in flavor of Hibernate Validator and you have in your JPA entity the Hibernate-specific @NotEmpty on an Integer property like this: @NotEmpty private Integer some; This is completely wrong. An integer cannot be considered as a string, … Read more

Difference between a packaged archive and an exploded archive

There is no difference really. An exploded archive is a tree of folder and files that respects a given structure which your application server can exploit to deploy the application. For a web application for instance, you create a war directory structure. The application server expects a WEB-INF directory containing the web.xml files which acts … Read more

What is Weld, JSR-299?

What does Weld do/give you? Weld is the reference implementation of the abstract JSR-299 API, which is better known as CDI, Contexts and Dependency Injection, an API which is provided through javax.enterprise.context and javax.enterprise.inject packages. How does it relate to Java EE 6? JSR-299 is part of Java EE 6 (JSR-316). How would one use … Read more

techhipbettruvabetnorabahisbahis forumu