0
votes
1answer
14 views

How can I use singleton bean at a listener class

I have a singleton bean. Currently I start ist with @startup annotation. I want to change this behaviour and I want to initialize it at runtime when the object is needed. @Singleton ...
-4
votes
0answers
30 views

What all is contained in Advanced Java (Java EE)? [on hold]

After learning Core Java, I recently started out with Advanced Java. But there is a problem. I don't understand what all is Advanced Java made up of. What topics are there. I don't understand how a ...
-3
votes
2answers
39 views

properties.getProperty(key) method returns null value

I am load the properties file and get the value from that file but when i using "Properties" class and getProperty(key) method, it was return null value. code: public class LoadPropertiesFile { ...
0
votes
0answers
16 views

Performance using async rest services

Im trying to understand the JAXRS 2.0 async cabilities so i am using Jersey 2.1 and Glassfish 4 in order to run a REST service that has a thread sleep in the payload. Using @GET ...
0
votes
0answers
18 views

Hardware configuration for Java enterprise-level application? [on hold]

I used to work on just the design and coding part of the software development, but now am working on a Java enterprise project development from scratch to till production deployment. As I am new to ...
0
votes
1answer
15 views

How to get started Tomcat 8.0 if web.xml file is in WEB-INF folder?

I am new to j2ee project. I am getting following error while starting tomcat 8.0, if i remove web.xml from WebContent/WEB-INF folder then tomcat starts, but if i put web.xml again in to WEB-INF then ...
0
votes
1answer
17 views

setContentLength is set high

When the setContentLength method is used to set the length of the response with a higher size that is higher than the actual size, why is the container not auto calculating the length? for instance, ...
0
votes
1answer
14 views

error: cannot access Filter

Here is my error of my spring-security-loginform-annotation project I refer that from mkyong site link [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile ...
1
vote
4answers
43 views

Before moving to learn spring should need to know about Gradle and Maven? [on hold]

I'm currently new in Java EE but good handling at core Java, and knows much about Servlet, JSP(little bit), Now planning to learn about Spring Framework, and i don't know anything about Gradle and ...
3
votes
2answers
34 views

How Variable of an Interface is Working in JAVA and Calling the Methods of Interface?

I know all the following rules of Java Interfaces: You cannot instantiate an interface. An interface does not contain any constructors. All of the methods in an interface are abstract. An interface ...
0
votes
1answer
36 views

Apache Commons Logging vs SLF4J [on hold]

What is the best Java Logger Choice??? Apache Commons Logging Simple Logging Facade Why that is the Best Choice?? For Server Side APPs? For Spring APPs? For OSGI Bundle APPs? To use with OSGI ...
1
vote
1answer
41 views

Java EE application with too many webservices

I'm working with a Java EE application that exposes more than 150 webservices contracts with multiple operations each. I think this is the cause for a long publishing time and OutOfMemory erros when ...
0
votes
2answers
50 views

How to set values from an excel sheet to Pojo object using apache-poi?

I am trying to get values from an excel sheet using apache-poi and than to enter those values into a mysql database.Using apache-poi I am able to get values by using XSSFSheet.rowIterator() ...
0
votes
1answer
16 views

I need a mask for money inputs in primefaces inputMask component

My problem is that I can't find a working mask that matches money inputs for InputMask component in primefaces. I use primefaces 4.0. I want to have the possibility to enter values like : 1234.56 ...
0
votes
0answers
35 views

What are the typical human entry points to a Java EE application?

In my eyes there are following entry points which human can trigger to a Java EE 7 application. (independent from the GUI framework) UI (e.g. Browser, Rich-Application) CLI (command line) E-Mail ...
0
votes
0answers
6 views

Glassfish single domain vs multiple domains

Given an application which needs to be deployed for several different and separate user groups, what are the advantages and disadvantages of using a single vs multiple administrative domains? What's ...
0
votes
0answers
24 views

How to access EJB 2.0 using a standalone program

I am developing EJB 2.0 project using Eclipse and Jboss AS. The below are the code samples: Component interface: package com.vipin.ejb; import javax.ejb.*; import java.rmi.RemoteException; public ...
0
votes
0answers
13 views

Write generated images to relative location in webapp and in unit test

Here's my scenario: I'm writing a rest endpoint that returns resized .png images dynamically. On my server, I have a lot of disk space and a slow processor. 97% of the generated images are going to ...
0
votes
2answers
35 views

what is the file equivalent to ImageIO

Hi to you all java experts. I have this piece of code I could finally put together that works: (it's mostly java with a little ADF code) public String upload(){ UploadedFile myfile = ...
0
votes
0answers
13 views

WAR file being deployed on TomEE - first time deployed not as expected, subsequent restarts result in ClassNotFoundExceptions

I've successfully deployed a war file that I exported using Eclipse to a local instance of a TomEE server, but when trying to do exactly the same thing with the war file on another server, I get the ...
0
votes
4answers
31 views

How to remove '.do' prefix from url in Struts1?

I have written a web-application in struts 1 framework ,Everything works fine but on form submission when user is forwarded to next page URL which is shown is actionname.do.I don't want this struts 1 ...
-1
votes
1answer
22 views

java.io.IOException: Stream Closeddd

For reading multiple excel files, i have to create a method that returns the number of lines in this excel files, but the problem is that i open the workbook twice. Waiting for your suggestions please ...
1
vote
2answers
41 views

Where is my webapp deployed(From Eclipse to Tomcat 7)

I am trying to deploy my Web application(Dynamic web Project) from Eclipse to Tomcat 7( in Windows). Although the deployment works, I would like to see where exactly(the location) the web app is ...
0
votes
0answers
11 views

Glassfish Deployment Error with @WebService

I'm new to web services and I've been following the tutorial here https://www.youtube.com/watch?v=u5cQkVgq6jE and I can't resolve this error. My code is literally just an @WebService annotation so ...
-4
votes
0answers
25 views

Definition of “Java framework” [on hold]

Basically a Java framework is a web framework that uses Java as the main programming language and uses the Java EE specification. But I'm afraid everything is not so simple. Can anyone please help me ...
0
votes
1answer
30 views

Map multiple JPA2.0 entity classes to the same table without inheritance

I have several entity classes which have more or less the same attributes but unfortunately I have no option to apply some kind of proper inheritance among each other. Nevertheless my goal is to map ...
0
votes
0answers
31 views

work on existing java servlet project

I need to work on an existing java servlet project (tomcat 7). it's the first time to me to work on an existing project that other developers worked on before. What I have, are the .class files, ...
-2
votes
0answers
14 views

Apache Tomcat (Class Not Found) [on hold]

i had deployed a web project on tomcat server. i put all the required .jar files in WEB-INF/lib folder but it still showing class not found exception
2
votes
1answer
31 views

Implementing WebRTC Signaling using WebSockets

In order to connect peer to peer for communication using the WebRTC API, you need to implement signaling. Signaling needs a two way communication channel to work. WebSockets are a two way ...
0
votes
1answer
23 views

Why does Glassfish drop tables on deploy?

I used the following command to deploy updates of my *.ear file on Glassfish 3/4 and to keep (but disable) the old version of the *.ear file: ./asadmin --user admin deploy --name MyProject:0.9.2 ...
0
votes
1answer
30 views

Java EE - Singleton EJB with Concurrent Access to Synchronized Method

I have an EJB as below. This has been created solely for test purposes - I'm "sleeping" the thread as I want to simulate the case where the query is scheduled again before the synchronized method has ...
0
votes
1answer
31 views

Jersey-Server response failed to send byte []

I want to send byte[] to Jersey Client. Here is my approach. @POST @Path("/userinfo/") @Produces({ MediaType.APPLICATION_OCTET_STREAM }) public Response getResponse(String userID) { ...
0
votes
1answer
16 views

cant connect to common library in weblogic

i'm trying to connect to an EJB that is located in a common library in weblogic from my ear. The problem is that when i start the application on weblogic, i get a classNotFoundException and the ...
0
votes
0answers
61 views

What are the typical entry points to a Java EE application? [on hold]

I am wondering if I have got all entry points to a Java EE 7 application. In my eyes there are following entry points to a Java EE 7 application human triggered entry point (mostly human) UI (e.g. ...
0
votes
0answers
16 views

Storing and editing configuration for Java EE applications on Jboss

I am tasked with writing a configuration service that can have its configuration changed dynamically at runtime. I have done a bit of research and found this question from 3 years ago . I took a ...
0
votes
1answer
45 views

Oracle Glassfish 3.1.2 and JMS deployment descriptor files exception

I created a J2EE web application (war + EJB module) and I tryed to setup JMS resources for Oracle Glassfish 3.1.2.2; the project links on github (web application and EJB module) are: J2EE web ...
1
vote
0answers
26 views

Eclipse fails to deploy exploded ear on weblogic

I'm getting the following error: ####<2014-07-29 09:48:31 CEST> <Error> <Deployer> <PL-00032WS455> <pnb> <[STANDBY] ExecuteThread: '4' for queue: ...
1
vote
1answer
21 views

UTF-8 Arabic with HttpServletResponse truncate output

I have a script that output some XML containing UTF-8 characters. It works well with latin languages (éàœ,...) but fail when I enter arabic characters: The output is truncated at the first arabic ...
-1
votes
0answers
27 views

Things in mind while designing a secure, standard login system in J2EE [on hold]

Things in mind while designing a secure, standard login system in J2EE Help with some code snippets would be good. Thanks in Advance
2
votes
1answer
49 views

Hello World Ear: NoModuleFileException: A file does not exist for module element having uri: core-api.jar

I have what is a simple EAR file configured like so: app.ear |-- lib/... |-- META-INF/application.xml |-- core.jar | |-- test/MyServiceImpl.class | `-- META-INF/MANIFEST.MF // Class-Path: ...
0
votes
0answers
12 views

EJB Wrongly Unauthorized Caller

My web project set up is JEE6 Web application running on Jboss EAP 6.1. Managed Bean has viewScope and EJB is StateLess. I used @SecurityDomain("other") on EJB and @RolesAllowed on some method of ...
-3
votes
0answers
14 views

Charts in a JSF app like on Steam Charts [on hold]

What is the best library/framework to implement charts that look like the one on the top of http://steamcharts.com/? I need to represent a large ammount of points [key (long), value (float)] on such a ...
0
votes
0answers
5 views

How to suppress serverside logging of EJBExceptions which are bubbled up to the client?

My bean throws an Application Exception which I encapsulate in an EjbException. The EjbException then goes to the client. How can I suppress logging of EjbExceptions in my Glassfish APP Server ? Cause ...
2
votes
1answer
58 views

Dealing with uncaught exceptions in Java EE 7 Server API relying on CORS

I have a server written in Java EE 7 running on Wildfly 8.1.0.Final. The server will be used by several different JavaScript clients hosted on different domains. For this reason, I need to enable ...
2
votes
3answers
62 views

Thread safety in java web application?

What does someone mean when I am asked that whether my web application is thread safe or not , considering that I have not used Multiple threads in my webapplication.
0
votes
1answer
33 views

How to hold data for jar as library with cluster awareness

I am creating a library (java jar file ) to provide a solution of a problem. Library is mainly targeted for web application (j2ee application) can be used with spring and other framework. Targeted ...
0
votes
1answer
23 views

Convert dynamic web project to JPA project?

I have a dynamic web project in eclipse luna EE. I am supposed to use EclipseLink and JPA to manage the persistence. I want to create the entity classes for each of these classes from database tables ...
1
vote
2answers
37 views

How to use enums to define constant value groups

im using interface to accesses the project constant this is my interface public interface ConstantValues { interface PaymentType { public static final String CREDIT_CUSTOMER = ...
0
votes
1answer
31 views

JSP compiled but now has several errors?

I have a JSP and Servlet project on github at - https://github.com/double-whammy/affablebean.git . This code at least compiled properly on my old computer. When I imported it into my new computer, it ...
0
votes
1answer
31 views

Securely Storing SMTP Credentials in Java EE

I have a Java EE application running on GlassFish 4 / Java 8 (x64). Development is on a Windows machine, but it will eventually be ported to Linux (either Red Hat or Ubuntu). In that application I ...