#Web App

1 messages · Page 1 of 1 (latest)

hollow surge
#

Hello I'm working on a Web App using Netbeans and the glassfish server.

Pretty much everything is working well except the context root.
Whenever i run my EAR file, it opens in my browser : "project_name-project_version" but I only want to have the project name in my url.

I'm still new to Java, am a bit slow.

winged patioBOT
#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

etty-url/". I want it to open in my browser as "pretty-url/".
How can I change the context root of my web app?

cobalt tundra
#

As far as i remember (i used to also work with NetBeans), u can right click on ur project and then u can go the run category and then under context path, set to how u want and then u just gotta restart ur application and u should see the changes.

#

But i recommend u to use other files instead of EAR and try using NetBeans vers.1.5.3. Because for some reason this a bit older version works better.

hollow surge
cobalt tundra
#

How many files you have? It could be just a problem, that the application is not realizing you changed the root, so just copy all the code on page (word, notepad whatever), and then delete you files and make new ones, and then paste it back in. I had a problem kinda like this, where it didnt know the way to the files that i was using.

hollow surge
#

I have a bunch, probably like 200-300

cobalt tundra
#

is it all in one file or more than one

#

?

hollow surge
#

Thats what it is looking like

#

and the url i get

cobalt tundra
#

Is it maybe that ur application cant find “project_name”? Maybe your route to it, is not enough.

hollow surge
cobalt tundra
#

Sorry man ☹️ Did u maybe look on stack overflow, or yt?

#

Maybe check your notation, or some letter mistakes

#

btw are u new to coding?

hollow surge
hollow surge
cobalt tundra
hollow surge
#

mainly coded in python, c++, c#, php

cobalt tundra
#

any web development?

#

like frontend

hollow surge
cobalt tundra
hollow surge
hollow surge
#

I think i found the root of the problem, netbeans automatically adds the project versoin at the end of the project name

#

but no idea on how to fix that