As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [java-ee-6]

Use this tag for questions relating specifically to Java Enterprise Edition 6.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

How to JUnit (preferably jupiter but JUnit 4 is ok) a javax.jms.messagelistener

Trust me, I have googled and tried a lot of scenarios for a couple days. I have a javax.jms.messagelistener and I would like to JUnit test it. Last, I have tried with the JUnit rule ...
mario's user avatar
  • 625
-1 votes
0 answers
24 views

sendRedirect/RequestDispatcher not working

I have a problem with my servlet that inserts data into the database. I have an HTML form with the POST method that sends the data to the servlet, which in turn inserts the data and redirects to a ...
Maria Bekka's user avatar
-1 votes
0 answers
25 views

an error occured while collecting the items to be installed

I am trying to install Java EE perspective in eclipse 2021-12 version. It was downloading and showing an error like "an error occured while collecting the items to be installed." Can you ...
Jagadeshreddy Vankala's user avatar
1 vote
0 answers
26 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@...
Sudheer HS's user avatar
0 votes
1 answer
36 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 ...
Ozodbek's user avatar
0 votes
1 answer
83 views

ApplicationScoped beans in Java EE with CDI

When the ApplicationScoped beans will be created ? At injection points or when application will be deployed ?
Erik Ghukasyan's user avatar
0 votes
0 answers
26 views

Performing validation using a custom annotation and returning a Response with HTTP error code

I am currently working with Java EE and I have a requirement to validate a field using a custom annotation and if it's valid, do nothing, but if it's not, then return a response. Let me explain it in ...
Shantanu Srivastava's user avatar
0 votes
0 answers
41 views

weblogic.PlanGenerator utility is failing with "Could not find or load main class weblogic.PlanGenerator"

Generating deployment plan file for a .war file using the command "java weblogic.PlanGenerator -all application.war" is failing with Error: Could not find or load main class weblogic....
Qasimodo's user avatar
0 votes
0 answers
29 views

How read a resource in a @ApplicationScoped Service?

I'm trying to read variables from json.properties and web.xml using the @Resource.In the same time i need to inject the class into another services: this my class : @Named @ApplicationScoped public ...
slema imen's user avatar
1 vote
1 answer
535 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 ...
DONGMO BERNARD GERAUD's user avatar
0 votes
0 answers
23 views

Grave: Exception while preparing the app : org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V When trying to debug JSF app

I am not able to debug my app on netbeans neither deploy the .ear on glassfish 3. here's about 30% of error message (stackoverflow limitation) show on glassfish console. I am far from being an expert ...
Diego Alves's user avatar
  • 2,384
0 votes
0 answers
42 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() { ...
Raul Penate's user avatar
0 votes
0 answers
63 views

error when deploying my javaEE app - class not found jasypt/StrongPasswordEncryptor

Hi i have a javaEE application with wildfly server i use the library jasypt to encrypt password and at the time to run my server app it throws me this jasypt.StrongPasswordEncryptor class not found ...
Facundo Suarez's user avatar
1 vote
1 answer
539 views

Java EE WFLYCTL0412 Required services that are not installed

Hi im trying to deploy a javaEE application in my wildfly server and when i try to run my server it throws me an exception about services that are not installed this happened any ideas what can be in ...
Facundo Suarez's user avatar
0 votes
0 answers
41 views

How to consume a Rest web service in java6?

I want to consume this URL: https://197.5.145.85:13002/cgi-bin/sendsms?username=bar&password=bar&from=&to=21652031757 public void postFromURL(String url) { RestTemplate restTemplate = ...
darine's user avatar
  • 27
0 votes
0 answers
75 views

How to create a JEE server with a client deployed in Tomcat under Kotlin

I have a big application to migrate. I would like to move towards Kotlin. The architecture of my application is simple. There is a server part written in JEE which communicates with a database. The ...
Fred's user avatar
  • 1
0 votes
1 answer
41 views

Register new user from java web application in file releam in payara server

I am creating an enterprise application and I need to add a new user in realm file. what is the best way to register a new user in a realm with the Payara server?
savaliya jaydip's user avatar
-1 votes
2 answers
66 views

How can I delete last word of sentence in StringBuilder?

I want to detele the last word of string in StringBuilder here is it my code: builder.append(" where"); if(type.equals(EnumTypePrestation.OPTIQUE)){ builder.append("...
darine's user avatar
  • 27
0 votes
1 answer
71 views

Why is the MDB consumer picking up the message from ActiveMQ again?

I have an MDB consumer with settings @MessageDriven(name = "PackageReceiver", activationConfig = { @ActivationConfigProperty(propertyName = "destinationLookup", ...
Aleksandr's user avatar
0 votes
0 answers
39 views

Proxy for org.json

I got this here, its working except the proxy, import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import ...
Ricky Vene's user avatar
0 votes
0 answers
108 views

Using ComponentResolver with the name coap (or netty-http) found null

Anyone encountered this kind of error with apache camel, it's not springboot but javaee style of coding. This is the logs, Using ComponentResolver: org.apache.camel.impl.engine....
Ricky Vene's user avatar
0 votes
0 answers
45 views

FacesMessage Error Rendering View[/users.xhtml] JEE

i just started learning JEE and i don't understand why i get this error when i want to head to another page after deleting or modifing an item or anything com.sun.faces.application.view....
Nouhaila Khaouti's user avatar
0 votes
1 answer
57 views

Why forEach var doesn't work as a parameter? JSP/JSTL

<c:forEach var = "i" begin = "0" end = "${List.size()}"> <option value="2" selected> ${List.get(i).getName()} </option> </c:forEach&...
Raul Penate's user avatar
0 votes
0 answers
19 views

Tomcat images are not rendered

Actually, what is the problem, I wrote a WebFilter class that filters requests. Here is that class: @WebFilter(urlPatterns = "/*") public class AuthenticationFilter implements Filter { @...
Matvey Androsyuk's user avatar
0 votes
1 answer
35 views

can't run containers in javaee correctly

I am getting acquainted with Docker and i need to inject it to my application. I have some problems: My container always fall down and restarts, may be somebody faced a docker-compose in JavaEE ...
Matvey Androsyuk's user avatar
0 votes
2 answers
176 views

How can I sort an array with JSTL?

For example if a have this: <form method="post"> <c:forEach var = "i" begin = "0" end = "5"> <input type="text" name="...
Raul Penate's user avatar
1 vote
1 answer
63 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....
Raul Penate's user avatar
0 votes
0 answers
37 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 ...
Matisiuk's user avatar
0 votes
0 answers
30 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] ...
kozeljko's user avatar
  • 160
0 votes
0 answers
83 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 ...
Laleet's user avatar
  • 41
2 votes
1 answer
103 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-...
Let'sLearn's user avatar
0 votes
0 answers
34 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 ...
Ossama's user avatar
  • 1
0 votes
1 answer
70 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 ...
Vijay Kumar Kanta's user avatar
0 votes
0 answers
22 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>...
Abdou's user avatar
  • 123
0 votes
0 answers
32 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 ...
FoxNet's user avatar
  • 450
0 votes
0 answers
76 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 ...
Da reen's user avatar
  • 31
0 votes
0 answers
50 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</...
gabriel's user avatar
  • 127
1 vote
0 answers
38 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
Lamyae Mekouar's user avatar
0 votes
2 answers
298 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 ...
Septi9's user avatar
  • 5
0 votes
1 answer
37 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 ...
S G's user avatar
  • 9
0 votes
1 answer
64 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 ...
Mehrdad Bozorgmehr's user avatar
0 votes
1 answer
531 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, ...
Pablo Oliveira's user avatar
0 votes
1 answer
230 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 ...
Jay Salunke's user avatar
-1 votes
1 answer
56 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=&...
dragnill's user avatar
1 vote
1 answer
103 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 ...
user avatar
0 votes
0 answers
172 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( ...
Sjaak's user avatar
  • 3,515
0 votes
0 answers
417 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,...
Sudheer's user avatar
2 votes
1 answer
302 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 ...
geminal's user avatar
  • 23
0 votes
1 answer
490 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 ...
kailashdesiti's user avatar
1 vote
0 answers
798 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 ...
Hugo Vinhal's user avatar

1
2 3 4 5
41