Questions tagged [java-ee-6]

Use this tag for questions relating specifically to Java Enterprise Edition 6.

Java Enterprise Edition 6 (JEE6) is a specification defining a collection of Java-based technologies and how they interoperate. JEE6 incorporates a set of technologies, including EJB3, JPA, JSF, CDI, etc.

Numerous implementations are available in the form of both commercial products and open source projects.

Information

This tag is specific for the Java EE 6 version. See the tag for general Java EE questions.

Useful links

2030 questions
0
votes
1 answer

Access Security level (ACL) with Java EE 6?

I am developing a web application where there are few roles like Admin,Reporter,Manager,Customer.Agent.Based on Role, some menu item need to be displayed . Admin can give permission (dynamically) to user say Agent ( which is not default permission…
Suraj
  • 437
  • 8
  • 20
0
votes
0 answers

Method in session scoped bean returns null for non-null field

When I am trying to get the value from the bean (annotated @SessionScoped) using method getContractNumber() I am getting null. However, when directly accessing the field parameters.contractNumber the result is the correct value from request. I…
carbolymer
  • 1,439
  • 1
  • 15
  • 30
0
votes
1 answer

What is the point of web services?

I really don't see the point of making EJB's into web services. The first thing that comes to mind is security. How do I keep the entire world from using my business methods? How would you authenticate a user to use a service. The second it…
Drew H
  • 4,699
  • 9
  • 57
  • 90
0
votes
2 answers

Cannot find OpenPortal Portlet Container 2.x when creating a new server runtime environment in eclipse

I just started learning portlet and got stuck in the first place. I have installed JavaEE 6 SDK, Eclipse Helios and GlassFish Server 3.0.1. I also successfully configured OpenPortal Portlet Container (OPC) for GlassFish by running command: java -jar…
Genzer
  • 2,921
  • 2
  • 25
  • 38
0
votes
3 answers

How to find the path to a .txt file in glassfish v3.0

In my aplication i want to send a html template to the users email. Everithing works correctly when i programatically create the html, but what i want to do now, is read the html text from within a file in my application and send it. I get a…
javing
  • 12,307
  • 35
  • 138
  • 211
0
votes
1 answer

FileNotFoundException when ussing FileReader to find a resource in a java ee6 dynamic project

I am getting the all well known FileNotFoundException when i try to call a .txt file that holds some text. I used various path convinations, but i dont get the right one. Here is how i call it: private String generateActivationLinkTemplate() { …
javing
  • 12,307
  • 35
  • 138
  • 211
0
votes
1 answer

testing java ee 6 with junit 3

I have a short question: Can I test java ee 6 with junit 3, or do I have to use JUnit 4?
Null
  • 31
  • 1
  • 3
0
votes
1 answer

Mapping JPA Entity : annotation oneToMany manyToOne

I have an error in the mapping of my tables. I do not know how to deal with this error. Can you help me please? Thank you very much. Entity and Relationship : one RefCollectivite ==> many ColPlanCompteM61 Here is my code: @Entity @Table(name =…
0
votes
1 answer

How to call servlet or web service from JSF backing bean?

I seriously cannot find the correct way to do this. I have this method and it works, but it seems kind of a work around to do something so basic. FacesContext context = FacesContext.getCurrentInstance(); String baseURL =…
Drew H
  • 4,699
  • 9
  • 57
  • 90
0
votes
1 answer

Is em.persist() or em.merge() not needed or not for update?

I have the code from below and wondering how does JPA know to persist this update. I expected an em.merge() to be needed in order to perform the update. Is this actually safe ? @Stateless class User { ... public void…
Sorin Penteleiciuc
  • 653
  • 1
  • 10
  • 26
0
votes
2 answers

OPenJPA: : How to commit entities when an exception is thrown

In an EJB project, for a specific exception, I want to still persist the entity which is currently rolledback. Creating and flushing the entity in the exception block does not help. The transaction is still rolled back. I tried to detach the entity…
avish
  • 41
  • 5
0
votes
3 answers

Java Spring, how to use JSP files hosted at a remote location?

I have searched on this and found something about using remotely hosted JSPs but it was not specific to Spring and I am not quite sure how to make it work with Spring. I have a situation where I need to give access to a designer who will work on the…
Rick
  • 16,612
  • 34
  • 110
  • 163
0
votes
0 answers

JSF managed property

I am a beginner in JSF and thank you for helping me. I have 2 Managed Beans A and B. I would simply like to recover 2 variables from the A bean to the B bean. Is there a solution? I try for hours things found on the internet but nothing…
0
votes
1 answer

Why can't I get ViewScope to work? Throws errors every time

Ok I'm trying to do something real simple. Just to note this works fine with SessionScope. I have a datatable and when I select a row it needs to update a form that a user could edit. Every time I try and fire the row selector it comes back with…
Drew H
  • 4,699
  • 9
  • 57
  • 90
0
votes
1 answer

Caused by: javax.persistence.PersistenceException: Invalid persistence.xml. Cannot find the declaration of element 'persistence'

I am currently working on an Enterprise Application and I am having problems setting up the entitymanagerfactory. I keep getting this message. 10:26:37,661 ERROR [org.jboss.ejb3.invocation] (http-localhost-127.0.0.1-8080-2) JBAS014134: EJB…
1 2 3
99
100