Tagged Questions
0
votes
1answer
9 views
Observe the specific type of event
I'm using observer model in Java EE, the idea is to let one service fire events to many observers. However, although all observers are listening to the same event, each of them is only interested a ...
0
votes
0answers
11 views
Join several javax.ws.rs.client.Invocation
In GWT there is a good feature that allows us to join several requests to the server via
com.google.web.bindery.requestfactory.shared.RequestContext.append()
and run them all in one query by
...
0
votes
2answers
36 views
Java Portlet API
I am looking at the Java Portlet API for the first time and trying to decide on whether or not to consider using it.
From the look of things, it looks like a technology that might be considered old ...
1
vote
2answers
45 views
What are the official resources for the Java EE APIs spec?
I know a few official sources like the java Java EE 6 tutorial.
But I was wondering, which one are the official sources for properly learning the spec of every API and any other resource related to ...
0
votes
1answer
14 views
Glassfish FileNotFoundException on First Load
I've created a simple login test setup using form-based authentication (using JSF).
I have both a login.jsf page and an error.jsf page to redirect to on login failure. Now, in the tutorial I'm ...
0
votes
1answer
79 views
A simple hello world program in EJB3
I'm new to EJB. I am using Netbeans 7.3 to create a simple hello world application. I've tried and tested the code but I couldn't figure out where I go wrong. The sayHello method does not print. ...
1
vote
1answer
35 views
Is it harmful to inject en EJB into a viewscoped Bean?
In my web application I have a presentation Layer consisting of several jsf-viewscoped and some requestscoped beans. Normally I only want to have presentation logic in these, so whenever there's a ...
0
votes
0answers
45 views
CDI event is always null
CDI Event is always null I get the below exception. I am wondering whether we can use CDI in general static methods. Does this class should be managed bean, in order to make the CDI event work?
...
0
votes
2answers
62 views
How can a singleton Java EE bean obtain a reference to itself?
I have a singleton bean for which the @PostConstruct method needs to call an @Asynchronous method within itself. It cannot do so directly using this because that makes the call synchronous. I cannot ...
0
votes
1answer
48 views
Cannot Cancel @Asynchronous call to EJB
What am I doing wrong in this simplest of examples?
(Glassfish 4.0-b87 + Eclipse Kepler m6)
Myself.java
package com.example.cancelbug;
import java.util.concurrent.ExecutionException;
import ...
0
votes
0answers
19 views
WAS 8.0 Federated Repo & Servlet Spec 3.0 Security authentication of password digest
I'm developing a Registration Confirmation feature for a site. A user successfully registers on a registration page, an email is subsequently sent to the user's email address with a hyperlink, and ...
1
vote
0answers
57 views
@RolesAllowed and web-tier in Java EE 6.0
I have a web application with a set of security constraints. Web app calls ejb modules annotated with @RolesAllowed and everything's fine - once authorized, user's credentials being passed to ejb and ...
1
vote
1answer
36 views
How to find a ininite loop in glassfishv3
I have s.t. like a infinite loop some where in the code. That place is somehow not called often. So after a couple of hours one of the cpu's on the linux machine start's running at 100% then after a ...
0
votes
0answers
31 views
PimeFaces components causing errors in JSFUnit tests
i am writing JSFUnit tests for an Java ear based project. I am using cargo to deploy to an existing Jboss7.1.* Server.
The tests run smoothly on some pages but then the pages that have certain ...
0
votes
1answer
37 views
OpenJPA - How to map View to Entity
I'm using WAS 8.0.0.5, which means I'm using OpenJPA 2.1.2-SNAPSHOT. I'm using the Criteria Query API and Canonical Metamodels. I need to access an Oracle View. The View has 1 column named GUID, ...
1
vote
1answer
55 views
Static utility methods to CDI (Weld JEE6)
I have a simple old style static methods in a utility class. I am struggling to "CDI" it due to the paramterised objects required each time..any help appreciated on how best to approach this?
i.e. i ...
2
votes
0answers
31 views
JBoss can send/receive CDI beans as parameter in remote EJB? [duplicate]
I have two applications that communicate with each other via EJB.
And when I try to call a remote EJB passing in parameters a injected value (cdi weld) throws a ClassNotFoundException in my bean ...
0
votes
1answer
25 views
Set jdk location in ubuntu for glasfish server
while running glassfish server from windows cmd i was getting error like following
org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is ...
0
votes
0answers
99 views
TomEE 1.5.2 / PrimeFaces 3.5 - why does the converter not work if I use JSON?
I know there's some problem with my converter, because if I replace my converter with something else it works.
Basically: I have Projects like this
public class Project implements Serializable{
...
1
vote
1answer
68 views
how to call session bean method with a certain role when calling from an MDB?
My Session bean has several methods defined.
Some can be accessed by ADMIN role only, others can also be accessed by USER role.
@Stateless
@DenyAll
public class MyBean {
...
...
1
vote
1answer
60 views
Create interceptor qualifier thats ignore annotation value()
Is there a way to create a interceptor qualifier annotation that ignores the annotation string value for qualifying?
for example:
Log.java
@Inherited
@InterceptorBinding
...
1
vote
3answers
148 views
Persistence layer design in Java EE 6/7
The last time I developed an app using JBoss 7.1 (Java EE6 standard), I wrote the persistence layer using DAOs.
First of all, I had an "abstract" DAO which was the father of all concrete daos:
...
2
votes
1answer
107 views
unable to merge entity with derived entities
i am trying out derived entities using @JoinedColumns,
let me show you my code,
below is the sql code,
create table TBL_EMPLOYEE_FIVE(
EMP_ID integer ,
NAME varchar(50),
COUNTRY ...
0
votes
0answers
53 views
PrimeFaces p:orderList isn't getting processed correctly?
I have an orderList like this:
<h:form id="priority_form">
<p:orderList id="priority_list" value="#{priorities.priorities}"
var="priority" itemValue="#{priority}" ...
2
votes
1answer
46 views
Any Idea where I can find the server.log file when using Glassfish?
I get the following error:
deploy?DEFAULT=C:\Users\Bart\Documents\SE ...
1
vote
1answer
142 views
Websphere and logback
I created a dynamic web project using IBM Rational Application Developer (RAD). I used Logback as the logging framework. I put the logback.xml in WEB-INF/classes. But the application does not pickup ...
1
vote
1answer
54 views
Strange error when trying to send email
The following strange error is returned. I cannot understand where it's coming from as the Netbeans debugger is quite lacking.
Exception in thread "AWT-EventQueue-0" java.lang.ClassFormatError: ...
-1
votes
4answers
79 views
Coming up to speed in Java [closed]
I have done mostly core java programming earlier and went out of touch for nearly two years. I would like to get up to speed with core java and java EE programming. Do you guys have an idea what path ...
0
votes
1answer
177 views
Injected service keeps throwing NullPointerException
When accessing the injected service as below test() throws a NullPointerException.
If I do not inject but use a new instance of BugService the NPE will be thrown at next step: BugService's getItems().
...
2
votes
0answers
76 views
Async processing in Servlet 3.0: Is there a library for this pattern?
When I was looking at how to design my servlets and their interactions with the back-end services, I thought maybe there is a toolkit available to solve this 'typical' scenario:
Servlet container ...