472 questions
0
votes
0
answers
42
views
How do I (or is it possible to) migrate WebSocketServerComponents.ensureWebSocketComponents() usage from Jetty 10 to Jetty 12?
I have inherited some code based on Eclipse Equinox, Jetty 10 (ee8), with the goal of migrating it to Jetty 12 (ee8). Much of the code involves setting up servlets, and a portion involves servlets ...
0
votes
0
answers
55
views
How to propagate HTTP error response payloads (e.g., 400, 401) from HTTP_AAE to ABAP server in SOAP-to-HTTP scenario?
I am working on a simple integration scenario in SAP PO/PI, and I would appreciate your guidance on how to handle HTTP error payload propagation to the ABAP server.
Scenario:
Sender: ABAP system (S/...
0
votes
0
answers
54
views
NamingException and ClassNotFoundException when attempting a JNDI lookup on Jboss 8.0
I recently upgraded from JBOSS 7.4 to JBOSS 8.0.
I'm currently testing this on Windows 11 and openjdk 17 but the behavior is the same on a linux distro
For some reason I cant get my application to do ...
0
votes
1
answer
136
views
Liberty Server 24.0.0.5: "The MyFaces JSF Implementation is selected but a Sun RI ConfigureListener is also registered" Error
I am running a JSF 2.3 + Spring MVC application on IBM WebSphere Liberty Server 24.0.0.5, but I encounter the following error during startup:
The MyFaces JSF Implementation is selected for SampleApp ...
0
votes
1
answer
45
views
"Persisted" entity vanishing
I encountered the following problem and have been pulling my hair for the past week because I can't figure out what is wrong.
Essentially, I want to receive data via a REST request to persist an ...
1
vote
1
answer
228
views
openliberty openidConnectClient authFilter not working
I am trying to configure an OIDC client and I have been reading this documentation:
https://openliberty.io/docs/latest/reference/feature/openidConnectClient-1.0.html
https://openliberty.io/docs/...
0
votes
0
answers
55
views
@Temporal(DATE) annotation does generate the data type with day accuracy in Spring Boot project using Hibernate
In a Spring Boot (2.7.11) project using MariaDB database, a new legacy date field is needed to be added to an existing JPA entity, assuming it to be Contact, and the accuracy should be day other than ...
0
votes
1
answer
38
views
EJB - Inject into @Schedule @Singleton with @Produces fails; no scheduler running
I want to call this method regularly to clean up Apache HTTP connection pool in an EJB context. For that I created this scheduler class:
@DependsOn("PoolingHttpClientConnectionManager")
...
1
vote
0
answers
37
views
HaProxy unescaping path params
I have a RestEasy path:
@GET
@Path("loadPageData/{path}")
@Produces(MediaType.APPLICATION_JSON)
public Response loadPageData(@PathParam("path") String path) {
//...
0
votes
2
answers
156
views
Schedule method is executed twice
i have a method which needs to be executed at a specific time. I use @Schedule annotation to achieve this. When the method is executed it sends an email. The schedule works and the mail is sent at the ...
0
votes
0
answers
49
views
JavaEE scheduled task wait for transaction commit
I have some Tasks which are stored in a database (MySQL). Task basically makes an API call to a remote system, which throws an exception if two Tasks try to execute concurrently.
This is the current ...
0
votes
1
answer
404
views
Quarkus @ApplicationScoped and @Scheduled with @UnlessBuildProperty
I have a service class like so :
@UnlessBuildProperty(name = "someservice.enabled", stringValue = "false")
@ApplicationScoped
public class SomeService{
@Scheduled(every = "$...
0
votes
1
answer
123
views
Running test throws NoSuchMethodError
I have recently upgraded to the Java 11 and Widfly 15.0.0.Final from Java 8 and 10.0.0.Final. But for some reason the test scripts are failing with the following exception. I have upgraded weld and ...
0
votes
0
answers
120
views
Redirect user based on his Role in Jakarta EE web app
I have Jakarta EE 10 web application with CustomFormAuthenticationMechanismDefinition. My web.xml setting:
<welcome-file-list>
<welcome-file>app/index.xhtml</welcome-file>
</...
0
votes
0
answers
56
views
Error deploying Java Web application in Wildfly server 20.0.1
I am trying to deploy a java web application that connect to files .war and .jar, the principal module is a .ear that connect to the others and i specified that in the Application.xml file, but when i ...
0
votes
1
answer
39
views
javaEE8 app REST stopped working after adding keycloak-admin-client artifact
a javaEE8, wildfly-20.0.1 app REST service stopped working after adding keycloak-admin-client 18.0.2 artifact.
Thanks in advance for your help
<dependencies>
<dependency>
&...
0
votes
2
answers
3k
views
Has javax.xml.rpc been migrated to jakarta?
We are migrating from javax packages to jakarta packages and hit a problem with javax.xml.rpc.handler.soap.SOAPMessageContext as there doesn't seem to be an equivalent jakarta version.
There doesn't ...
1
vote
1
answer
262
views
How to migrate PicketBox LdapLoginModule to Elytron?
This is my old code for ldap connection
This creates a javax loginModule with name "login" so when a request came through JMS, our application looks for a javax LoginContext with name "...
2
votes
0
answers
89
views
How to share value between two different classes in Java EE environment
I have Java EE REST API with Rabitt MQ.
The system will receive the message, create a unique ID, and publish it for processing.
I want to use the ContainerRequestFilter to intercept the HTTP request ...
0
votes
1
answer
502
views
java - wsimport create handler-chain by bindingfile
I would like to automatically create the handler-chain using wsimport and a binding file. The annotation @HandlerChain is also created at the target class, but the reference to the XML as well as the ...
1
vote
3
answers
183
views
CDI factory design pattern with properties file
I have a interface like this :
@Singleton
public interface StorageEngine {
String upload(InputStream inputStream);
InputStream download(String fileName);
int size(String fileName);
...
0
votes
0
answers
45
views
Java Faces - Value expressions is empty
I am currently trying to get familiar with Java Faces (or the hole Java EE universe in general) and wrote a small example with the PrimeFaces tree and dialog components.
Basically I want to select a ...
0
votes
1
answer
183
views
oracle.sql.BFILE cannot be cast to oracle.sql.BFILE
After reading one and once again oracle's documentation and not sure why I having this exception
Caused by: java.lang.ClassCastException: oracle.sql.BFILE cannot be cast to oracle.sql.BFILE
@Inject
@...
1
vote
3
answers
763
views
Java EE: Payara micro server not generating REST endpoints (404 error)
I am new to Java EE development. I downloaded Payara micro-server 6.2023.8 and generated a simple Java EE application through the maven archetype com.airhacks:javaee8-essentials-archetype:0.0.4 (https:...
0
votes
1
answer
222
views
Pac4J: Custom ForgeRock OAuth2 with UI and API
We use a custom product in house called https://www.forgerock.com/ ForgeRock and it supports Oauth2. Following the Pac4J code base I was able to create a custom ForgeRock Client.
public class ...
0
votes
0
answers
244
views
cannot download and install plugins in netbeans ide 8.0.1
Getting following error while trying downloading or adding plugins:
Unable to connect to the NetBeans Distribution because of Zero sized file reported at http://updates.netbeans.org/netbeans/updates/8....
1
vote
3
answers
949
views
RESTful Endpoints Not Found on Wildfly
I am trying to configure RESTful endpoints on an existing Wildfly Java project that to this point has been running as a Kafka consumer / producer.
My experience has previous been using Thorntail, but ...
0
votes
1
answer
71
views
KSQLDB Java EE Wildfly : NoSuchMethodError on every query
Every time the executeQuery hangs and throws this exception.
I tried this in a project with a simple main() function without Wildfly. It worked there.
test method
public void test() throws ...
0
votes
1
answer
41
views
JSF classpath resolution
I started to work on a legacy jsf code which contains duplicated class and jsf names in different packages and different wars, of course. One for the operators, the other for the customers.
I would ...
-1
votes
1
answer
36
views
Image in HTML file refusing to display
Before I begin, I have received so much help from this forum over the years, so thanks!
Trying to add an image to an HTML file. I'm working on HTML and J2EE. Total newcomer to web programming.
I ...
0
votes
1
answer
636
views
Implementing multi-tenant authentication with Pac4J and OpenID Connect in JavaEE
I am currently working on implementing a multi-tenant application in JavaEE, where I am using Pac4J as the authentication framework and an OpenID Connect Identity provider. Each tenant in my ...
0
votes
1
answer
180
views
To serialize org.primefaces.component.tabview.Tab
I am getting the following exception when I try to serialize an instance of org.primefaces.component.tabview.Tab,
"Unable to make field private java.lang.ref.Reference java.beans....
0
votes
2
answers
122
views
The controllers doens't work on my spring boot application
I don't know what is happening but im doing everything good.
The application starts well
[2m2023-04-22T03:23:17.326+02:00[0;39m [32m INFO[0;39m [35m55932[0;39m [2m---[0;39m [2m[ main][0;39m [...
0
votes
0
answers
100
views
Persistence.xml doesn't exist or can't be accessed
When run my test, i have problem that my test method can not invoke, in stack trace this caused by
java.lang.IllegalArgumentException: persistence.xml doesn't exist or can't be accessed
My file ...
0
votes
1
answer
69
views
Parameter wsjpa.PooledFactory is not serializable
When i run application on websphere server i get warning:
Property 'wsjpa.PooledFactory' is not serializable, value won't be set.
This happends due to hibernate update from version 5.1.17.Final to ...
0
votes
0
answers
311
views
My objects keep showing up as null in Thymeleaf template
I'm trying to learn how to integrate Spring MVC and Thymeleaf with Java EE 8. I'm able to get the server running, and the template does show when I visit the server (localhost:8080/[name of my war ...
0
votes
1
answer
1k
views
OIDC for JEE with pac4j
I tried a lot of things for pac4j but I'm feeling a bit lost.
I just want to use a definition of an code authorisation flow for OIDC and then use the fetched and validated access token and id token ...
0
votes
0
answers
64
views
Why I am getting NULL pointer Exception when injecting the bean as follows?
I am using Apache Shiro for Authentication/Authorization. I am good with the Authentication part using signed JWT. But, as for the auth part I am facing a NULL pointer exception on when accessing the ...
1
vote
3
answers
2k
views
Jakarta JSON excludes null fields even though withNullValues is set to true
I have this code that runs on Tomee with Jakarta EE 9.1, it is supposed to generate a JSON string taking the data from inputObj. Problem is that there are fields with null values that are omitted from ...
0
votes
1
answer
61
views
Problem with the controller, 404 the route doesnt exist
i have a problem with the controller
with this URL
http://localhost:8080/hello
My controller settings are this
@RestController
public class UserController {
@Autowired
private ...
1
vote
1
answer
238
views
Why is MessageListener consuming ActiveMQ messages before a pool is ready to work on the message?
Application deployed on WildFly using Java EE javax.jms.MessageListener to consume messages from queue.
@ResourceAdapter("remote-artemis")
@MessageDriven(name = "DeliveryMDB", ...
0
votes
0
answers
393
views
Parse text/xml response in spring resttemplate exchange method
I'm consuming a http endpoint which is returns a text/xml content as the response. It should return a number as the response within xml document. How do I parse it.
Here is the response when I consume ...
0
votes
1
answer
35
views
JBoss equivalent for Weblogic APP-INF/classes
In Weblogic, inside an EAR, you can put classes under APP-INF/classes folder. These classes are shared across all EAR modules (WAR's, EJB's, JAR's).
Does JBoss allow any similar path?
We do not want ...
1
vote
0
answers
292
views
Which version of the JAX-RS API is supported by TomEE 8.0? JAX-RS 2.0 or JAX-RS 2.1?
According to the TomEE Download Page, TomEE 8.0 implements the APIs of Java EE 8 and MicroProfile 2.0. Part of these specifications is the API JAX-RS 2.1.
Recently, however, I ran into ...
0
votes
1
answer
592
views
MojoExecutionException while run jaxws-maven-plugin
Got MojoExecutionException exception while generate WSDL with maven plugin. How to start solving this problem?
[ERROR] Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.2:wsgen (...
0
votes
2
answers
965
views
No wsgen in JDK 17
I have JDK 17 and JDK 1.8 on my Windows PC. Why does JDK 17 not contain wsgen.exe in the bin directory while JDK 1.8 contains it? How can I build web applications without wsgen?
1
vote
0
answers
83
views
JSR-352: Save chunk checkpoint after ItemReader reads items
Using JSR-352 batch job along with Java EE, I'm trying to process items on chunk from a source in partitions. On retriable exception I want to be able to return to a past checkpoint, so I could get ...
0
votes
1
answer
43
views
Having multiple fetching strategies (LAZY, EAGER) by custom condition
I have one entity class, which consists of multiple foreign key constraints, which are handled by ManyToMany etc.
public class MyExampleClazz {
.......
@ManyToMany(cascade = CascadeType.ALL, fetch = ...
1
vote
1
answer
373
views
Corrupted Zip File , sent to the client side , java ee
I'm currently developping on a webserver for my company , and i'am facing a corrupted zip file problem. At the end of a servlet. Here's the function header called at the very end of the servlet.
...
1
vote
1
answer
276
views
Which is the best JPA practice in a production environment?
I have seen instances where developers create tables in the database then they use jpa tools to generate entities from the tables. There are also cases where entities are first created then the tables ...