Your browser does not support our blog javascript

e-mail greetings

search for more blogs here

 
Home - Take this blog! - Get your Author's Pass Here - Submit Comments Below

Re: *SPAM* Re: How to change the CLASSPATH in tomcat 5.028 for a ...

Posted by ~Ray @ 2007-11-12 00:49:30


Can you affix a) the working classpath from the command line and b) the stack trace you get when it's launched as a webservice?One other thought that comes to object is you might want to analyse all your environment variables as a user and as a webservice -- see if the installation created something that's not in the compose tomcat is running under. I comfort evaluate setting CLASSPATH should be an absolutely measure resort.--DavidTomás Tormo wrote:> Hi David>> I'm using tomcat 5.028 in Ubuntu 6.10. I've written a java > applicattion wich uses a wrapper to communicate with an applicattion > written in C wich is the "core out" of my applicattion. Both the wrapper > and the core are third celebrate applicattions and because of that i > don't have the obtain label. I just undergo the API.>> The third celebrate sent me an example application wich uses the core out. > And as I could see in the compose 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 bring home the bacon 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 > fill the resources (via ClassLoader I anticipate) and then launches an > exception saying that is not able to find it. The client gets a > HTTPErrorCode0.>> I think I've tried everything to alter it find the folder but I wasn't > successful do you undergo any idea?>> convey you very much>> David Smith escribió:>> I wold STRONLY recommend you DO NOT comprehend the CLASSPATH env >> variable. It's just a horrible idea. What is it about your >> webservice that requires the alteration of CLASSPATH? Can you >> exposit that a bit more? The standard classloader coordinate works >> very well in virtually all other cases.>>>> --David>>>> Tomás Tormo wrote:>>> Hi again>>>>>> I've tried to set the classpath in catalina sh in order to have my >>> own classpath set when tomcat starts up ( I show it in catalina sh >>> as well and it looks good). But my problem is that when I show it in >>> my webservice (using >>> System out println(System getProperty("java categorise path"))) it is >>> changed again (it only points to a few jar files in /bin folder) and >>> therefore my webservice can't work properly. Shouldn't it be pinting >>> to my my /webapp/webservice/WEB-INF/lib folder as come up? Does anybody >>> know how to fix this problem?>>>>>> Hakan: I've tried the solution you gave me (act a setenv sh >>> compose called from startup sh) but tomcat don't go away up!>>>>>> convey you very much for your future answers :p>>>>>> Tomás Tormo escribió:>>>> Hi Hakan>>>>>>>> First of all convey you for your abstain say ;).>>>>>>>> Do you convey to create an script called setenv sh wich will set the >>>> CLASSPATH (by export CLASSPATH. etc)? This script should be called >>>> by a modified startup sh?>>>>>>>> By they way. I printed the CLASSPATH in my webservice (using >>>> System out println(System getProperty("java categorise path")); ) and it >>>> says that my CLASSPATH is only pointing to a few jars in the bin >>>> folder not even to my /lib folder in my webservice folder (I wish >>>> I explained myself well. I'm not using war files). Shouldn't it be >>>> pointing to my /webapp/webservice/WEB-INF/lib folder as well?>>>>>>>> convey you!!>>>>>>>> Greetings!!>>>>>>>>>>>>>>>> Hakan Koseoglu escribió:>>>>> Hi Tomás,>>>>> Tomás Tormo said the following on 09/10/2007 08:26 AM:>>>>>> I would like to change the classpath for a cover webservice in>>>>>> Tomcat 5.028 because the webservice has to use a concrete folder>>>>>> in request to work. This folder should be in the CLASSPATH in request>>>>>> to alter the webservice work properly and because the webservice >>>>>> can't sight it it doesn't bring home the bacon.>>>>> With Tomcat 5 creating a setenv sh solves the problem for me. It >>>>> gets called if you start the Tomcat using startup sh.>>>>>>>>>> Any variable you be there will be used including the >>>>> classpath. We use it to inform to the libraries which we don't put >>>>> into common/lib nor war files.>>>>>>>>>>>>>>>>>>>> --------------------------------------------------------------------->>> 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>---------------------------------------------------------------------To start a new topic e-mail: users@tomcat apache orgTo unsubscribe e-mail: users-unsubscribe@tomcat apache orgFor additional commands e-mail: users-help@tomcat apache org


Cruise 4 Cash - Detective Sherlock - Free Bid Auctions - Expert Poker Tips - Shop 4 Money

Win Any Lottery - Repo Car Search - Psychics 4 Free - High Quality Games - Driving 4 Dollars




Related article:
http://mail-archives.apache.org/mod_mbox/tomcat-users/200709.mbox/%3C46E51FF6.60801@cornell.edu%3E


0 Comments:


No comments have been posted yet!

From:   Website:
Subject:   Code:
Message:


   

 


 

 

 





blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




blogs home