2,009 questions
1 vote
0 answers
56 views
JAX-WS interceptor is not being triggerd
The problem is that after adding JAX-WS to my project, specifically to the file that will be generated, I tested the generated file, but nothing related to the interceptor appeared. It seems like I ...
0 votes
0 answers
66 views
Why is @Schedule annotation not working in java
I want to use the @Schedule annotation to activate a method every 5 seconds. But the scheduler never activates the method. The application runs in Open Liberty. None of the two System.out.println is ...
1 vote
0 answers
76 views
RESTEASY000100: Failed executing POST: org.jboss.resteasy.spi.ReaderException: java.io.IOException: Stream closed
Getting intermittent errors on Jboss 5 for POST requests, most requests go through only some run into error. 2024-09-10 11:46:15,389 ERROR [org.jboss.resteasy.core.SynchronousDispatcher] ...
0 votes
0 answers
37 views
connecting to secure server from Java application without importing certificate to keystore
I have a java application running on JBOSS EAP 7.3 (Java-ee) jdk1.8 The app needs to send an email (using java.mail) by connecting to a secure mail server which uses certificate and username/login to ...
1 vote
0 answers
975 views
MySQL 8 TLS/SSL error. Wrong number version
I searched a lot regarding this matter but unfortunately, I could not find anything helpful. I have an application in JAVA EE deployed in Payara Glassfish server. This application connects with SSL in ...
0 votes
1 answer
53 views
Problem when consuming a jee deployer web service on weblogic from a Spring application (Bad request 400 link in json format)
I use openFeign to attack the web by sending a Post request with a list of objects as parameters unfortunately the target web service does not understand the json format that I send because it expects ...
0 votes
1 answer
52 views
java criteriaset always using ordinal
i have a query built up by a criteriaset running in payara 5. My problem is that the query always translates the enum i have in my query to an ordinal even though the Type is annotated with @...
0 votes
1 answer
61 views
What's the difference between Autowire and Resouce annotations in Spring? Why I cannot substitute Resouce with Autowire?
I am trying to use Redis in Spring project. And I copied some code like this and it works well: @Autowired private RedisTemplate redisTemplate; @Resource(name = "redisTemplate") ...
2 votes
1 answer
4k views
Where do you usually store a Dockerfile within your sourcecode? [closed]
I like best practices. I always try to follow them because I think it is easier for a lot of other developers to work with my code. Now it's about the location of Dockerfiles. I mainly develop in Java/...
0 votes
0 answers
44 views
Owning side not containing id of table
Spring boot REST API I create two entity in Student package com.practice.lab.entities; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; import ...
1 vote
0 answers
441 views
weblogic 12.4.X Servlet failed with an Exception java.lang.IllegalStateException: Can't reset
I am facing peculiar issue on weblogic the execption says: weblogic 12.4.X Servlet failed with an Exception java.lang.IllegalStateException: Can't reset StackTrace is as below: <[ServletContext@...
0 votes
1 answer
255 views
How to update table with multiple ids at once
I have an array of ids as a String[], and I need to update a table that corresponds to these ids. I implemented a solution using a for loop, but I am not entirely satisfied with it. Are there any ...
0 votes
1 answer
1k views
ApplicationScoped beans in Java EE with CDI
When the ApplicationScoped beans will be created ? At injection points or when application will be deployed ?
1 vote
1 answer
2k views
Error installing GlassFish Tools on eclipse
The eclipse foundation has archived the GlassFish Tools 1.0.0 and 1.01. It is no longer possible to install GlassFish Tools either through Eclipse MarketPlace or through Install new Software on the ...
0 votes
0 answers
64 views
How to pass actions to a servlet? [duplicate]
WebServlet(name = "category", urlPatterns = {"/category/*"}) public class CategoryController extends HttpServlet { private CategoryDAO categoryaDao; public void init() { ...