3
votes
3answers
18 views

Depoly Tomcat with domain name

Can anyone please tell me that how to deploy or start tomcat with domain name e.g. Currently my app is working perfect with http://<live-ip-address>:8080/visual/TrustDashboard but i want ...
0
votes
0answers
18 views

Difference between deploying WAR and Build folder

Question 1: May I ask what is the difference between deploying a java webapp with it's WAR file vs just copy/pasting the build folder into tomcat webapp folder? Question 2: Somehow I am told to ...
0
votes
2answers
25 views

Grails render HttpInputStream as pdf

With the following code I am getting bad output like this: %PDF-1.4 %���� 4 0 obj <>stream x�3P0T�5T0P034�ɹ\�\N!\�f ��f !)\�!\�\� %@(Dɹ �i� .� h�@]z��PF��� endstream endobj 6 0 obj <>/ProcSet ...
0
votes
1answer
21 views

Java: Compare loaded jars on local machine and environment

I've faced problem when something going wrong on remote environment, whereas on localhost all works correct. After some googling I consider that it's caused by maven packaging specific or some ...
0
votes
0answers
4 views

beanshell inline interpretation of classes that implements comparable

I am trying to interpret a string that contains a class which implements comparable. this is to be able to add these objects in a treeset. the codes are as follows: TreeSet ts = new TreeSet(); ...
0
votes
0answers
8 views

gateway pattern and glassfish4

I am using the gateway pattern in jee project at which i have: A stateful session bean with extended presistence context. The bean has transaction attribute set to not supported in order to stop any ...
0
votes
0answers
10 views

java 1.7 source code : sun.security package

I need to download the source code of sun.security package ( for example sun.security.jca.Getinstance class ). I have downloaded openjdk (openjdk7-1.7.0.147) source code but in src com, java, javax, ...
2
votes
1answer
26 views

When exactly does JPA REQUIRES_NEW transaction commit

In a spring container, with the code below: public class A { @Transactional public void m1() { ... b.m2(); // call in a new transaction ... } } public class B { ...
2
votes
1answer
28 views

Dynamic changes to server without restarting server

I am working on a project which takes 15 min to build and deploy in local server , My problem is i use to work in grails before this , and i am very use to making changes in controllers/servlets and ...
0
votes
5answers
61 views

Minimise if else conditions in method

I have the following class. public enum EnumService { ONE, TWO, THREE, FOUR,.............HUNDRED; //Values till HUNDRED public static EnumService returnMockService(String request) { ...
1
vote
0answers
19 views

How to lunch JEE JavaFX application using appclient

This is about Application Client Container. I'm trying to develop a JEE application using JavaFX. I've done it using Swing. I used GlassFish 3 appclient and it worked. Now I'm using JavaFX ...
3
votes
2answers
47 views

How can I use Java to restrict the session to a single browser tab

I don't want the user's HTTP session to be shared between browser tabs. For example, if a user logged into the system in tab one, he can see all of his profile details. However, when the same URL is ...
0
votes
0answers
20 views

how to save special charchter name like Āhualoa in mysql using hibernate

I need to save a us country city name which has some special character. I am using Spring hibernate and using save method of hibernate to persist and object. when i pass string Āhualoa while saving ...
0
votes
1answer
26 views

Error in making array of class

I have got below code snippet after decompiling a java class file. The original class was created in java 1.4. Now I am trying to compile in Java 1.6. I am using eclipse Juno. Public class[] ...
0
votes
1answer
34 views

Use Desktop as Java/J2ee Hosting Server [on hold]

I have desktop and i want to use it as Java/J2ee Hosting server. Not for public just for me as i want to test my application and learning purpose. I bought domain from goDaddy.com and its pointing to ...
0
votes
1answer
20 views

Why am I getting a 400 error, as I try to deploy my app from netbeans?

While trying to deploy my google app engine application from netbeans I get the following error : com.google.appengine.tools.admin.HttpIoException: Error posting to URL: ...
0
votes
2answers
13 views

Spring Http Client

I am new to spring and I need my java app to connect to another API over http (JSON, RESTful). Does the Spring framework have anything like a JSON HTTP Rest Client? What do Spring devs usually use? ...
-4
votes
0answers
19 views

Open source reporting tools [on hold]

Hi, I am currently training PFE (Project Graduation) in a company that provides payment systems to banks ... You told me to make a reporting module for a period of 4 months, the reports generated ...
0
votes
0answers
14 views

How can I create a streaming website using JEE technologies like a youtube or dailymotion [on hold]

I am interested to created my own videos and movies site using JEE technologies, Any help regarding to this is appreciated.
1
vote
1answer
25 views

Printing the results of a gene search to a HTML tab

I have created a managed bean that searches a gene database currently it only returns the result to the glass fish console. I am wondering if anyone can offer any suggestions on how to get my search ...
0
votes
0answers
21 views

Eclipse plugin how to dynamically write some sort of code in file

I am making 1 eclipse plugin. This plugin can read file present in current project in workspace. Now i want to write code in some file(Suppose user right click on some file and choose write) so some ...
0
votes
1answer
30 views

Java annotations: dynamically build array based on annotated fields

I have to @Override an abstract function and offer an array of strings (defining searchable fields for my datatable): @Override public String[] getQueryFields() { return new String[] { "email", ...
-1
votes
0answers
7 views

How to auto archive data stored in a database into XML file weekly, monthly and yearly basis using java or any java related framework?

I want to auto archive data stored in a database into XML file weekly, monthly and yearly basis using java or any java related framework. Please help me guyz .....
0
votes
1answer
27 views

JPA as a multithread

ERROR [ACTIVE] ExecuteThread: '33' for queue: 'weblogic.kernel.Default (self-tuning)' - 07.02.2014 11:37:20,360 request_id=9e32efa6-1374-4b1c-99e9-326a3a256b88 Error Code:99 Error in Async Task with ...
0
votes
1answer
21 views

How set where in templates using jpa in CriteriaQuery

I am beginner in java EE and I need know, how set a clausule where in this code of criteria public <T> List<T> findEntity(Class<T> entityClass) { CriteriaQuery<T> criteria ...
0
votes
0answers
27 views

Run netstat linux command from JAVA with grep

I want to run netstat -an | grep 12345 and retrieve the output to find out if a port is empty and ready to use. I have tried TRY1: System.out.println("RUNNING ==> "+command); try { Process ...
-2
votes
0answers
16 views

“Failed while installing Axis2 Web Services Core” when creating a webservice [on hold]

i am new to java can any body please help me how can i fix this error i was trying to make simple webservice to add 2 number . Unable to add the follwing facets to project WebServiceProject: Axis2 ...
0
votes
1answer
29 views

How to integrate Hibernate Validator into Tomcat 7?

I've successfully integrated JSF (Mojarri) and CDI (Weld), but can't get Hibernate Validator to work. The following jars are added to WEB-INF/lib: validation-api-1.1.0.Final.jar ...
0
votes
0answers
33 views

upgrade java from 1.5 to 1.6 on tomcat 5 [duplicate]

I want to upgrade java version to 1.6 from 1.5. but i want to keep my tomcat server intact that is to 5.5.9. I need to know what are the possible key areas where i might face issues after upgrading? ...
0
votes
2answers
37 views

No unique bean of type is defined: expected single matching bean but found 2

I am getting the below exception when I am deploying the code Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type ...
0
votes
2answers
25 views

Cannot find symbol HibernateUtil

I'm following the tutorial on Hibernate as seen here and in my 'FilmHelper' class I'm trying to get a Session object like so: package dvdrental; import org.hibernate.Session; public class ...
0
votes
1answer
34 views

Error when submiting form:Data truncation: Incorrect datetime

I got this exception when I valid my form, dao.DAOException: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: ...
0
votes
1answer
17 views

Struts tag overrides context path in action

I have a page with a link to redirect to a struts action, the action works fine when I redirect through URL Action. I need to call that action again, at that time the context path shows an error. If I ...
0
votes
1answer
39 views

Which Apache Tomcat version should I use? [on hold]

Each Apache Tomcat version implements different version of Java EE specification and Java EE is backwards compatible. My question is: I have a Java EE 5 application. Should I deploy it on Apache ...
1
vote
1answer
28 views

java.lang.Float to Oracle DB number(3,3)

I have a float value in Java, to update into a Oracle 10g Database. The column's data type is number(3,3). But when I try to insert it shows: ORA-01438: value larger than specified precision ...
0
votes
0answers
25 views

Create an internal Database for Java EE?

I'm creating a web application, possibly using Maven, Spring and Hibernate. I need to create a database for the application which will obviously hold some data, however as I need to send the ...
0
votes
2answers
33 views

Configure J2EE version on Eclipse

My J2EE project needs to be ran under J2EE 1.4 environment. I found there is no option on Eclipse to specify which J2EE version to be used by my J2EE project. However the J2EE project could be ...
0
votes
1answer
17 views

JPA query to mix member of and collection as parameter

I starting with JPA queries. I'm trying to find out how to set a collection as a parameter of 'member of' where clause. Taking the Model described in Ultimate JPA Queries and Tips List – Part 1 ...
1
vote
1answer
26 views

Spring - Hibernate error

I have a web application connected to a MySQL database. This application implements the Frameworks Spring and Hibernate, and it has the following architecture: In the file getGraph.jsp I have this ...
0
votes
1answer
22 views

JPA transaction spanned over several postbacks

I need to create a simple JEE application which could have two modes. First, it automatically stores each modification to the database, and second, all the changes are stored on demand. Is it possible ...
0
votes
0answers
28 views

EJB 3 with spring integration issue

I am trying to integrate EJB 3 with Spring 3 and getting following error.. [3/7/14 17:15:06:489 CST] 0000002d ContextLoader I org.springframework.web.context.ContextLoader initWebApplicationContext ...
0
votes
1answer
12 views

executing loops in Beanshell interpreter

I have a string, srcCode, that contains "HashSet hs = new HashSet(); int i=0; for(i=0;i<10,i=i+2){ hs.add(i); }" using BeanShell interpret, am trying to interpret it, below is the ...
0
votes
2answers
48 views

How to remove ear name from the JNDI name

I have an ear build pom which build api, ejb, and core java module. But when I deploy and start the JBoss, it deploy the ejb JNDI name with the ear name. For example the JNDI name is ...
3
votes
1answer
57 views
+50

Role of hibernate queries in heap dump

I'm JProfilling my application to analyze high CPU usage. CPU usage is 100%(at server) at the time of user login. So started profiling my application. The below querie strings I found in the heap ...
0
votes
1answer
23 views

web-page form submission with a limited count

I have been asked in a JAVA/JEE interview question about how would achieve the business logic for the following scenario To build a web-page which gets user data through a form (a registration ...
0
votes
2answers
22 views

Web-services: remote interfaces vs request/responce scheme

I've never used SOAP or EJB. I read about SOAP and can't grasp one (maybe the main) point. Question: Why should one use remote interfaces instead of simple request/responce scheme? My ...
1
vote
1answer
79 views
+50

“Injection data not found in JNDI context” when injecting TimerService via @Resource

I'm to trying use a TimerService instance to schedule dynamically some executions on a singleton EJB on a Tomee 1.6.0 server. The scheduling works the first time, but on subsequent executions I get ...
-1
votes
0answers
24 views

How to develop a Java api in jason? [closed]

I want to make a android application. In this application i want to use the (java)web api created by me. I know how to parse a Jason page in android. I want to build similar Jason page. Please help ...
0
votes
2answers
40 views

Hybris framework documentation

I'am looking for some hybris documentation I tried to find some articles PDFs or private training but I did not find anything can someone tell me how can I learn hybris or get documentation of this ...
2
votes
0answers
35 views

Extending JPA entities without other code changes

Idea is simple - I have common code base, I want to extend some entities with additional fields for particular clients, but remain all relationships working, ie. without need to update related ...

15 30 50 per page