Tagged Questions
0
votes
0answers
12 views
Trouble With Getting Timestamp Info From JSP To Database Using Ajax
I am using Ajax to retrieve elapsed time from two on clicks and store it in a table, I am trying to get text to appear after each click from that same table as well. Below is my servlet and JSP. Can ...
-5
votes
0answers
23 views
When overriding methods defined in interfaces there are several rules. What are them? [on hold]
When overriding methods defined in interfaces there are several rules
to be followed:
1- Checked exceptions should not be declared on implementation methods
other than the ones declared by ...
0
votes
0answers
10 views
how to install maven plugin for Jboss Developer Studio 4
I could not find the option to create to Maven project in my Jboss EAP 4.1 server. I am guessing, I should install the maven plugin to work with this.
Please let me know how to install the maven ...
0
votes
0answers
27 views
Spring MVC Hibernate web application
Spring MVC + Hibernate web application with mysql database.
3 tables (products, members and cart to connect this two). Members table have two different users: admin and customer.
It should be ...
-2
votes
0answers
10 views
Chat session between two clients of same web application
Let me describe my query in detail because I need very specific answers instead of loads of answer threads:
I have a web application say for a school and It has 4 modules viz. for Management(school ...
0
votes
1answer
11 views
EJB properties file
In my project I have 2 modules, a ejb and a war module. In the war module i have a properties file that is processed when I start the web application (by a listener). For each property in this ...
-1
votes
2answers
37 views
JAVA EE web application and big traffic [on hold]
I choose java to make my web application with maven + hibernate + spring MVC + apache tomcat server (Java EE).
My web application will have many users and many visitors every day.
But my friend told ...
0
votes
1answer
10 views
Don't pin jms groups to specific worker
Updated:
We receive measurement values from different measurement stations, and put them for processing into a jms queue.
Now we use jms grouping, where the groupId is the id of the station, to ...
1
vote
0answers
17 views
ctx.lookup() returns null, if I extend DataSource class
For tests I want to manually bind a datasource to a name. It works with apache SharedPoolDataSource, but if I extend the class, ctx.lookup() returns null.
It has something to do with ...
-1
votes
0answers
11 views
How can I run multiple instances of a job in java with jsr352?
I need run multiple instances of this job. How can I do this? What's the property?
I'm using jsr352, java-batch.
I think this is the documentation JSR-352-1.0-Final-Release.pdf
Thanks.
Source code:
...
0
votes
0answers
15 views
Send a continuous stream of data efficiently to a web server in java
I have a Web Server (WebLogic) and I want to send a continuous stream of data (A Json object) to this server. In other words I want to send the same json object again and again with the least time ...
-2
votes
0answers
8 views
Mybatis query giving error in spring [on hold]
SELECT A.FILE_ID as fileId ,A.APP_VER_SEQ_NO as appVersion FROM PRE_DATA A WHERE 1 = 1 <if test="appId != null"> AND APP_ID=#{appId} </if> <if test="appName != null"> AND ...
0
votes
3answers
11 views
Error “cannot find symbol” for Class Connection and Class Statement
I'm using GlassFish, Maven and Commmand Line to host my Project.
I created a JDBC database in Glassfish and now I'm trying to create a Table in it with this Java-EE file:
package edu.ndnu.arivera;
...
0
votes
0answers
9 views
How to specify cxf.xml in wildfly
I would like to configure the apache cxf library in my wildfly instance via a cxf.xml config file.
I have tried
to put it in the root of my classpath
to put it in the META-INF folder on my ...
0
votes
1answer
11 views
Dead Connections Returned to JDBC Connection Pool - Glassfish 3.1.2.2
I'm having an issue with the jdbc Connection Pool on glassfish handing out dead database connections. I'm running Glassfish 3.1.2.2 using jconn3 (com.sybase.jdbc3) to connect to Sybase 12.5. Our ...
-1
votes
2answers
21 views
How to download Java EE 7 API Documentation (zip)?
Note: People are so easy to downvote this question. Kindly give this a chance and actually check the links, downloading the JEE 7 API Documetation really proves to be quite elusive. Thank you.
I can ...
1
vote
2answers
53 views
Periodically recreating an Object
I'm trying to integrate my service to another service ( Service B). In order to create a client for service B, I need to get a Token and use it while I create the client. The token expires every 72 ...
0
votes
0answers
16 views
java wsimport - prevent from nesting complex-types
I have a given WSDL with a lot of nested complex-types.
Here is a short e.g:
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.abc.xyz">
...
0
votes
1answer
26 views
How to declare excpected exception on EJB 3.0?
I've created my own exception class:
public class ValidationException extends RuntimeException { ... }
I've declared it in EJB interface method:
public interface MyApi {
void save(MyDTO dto) ...
0
votes
2answers
63 views
Declaring an object to itself using reflection
Not sure about the title, but here goes:
I have a class that are going to be extended, like:
public class A{
public void methodThatDoesStuff(){
//Uses AA here
}
protected class ...
0
votes
1answer
15 views
EJB Mapping of @OneToMany relationships with more than one key in mappedBy
In my project, I want to use @OneToMany relationships with more than one key in mappedBy attribute.
In my project, I have IncidentReport entity and ReportEntry entity and the following mapping is ...
0
votes
1answer
28 views
Receiving parameter in controller from Ajax call in Spring
In my spring project I am sending request through Ajax call like this:
function doAjaxPost(currentPage) {
var appName = document.searchForm.txtZipFile.value;
var e = ...
0
votes
0answers
12 views
Integrating Telephony Server with Weblogic?
I have developed one Telephony application in Java which I have to integrate with WebLogic server.
This application monitors telephones and fetches real time information regarding calls.
I have ...
0
votes
1answer
46 views
Hibernate save new one to one entities mapping
I´m having an issue trying to persist two new entities on database with a mapping between them
The Parent entity:
@OneToOne(cascade = CascadeType.MERGE, mappedBy = "conflictOfInterest")
...
0
votes
1answer
31 views
Add Access-Control-Allow-Origin for CROS
I'm developping a spring mvc rest api. I added Access-Control-Allow-Origin in the response.
With PostMan, I found the header like this :
Access-Control-Allow-Methods →POST, GET, OPTIONS, DELETE
...
0
votes
2answers
29 views
JUnit test methods are not executing
I have a DateAdapter class where am marshaling date type into String type and unmarshaling string data type into Date type via 2 methods mrashall and unmarshall. So my test methods are not running.
...
0
votes
0answers
14 views
Error - The class 'javax.persistence.Entity' is required to be in the selected libraries
We use the OpenJPA 2.0.0 as a JPA provider. We created the user library and added the openjpa-2.0.0 jar. But the IDE (Eclipse) shows the error "The class 'javax.persistence.Entity' is required to be ...
-1
votes
0answers
32 views
I have checked all the solution but it didn't solved for Class.forName(this.driver);
When I run my localserver for j2ee project, and it just come up with this error.
I have checked all the solution but all doesn't solve my problem
For your information, I have already added ...
1
vote
1answer
22 views
In spring tiles configuration file there is a configuration like /{1}.jsp
I have a spring tiles configuration file, that contains following lines of code. Can anyone help me in understanding these lines. Also please guide me how to get this path ...
0
votes
0answers
5 views
Java web-service authentication using couchbase db
I have built a REST API in java using the jersey framework and need to secure it with authentication. I have declared the security constraint in the web.xml file. Now, my task is to configure a realm ...
1
vote
1answer
54 views
Test cases are not running in JUnit
DateAdapterTest is the test class for DateAdapter which is responsible to test marshalling/unmarshalling the date type into String data type and it's vise versa. Test cases are not running.
public ...
0
votes
1answer
13 views
Reading a JSON File in a Java Class of a Dynamic web project
I want to read a JSON file to in a java class of a dynamic web project (not in a servlet).
Can someone tell how to read the resource(JSON file) which is placed in WEB-INF folder of the project.
Can ...
0
votes
0answers
6 views
How to check if row is a FieldSubTotal in ZK Pivottable?
How to check if row is a FieldSubTotal in ZK Pivottable in the following method :
renderCellStyle(Number data, Pivottable table, PivotHeaderContext rowContext,
PivotHeaderContext ...
1
vote
3answers
66 views
What cannot be done without EJB
If JPA does not depend on EJB and it has its own spec. Why do I need EJB ?
What I cannot without EJB ?
I have read the following discussions but I really do not point out why it is still required ?
...
-7
votes
0answers
31 views
Suggestions required on the below scenario [on hold]
Consider the following credit card fraud detection algorithm:
* A credit card transaction is comprised of the following elements;
+ hashed credit card number
+ timestamp - of format ...
1
vote
1answer
21 views
Optimize of hibernate delete operation
The code below works but have performance issues when the SQL deletes more than a million rows. It takes a very long time for 2M tables to be deleted approx 1 hr. We don't have control on the sql ...
0
votes
0answers
41 views
FileNotFoundException with Nashorn
I am playing a little bit with nashorn and I did a form and a servlet but I can´t not get the script file.
I have this code. The calls to the servlet are working well, as well the hello world message.
...
0
votes
1answer
18 views
What extension / plugin / provider mechanisms could be used for making my web application extensible? [on hold]
I am working on a JavaEE web application which shall be able to fetch data from different sources. The data will be fetched and persisted in a database for later processing and reporting. I started ...
1
vote
1answer
30 views
Error LazyInitializationException on hibernate criteria + restriction (Spring)
I'm getting this error when getting a query with hibernate
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at ...
0
votes
1answer
18 views
References to one to many relationship objects doesn't update
class Person
{
List<Skill> skills;
//... other stuff
}
class Skill{
//stuff
}
mySkillList.add(skill);
person.add(skill);
person.getSkills(); //all skills have ID attribute ...
0
votes
1answer
17 views
No response by the message driven bean from stateful session bean
I'm trying to make work a message driven bean but without any success. Perhaps you could help me.
This is the code of my MDB really simple
@MessageDriven(mappedName = ...
0
votes
2answers
23 views
how many Web.xml for an single web app [duplicate]
actually i am new to java &I am developing a Java web-application.So i want to ask..
How many web.xml file can be present for an single web application?
It can be more than one or it is only one ...
0
votes
1answer
11 views
Inject stateful EJB beans in a maven project
I don't understand one thing that I hope someone of you could explain me. I have a maven enterprise project developed with glassfish.
I use the insert code netbeans function (right click) to call ...
0
votes
1answer
14 views
Tomcat ClassNotFoundException: org.slf4j.spi.LoggerFactoryBinder but slf4j is in libs
I keep getting the following error:
Failed to instantiate SLF4J LoggerFactory
Reported exception:
java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder
at ...
0
votes
1answer
26 views
Image extension validator
I am new to regular extension, I am using following code to validate image extension, its giving me wrong output when I pass image name with space. Please provide me solution.
public class Test
{
...
1
vote
1answer
33 views
+200
EclipseLink Distributed Cache causing Null Primary Keys, what?
Ok, this is going to be long, so here's the tl;dr: When distributed cache coordination is enabled, one of the apps slowly starts to degrade in integrity and throws a really strange exception. The ...
-1
votes
1answer
20 views
Email notification using java i can face error as Could not connect to SMTP host: RELAY.MY.COM, port: 25, response: 421
This error is occurring occasionally and i couldn't find the root cause of this issue.
plz help me out of this issue.
0
votes
1answer
22 views
Keep locale on Spring Security session timeout
I'm using Spring Security 3.0.2 and I have this config
<security:form-login
login-processing-url="/resources/j_spring_security_check"
login-page="/login"
...
1
vote
4answers
63 views
How to use MVC in Java EE 6/7 without using other frameworks?
I have already implemented the MVC pattern using the Spring framework.
In Spring there are @Controller and @RequestMapping annotations in the controller class and this framework doesn't use any ...
1
vote
1answer
24 views
how to deploy java EE listener using @WebListener
I want to implement a new listener (using the servlet 3.0 spec).
@WebListener
public class LoadingManager implements ServletContextListener
@Override
public void ...