Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Missing artfactid org.hibernate:hibernate-orm-jbossmodules:5.4.33

 
Ranch Hand
Posts: 684
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, trying to deploy my project I opened a topic here and Tim Holloway told me that I need a server because Tomcat is not server is only a  container then I installed WildFly 24, after some problems I find out in web a contact that Tim Holloway answered to user that he should change from javax to jakarta thean so I changed my project too. After changed from javax to jakarta and run as server I receiving that my persistence.xml is not found. Searching in web again I saw a contact that say that is needed a depedency in pom "hibernate-orm-jbossmodules" after include this dependency in my pom is diaplayed a error "Missing artfactid org.hibernate:hibernate-orm-jbossmodules:5.4.33".
Dependency included in pom:

pom:

Persistence:

I don't saw nothing in web to solve this problem.
Thanks and best regards.
 
Saloon Keeper
Posts: 15702
367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once again, you have added a whole mess of unnecessary or conflicting dependencies. Why?

Do you take the time to understand the dependencies you're adding, and why you're adding them?

For every dependency in your POM, explain in your own words why you think you need it.
 
Cezar Apulchro
Ranch Hand
Posts: 684
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After remove hibernate-orm-jbossmodules dependency from pom I am receiving "404 - Not Found".
Console:

pom:
 
Stephan van Hulst
Saloon Keeper
Posts: 15702
367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you read my post?
 
Saloon Keeper
Posts: 28053
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Cezar Apulchro wrote:Hi, trying to deploy my project I opened a topic here and Tim Holloway told me that I need a server because Tomcat is not server is only a  container



No I didn't.
 
Cezar Apulchro
Ranch Hand
Posts: 684
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I read then I changed my pom.
 
Stephan van Hulst
Saloon Keeper
Posts: 15702
367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's not what I asked. I asked you to explain in your own words what you need the dependencies for that are currently in your POM. For instance, why did you add Weld to your application?
 
Cezar Apulchro
Ranch Hand
Posts: 684
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I included JBoss Weld imagining do some injection in my application. I removed the weld from pom but "404 Not Found" still the same.
 
Stephan van Hulst
Saloon Keeper
Posts: 15702
367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you keep modifying your POM every time we ask you something?
 
Cezar Apulchro
Ranch Hand
Posts: 684
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because I want to solve my problem and when you ask me about a dependency I think that this dependency is unnecessary.
 
Stephan van Hulst
Saloon Keeper
Posts: 15702
367
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is, but that's not the point. The point is to get you to understand *why* it is unnecessary.

You have a very bad habit of just trying out everything that people mention online, without really trying to understand the problem.

You say you want to use dependency injection in your application, and that's why you added Weld. This is decent logic. I tell you that it's unnecessary, and you just delete the dependency without questioning why?

We are not going to do your work for you. We can help you to understand the problem, but the only thing you seem interested in is getting people to tell you exactly what you need to do to fix your problem. Then a few weeks later, you ask us another question that you could have easily solved yourself if you had just put some effort into understanding the problems you encountered before.

So that's why I ask you again: Write a post, listing every dependency that is currently in your POM, with an explanation of why you think you need it. We can then point out mistakes in your understanding.

We are not going to tell you how to fix your problem without you putting some effort into trying to understand the problem.
 
Cezar Apulchro
Ranch Hand
Posts: 684
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you are partly right, when I go to do something in my application first I search and study about what I to include in my application for example I want to use Primefaces I already a small experience but I had to stop without finishing what I wanted.
Dependencies:
1 - mysql: my application have MySQL DB.
2 - net.sf.jasperreports: my application generate reports.
3 - hibernate: to access the MySQL.
4 - wildfly-server: my server of application.
5 - org.glassfish: to make EL and taglib "core" and "sql".
6 - jakarta: my first time, I've used as reference "https://itnext.io/building-jakarta-ee-9-web-application-with-servlet-containers-b3acc50c8464"
 
Stephan van Hulst
Saloon Keeper
Posts: 15702
367
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alright, I'll tell you the problem with declaring most of those as dependencies of your current project. But first you need a better understanding of the differences between Tomcat and Wildfly.

Wildfly is a full-fledged enterprise application container that supports the entire Jakarta EE 10 platform. That means that it implements the following specs:

  • Jakarta Activation 2.1
  • Jakarta Authentication 3.0
  • Jakarta Authorization 2.1
  • Jakarta Batch 2.1
  • Jakarta Bean Validation 3.0
  • Jakarta Common Annotations 2.1
  • Jakarta Concurrency 3.0
  • Jakarta Connectors 2.1
  • Jakarta Contexts and Dependency Injection 4.0
  • Jakarta Debugging Support for Other Languages 2.0
  • Jakarta Dependency Injection 2.0
  • Jakarta Enterprise Beans 4.0
  • Jakarta Expression Language 5.0
  • Jakarta Interceptors 2.1
  • Jakarta JSON Processing 2.1
  • Jakarta JSON Binding 3.0
  • Jakarta Mail 2.1
  • Jakarta Managed Beans 2.0
  • Jakarta Messaging 3.1
  • Jakarta Persistence 3.1
  • Jakarta RESTful Web Services 3.1
  • Jakarta Security 3.0
  • Jakarta Servlet 6.0
  • Jakarta Server Faces 4.0
  • Jakarta Server Pages 3.1
  • Jakarta Standard Tag Library 3.0
  • Jakarta Transactions 2.0
  • Jakarta WebSocket 2.1

  • If your application uses any of these APIs, you DO NOT need to bundle an implementation with your application, because the APIs are already implemented by the application container. You ONLY need a dependency on the API itself.

    Tomcat on the other hand, is NOT a full-fledged enterprise application container. It implements only the following specs:

  • Jakarta Servlet 6.0
  • Jakarta Server Pages 3.1
  • Jakarta Expression Language 5.0
  • Jakarta WebSocket 2.1
  • Jakarta Authentication 3.0

  • This means that if you want to use a spec like Jakarta Contexts and Dependency Injection (CDI), you have to include an implementation like Weld with your application.

    The link you posted explains how you can use Jakarta specs in Tomcat when they aren't implemented by Tomcat. That means the guide is USELESS for an application container like Wildfly, because Wildfly already implements CDI by itself.

    Crucially, bundling an unnecessary implementation with your application can break the application. When you migrated from Tomcat to Wildfly, you should have removed these unnecessary implementations.

    With that in mind, here are all the things wrong with your POM:

    - jakarta.jakartaee-web-api already includes the other Jakarta dependencies you're using. Use EITHER jakarta.jakartaee-web-api, or the other Jakarta dependencies.

    - If you want to declare Jakarta specs separately (meaning, you removed jakarta.jakartaee-web-api from your POM) then you can use jakarta.jakartaee-bom to set the versions of all your Jakarta dependencies. HOWEVER, it needs to go under <dependencyManagement>, and you need to add <scope>import</scope> to it.

    - Remove all org.glassfish dependencies. These are spec implementations that you don't need, because Wildfly already implements the related specs.

    - Remove Weld. Wildfly already implements Jakarta CDI.

    - Remove hibernate-orm-jbossmodules. This is a feature pack for Wildfly. You shouldn't have to bundle Wildfly feature packs with a web application. Instead, configure your Wildfly installation properly.

    - Remove mysql-connector-java. Never add SQL drivers to your web application. If your application container doesn't already support a certain SQL flavor, then you must install the driver into your application container manually.

    - Remove all Hibernate dependencies. Instead, rely on the Jakarta Persistence API, which is implemented by Wildfly.

    - Do not list build plugins as dependencies. Move build plugins from <dependencies> to <pluginManagement>.

    - Remove all Wildfly dependencies. Portable applications should not know what application container they're running inside of. They should rely only on Jakarta specs.

    - I don't think you need any Wildfly build plugins. NetBeans 19 is out, and it should be able to deploy your application to Wildfly naturally.

    - Remove the <configuration> elements from all your org.apache.maven.plugins build plugins. Most of the things you've configured are unnecessary. Instead, add the following entry to the <properties> element:


    After you've done all of this, show us your new POM.
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi Stephan, after change pom and the imports of my classes and JSP to the problem still with error "404 - Not Found".
    pom:

    Another problem is that now I am gain error in one scriptlet inside of my jsp.

     
    Stephan van Hulst
    Saloon Keeper
    Posts: 15702
    367
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    This is unrelated to your problem, but you still must fix these things:

    I told you that jakarta.jakartaee-bom doesn't go under <dependencies>, but rather under <dependencyManagement>.

    You must set fixed versions for the following build plugins:

  • maven-clean-plugin
  • maven-compiler-plugin
  • maven-install-plugin
  • maven-resources-plugin
  • maven-surefire-plugin
  • maven-war-plugin

  • Finally, just telling us you're getting a 404 error doesn't help. You should know by now that you should tell us:

  • what URL you're trying to access,
  • how you're accessing the url,
  • where the error is shown,
  • what you were expecting to see instead,
  • what error messages are being logged,
  • how you have configured your endpoints in web.xml or using annotations.
  •  
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    The 404 error is happened when I click in run on server in my Eclipse project or in my JSP:
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 15702
    367
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    It's rather annoying to have to keep asking you to answer all my questions.
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    sorry Stephan,
    what URL you're trying to access,

    how you're accessing the url,
    - by choising "run on  server" in my Eclipse IDE
    where the error is shown,
    - the error is showed in browser and is only "404 - Not Found"
    what you were expecting to see instead,
    - I expecting to see login page of itcmedbr application.
    what error messages are being logged,
    - nothing error messages is logged.
    how you have configured your endpoints in web.xml or using annotations.
    - I don't have any configuration in web.xml
    image.jpg
    [Thumbnail for image.jpg]
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 15702
    367
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    And what makes you think that your login page should be located at one of those URLs?
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    In my application I've many jsp's one of this jsp is the index that is my login page then when I run my project using "Run on Server" the index page must be loaded  in my browser but I receive in my browser only "404 Not Found"
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi Stephan,
    cosole of execution:
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 15702
    367
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Cezar Apulchro wrote:In my application I've many jsp's one of this jsp is the index that is my login page


    Okay, but what makes you think the context path of your application is /itcmedbr ?
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Now I know where is the problem but I don't know how to resolve. I don't know if an simple rename of my project will be solved.
    solution:

    Result:
    image.jpg
    [Thumbnail for image.jpg]
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 15702
    367
    • Likes 1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    wildfly context path
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I created jboss-web.xml as is described in the link that you send me but still the same "404 Not Found".
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 15702
    367
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Obviously, we can't help you if you don't tell us the location of the file you created, the content of the file, and what URL you used.

    Also note that I'm not going to repeat my questions this time. If you don't supply us with all the info we need, then I'm not replying.
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    sorry, path /WEB-INF/jboss-web.xml
    content:

    In projects > properts > Web Project Settings > Context root : itcmedbr
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 15702
    367
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Relative to what is that file path? Your project directory?
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Yes:
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I'm with a problem in jboss-web.xml eclipse showed line error that "There are '15' errors in 'jboss-ejb3-spec-2_0.xsd' and "There are '65' errors in 'jboss-common_5_1.xsd" in "<jboss-web ..." line and "There are '14' erros in jboss-web_5_1.xsd" in the line http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd"> I already searced in the web but I can't find out the solution.
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 15702
    367
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    It shouldn't matter. While it's odd and worrying, the XSDs are not part of your build artifact, so it shouldn't affect how the application functions.

    I want you to deploy the WAR file that Maven builds into Wildfly manually. If you don't know how to do that, consult the Wildfly user manual.

    If after deployment, the application still doesn't work, I want you to unpack the WAR file, and write down the directory structure for us.
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi Stephan sorry by delay, problem with my intenet provider.
    Now my login page is opening but when I inform data to send to my servlet I'm receiving "HTTP method POST is not supported by this URL".
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 15702
    367
    • Likes 2
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I'm sorry. I can't help you anymore. I'm tired of repeatedly having to ask you for more info.

    We are not clairvoyants. We can not see what actions your are performing on your machine. We can't see what files you're trying to access and how you're accessing them. This should be obvious to you, and you should lead with this info without us prompting for it.

    TellTheDetails.

    Good luck with your problem.
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I initiated this contact trying to load in my VPS provider, in this project I used Tomcat thinking that I was using an Server then Tim Halloway told me that Tomcat is only a container not a server. Then I choiced WildFly for my server, after another problem you get this contact and told me to change my application to use Jakarta so I did what you said. My application have an MySQL db where I access to get for example data for my login page and here is my problem after deploy my project now I can open my login page but when I informing three data CNPJ, Name and PWD and click enter to send this data to my servlet I receiving "HTTP method POST is not supported by this URL". I don't know what more details give to you.
    index.jsp:
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    servlet:
     
    Tim Holloway
    Saloon Keeper
    Posts: 28053
    198
    Android Eclipse IDE Tomcat Server Redhat Java Linux
    • Likes 1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Cezar Apulchro wrote:I initiated this contact trying to load in my VPS provider, in this project I used Tomcat thinking that I was using an Server then Tim Halloway told me that Tomcat is only a container not a server.



    Again. No I did not. Tomcat is a server. It just doesn't have the full JEE functionality built in.

    It pains me very much to say this, but have you considered that you are simply not suited to do this kind of work?

    You have been bumbling around for many months and making no progress at all. You apparently don't read or comprehend the documentation or our advice. We have despaired of being able to help.

    There is no shame in lacking an aptitude for doing something. I myself would be a horrible bookkeeper. My approach to things involves a lot of bouncing back and forth and a good bookeeper needs to be someone who can run down things line by line without skipping anythat. I'm also miserable at any sort of leadership. People basically just ignore me. And forget about me being a good software tester. I can write the stuff, I can fix the stuff, but here also I'm not methodical enough to test the stuff. I'm grateful for those who are.

    So the question here is: "Are you expecting to earn an educational degree with your efforts?" Because there's no way you're going to succeed within the time limits of a formal educational course.

    Or are you trying to build a business system? Again, you're taking too long to get even the basic parts to work. No one would pay you to do this. I have enough trouble with job time limits nyself, although in my case it's because I refuse to just hack out stuff in a hurry. If you have a business need, consider hiring someone.

    Or is this just experimental for personal enrichment? If so, I'd advice forgetting the attempt to make specific software work and focus on learning the theory and fundamentals. Because you cannot successfully work with any software product without some sort of basic understanding of what it is doing, how, and why.

    Again, not having an aptitude for software development is not something to be ashamed of. I've known more successful people who turned out to be better managers than developers.  There are many talents and I've never found anyone who doesn't have something that's important eventually. There's no point in wasting time on what you cannot do if you can be using it on something you do well, instead.
     
    Marshal
    Posts: 4579
    572
    VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Cezar Apulchro wrote:Now my login page is opening but when I inform data to send to my servlet I'm receiving "HTTP method POST is not supported by this URL".


    Verify that the request is actually reaching the Login_S000 servlet as you expect, and is calling the (massive 270 line) doPost method.
     
    Cezar Apulchro
    Ranch Hand
    Posts: 684
    3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Problem is solved I was doing the wrong deployment now I believe that I understand how Wildfly work.
    Thanks and best regards.
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic