0
votes
0answers
4 views

Hibernate, isAssociationType? How do I find out if an entity field is an association?

I am looking to create a criteria query, on association only if it is an assoication. There are so many types such as Date, Map, Set, int, Integer, Long and so on that make it hard to properly check ...
0
votes
1answer
6 views

How to install J2EE plugin into Eclipse Luna SE

I have downloaded and installed eclipse luna for Java Dvelopers. I want to convert it into "eclipse luna for J2EE developers".. http://download.eclipse.org/webtools/updates The above link shows ...
0
votes
1answer
14 views

Unsatisfied dependencies for type EntityManager with qualifiers @Default

My project structure looks like project/ business/pom.xml services/pom.xml integration/pom.xml business/pom.xml <dependencies> <dependency> ...
0
votes
1answer
15 views

Equivalent to @EJB annotation for local variables?

EJBs in Hibernate. Is there any equivalent to dependency injection @EJB(mappedName = FoobarServiceInterface.JNDI_NAME_LOCAL) private FoobarServiceInterface foo; when foo is a local variable? I ...
0
votes
0answers
6 views

Hibernate no-op criteria restriction

What is the idiomatic way to add a no-op criteria restriction? Addendum: In its quest to deter users, StackExchange has determined that the above question does not meet "quality standards." The exact ...
0
votes
0answers
11 views

How to open https addres with .p12 file?

I need to open HTTPS connection using .p12 file. So i have tried: URIBuilder builder = new URIBuilder("https://mysite.com"); //other parameters of URI URL url = new URL(builder.build().toString()); ...
0
votes
2answers
12 views

Deploy war file parse error

I would like to deploy a Java web application on Wildfly 8.1.0, previously it was deployed on JBoss 5. The JDK version is 1.7.0_25, I use Oracle ADF version 11, and during deployement I have the ...
0
votes
1answer
13 views

How filter chain invocation works?

I am trying to understand filter chaining.As defined in this question All filters are chained (in the order of their definition in web.xml). The chain.doFilter() is proceeding to the next ...
0
votes
1answer
16 views

Same WAR file, Same Package, EJB call EJB using remote interface

It is a bit weird to ask this, I just faced an application in development which make extensive use of @EJB Remote to @EJB Remote on the Same Package. I know is a very bad approach since you have a ...
0
votes
0answers
24 views

Producer is not used to produce the Bean as an alternative

I have a SecurityContext bean which is used for holding information after the user is logged in. This gets injected into my application when running in production. Now, I have written a producer which ...
2
votes
1answer
52 views

How to Invoke Servlet and Filter in sequence

hi I am working on one web application and facing issue while invoking servelets mentioned in web.xml. Here is my web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app ...
0
votes
1answer
11 views

REST-triggered CDI event fail to update Vaadin UI

In my application, a restful web service can fire CDI events (tested and working, events are fired when expected and a simple observer method will log the event as planned). However, in most case, I ...
-8
votes
0answers
48 views

What topic should I learn first for advance java? [on hold]

I have learned core Java(for example, inheritance, interface, package, thread, swing, awt and so forth ). Now I want to start J2EE but I don't know where to start. What should I start first, jsp ...
0
votes
1answer
27 views

WebSockets in Java EE?

before I start this question I would like to say that I am new to WebSockets. I have to create a client which contacts a server, and retrieves back the data that server sends. (With a username and ...
-3
votes
0answers
46 views

Should i learn Java EE or Java SE first [on hold]

Someone called me ask said: Hey we need someone who knows Java EE. I guess it's (Enterprise Edition) so i would really like to know, Which one should i start to learn first, Java SE or Java EE. I ...
0
votes
0answers
8 views

Validate internal web page reference file existance

The JSF Expression Language validator in Eclipse (and other IDE:s) can help detecting a lot of problems at compile time. One thing it doesn't handle is validation of the existence of the source file ...
0
votes
0answers
19 views

Server-sent events in Spring Security

I have problems trying to use Spring MVC, Spring Security and Server-Sent Event togheter. In my controller class I have the following method: @RequestMapping(value="notification/") public void ...
0
votes
4answers
38 views

Persistence Class in Java

I am working on a JavaEE project. All/Most classes i am working on reside on the data base. There fore all must support creating, editing and deleting a database entry. I don't want to use any ...
0
votes
2answers
16 views

hql - order by first item of the list

So I have a requirement that would need me to order the results by the id of the first item of the list. public class Order { private int id; private List<Item> items; } To get an order where ...
0
votes
0answers
4 views

bold style not getting applied in outlook email sent using java program

When im trying to send email to outlook using javaprogram, the text with bold style is not applying. However, i kept the below code. msg.setContent(buffer, "text/html; charset=utf-8"); But when ...
0
votes
2answers
27 views

JSP class file to HTML

hi i am new into jsp and servelet.i know jsp converted to servlet and servelet to class file.i want to know is that how jspfle.class converted into html?and how this response is gone at client level.i ...
0
votes
0answers
13 views

folder structure to be used for an application with extjs and java?

I have created a Java Project wherein I am using ExtJS for the web pages and I should be using Java for the programming logic. Right now,I am able to display the web pages. However, I do not have any ...
5
votes
2answers
72 views

Modern alternatives to packaging and deploying enterprise applications?

What are the modern best practices and trends to package and deploy server side java software1) in heterogeneous environments2) ? I could not find a lot of coherent or up to date information on the ...
0
votes
3answers
34 views

Java : String to Date conversion Getting Unparseable Exception

I am getting date in String as 09/16/2012 15:57. How do i convert it in java.util.Date I have tried : SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yy HH.mm.ss.SSS a"); ...
0
votes
1answer
27 views

add a new component to java maven project

I have a maven project that contains many components. I need to add a new one called "Component" witch has one module like described in the list below: Component com.module src main java ...
0
votes
0answers
9 views

Managing different J2EE Configurations

I am working on a web application which plays a central role in an infrastructure of networked applications. There are several web services it consumes and several web services it provides. All of ...
-1
votes
4answers
63 views

How to stop of a Thread when it finishes its work?

I am working on web application on JEE. I have created a thread in my ServletContextLitner so it does some entries in database in background and user is sent to it's homepage. My question is that ...
0
votes
1answer
25 views

MyBatis work with dynamic queries, such as count(*) or data in a new column

Lets assume I have user_partner_table id, user_id, partner_id, app_completed, user_name, partner_name 1, 2345, 232, t, sam, A&C Bank 2, 2345, 121, f, sam, M&M Bank 3, 4324, 123, t, tom, DC ...
-1
votes
1answer
16 views

Is there an XSS validating framework that I use on a Servlet backend [on hold]

I have the following security finding whereby a parameter value of the following format has been injected into the request. While I have some regular expressions looking for values in POST that can be ...
1
vote
1answer
25 views

best way to load external files in j2EE?

I am trying to deploy a REST web service. I use glassfish as a web server. I have a problem when i try to open an external file. in other words I want to read a file that is in the web-inf folder ...
0
votes
0answers
7 views

After 6 Serversocket event connection with same application futher ajax request is not getting sumitted

I am facing very strange problem when i am creating server socket event connection with java application deployed on tomcat .After making 6 server socket connection .it is not able to make new ...
0
votes
1answer
28 views

Spring web service client XwsSecurityInterceptor afterCompletion exception

I've implemented a Spring Web Service Server and Client with the configuration enclosed below. I have opted to use simplePasswordSecurity mechanism and both sides have been fitted to handle this. So ...
0
votes
1answer
27 views

JSF, How to get Id of <h:input> from Managed Bean

I have this code in my XHTML page : <p:cellEditor> <f:facet name="output"> <h:outputText value="#{complaint.description}" /> </f:facet> <f:facet ...
1
vote
1answer
39 views

how to check a mail sent by java application is read or not? [duplicate]

Please help me on this requirement. We are sending mails to users using java application. Now, we want to implement the below features. When the mail is open/read by the user, then we want to ...
0
votes
0answers
10 views

Changing EJB Module java classes are not reflecting in application until i replace the .class in that jar(in Eclipse)

In my project, there is a webmodule & ejb module Combining together im creating a ear file to deploy in server. I have added both modules in eclispe, whenever i do changes in the web-module the ...
0
votes
0answers
14 views

JBAS014101: Stateful bean instance get lost

I am using JBoss 7.1.1 and Liferay 6.2. Calling a method in a stateful bean works fine, trying to call a second method is not possible. Actually I am working with Lists and other methods in my bean, ...
2
votes
1answer
31 views

JSTL forEach not working in custom tag

My class: public class CustomObject { private String name; public String getName() { return "test"; } } Request: List<CustomObject> items = new ...
0
votes
0answers
28 views

sending information from java backend to javascript frontend

I have a Java backing bean which has a variable that contains some information (say, a users id). On the client side, I have some Javascript code which needs that information (user id number). What is ...
0
votes
0answers
29 views

Trim-White-Spaces=true not working

So this is the jsp page I have: <%@ taglib prefix="templates" tagdir="/WEB-INF/tags" %> <%@ page trimDirectiveWhitespaces="true" %> <templates:toTheOut htmlTitle="Title Here.."> ...
0
votes
0answers
22 views

Deploy maven project ear in websphere

I am using eclipse JUNO integrated with websphere 8.5.My problem is that,my project is in MAVEN module so each time i have to clean and install the MAVEN Project to generate the EAR. After EAR ...
0
votes
1answer
18 views

Exclude files in war file myeclipse

How to exclude specific files (e.g., files in source folder src/test/java) while doing Export to WAR file? I tried doing export to war in myeclipse, but it doesn't provide me any option to choose ...
0
votes
0answers
12 views

How to download start script in domain from admin to managed server

Do the managed server can download start scripts in bin folder from admin server without node manager? for instance, the end user had been created domain for while, now, they want to have more ...
0
votes
0answers
33 views

String char-set in Java and Oracle DB

Hi i am using Oracle DB to store string on Varchar2 column, with using eclipselink my code is here, pdescription = new String(this.description.getBytes("ISO-8859-9")); sometimes its ok but, ...
1
vote
1answer
24 views

How to set Tomcat environment variable to System environment property?

This is my VM argument from the the tomcat server and i want to set this variable to my system environment. please if any one knows any other option let me know. ...
0
votes
0answers
29 views

Spring Generate domain objects based on a WSDL possible package conflict

I'm currently developing a web service client following this instruction on spring website: The interface to a SOAP web service is captured in a WSDL. JAXB provides an easy means to generate Java ...
0
votes
2answers
32 views

Servelet set attribute doesn't print in jsp

I have set a List of book and set to the request.setAttribute("booksa", allbooks); and in jsp i try to print the List in table but no values printed only the empty table. This is my Servelet ...
0
votes
0answers
8 views

Why is java ws rs ExceptionMapper is picking non application exceptions also?

I have a web application in which I throw some custom exceptions(application exceptions annotated with @ApplicationException) and there is an exception mapper(provider annotated with @Provider) for ...
0
votes
0answers
4 views

JBOSS SSO configuration on multiple servers/multiple webapps

I am posing this question in hopes that someone could help offer some guidance or advice to help me narrow down the resources I should be looking at in order to implement an SSO solution that will ...
0
votes
0answers
23 views

@Context Dependency Injection

I am new to jax-rs and dependency injection, in my application I have a situation where a class uses a DAO object. I have an interface for the DAO and an implementation. I am trying to inject the DAO ...
0
votes
1answer
28 views

Spring nested injections

I'm developing a spring-ws web service within which a bank web service is called. Here is my spring configuration file: <bean id="PaymentService" ...