[Bug 297675] Re: Eclipse can't find catalina.policy and bootstrap.jar where it expects them

2011-03-11 Thread Abhinav Upadhyay
I added a few lines to tomcat6-instance-create, so that it will setup
symlinks for the files which Eclipse expects to be present inside the
server directories.

It should now be possible to setup tomcat inside Eclipse for development
purposes without any additional work.

** Patch added: tomcat6-bugfix-297675.diff
   
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/297675/+attachment/1900544/+files/tomcat6-bugfix-297675.diff

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/297675

Title:
  Eclipse can't find catalina.policy and bootstrap.jar where it expects
  them

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 297675] Re: Eclipse can't find catalina.policy and bootstrap.jar where it expects them

2011-03-11 Thread Abhinav Upadhyay
As Thierry pointed out in his review of the previous patch, that
tomcat6-user does not come with catalina.policy file, making it
difficult to configure with eclipse for development purposes, and it
also rendered my previous patch useless. Therefore I updated the last
patch, so that tomcat6-user package now will include a catalina.policy
file as well.


** Patch added: Updated patch for bug 297675
   
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/297675/+attachment/1902193/+files/updated-bugfix-297675.diff

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/297675

Title:
  Eclipse can't find catalina.policy and bootstrap.jar where it expects
  them

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 297675] Re: Eclipse can't find catalina.policy and bootstrap.jar where it expects them

2011-03-10 Thread Abhinav Upadhyay
I created a user instance of tomcat6 using tomcat6-instance-create

When I try to configure in Eclipse, it complains that lib/jasper-el.jar
not found. I can overcome this by creating a symbolic link to
/usr/share/tomcat6/lib in my user instance directory.

Next, when I try to start the server, it will complain about not finding
catalina.policy (as reported in the bug) in the conf directory.

I can again overcome this by creating another symbolic link, but indeed
this is too much work.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/297675

Title:
  Eclipse can't find catalina.policy and bootstrap.jar where it expects
  them

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 297675] Re: Eclipse can't find catalina.policy and bootstrap.jar where it expects them

2011-03-10 Thread Abhinav Upadhyay
I am working on it. I will modify the tomcat6-instance-create script to
create necessary symlinks, so that eclipse can be configured properly
for setting up tomcat in its development environment.

** Changed in: tomcat6 (Ubuntu)
 Assignee: (unassigned) = Abhinav Upadhyay (er-abhinav-upadhyay)

** Tags added: bitesize

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/297675

Title:
  Eclipse can't find catalina.policy and bootstrap.jar where it expects
  them

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 297675] Re: Eclipse can't find catalina.policy and bootstrap.jar where it expects them

2011-03-10 Thread Abhinav Upadhyay
** Changed in: tomcat6 (Ubuntu)
   Status: Triaged = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/297675

Title:
  Eclipse can't find catalina.policy and bootstrap.jar where it expects
  them

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 707405] Re: tomcat6-instance-create should allow -c -1

2011-03-07 Thread Abhinav Upadhyay
I have modified the tomcat6-instance-create to accept -1 as a value of
the -c option.

Now, if a user specifies -1 as a value for the -c option, the server
will get configured and instantiated properly, but the user will be
given a warning that he will have to kill the server manually.

I have attached the patch.

** Patch added: Bugfix for bug#707405
   
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/707405/+attachment/1891144/+files/bugfix-707405.diff

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/707405

Title:
  tomcat6-instance-create should allow -c -1

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 707405] Re: tomcat6-instance-create should allow -c -1

2011-03-07 Thread Abhinav Upadhyay
** Changed in: tomcat6 (Ubuntu)
   Status: Triaged = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/707405

Title:
  tomcat6-instance-create should allow -c -1

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 707405] Re: tomcat6-instance-create should allow -c -1

2011-03-07 Thread Abhinav Upadhyay
** Changed in: tomcat6 (Ubuntu)
 Assignee: (unassigned) = Abhinav Upadhyay (er-abhinav-upadhyay)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/707405

Title:
  tomcat6-instance-create should allow -c -1

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 707405] Re: tomcat6-instance-create should allow -c -1

2011-03-07 Thread Abhinav Upadhyay
Using a regex test to verify the port numbers as suggest by Clint Byrum
and Barry during their review of the previous patch.

** Patch added: bugfix-707405-rev-34.diff
   
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/707405/+attachment/1893145/+files/bugfix-707405-rev-34.diff

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/707405

Title:
  tomcat6-instance-create should allow -c -1

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 730259] Re: tomcat6-instance-create does not behave properly on setting a value less than 1024 for the control port

2011-03-06 Thread Abhinav Upadhyay
Sorry, running tomcat6-instance-create as root, solved the issue. But I
believe, it should have displayed an error that I need to run the server
as root in order to bind to a port less than 1024, rather than stupidly
say server started.

** Changed in: tomcat6 (Ubuntu)
   Status: New = Invalid

** Description changed:

  Binary package hint: tomcat6
  
  On specifying any value less than 1024 for the -c option of 
tomcat6-instance-create, the server instance does not work as expected. It gets 
configured and gets started, but pages won't load in the browser.
  For example, on running
- $tomcat6-instance-create -c 1001 -p 8001 ~/my_tomcat 
+ $tomcat6-instance-create -c 1001 -p 8001 ~/my_tomcat
  
- It configures the instance properly, with the specified port values also 
appearing in ~/my_tomcat/conf/server.xml . The server also starts successfully. 
But, I cannot access  http://localhost:8001/  
- On opening it, in the browser, the browser simply says Page not found . 
+ It configures the instance properly, with the specified port values also 
appearing in ~/my_tomcat/conf/server.xml . The server also starts successfully. 
But, I cannot access  http://localhost:8001/
+ On opening it, in the browser, the browser simply says Page not found .
  
  There is no problem in shutting down the server. This behaviour is
  occuring for any values less than 1024 for the control port.
  
  And, on specifying a value greater than 1024 for -c , it does not cause
  any such problems.
  
  I have following configuration:
  Ubuntu 10.10
  tomcat6-user 6.0.28-2ubuntu1.1
  tomcat6 6.0.28-2ubuntu1.1
  Architecture: x86

** Changed in: tomcat6 (Ubuntu)
   Status: Invalid = New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/730259

Title:
  tomcat6-instance-create does not behave properly on setting a value
  less than 1024 for the control port

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 730259] Re: tomcat6-instance-create does not behave properly on setting a value less than 1024 for the control port

2011-03-06 Thread Abhinav Upadhyay
Changed the bug report. It should at least give a warning before
starting the server, that without root privileges it won't be able to
serve pages. (Running server as root is not such a good idea, but in
case someone wants to ).

** Description changed:

  Binary package hint: tomcat6
  
  On specifying any value less than 1024 for the -c option of 
tomcat6-instance-create, the server instance does not work as expected. It gets 
configured and gets started, but pages won't load in the browser.
  For example, on running
  $tomcat6-instance-create -c 1001 -p 8001 ~/my_tomcat
  
- It configures the instance properly, with the specified port values also 
appearing in ~/my_tomcat/conf/server.xml . The server also starts successfully. 
But, I cannot access  http://localhost:8001/
- On opening it, in the browser, the browser simply says Page not found .
+ It configures the instance properly, the server also starts successfully. 
But, I cannot access  http://localhost:8001/
+ The reason being that ports less than 1024 can be used by only those 
processes which are run as root. 
  
- There is no problem in shutting down the server. This behaviour is
- occuring for any values less than 1024 for the control port.
+ But in my opinion, in such a case (where -c has value less than 1024),
+ the server should refuse to start or at least give a warning that it
+ should be run as root. Otherwise, user may be clueless, as why the pages
+ are not loading.
  
- And, on specifying a value greater than 1024 for -c , it does not cause
- any such problems.
  
  I have following configuration:
  Ubuntu 10.10
  tomcat6-user 6.0.28-2ubuntu1.1
  tomcat6 6.0.28-2ubuntu1.1
  Architecture: x86

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/730259

Title:
  tomcat6-instance-create does not behave properly on setting a value
  less than 1024 for the control port

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs