Java Enterprise Edition (Java EE) is a specification defining a collection of Java-based technologies and how they interoperate. Java EE specifies server and client architectures and uses profiles to define technology sets targeted at specific classes of applications.
1
vote
1answer
4 views
Deploy Java Web Application and MySQL database in the cloud
my issue is that I've been developing a Java Web app in Netbeans 7.2, which I've used Hibernate and JSF Facelets to communicate and show the data from a MySQL database deployed in my local server ...
-5
votes
1answer
37 views
How to get full request URL in Java
I have a url like
http://www.google.com/foo=bar
I want to retrieve the complete url above in my Servlet that is "http://www.google.com/foo=bar". Please note that there is no "?" in the above url.
...
0
votes
0answers
3 views
How can I update the image when the p:fileUpload complete
I want to upload a image to the database, and update "imgswc", to show the image without refreshing the whole page. But It seems not work.
This is my code:
<h:form ...
1
vote
0answers
6 views
CompositeELResolver Null Pointer Exception
I've got a problem with "javax.el.CompositeELResolver" which is used by TomEE's "javaee-api-6.0-5.jar".
Version information and svn-repository here:
...
1
vote
1answer
17 views
PHP Java bridge - JEE server
I have a PHP website www.mysite.com and I want to use the PHP/Java bridge. I've installed tomcat on my computer and it works on localhost. But when I try to use it on my PHP server, this is the error ...
3
votes
2answers
28 views
How to pass username and password in the localhost url to connect with the memcached in Java?
Hi, I want to pass the username and password to connect to localhost where I have deployed memcached.
Here is my code.
import java.io.IOException;
import java.net.InetSocketAddress;
import ...
0
votes
0answers
17 views
How to use the ALL and ANY clause in JPA criteria API without a given Expression?
If you look at the Critera API, you'll see that CriteriaBuilder#equal is overloaded with two signatures. One of the methods, accept an Object as the second parameter. The problem with sub queries and ...
0
votes
1answer
39 views
Recording on the server
I am developing a web application. It is school software. In our application we have a functionality that should allow students to record their voice by reading the passage on the web page. It is a ...
0
votes
0answers
25 views
ArrayType in WSDL
having an error while executing wsimport. I am followint the link http://www.phpeveryday.com/articles/Web-Services-WSDL-Array-Array-Type-P517.html about transmit array type. What could be the problem?
...
0
votes
0answers
17 views
How to update the image when the p:fileUpload complete
I want to upload a image to the database, and update "imgswc", to show the image without refreshing the whole page.
But It seems not work.
This is my code:
<h:form ...
0
votes
1answer
10 views
send ByteArray from flex to java
The scenario is to capture image from webcam and to store image into the DB, I am using flex at the client-side, I am using Java at the server side, following is my flex code
var jpg_binary:ByteArray ...
1
vote
0answers
18 views
Accessing MANIFEST.MF within Java EE deployment unit
I want to read MANIFEST.MF of my deployment unit which is a WAR file.
A typical way to do:
servletContext.getResource("/META-INF/MANIFEST.MF);
But how to do this if you have no reference to a ...
0
votes
0answers
12 views
Loading a class from a specific jar on Weblogic
I have an application deployed on Weblogic and because of a lock contention generated by a Xerces bug i would like to 'force' Weblogic to use the correct jar where the bug is already fixed.
...
0
votes
1answer
19 views
Hector slicequery 'where' clause
Suppose I have a table ClientHeaders with following columns
| UUID | Cliend_id | IP | Country | Date |
where UUID is primary key.
I want to use this query:
select * from ClientHeaders where ...
0
votes
1answer
23 views
404 when uploading files to Spring J2EE
My current code:
@RequestMapping(value = "/uploadFile", method = RequestMethod.POST, headers = "Accept=*")
public void uploadFile(@RequestParam(value = "file") MultipartFile multipartFile,
...
0
votes
2answers
25 views
What is associativity in hibernate? [closed]
What is associativity in hibernate ? What is its essence ?
0
votes
1answer
14 views
doesn't Jetty server support version 3.0 of the J2EE Web module specificaton?
I created a version 3.0 of J2ee web module with resin4, now I need to use jetty, so I installed eclipse plugin of jetty 6, but when I new server with it, eclipse point that The server does not support ...
0
votes
0answers
28 views
How to receive date from datetimepicker and save that into database?
I need to receive a date from user, and save that in database. I am using the following datetimepicker to receive the date, I receive the date as following,
It runs into following exception
...
0
votes
1answer
18 views
Need Design or Architectural Pattern for management of hierarchical data used for tree model on client
I am trying to learn from the mistakes of my predecessors. Our Swing client uses a JTree/TreeModel to represent our data (a file-directory-type structure of fairly unlimited depth). The data is ...
2
votes
1answer
36 views
High-load java server
I am making a multiplayer game. Now I am trying to choose the technology to connect the android devices to the server. The clients run on Android, and the game is MMORPG. I would like to write the ...
0
votes
1answer
13 views
Old Servlet content keeps persistent in html
I am learning Servlet and JSP using Apache Tomcat.
Here I have a simple Java class extending HttpServlet and put some string on HTML.
It works except that the first text message is persistent even if ...
0
votes
1answer
47 views
Logic issue with the if-statement in java-ee
I have a logical issue with the "if". I have to parameter, one textbox and a select. Both are to insert the category but the select is generate from the database and allows the user to select a ...
1
vote
0answers
21 views
How can i build a dynamic scaffolding in a jsp depending the subclass of an entity?
Well,
I have the Vehicle Class,
And I have a car, a bike, a motorcycle, and other classes with inheritance, and the administrator of vehicles (CRUD).
When I search all the vehicles, the ...
-1
votes
0answers
20 views
Domain objects: Are getters and setters any good?
I know many of the usual reasons for getters and setters. Lately, I am getting used to service-driven architecture and Inversion of Control. Unlike encapsulation, there is little-to-no room for black ...
0
votes
0answers
8 views
Inject BoundConversationContext not working, injecting ConversationContext gives a HttpConversationContext
I am trying to inject the currently bound BoundConversationContext from weld (1.1.4FINAL) into a CDI managed bean (@Interceptor). According to the documentation @Inject @Bound should give me the ...
0
votes
0answers
12 views
JEE and JBOSS exception ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
I get this exception :
ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
after this line in the code :
resp.flushBuffer();
i tried a lot of solution ...
3
votes
2answers
41 views
Java EE persisting images
My application(s') architecture looks like this. I have a desktop Java application for administering a web store. That includes creating products and uploading images for them to the application ...
0
votes
0answers
16 views
How to develope server side application for Blackberry Push Notification(Facing Error)
I am using below code to make notifier on server for Blackberry Push Notification, but getting error showing below.
Can anyone help me please to develope server side application for blackberry push ...
0
votes
0answers
8 views
Join several javax.ws.rs.client.Invocation
In GWT there is a good feature that allows to join several requests to the server via com.google.web.bindery.requestfactory.shared.RequestContext.append() and run them all in one query by ...
2
votes
1answer
43 views
Adding conditions in web.xml
This is a part of my web.xml
<error-page>
<error-code>500</error-code>
<location>/index</location>
</error-page>
Is there any way to tell to ...
0
votes
1answer
29 views
Upload file to j2ee spring, file is null
I'm trying to upload a file to my J2eE spring backend. But if I set file required then it does not recognize, so therefor i conclude that it must be the way I try to send it from the front end.
HTML ...
0
votes
1answer
17 views
Declarative conversation management on GlassFish 3, Java EE
I'm relying on @ConversationScoped EntityManagers in one of my applications.
However, I now need to access said EntityManagers from outside a conversation (Timer EJB).
I read a tutorial on how to ...
0
votes
0answers
19 views
Running TestNG randomly throws a nullpointer exception
I'm trying to run Unit tests in JEE using TestNG (on Eclipse and IBM Websphere 8.x). I'm using the Apache DeltaSpike CDI Container (http://deltaspike.apache.org/container-control.html).
Sometimes ...
0
votes
0answers
7 views
Improving an existing richfaces:datatable 4 search
I have implemented an ajax search on a rich faces:datatable.
It is a complicated search, based on specific database features, finally encapsulated by a set of java methods. That's why I cannot just ...
0
votes
0answers
24 views
Server returned HTTP response code: 403 for URL
I'm calling SAOP Webservice via a main method and it works fine.. But when i invoke the same method via a browser called method it give me the following error.
Caused by: java.io.IOException: Server ...
2
votes
0answers
19 views
SessionScoped Managed Beans Lyfecycle issue
I am a newbie having problem with MB JSF Lifecycle :
I got 2 Session Mananaged Beans (MB), 1 for input ant the othe for validation and DB writing.
In the ValidationData MB, I inject the InputData MB ...
6
votes
1answer
144 views
Getting “java.lang.UnsupportedOperationException:”
I created the small JPA project to persist a Student record. I use Oracle database. I use the OpenJPA as the JPa provider.
I have created the Table student and relevant sequences correctly.
Student ...
0
votes
2answers
16 views
how to implement the Client side in JAX-RS tutorial
okay let me be clear with this :
i am following this tutorial.
And at the end of every part author implements the Client part.
Well i have done everything correctly of every section(5,6,7) upto the ...
0
votes
1answer
35 views
JSF Session replacing the existing object while storing the same object in different key?
i have been developing web application in jsf. i have used sessions to access the objects that are from different pages. first of all i'm storing the user object in session while login, after some ...
0
votes
1answer
16 views
How to insert using hibernate 4.1.10.Final?
I am using hibernate 4.1.10.Final to insert data into database, but it throws the following exception,
I have three tables, development and address .
Development has an object of address in itself.
...
0
votes
0answers
12 views
Start appfuse project with tomcat7-maven-plugin stops in “Starting ProtocolHandler” step
I am adding tomcat plugin in my appfuse light project pom file
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
...
0
votes
0answers
8 views
Unmarshalling error from Soap client
The WSDL part is as follows:
<xs:complexType name="requestRow">
<xs:all>
<xs:element minOccurs="0" name="RoutingData" type="tns:RoutingData"/>
<xs:element minOccurs="0" ...
1
vote
1answer
37 views
Storing a common value for the 'employee code' while employing inheritance
There are 3 pojo namely EmployeeMaster (the parent class), Hr and Personal (the child class of EmployeeMaster).
Then I have 3 separate tables for each pojo, constructed as :
create table ...
-2
votes
1answer
61 views
expected type: java.lang.Integer, actual value: java.lang.Integer
What am I trying to do ?
While loading my project I get a weird exception:
rezg.admin.server.objects.common.pojo.EmailLogDetails, setter method of property: id
I am to save the object ...
0
votes
0answers
17 views
disable user access to web application files by typing URL in web browser in IBM Webshpere 8.0
Security of our IBM Websphere 8.0 web application is based on LDAP configuration. Users are given access based on their group memberships. I want to add additional security by restricting user’s ...
2
votes
1answer
44 views
nature of input/output streams in a servlet
I'm able to extract contents from the request object through an input stream. So if it is a stream, does it mean the data is being transferred 'live' from the client to the servlet through ...
1
vote
1answer
56 views
What exactly is a Persistence in JPA? How is it connected to EntityManagerFactory?
This figure is from the book called PRO JPA :
And the text below this figure is:
Figure 2-1 shows that for each persistence unit there is an
EntityManagerFactory and that many entity managers ...
0
votes
1answer
13 views
JavaEE Connector Architecture - difference between system contracts and common client interface
i need to create a slideshare to introduce JCA in an easy way. right now i'm trying to understand the whole thing but i'm still stuck in some places. I'm reading an IBM tutorial and in its example ...
0
votes
1answer
15 views
JAX-RS Webservice Architecture Patterns
What are the common practices for developing JAX-RS Webservices?
I think my architecture has kind of a smell to it:
The webservice is acting as a proxy, collecting information from different ...
1
vote
1answer
31 views
ACLs for GWT Request Factory
I want to apply ACLs to all the requests going through my request factory. Therefore I override the RequestFactoryServlet and its doPost()-Methode. Now I can get the user from the session, check if ...