Questions tagged [java-ee-6]
Use this tag for questions relating specifically to Java Enterprise Edition 6.
2,029
questions
0
votes
1
answer
31
views
How can I save all the data from different textboxs in an array, using JSTL?
I want to recieve any number of textbox values, and save it to an array with JSTL if it's possible.
I generate all the texbox where numberAsked can be any number.
<c:if test="${param....
0
votes
0
answers
15
views
Executed rollbackon connection
i am using JDBC to connect my MySQL database. I am trying to delete data from 2 tables (tasks and tasks_users(join table)). Look at my code:
@Override
public int deleteById(Long id) throws ...
0
votes
0
answers
10
views
JBoss 4.2.2, problem with Stateful beans (EjbSynchronizations)
at work I'm trying to deploy an old project locally. It's an old application built on JBoss 4.2.2. During deployment I encounter the following error:
10:34:32,287 INFO [JmxKernelAbstraction] ...
0
votes
0
answers
11
views
How to use field with formula in hibernate sorting
(select case when POSITION('-' in "123") = 0 then
(case when "123" REGEXP '^[0-9]+$'
then CAST("123" as Int)
else 0
end)
else
(case when ...
-1
votes
0
answers
30
views
conf/server.xml cannot be loaded when setting up JavaEE RestAPI project in Ubuntu 20.04 TomcatServer 9.0.31 in Inteliji? [closed]
Flow:
Install Tomcat9 by sudo apt install tomcat9 tomcat9-admin
Create JavaEE Rest API application in Inteliji
Application Server:
Tomcat Server
-> Set Tomcat Home to /usr/share/tomcat9
(Tomcat ...
2
votes
1
answer
39
views
WebSphere LibertyCore Class loader looking for wrong class
2 applications (A, B)are deployed on my server LibertyServer.
Both contain the "esapi-2.0.1" library.
my server.xml follows:
<library apiTypeVisibility="spec,ibm,api,ibm-spi,third-...
0
votes
0
answers
20
views
Dynamic URL routes with java EE
I'm super new to java web application development. Working on basic Todos app. So far app is working fine. I wish to add dynamic url routes like updateTodos, deleteTodos to existing path.
Expected ...
0
votes
0
answers
27
views
why rich:ajaxValidator and a4j are not working properly after jdk migration
Hello everyone this is my first time asking on stackoverflow. I hope to get help because i have been stuck for a while now.
Here are the application used technologies :
Java Enterprise Edition EE
JSF ...
0
votes
1
answer
16
views
How do you add additional parameters in a SHIRO configuration INI file, especially for db query
I have a standard shiro.ini file that is used to authenticate/authorize my Java EE maven project. I am stuck at a point where I cannot use multiple fields for the username authentication using the ...
0
votes
0
answers
18
views
How to reference two different Eclipse Dynamic web projects?
I have in eclipse project-A that's using some functions from project-B, in project-A's pom.xml i found this :
<dependency>
<groupId>someId</groupId>
<artifactId>...
0
votes
0
answers
5
views
Use Windows Authentication credentials with JavaEE JBoss
I have a task:
My JavaEE app (uses JBoss) has to speak with Azure DevOps(ADO) via NTLM. So if I know user's credentials it's very easy to do, but I need to use Windows Server host credentials and ...
0
votes
0
answers
26
views
how can i replace the try catch to not get the error exception when i am not sending the file?
I am sending variables from ajax to java! in my ajax method I am sending 2 variables: idtabPrest and idPolice!
I am getting an error exception because I am not passing the File ! how can I make this ...
0
votes
0
answers
13
views
What is the equivalent javaee resource reference in spring boot?
in my pre-boot spring application with jetty, i use a web.xml file to set a jndi handler for my spring datasource
<resource-ref>
<description>spring default datasource</...
1
vote
0
answers
30
views
Deploy ant build.xml to web Sphere
I have 3 images(oracle,websphere,mq) and application jee contient ant build.xml
and I want to create docker composer and build application and deployed in websphere
0
votes
2
answers
67
views
Error 404 Not Found when I am using Tomcat WAR file
I am working on a project in Tomcat. I am using Java EE and recently added a WebSocket to a project and created a simple chat with it. Locally everything worked fine but when I created the WAR file ...
0
votes
0
answers
11
views
Redirecting to another page from jave-ee contoller
I have completed my email verification in java-ee and react. However after clicking the verification link which is send on email, i would like to be redirected to my react page.
This is how it wokrs:
...
0
votes
1
answer
26
views
Class [package.classname] Not Found .Error while loading [<servlet class>] when deploying web app to glassfish server
Earlier Everything was working fine.
After last successful running of project .I created git branch and added some packages and classes.(git is pointing to this branch only from git bash)
The class ...
0
votes
1
answer
26
views
Response times within applications WebSphere Process Server goes down after a while working
I see a degradation in response times within myapplications. After a server restart, response times are acceptable. However, after some time, which depends on the workload on the system, the response ...
0
votes
1
answer
76
views
form-data request, with okHttp3
I'm trying to make a request where I pass some parameters in the Body, as shown in the image.
Example Image
Example:
Key: file[], Value: "xml", Content-Type: application/xml Key: query, ...
0
votes
1
answer
48
views
constructor is undefined in jsp project
I create a object of Login in JSP file and when I run this code it is giving me error
that unable to compile class for JSP
and on line 18 it shows Login constructor is undefined.
I also import the ...
-1
votes
1
answer
51
views
why I cannot get the path of css and js file
I made a website project.
But now i meet a problem.
I cannot get the path of css and js file no matter what I do.
Just like this:
<link type="text/css" rel="stylesheet" href=&...
0
votes
0
answers
27
views
How to create a tag using TagSupport?
When I try to extend TagSupport - no class is found.
The only place were it is located is javax.servlet.jsp.tagext.TagSupport, but when I add the dependency - here is the exception I have.
What am I ...
0
votes
0
answers
18
views
how to create a default admin user account in J2E or EJB
for a project on which I work, we would like an admin user to be added to the database at the start of the first deployment automatically because for the moment it is done manually. if you have tips ...
0
votes
0
answers
40
views
@TransactionAttribute( TransactionAttributeType.NEVER ) on SSB seem to change timeout. On JBOSS EAP 7 (and Wildfly?)
In our solution there are a number of stateless session beans that implement CXF SOAP services or RESTEasy endpoints.
Like this:
@Path( "/" )
@Stateless
@TransactionAttribute( ...
0
votes
0
answers
88
views
When we have XML-APIS dependency in class path, spring boot application is not coming up in websphere 8.5. class loader is PARENT_LAST
In spring boot application we are dependent on Sax XML parsers and dozer mappers. So we have used xercesImpl.jar which internally has xml-apis as dependency.
When we install and run application in WAS,...
2
votes
1
answer
125
views
Class inspection via reflection API. Use of custom annotations
I have done my research before asking but no luck.
I have a StartUp Singleton bean. In this bean I have an @Inject @Any Instance. I loop all the implementations and try to check if the class is ...
0
votes
0
answers
44
views
Validation Form thymeleaf for save product request para
hello i'm begginner in spring boot MVC,
i want to vaidate my addProduct form which has a method save with request param ,the errors are showing in the error page not in the div error in the view
//...
0
votes
1
answer
169
views
how to resolve "java.util.zip.ZipException:duplicate entry: org/apache/xmlbeans/xml/stream/Location.class" issue while hosting springboot in tomcat 10
I am trying to host spring boot rest api in Apache Tomcat 10, but it is not getting hosted, I had placed my spring boot application in webapps-javaee folder, as tomcat 10 default support jakartaee
...
0
votes
0
answers
301
views
Quarkus job scheduler
So I am using ManagedScheduledExecutorService in a Java EE project that I am migrating to Quarkus, like so:
@Resource
private ManagedScheduledExecutorService scheduler;
The only thing I need from ...
1
vote
2
answers
214
views
Error in connection with messaging queue in Quarkus
I am trying to consume/write to a messaging queue in Quarkus, but have been unable to do so. I have an example code with which I can connect to the queue but it is made with the com.ibm.mq.allclient ...
0
votes
0
answers
49
views
CloseableHttpAsyncClient stopped after first call
I have a problem using CloseableHttpAsyncClientBase, i dont understand why my connection was stopped after the first call: the call completed ok without any Excption! When i debug the library code i ...
0
votes
2
answers
36
views
Requête JPQL JEE
Please i need to select list of employees except the employees who have the role admin. However I got a syntax issue. this is the code :
SELECT e FROM Employee e EXCEPT SELECT e FROM Employee e WHERE ...
0
votes
0
answers
46
views
preventing or handle jax-rs bean validation exception
is there a way to handle jax-rs validation exception, I mean to not the throwing exception, just sysout my string.
I use @Valid annotation in this way
public function name (@Valid DtoClassName ...
0
votes
0
answers
19
views
Should my Servlet call Service only just to delegate calls to DAO? [duplicate]
I have made a project where Servlet calls Service which delegates the call to DAO. It looks like this
UserServlet
User user = userService.findByEmail(email);
UserService
public User ...
0
votes
0
answers
41
views
Query jpql with max
I have an entity "Song" and i need a query to get the song(not the title, the entity) with the max number of votes (there are three types of votes called votes1, votes2, votes3).
It's ...
0
votes
1
answer
141
views
How to fetch data from elasticsearch into java servlet?
I'm making an application with react on the front end and java(dynamic web application with tomcat server) in the backend. I have some data stored in elasticsearch which I want to fetch into java and ...
0
votes
1
answer
248
views
JDK11 Upgrade Fails - ClassNotFoundException jdk.internal.ref.Cleaner
I have upgraded my Java EE application to JDK 11 from JDK 8. But when I'm deploying into the JBOSS EAP 7.3 server I get the following exception.
Caused by: java.lang.RuntimeException: java.lang....
-2
votes
1
answer
35
views
Java servlet not debugging
I had the following problem, there is a servlet written in Java, it has a post method, which I refer to from a JSP file from a form. The method executes fine, but the IDE ignores the breakpoints. I ...
0
votes
0
answers
140
views
Write tests JEE application with mapstruct + junit5 + cdi
I wrote some unit tests for jee application that uses mapstruct + cdi but they have failed and i dont know why. Follow a small example:
public class PersonVO {
private long id;
private String ...
0
votes
0
answers
115
views
SpringArgumentResolver is preventing other request parameters which is coming either from request body or request param. any solution?
I am using spring argument resolver by implementing HandlerMethodArgumentResolver. It is working fine and setting parameters which is coming from header, but it's preventing parameter which came from ...
0
votes
0
answers
33
views
PrimeFaces Dialog can't hide
Hello I have the following codeblock
<h:commandLink style="padding: 0px 2px 0px 2px; float:right;" onclick="pleaseWait.show()" action="#{bean.export()}">
...
0
votes
0
answers
20
views
Getting URL in java EE
I have this url /ProjectName/something?prop=add
and I want to get all this part something?prop=add
I've tried
String path= request.getRequestURI().substring( request.getContextPath().length() );
...
0
votes
0
answers
60
views
How to Get Dynamic URL Context in tomcat
I am Working on a dynamic web project in eclipse using tomcat as server,
with the folder structure of dynamic page files
web-inf
|_____ login.jsp
|______welcome.jsp
|______settings.jsp
|...
0
votes
0
answers
15
views
Intellij not exporting .class files in war artifact
Im generating a "war" artifact for my project using intellij, the war file is generated fine but insided it I can only find the compiled version of source code classes , they are in "....
1
vote
1
answer
432
views
Maven java.lang.NoClassDefFoundError: org/hibernate/query/Query
I'm working on a project and it kept generating error when runing the project.
I need help to solve this issue please, thank you in advance.
UPDATE -------------------------------
I'm still struggling ...
0
votes
2
answers
60
views
How to fetch data from database using hibernate ManyToMany
I'm using hibernate with manyToMany relation and I want to display data from database
Thank you in advance.
I get this errors:
database :
Here is the code :
Class EnseignerId :
@Embeddable
...
0
votes
1
answer
35
views
Java EE project, where the value comes in the WEB-INF/context.xml - Parameter value ${xxx} expression?
I have a doubt in a basic Java EE, Jsp project...
In the META-INF/context.xml I have
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" ...
0
votes
0
answers
39
views
JBoss 7.1.1: slowness issues with CTM Remote EJB and UserTransaction
We are facing some slowness issues in our Java EE 6 application deployed as a .ear and running in JBoss AS 7.1.1.
The issue occurs when we have a remote EJB which is also a web service and which opens ...
0
votes
1
answer
232
views
404 after using Servlet annotation @WebServlet(...)
It's me again :(
Now I crushed into some problems.
I am learning Servlet these day with IDEA.
I've written the code and configured Tomcat(version 10.0.10)
like:
package yj.servlet;
import javax....
0
votes
1
answer
79
views
While compiling vaadin theme showing the error
While compiling Vaadin theme it is showing the error:
select a theme file (.scss) or a vaadin project to compile
`@import "addons.scss";
@import "../ftpcapp/ftpcapp";
@import &...