» Home » javax » Page 1
Java EE 6 @javax.annotation.ManagedBean vs. @javax.inject.Named vs. @javax.faces.ManagedBean
by rgmarcha in Programming Languages

I feel there is a little mess in the Java EE 6 spec. There are several sets of annotations.


We have javax.ejb annotations like @Stateful and @Stateless for creating EJBs.


There is also a @javax.annotation.ManagedBean to create a managed bean.


There are annotations in javax.enterprise.context lik


import javax.persistence.column, javax.persistence.entity, javax.persistence.Id - and so on - cannot be resolved
by Michiel Overtoom in Java

I am trying to follow this tutorial http://viralpatel.net/blogs/spring3-mvc-hibernate-maven-tutorial-eclipse-example/


Instead of starting by using the downloadable project I thought I'd start from a simple "spring mvc - maven - eclipse" project I did before. This project was running fine.


So as indicated on that tutorial, I started creating the packages. Then I create my


In an application server environment, should one prefer javax.sql.DataSource or javax.sql.ConnectionPoolDataSource?
by Mike in Java

An existing question expresses something similar, but I want to call out a slightly different nuance here.


The basic question: All application servers give the ability to specify both the (standard) interface and the (vendor-supplied) implementation classes for a (little-d, little-s) data source when you define a connection pool. If a vendor supplies an implementation for both a


Persisting a OneToMany Entity gives javax.faces.el.EvaluationException: javax.ejb.EJBException
by TheMoo in Java

When i try the save method, it gives me an error but when i try inserting the data directly to the database manually, it works fine. Please is there something am not adding or seeing in my managedbean class? Please Help to keep the explanation as simple and straight as possible. Thanks


@Entity
@Table(name = "state")
@NamedQueries({
@NamedQuery(name = "State

javax.faces.component.UpdateModelException: javax.el.PropertyNotFoundException:
by Bruce in Java

I am working on a JSF2, Icefaces web application. I have the following view:


<h:dataTable value="#{myFormBB.userRolesBean.userRoleList}" var="row">
<h:column>
<ice:selectBooleanCheckbox value="#{row.teamUser}" />

I get the below exception when I save the above <ice:selectBooleanCheckbox>.



javax.mail.MessagingExcep tion: Can't send command to SMTP host; nested exception is: javax.net.ssl.SSLKeyException: RSA premaster secret error
by Finland in Java

In jdk1.4 I can send mail, but when i try to send mail using jdk1.6 I get the below exception.


My Working Environment.
========================
1.OS : windwos 2008
2.JAVA : JDK1.6
3.Mail Api : java mail1.4
4.Email : gmail
5.smtp port: 465 or 587
Exception in thread "main" java.lang.RuntimeException: javax.mail.MessagingExcep
tio

Differences between javax.jms.ConnectionFactory and javax.jms.XAConnectionFactory
by XLNC in Java

I'm entering the world of JTA, due to need of distributed transactions, and I'm uncertain about the differences between javax.jms.ConnectionFactory and javax.jms.XAConnectionFactory or more accurately how can it be that javax.jms.ConnectionFactory performed what I expected only javax.jms.XAConnectionFactory can do for me.
The details- I'm u


Compilation error on Eclipse Indigo : javax.servlet.jsp.JspException, javax.servlet.jsp.PageContext cannot be resolved to a type
by qba73 in Java

I am getting following errors while adding following EL in a jsp in eclipse indigo.


<form action="${pageContext.request.contextPath}/user">
...
</form>

However the application runs fine without any compilation error. I double check the servlet-api 2.5 and jst 1.2 jars are in class path in Eclipse IDE.


If I remove ${page


javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied “items” in <forEach>
by Pottuvoi in Java

I have a Bean that holds the results. I need to use JSTL to iterate over it and present the results. Here is the bean:


public class DetResults
{
private List<String> headings;
private List<Class<?>> types;
private List<Object[]> data;
public DetResults() {}
public List<String> getHeadings() { return

javax.faces.FacesException: javax.faces.FacesException: javax.el.PropertyNotFoundException:
by Czech Republic in Java

I'm getting the below error when i try to access my application(using JSF,RichFaces,a4j frameworks).


SEVERE: Error Rendering View[/index.xhtml]
javax.faces.FacesException: javax.faces.FacesException: javax.el.PropertyNotFoundException: /facelets/home.xhtml @448,82 rendered="#{contact.visible}": ELResolver cannot handle a null base Object with identifier 'contact'
at j

Next



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .