LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-28-2007, 01:51 PM   #1
Xandrex
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Rep: Reputation: 0
Talking Tomcat and Subversion


All,

I need a bit of guidance. I am attempting to setup a RedHat 4 Server. I want to (and have installed) TomCat 5, now I need a bit of guidance on how to use subversion with it. Any help would be appreciated.

Thanks,

Xan
 
Old 11-29-2007, 10:05 AM   #2
complich8
Member
 
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104

Rep: Reputation: 17
If you mean like ... running a subversion repository interface out of tomcat the way you would out of apache, I don't think it's going to be feasible to do that -- afaik there's no dav module in tomcat, to say nothing of a svn module.

You really have two valid options, I think.

Option 1: you install tomcat, apache 2.x, and subversion with the apache module. You also pull down the JK connector module ( http://tomcat.apache.org/download-connectors.cgi ... d). You should note that while subversion and mod_dav_svn are in rhel4's up2date system, the jk connector is not.

Option 2: use your tomcat server standalone, and use subversion's own svnserve for your repo remote access.

Option 1's a little more complex, but I think it's a bit better too.

(or did you mean something else...?)

Last edited by complich8; 11-29-2007 at 10:06 AM.
 
Old 11-29-2007, 10:47 AM   #3
Xandrex
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Original Poster
Rep: Reputation: 0
No, this is what I meant.

However, we currently have subversion running with Tomcat on another server but the fellow who put it together was nice enough not to talk about it to anyone or leave any documents on it.

Could you perhaps elaborate at all?

Thanks,

Xan
 
Old 11-29-2007, 12:54 PM   #4
complich8
Member
 
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104

Rep: Reputation: 17
So I take it you mean you go to http://yourhost/index.jsp and get a tomcat-served page, and go to http://yourhost/svn/ and get a subversion repository? Or something like that?

Basically, what I'd suggest is ... if you want to replicate the old behavior, try to do a bit of analysis on what it's actually doing. See if you can see running apache processes ("ps -ef | grep httpd" or "ps -ef | grep apache" depending on what you're doing).

If you access your svn over http/https, then you do have an apache2 instance on the old server. In which case, it's probably got config files in /etc/httpd, /etc/apache2, /usr/lib/apache2, /usr/lib/httpd, or /usr/local/apache2. If you have slocate installed and maintained, you could try "locate httpd.conf" to find that out. The meat might also be in included conf files (eg: a "vhosts" or "modules" directory).

If all your requests are handled on the same incoming port (ie: it's all http://yourhost/something), and you've got both apache and tomcat, then more likely than not you've already got an instance of the JK connector working too. Check your apache config files for more details.

I'm making a lot of guesses about how your other system is set up though. Since you've got one that appears to be doing what you want, it'd be great to reference that one. If you can't for whatever reason, then I'd say, start out by installing apache (in rhel4, just use up2date to install that), then get the subversion module working, then get tomcat working on a different port (like 8080 ... I'm guessing you know how to do that), then the JK connector forwarding the requests that you want forwarded from apache to tomcat.

There's a lot of documentation for apache, subversion, and the tomcat JK connector out there. Without more specific questions, I don't think it's really possible to elaborate too much more. There's a bit of system research you need to do if you want to replicate your other system's functionality.
 
  


Reply

Tags
redhat, subversion, tomcat



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat and Subversion Xandrex Red Hat 5 11-30-2007 10:57 AM
fresh tomcat 5.5 install not showing tomcat homepage laggerific Linux - Software 0 10-26-2007 03:28 PM
How to make Tomcat 4.0.1 and Tomcat 5.0.28 coexist in one server? g18397 Linux - Software 0 05-16-2006 03:16 AM
How to install Subversion(Version Control with Subversion) under RedHat Linux. netkiller Linux - Networking 1 07-01-2004 05:45 AM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration