Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 2109 invoked from network); 4 Sep 2007 07:42:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2007 07:42:37 -0000 Received: (qmail 19781 invoked by uid 500); 4 Sep 2007 07:42:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 19752 invoked by uid 500); 4 Sep 2007 07:42:21 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 19741 invoked by uid 99); 4 Sep 2007 07:42:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 00:42:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.162.202.107] (HELO sm07.hospedando.com) (213.162.202.107) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 07:43:27 +0000 Received: (qmail 10109 invoked from network); 4 Sep 2007 09:41:56 +0200 Received: from unknown (HELO ?192.168.123.86?) (ttormo@indenova.com@62.43.198.212) by sm07.hospedando.com with SMTP; 4 Sep 2007 09:41:56 +0200 Message-ID: <46DD0C61.8010100@indenova.com> Date: Tue, 04 Sep 2007 09:42:25 +0200 From: =?ISO-8859-1?Q?Tom=E1s_Tormo?= User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Noob needs help with a webservice wich uses resources located in a folder References: <46DBEB61.8030408@indenova.com> <025d01c7ee46$d4559b50$5505050a@ptslaptop> In-Reply-To: <025d01c7ee46$d4559b50$5505050a@ptslaptop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hello First of all thank you for your answer. The owner of tomcat it's my user, but the problem is that my system doesn't have the group (or user) tomcat. I tried to launch tomcat as root (just as a test) moving the folder to the same place as the .class is, and later the same moving the folder to webapps/service/WEB-INF/lib folder... but nothing worked... any other idea? I'll keep on trying. Thank you!! PTS escribi�: > If my quick read of your problem is correct, (only works when run from > command line) then I would venture to say that you may have a rights > issue. Who owns the app? By default Tomcat starts from the scripts as > owner tomcat where as from the command line it is running as you (root > or some admin level). Try chown and chgrp the app to tomcat and see if > that helps. > > No even moving it into the folder does not give Tomcat the rights to > access it. You could also change the access rights but I would be > careful there as letting anyone execute code is not a good thing, but > chgrp to tomcat and group executable would work. Just make sure you > understand what the implications of the changes you make are, even on > ownership and group membership. > > Doug > > > ----- Original Message ----- From: "Tom�s Tormo" > To: > Sent: Monday, September 03, 2007 7:09 AM > Subject: Noob needs help with a webservice wich uses resources located > in a folder > > >> Hi >> >> I'm quite noob about tomcat topic. I'm using tomcat 5.028 in Ubuntu >> 6.10 and I would like to find an anwer to my question about web >> services because i'm not able to solve it. I've written a java >> applicattion wich uses a wrapper to communicate with an applicattion >> written in C, wich is the "core" of my applicattion. Both the wrapper >> and the core are third party applicattions, and because of that i >> don't have the source code, I just have the API. >> >> The third party sent me an example application wich uses the core. >> And, as I could see in the script wich lauches the application, this >> folder should be added to the classpath in order to be able to be >> located by the wrapper applicattion. The documentation of the wrapper >> just says that this folder has to exist with an specific name. >> >> My problem is that my applicattion works fine launched from shell (it >> founds the folder and uses the core perfectly) but it doesn't work as >> a webservice. It is not able to find the resource folder (let's call >> it "cfg"). As I can see in the catalina log, the application tries to >> load the resources (via ClassLoader I guess) and then launches an >> exception saying that is not able to find it. The client gets a >> HTTPErrorCode0. >> >> I've tried a lot of ways to solve it: I tried to launch tomcat with >> the classpath modified from the shell itself(making it point to the >> folder), tried to export the classpath from startup.sh script, tried >> to export the classpath from catalina.sh script, tried to modify the >> CATALINA_OPTS variable, tried to put the folder in both lib and >> classes folders of the webservice folder... but nothing worked. >> >> Please.. could you help me to solve this problem? I think I've tried >> all the options that came to my mind (except declaring a resource in >> server.xml file, altought I don't know If this wrapper uses JNDI to >> access to the resource..).I hope I explained myself well. As I think >> you can see, I'm quite noob with tomcat, so please don't be so hard >> with your answers... :'-p >> >> Thank you very much! >> >> --------------------------------------------------------------------- >> 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 >> > > > --------------------------------------------------------------------- > 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 > > --------------------------------------------------------------------- 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