Questions tagged [java-ee-7]

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

Java Enterprise Edition 7 (JEE7) is a specification defining a collection of Java-based technologies and how they interoperate. JEE7 incorporates the features of technologies of JEE6, including EJB3, JPA, JSF, CDI, etc. and adding new features like WebSockets, 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 7 version. See the tag for general Java EE questions.

Useful links

1224 questions
0
votes
1 answer

Getting place holder value from resource path in REST?

I am using Jersey RESTful web services. I have below resource. @Path("/banker/{location}") @Component public class BankResource{ @GET @Path("/{id}") @Produces({MediaType.APPLICATION_XML}) @Override public Response…
user755806
  • 6,565
  • 27
  • 106
  • 153
0
votes
1 answer

Instantiating generic class in java?

I am using Java1.7 and using generics. I wrote a generic class as below. public class SomeCollection, K> { } Now, how can i instantiate above class? I mean how can i create an instance for above class? I am doing as:…
user755806
  • 6,565
  • 27
  • 106
  • 153
0
votes
2 answers

Adding extra parameter to method?

I have below aspect. @Around("somePublicMethod()") public Object doAction(ProceedingJoinPoint call) throws Throwable { SomeObject client = null; Object result = null; try { client =…
user755806
  • 6,565
  • 27
  • 106
  • 153
0
votes
0 answers

Spring MVC returning 500 error? How can I debug it?

I have a project using spring MVC. The request is recieved correctly. The dispatcher servlet correctly maps the request to the controller. The controller correctly processes the request and generates the proper response The model-map is populated…
Paul
  • 3,318
  • 8
  • 36
  • 60
0
votes
1 answer

How can I specify errorStyle and warnStyle for JSF messages globally?

I'm writing tiny web-application using JSF2.2 and Twitter Bootstrap for client side. I customized the look of list elements dumped by tag, but now I have to specify its errorStyle and warnStyle every time use something…
east825
  • 909
  • 1
  • 8
  • 20
0
votes
1 answer

calling Jersey REStfu web services by clients?

I have below RestFul web service method devleoped using Jersey. @GET @Produces ("application/xml") public User validateAndReturn(User user) { User als=null; try { als= UserService.validate(user); } catch (ClassNotFoundException e) { // TODO…
user755806
  • 6,565
  • 27
  • 106
  • 153
0
votes
1 answer

I can't consume the resource. I'm Using Java EE 7/JAX-RS

I have this service: @Stateless @Path(value = "tasks") public class TasksFacadeREST extends AbstractFacade { I can access the app through: localhost:8080/todo However, this gives me a 404: localhost:8080/todo/tasks I do have this method in…
Lay González
  • 2,901
  • 21
  • 41
0
votes
0 answers

integrating swings application in java web project to call swing application on client machine using maven and eclipse

i have swing java application that has been converted into a jar file which is working standalone . i need to integrated the application with my web project in order to run this application on client machine . pls provide me the best solution…
0
votes
2 answers

Circular Json serializing

i have a javaEE application with two entities which gets persistet in a database. both entities have a bi-directional association. First Entity: @Entity @JsonIdentityInfo(generator=ObjectIdGenerators.PropertyGenerator.class, property="id",…
Laokoon
  • 1,241
  • 4
  • 24
  • 47
0
votes
2 answers

design pattern to validate the requests?

I have below the interface. I am using Java 7 and Spring 3.0 public interface Maintain{ void save(Request request); Request getRequest(String id); void delete(Request request); void update(Request request); } public class MaintainImpl…
user755806
  • 6,565
  • 27
  • 106
  • 153
0
votes
1 answer

Implementing authentication in WildFly8

I have a working WildFly8 application and I would like to implement some kind of HTTP authentication (I am relatively new to Java EE). It can be the most basic type of authentication and it should use a database as back-end. All the tutorials I…
Nikša Baldun
  • 1,854
  • 4
  • 28
  • 39
0
votes
4 answers

can't retrieve data from database

Problem was: Can't get just inserted data from the table. From the error message it looks like it doesn't see the first column. I know the column is there and data was inserted. I checked database. I checked if column Number has some hidden space in…
user1282256
  • 183
  • 1
  • 6
  • 16
0
votes
2 answers

Can I start a ManagedThread in a Singleton Enterprise Java Bean?

I'm trying to start a thread in a Singleton EJB but java.lang.IllegalStateException is being thrown. This is my (cut-down) class: Singleton @LocalBean @Startup public class WatcherEJB { @Resource(name = "concurrent/masterActionsThreadFactor") …
D-Dᴙum
  • 7,689
  • 8
  • 58
  • 97
0
votes
1 answer

Creating a REST Service with Glassfish 4 outside of a WAR

I have a rest service implemented as follows @Stateless @Path("/Person") @Produces(MediaType.APPLICATION_XML) public class RestService { @PersistenceContext(unitName = "mysqlPU") EntityManager em; @GET @Path("{id}") public…
rubixibuc
  • 7,111
  • 18
  • 59
  • 98
0
votes
1 answer

Exception from javax.xml.ws.Provider

I have created a stateless EJB annotated with the @WebServiceProvider annotatoin and made it point to a WSDL file I created (contract first web services) and implemented the Interface javax.xml.ws.Provider. the web service is correctly started in…
Omar Al Kababji
  • 1,768
  • 4
  • 16
  • 31