Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Java EE

17K

Solutions

9K

Contributors

Java Enterprise Edition (Java EE) is a specification defining a collection of Java-based server and client 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. All Java EE profiles share a set of common features, such as naming and resource injection, packaging rules and security requirements.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello,
facing a problem to choose best client side framework for localization with jsp?
I have REST API which i need to consume at client side and display it on jsp will it be safe to use spring mvc for client side?
What is the best practice to integrate client-server ?
0
Linux Academy Android App Now Supports Chromecast
Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

For a prarticular value say DOB to insert into database table say CUSTOMER some
xYZMain calls---XYZOrchestrator class ----which calls ----XYZDAO ---where some jdbc call happens with callble statments with ?,? as arguments to insert.

Now my question is how to trace in eclipse which method of which class calls which method of which class starting from main upto DAO.

call hierarchy in eclipse control+alt+h on particular method just gives details of who is calling particular method.

please advise
0
In eclipse when i selected a method and do control+alt+H i get
An internal error occurred during: "Fetching children of orchestrate".
GC overhead limit exceeded

how to resolve this error. please advise
0
rest web services Standard vs business exception differences not clear. when to use which one and how. Both seems almost same to me in terms of error handling
 please advise​
0
Hi,
I am reading below link

https://docs.oracle.com/cd/E19798-01/821-1841/6nmq2cp1v/index.html

I was not very clear when we use content type application/xml  and when we use application/x-www-form-urlencoded and when we use json. what is importance of content type and practical uses of it. How media type is different from content type or mime type. what is the meaning of payload. please advise
0
how to fix XSS and csrf issues?
1
how to configure https in jboss7
0
Hi,
I have projhejct with name restweb which i imported as maven project

i hen imported another project with restweb with enhanced code in it by renaming at the named template section to xyz as attached.
when i try to start tomcat server within eclipse server wont start?
what is the work around so that i can start both projects at the same time even in future 10 more projects with same name with enhnaced code.
please advise
if not named template is there better approach to get these enhanced code projects and import to eclipse.
0
right click on that imported project and properties and target run times selected that fixed the issue
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
how

right clicking on the project --->and going to properties --->changing target run time--> to tomcat 8 etc different from



windows -->preferences--->server-->run time environment--->Add-->tomcat 8 etc here
0
hi,

I am loking for free open source tool for drawing  flow diagram, class diagram component diagram high level design digram low level design diagram sequence diagram etc.

any good eclipse plugin which is free available to this. Any online tools for this. please advise
0
Quick Cloud Training
Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

I want to find an object by multiple properties in  JPA CrudRepository ?

There is no method like  findByMultipleProperty(String property1 , String property2 , String property3)

What is the correct signature of the method for this purpose ?
0
Hi,
I want to write a code to transfer amount from one account to another.
A table will store the amount corresponding to each.

Suppose this how i transfer amount of 10  from account named A to account B

boolean amountToAdd(changeBy, accountName ) {
I run the following query using jdbctemplate with autocommit = 0
update account
set amount = amount +changeBy
where name = accountName
}

Now in my java code i will have the above mentioned transaction like :

Boolean isdeducted = amountToAdd(-10, A);
 Boolean isAdded = amountToAdd(10, B);

if(isdeducted && isAdded) {
    perform commit on transaction;
} else {
    perform rollback;
}
The issue comes in case of multithreading.
Suppose two such transactions are in process.

transfer 10 from A to B and transfer 10 from B to A

suppose amount in A = 100 and B = 90 to begin with
T1
A = A - 10  = 90
T2
B = B-10 = 80

Now as T1 has locked table A and T2 has locked Table B what will happen in this case ??

Also there is a possibility the T1 and T2 are getting executed over the same connection to the mysql server.
Then there could be the case like :

T1
A = A- 10 = 90
T2
B = B-10 = 80
A = A+ 10 = 100 (the changes will be visible as we are on the same connection)
commit;
so now A = 100 and B = 80
But suppose now there is a failure in db or something due to which T1 couldnt proceed
Then what will the value of A will it remain 100 or will it be rollbacked to what it was before T1 began...
0
HI,
I have a spring web application and its deployed on a linux box remotely. The logs are getting created there.
But everytime i have to see the logs i need to login to that machine and search for all Exceptions.
An alternative would be whenever there is any exception the exception with the stack trace could be mailed to me.
This would require changes in my java code.

Other way could be i just parse the log files everyday and mail all the exceptions with stacktrace.
For this one could make a shell script.

Please suggest any other ways i could achieve the same any better ways.
probably somewhere where anyone could see the exceptions.

Thanks
0
we have web portal running on jboss7.
how to support both IPv6 and IPV4 for web portal.
0
We are using Jasper reports in our product, and there is a requirement to sort the report based on the click on the header of any column.

We are not using the Reports Server but the Jasper libraries are bundled within our Web-application itself, and the report content is loaded into an iFrame via a Servlet.

However, while the column cells can contain hyperlinks and are clickable, but the column headers are not coming as clickable at all but they are static.

We have tried the sample application provided with Jasper library that enables Jive features, however in that one we are unable to send custom parameters to the report/ data-source.

If anyone has experience in Jasper reports libraries bundling within Java EE web-apps and sorting of columns based on header-click, please revert.
0
Hello All,

Is it possible to convert an Indesign file ( i.e. CS 5.5, CS 6) into a Word document (.docx)?

Please help me out how it can be done and what will be the steps for the same?

Thanks in advance....
0
I would like to generate  JAXB pojos  from MySQL ER diagram ?

How to do it ?

Thanks
0
Hi,

Can u help me out with an example to differentiate between http post and put method and scenario where we should prefer put method over post?
0
Hi,

when and why we use what is maven update project by right clicking on project. do w e have to do afetr maven clean or before maven clean?
what does it do?
please advise
0
Understanding Linux Permissions
Understanding Linux Permissions

Linux for beginners: How to view the permissions associated with files and directories and also how you can change them.

Hi,

I ran below example on tomcat 9

https://www.mkyong.com/webservices/jax-rs/jersey-hello-world-example/


how to run tomcat 7 as well.

can i keep same ports for tomcat 7 and tomcat 9.

can i start both servers from eclipse same time?


how to keep port nubet more common ones?
please advise
tomcat_11.png
0
Hi,

every time when i import maven project i am going to project right click properties targettd run time selecting tomcat there to avoid below error in index.html.
https://stackoverflow.com/questions/22756153/the-superclass-javax-servlet-http-httpservlet-was-not-found-on-the-java-build

is there is way i can once and eclipse remembers it. please advise
0
Hi,

I have tomcat 8 configuted in eclipse.

i am trying to access admin console at
http://localhost:8080/manager/html
it asked username password which i gave admin and admin
now i am getting
Unauthorized
error.

i do not exactly remember port and username and password

how to double check and if needed change them


i installed other server tomcat 9 when i try to start by adding ear
http://localhost:9090/restws/
i get below error

Can’t reach this page

•Make sure the web address http://localhost:9090 is correct
•Search for this site on Bing
•Refresh the page


where i can see server log for error message or client log.
not sure if issue is with ear or server.
as attached i do see 404 error does that mean that 404 coming from server?
server starting fine without the ear though
please advise
tomcat1.png
tomcat2.png
0
Hi,

I am trying below example
http://www.mkyong.com/webservices/jax-rs/download-excel-file-from-jax-rs/

i downloaded code and extracted and then ipmported as maven project .

i did maven clean then maven install and then maven run on server.
when the server started i tried to hit url
http://localhost:8924/RESTfulExample//excel/get

(similar to other helloworld example there which worked
http://localhost:8924/RESTfulExample/rest/hello/mkyong

)


i see below error

Can’t reach this page

•Make sure the web address http://localhost:8924 is correct
•Search for this site on Bing
•Refresh the page

-
Aug 29, 2017 11:06:31 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:restws_json_119' did not find a matching property.
Aug 29, 2017 11:06:31 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:RESTfulExample' did not find a matching property.
Aug 29, 2017 11:06:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/8.0.39
Aug 29, 2017 11:06:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Nov 9 2016 08:48:39 UTC
Aug 29, 2017 11:06:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server…
0
hi,

I am trying below example
http://www.vogella.com/tutorials/REST/article.html

what is the direct link to download this example. I am not very clear on the flow. can you please advise
1
In  Eclipse   when  I do "Run As > Maven Install"    for my project using eclipse Maven plugin ,  I get  "BUILD SUCCESS"  
 
However  Eclipse editor  still shows  error in one java class in my project  for the following import
 
import springfox.documentation.spring.web.plugins.Docket;


Error message :

The import springfox.documentation.spring.web.plugins.Docket cannot be resolved
 
 
Could you please suggest how to fix this error in Eclipse editor ?
0

Java EE

17K

Solutions

9K

Contributors

Java Enterprise Edition (Java EE) is a specification defining a collection of Java-based server and client 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. All Java EE profiles share a set of common features, such as naming and resource injection, packaging rules and security requirements.