1
vote
0answers
12 views

Need to change my code to generate correct JSON object

I am trying to generate the following JSON to be accessed by tokenInput, but my code generates it in other way, how can I tailor the code to generate the correct JSON. Required Json ...
0
votes
1answer
12 views

Have maven add dependency to target jar/lib

Is it possible to have maven create a statically linked jar? I have a specific design pattern I'd like to enforce regarding my JPA entities and the library that depends on them. In my design ...
0
votes
0answers
9 views

Adding pooled connection datasource in JBoss 7

I am changing from Glassfish to Jboss 7. I have configured a datasource in the Glassfish server which is pooled at the server, but not XA. I am trying this, but each time I open admin web gui the ...
0
votes
3answers
37 views

Processing heavy operations with doGet() method on a servlet

The tool I'm working on can only send GET requests, and I need to process heavy operations using the information contained within the request. These operations then return a String containing a URL I ...
0
votes
0answers
20 views

Java EE 7 - @Decorator, @Stateless and @PersistenceContext = nullpointerException

I'm using decorator pattern in java ee 7 (glassfish 4). I've this decorator @Decorator public class FooIndexer implements FooService { @Inject @Delegate FooService fooService; ...
0
votes
2answers
18 views

How to get subimage with fraction value

I am using BufferedImage out = image.getSubimage(x,y,w,z) But my x,y,w,h values are in fraction like 22.52 Is there any method for croping(get subimage) where I can use double values???
0
votes
1answer
19 views

JSF get username of windows logged user ldap

I want to create application that doesn't have manually authentication. The application have to use the username of the current logged windows user. Maybe I must configure to connect to the ldap ...
1
vote
0answers
41 views

How to get JSONArray values in Jquery Ajax url?

I have JSONArray value in struts2 action class and need to pass to Jquery Ajax url to display into jquery datatable. Action class: public String JSONOarr(){ JSONArray ja = new JSONArray(); ...
0
votes
1answer
17 views

export data to excel fetched from database

I'm trying to export data fetched from DB to an excel sheet, when user clicks on excel icon on the screen in the following way. It actually works fine but just wanted to get a better idea on this ...
0
votes
1answer
24 views

Why can JSF resource bundle var be used differently with f:loadBundle and faces-config

I have one property file linked both ways (using f:loadBundle and faces-config.xml) both with different var names. So it would look like the following: datatypes.properties: A=first B=second C=third ...
0
votes
1answer
29 views

Search EJB container for implementations of a specific interface

I am attempting to create an injection style mechanism to tie EE5 to another framework that does not support EJB injection. Currently I am using a custom annotation and a naming convention to look up ...
0
votes
0answers
19 views

Upgradation issue from Struts 1.1 to Struts 1.2.4

We have a legacy application in struts 1.1. While trying to update from struts 1.1 to struts 1.2.4 for this legacy application after updating the struts jar we are facingg issue with ...
1
vote
0answers
21 views

Google App Engine Datastore Query: addSort is resulting in 500 Internal Server Error when any method is invoked on the List of results

I have: Query q = new Query("Kind", key).addSort("DateTime", SortDirection.DESCENDING); List<Entity> results = datastore.prepare(q).asList(FetchOptions.Builder.withLimit(30)); While I don't ...
4
votes
3answers
57 views

HTTPResponse as JSON in Java

I was trying to get an JSONObject from a HTTP response. try { GetMethod postMethod = new GetMethod(); postMethod.setURI(new URI(url, true)); ...
0
votes
1answer
14 views

Class loaded multiple times by Weblogic classloder

I did activate on JVM level the trace for the classloader and I see DTDDVFactory and DTDDVFactoryImpl loaded twice Once from the endorsed library [Loaded org.apache.xerces.impl.dv.DTDDVFactory from ...

1 2 3 4 5 538
15 30 50 per page