how to change web app name?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

how to change web app name?

#1

Postby t4nu » Tue Jan 05, 2016 8:29 am

Hi,
I want to change the webapp name from ebasetest (http://localhost:3050/ebasetest/) in local to (say) mywebapp.
How to do it?
Thanks in advance for the help.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Jan 05, 2016 8:36 am

In Version 5, the web app name used for the integrated server (ebasetest) can't be changed. If you're using a separate server, you can change it.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Tue Jan 05, 2016 9:32 am

Do you mean if I have another server then the webapp' name can be changed? If so how to do it?
Jon wrote:In Version 5, the web app name used for the integrated server (ebasetest) can't be changed. If you're using a separate server, you can change it.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Tue Jan 05, 2016 10:28 am

1. Change the webapp name in the file system e.g. change tomcat/webapps/ufs to tomcat/webapps/mywebapp
2. Change the name of the configuration file in tomcat/conf/Catalina/localhost e.g. from ufs.xml to mywebapp.xml (must be the same name as in 1)
3. Restart the server
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#5

Postby t4nu » Tue Jan 05, 2016 10:36 am

1. Do you mean that I can just rename the folder from (e.g.) ebase to myApp?

Is it possible to have more than 1 webapp within 1 server? For e.g. I want to retain the ebase but want another webapp with the name myApp.

Thanks.
Jon wrote:1. Change the webapp name in the file system e.g. change tomcat/webapps/ufs to tomcat/webapps/mywebapp
2. Change the name of the configuration file in tomcat/conf/Catalina/localhost e.g. from ufs.xml to mywebapp.xml (must be the same name as in 1)
3. Restart the server
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#6

Postby Jon » Tue Jan 05, 2016 2:11 pm

Yes to both questions. You can have any number of web apps in one tomcat server.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#7

Postby t4nu » Tue Jan 05, 2016 7:56 pm

In order to do that, all I have to do:
1. Add new folder (myApp) to tomcat/webapps
2. Add new configuration (myApp.xml) file to tomcat/conf/Catalina/localhost
3. restart the server.
Is that right?
Jon wrote:Yes to both questions. You can have any number of web apps in one tomcat server.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#8

Postby Jon » Wed Jan 06, 2016 2:11 pm

Yes
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#9

Postby t4nu » Wed Jan 06, 2016 8:29 pm

Thank you.
:D
Jon wrote:Yes
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#10

Postby t4nu » Wed Jan 27, 2016 3:59 am

Hi,
I decided not to bother the ebase webapp, I add a new webapp (e.g. myApp), so in the tomcat/webapps now there are 2 subfolder, they are: ebase and myApp, I also add myApp.xml to tomcat/conf/Catalina/localhost, the file is actually the copy of ebase.xml.
I have restart the server.

Now, how can I acces the new webapp? The server admin always pointed to ebase automatically.

Thanks.
Jon wrote:Yes
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#11

Postby Jon » Wed Jan 27, 2016 9:02 am

The URL will be something like: hostname:3030/myApp/xxxxxx.

I'm not clear what you're trying to achieve. If you want the new webapp to run ebase, why not just rename the existing one? If you want a second ebase webapp, you need to copy the entire ufs directory in tomcat/webapps. The xxx.xml files in tomcat/conf/Catalina/localhost contain configuration for databases used by ebase - if you want a second ebase, you need to set up new copied databases and configure them here. You shouldn't run two ebase webapps using the same database.

Once you have your renamed/new webapp running, you can change the designer to use it by changing the web app name in File > Preferences > Test server.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#12

Postby t4nu » Thu Jan 28, 2016 4:31 am

I try to follow your suggestion to rename the existing webapp.
I rename the ebase webapp to myApp, and then change to the location of the configuration file, but there is no file in that place (tomcat/conf/Catalina/localhost), I'm sure that the configuration file is exist before I change the webapp name.

How to fix that?

Suppose that I have to reinstall xbase, will the license file still can be use?

Jon wrote:The URL will be something like: hostname:3030/myApp/xxxxxx.

I'm not clear what you're trying to achieve. If you want the new webapp to run ebase, why not just rename the existing one? If you want a second ebase webapp, you need to copy the entire ufs directory in tomcat/webapps. The xxx.xml files in tomcat/conf/Catalina/localhost contain configuration for databases used by ebase - if you want a second ebase, you need to set up new copied databases and configure them here. You shouldn't run two ebase webapps using the same database.

Once you have your renamed/new webapp running, you can change the designer to use it by changing the web app name in File > Preferences > Test server.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#13

Postby Jon » Thu Jan 28, 2016 9:59 am

The only reason the file won't be in tomcat/conf/Catalina/localhost is that it's been moved, so you'll probably find it somewhere - search for ebase.xml. You shouldn't need to re-install.

The licence file will be fine - you don't need a new one.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#14

Postby t4nu » Thu Jan 28, 2016 10:55 am

No, the file is not found anywhere.
I don't know if it has something to do with what I did. Here is what I did:
- I delete the myApp folder (the new empty folder, because previously I don't want to bother with ebase webapp)
- I change the ebase folder to myApp

Then I change to the tomcat/conf/Catalina/localhost folder and found that folder is empty.
Previously there are 2 files in there (ebase.xml and myApp.xml).

What is your suggestion, reinstall the ebase or copy the ebase.xml from somewhere else?
Jon wrote:The only reason the file won't be in tomcat/conf/Catalina/localhost is that it's been moved, so you'll probably find it somewhere - search for ebase.xml. You shouldn't need to re-install.

The licence file will be fine - you don't need a new one.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#15

Postby Jon » Thu Jan 28, 2016 11:24 am

If you have a working system, copy the ebase.xml file. This file contains configuration details for databases used by the webapp so you may need to edit these depending on the system that you copy it from.

In particular this file contains the configuration for the UFSREPOSITORY database used internally by Ebase. If this is configured to use Apache Derby embedded (URL of jdbc:derby:UFS;create=false), you can just copy the file, but if it's using another database you will need to check. The golden rule is that you can't have two Ebase systems running that share the same UFSREPOSITORY database.
0 x


Who is online

Users browsing this forum: No registered users and 14 guests