LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Tomcat and Subversion (https://www.linuxquestions.org/questions/linux-server-73/tomcat-and-subversion-603060/)

Xandrex 11-28-2007 01:51 PM

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

complich8 11-29-2007 10:05 AM

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...?)

Xandrex 11-29-2007 10:47 AM

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

complich8 11-29-2007 12:54 PM

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.


All times are GMT -5. The time now is 07:23 PM.