Artifactory with Tomcat in Linux

View: New views
3 Messages — Rating Filter:   Alert me  

Artifactory with Tomcat in Linux

by buters :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

on the site http://www.theserverside.com/tt/articles/article.tss?l=SettingUpMavenRepository is described how Artifactory can be set up as webapplication for Tomcat in Linux . I'm using Tomcat-6.0. It runs as a service. It has successful deployed Artifactory. But I get 404 error with http://localhost:8080/artifactory: The requested resource (/artifactory/) is not available.

If I'm executing 'set' command in the console, I can see
CATALINA_HOME=/usr/share/tomcat-6
JAVA_OPTS=-Dartifactory.home=/srv/artifactory

My another webapplications run with tomcat. I've looked at permissions of artifactory folder in the webapps folder of tomcat. They are the same as for another webapplications. My artifactory.home folder has permissions drwxr-xr-x.

Thanks beforehand,
regards, buters

Re: Artifactory with Tomcat in Linux

by David Smith-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What's in your logs when you start tomcat?  If you check the manager
app, does it show artifactory running?

--David

buters wrote:

> Hi,
>
> on the site
> http://www.theserverside.com/tt/articles/article.tss?l=SettingUpMavenRepository
> is described how Artifactory can be set up as webapplication for Tomcat in
> Linux . I'm using Tomcat-6.0. It runs as a service. It has successful
> deployed Artifactory. But I get 404 error with
> http://localhost:8080/artifactory: The requested resource (/artifactory/) is
> not available.
>
> If I'm executing 'set' command in the console, I can see
> CATALINA_HOME=/usr/share/tomcat-6
> JAVA_OPTS=-Dartifactory.home=/srv/artifactory
>
> My another webapplications run with tomcat. I've looked at permissions of
> artifactory folder in the webapps folder of tomcat. They are the same as for
> another webapplications. My artifactory.home folder has permissions
> drwxr-xr-x.
>
> Thanks beforehand,
> regards, buters
>  

---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Artifactory with Tomcat in Linux

by buters :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much, David, for your fast reply.

Sorry I was some time busy with other things.

I've looked in the localhost.log and I've found the error:
java.lang.IllegalArgumentException: Could not create or access artifactory main directory Unable to create directory /usr/share/artifactory-1.3.0-beta-2/work

Then I've changed the permitions for artifactory-1.3.0-beta-2 folder to rwx for other and wham, it works.

Another problem was to find where log folder of tomcat is. Another person has installed tomcat. He prefers all folder to scatter on the file system. E.g. tomcat is in usr/share and tomcat log files are in var/log/tomcat-6.

Best Regards, buters

David Smith-2 wrote:
What's in your logs when you start tomcat?  If you check the manager
app, does it show artifactory running?

--David

buters wrote:
> Hi,
>
> on the site
> http://www.theserverside.com/tt/articles/article.tss?l=SettingUpMavenRepository
> is described how Artifactory can be set up as webapplication for Tomcat in
> Linux . I'm using Tomcat-6.0. It runs as a service. It has successful
> deployed Artifactory. But I get 404 error with
> http://localhost:8080/artifactory: The requested resource (/artifactory/) is
> not available.
>
> If I'm executing 'set' command in the console, I can see
> CATALINA_HOME=/usr/share/tomcat-6
> JAVA_OPTS=-Dartifactory.home=/srv/artifactory
>
> My another webapplications run with tomcat. I've looked at permissions of
> artifactory folder in the webapps folder of tomcat. They are the same as for
> another webapplications. My artifactory.home folder has permissions
> drwxr-xr-x.
>
> Thanks beforehand,
> regards, buters
>  

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org