How to edit demo1.jsp

906 views
Skip to first unread message

Emin Hasanov

unread,
Feb 12, 2010, 9:59:53 AM2/12/10
to BigBlueButton-dev
Hi,
How can i edit Demo web page
im trying http://code.google.com/p/bigbluebutton/wiki/DevelopingBBB article. and video for bbb-web
after \dev\bbb-web\web-app\demo\demo1.jsp im saving. But no reaction.
Please help me. what is the missed step


--

Emin Hasanov

Fred Dixon

unread,
Feb 12, 2010, 11:54:18 AM2/12/10
to BigBlueButton-dev
Hi Emin,

You'll find that demo1.jsp is located in

/var/lib/tomcat6/webapps/bigbluebutton/demo/demo1.jsp

If you setup your development environment (using bbb-conf -setup-dev
bbb-web), you'll have a copy of demo1.jsp in

/home/firstuser/dev/bbb-web/web-app/demo/demo1.jsp

If you are running tomcat6, you'll need to edit the first demo1.jsp.
If you are running the development version (i.e. using ant), you'll
need to edit the second version.

Hope this helps,... Fred

Emin Hasanov

unread,
Feb 15, 2010, 6:06:57 AM2/15/10
to bigblueb...@googlegroups.com
Hi,
How can i find /var/lib/tomcat6/webapps/bigbluebutton/demo/demo1.jsp File?
I want to find this file through windows

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To post to this group, send email to bigblueb...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bigbluebutton-dev?hl=en.




--

Emin Hasanov

Fred Dixon

unread,
Feb 15, 2010, 8:19:57 AM2/15/10
to BigBlueButton-dev
Hi Emin,

I'm assuming you are running the BigBlueButton VM (which doubles as
the development environment) running under VMWare player. I'm also
assuming that you are not very familiar with Unix commands. I can
sketch out below the outline of what you can do to edit demo1.jsp, but
if these commands are unfamiliar to you, you'll need to google a bit
about how Unix works -- especially file permissions.

First, within the VM, use the command

bbb-conf --setup-samba

This will share the /home/firstuser account. You can then checkout
the source for bbb-web using the command

bbb-conf --setup-dev bbb-web

Next, stop the tomcat6 server

sudo /etc/init.d/tomcat6 stop

then

cd ~/dev/bbb-web
ant

You'll now be running the bbb-web from the firstuser directory.
Because samba is now setup, you can browse from within Windows to

\\vm_ip\firstuser\dev\bbb-web\web-app\demo

and edit demo1.jsp. Once you save the changes, grails will
automatically recompile demo1.jsp and you'll see the updated page in
your web browser. (Note: it sometimes take about 30 seconds before
the servlet container will noticed the source has changed. I usually
make a change to the visible text in the web page (such as changing a
title).

At this point you should be able to make changes (from within Windows
to the VM) and see the results.

If your wondering how to deploy these changes to another server, I
recommend using google to look for tutorials on setting up tomcat6 and
deploying a simple hello world web application.

Regards,... Fred

On Feb 15, 6:06 am, Emin Hasanov <emin...@gmail.com> wrote:
> Hi,

> How can i find /var/lib/tomcat6/webapps/bigbluebutton/demo/demo1.jsp File?
> I want to find this file through windows
>

> > bigbluebutton-...@googlegroups.com<bigbluebutton-dev%2Bunsubscr i...@googlegroups.com>

Emin Hasanov

unread,
Feb 15, 2010, 8:45:48 AM2/15/10
to bigblueb...@googlegroups.com
OK, Thank you it works great. Bu t when i exit the grails console (Ctrl + C) then changes are not visible.
This way doesn't hampers me. 
But i have another question 
How can i edit the first page where is located this jsp or HTML file?

To unsubscribe from this group, send email to bigbluebutton-...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/bigbluebutton-dev?hl=en.




--

Emin Hasanov

Fred Dixon

unread,
Feb 15, 2010, 9:03:38 AM2/15/10
to BigBlueButton-dev
Hi Emin,

When you did the command

bbb-conf --setup-dev bbb-web

it checked out a copy of bbb-web into the /home/firstuser/dev/bbb-web
directory. This made it possible the source accessible from within
your home directory, and thus accessible when you accessed your home
directory using samba from Windows.

If you change

/home/firstuser/dev/bbb-web/web-app/demo/demo1.jsp

You'll need to leave grails running to have it recompile and view the
change. Alternatively, you can stop grails (Ctrl-C) and start grails
again using the command `ant` to have it immediately recompile. This
should make the changes visible. To recap:

1. setup your development environment
2. stop tomcat6 (this stops sharing the deployed version of bbb-web
in /var/lib/tomca6)
3. start up the version of bbb-web in your home directory using ant
4. edit demo1.jsp
5. open/refresh BigBlueButton using your web browser to your local
IP address

You should be able to cycle through 4 and 5 to edit and see the
changes visible.


> How can i edit the first page where is located this jsp or HTML file?

The first page is actually served from a different directory. You can
find it in

/var/www/bigbluebutton-default

To edit this, your going to need to understand

- Unix permissions
- how to use a unix editor

Google is your friend here again.

Regards,... Fred


On Feb 15, 8:45 am, Emin Hasanov <emin...@gmail.com> wrote:
> OK, Thank you it works great. Bu t when i exit the grails console (Ctrl + C)
> then changes are not visible.
> This way doesn't hampers me.
> But i have another question
> How can i edit the first page where is located this jsp or HTML file?
>

> > > > bigbluebutton-...@googlegroups.com<bigbluebutton-dev%2Bunsubscr i...@googlegroups.com><bigbluebutton-dev%2Bunsubscr

Mark

unread,
Jan 21, 2013, 8:06:27 AM1/21/13
to bigblueb...@googlegroups.com
Hi ALL,

I installed the components for Developing Web-BBB, and I ask you the follow questions:
I would to create a new file demo.jsp like the file demo2.jsp, inside the example BBB development environment.
I found the path: " /home/firstuser/dev/bbb-web/web-app/demo/demo2.jsp " and, in the same path, I copy and after it's modified the demo2.jsp (I called the new file demo as: demo_new.jsp).
So, in the shell, I try again the command: grails -Dserver.port=8888 run-app , and after I check on browser the new file demo .jsp (demo_new.jsp).
I have an error when I selected one of the "options value" that I inserted in the new demo and the BBB client does not appear.

The questions is: about the creation a new demo .jsp file, like a demos contained, it
is sufficient to carry out again the command grails or there is a procedure or other files .jsp modification ?

Thanks a lot,
Best Regards.


Il giorno lunedì 15 febbraio 2010 15:03:38 UTC+1, Fred Dixon ha scritto:
Hi Emin

Chad Pilkey

unread,
Jan 21, 2013, 12:17:09 PM1/21/13
to bigblueb...@googlegroups.com
You can create and edit files within /var/lib/tomcat6/webapps/demo/. If you stick to editing just .jsp files you won't need to restart tomcat at all, but if you make changes to files within WEB-INF you'll need to restart tomcat before those changes will take effect
Reply all
Reply to author
Forward
0 new messages