Why the new Tomcat 7.0.19 failed to locate JAVA_HOME?

Yesterday I upgraded from tomcat 7.0.16 => 7.0.19
and now
rc.d start tomcat7
would fail with:
:: Starting tomcat7 daemon                                               [BUSY]
Cannot locate Java Home
                                                                                      [FAIL]
It's still just working right before I hit pacman -Syu.........
while I try reinstalling jdk/jre or go back to tomcat 7.0.16,
it doesn't make any difference.
And I'm sure that I've set $JAVA_HOME and $JRE_HOME correctly.
But strange enough, when I try su to root and /etc/rc.d/tomcat7 start
It works.
but when I tried sudo /etc/rc.d/tomcat7 start
It failed like before.
I also tried /usr/share/tomcat7/bin/setclasspath.sh and it works if i'm root already,
or it would failed giving similar message if i try sudo.

Hi! I changed my /etc/rc.d/tomcat7 file like this
#!/bin/bash
daemon_name=tomcat7
TOMCAT_JAVA_HOME=/opt/java \
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/${daemon_name}
case "$1" in
start)
stat_busy "Starting ${daemon_name} daemon"
PID=$(get_pid 'jsvc.exec')
if [ -z "$PID" ]; then
[ -f /var/run/${daemon_name}.pid ] && rm -f /var/run/${daemon_name}.pid
# RUN
/usr/bin/jsvc \
-Dcatalina.home=${CATALINA_HOME} \
-Dcatalina.base=${CATALINA_BASE} \
-Djava.io.tmpdir=/var/tmp/tomcat7/temp \
-cp /usr/share/java/commons-daemon.jar:/usr/share/java/eclipse-ecj.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar \
-user tomcat \
-java-home ${TOMCAT_JAVA_HOME} \
-wait 10 \
-pidfile /var/run/${daemon_name}.pid \
-errfile /var/log/tomcat7/catalina.err \
-outfile /var/log/tomcat7/catalina.out \
${CATALINA_OPTS} \
org.apache.catalina.startup.Bootstrap
if [ $? -gt 0 ]; then
stat_fail
exit 1
else
add_daemon ${daemon_name}
stat_done
fi
else
stat_fail
exit 1
fi
stop)
stat_busy "Stopping ${daemon_name} daemon"
# STOP
/usr/bin/jsvc \
-pidfile /var/run/${daemon_name}.pid \
-stop \
org.apache.catalina.startup.Bootstrap
if [ $? -gt 0 ]; then
stat_fail
exit 1
else
rm -f /var/run/${daemon_name}.pid &> /dev/null
rm_daemon ${daemon_name}
stat_done
fi
restart)
$0 stop
sleep 3
$0 start
status)
stat_busy "Checking ${daemon_name} status";
ck_status ${daemon_name}
echo "usage: $0 {start|stop|restart|status}"
esac
exit 0
but it still give me the Cannot locate Java Home error.

Similar Messages

  • My 4th generation shuffle will not play podcasts. It is set to play in order.  The podcast show on the laptop itunes screen as showing loaded in my shuffle. the type shows up gray. why the new annoying content format?

    My 4th generation shuffle will not play podcasts, even though they show as loaded on the legend on the left on the itunes site.  The shuffle is set to play everything in order. The type on the content is gray, thats strange.  And why the new annoying content format?

    Hey briannagrace96,
    Welcome to Apple Support Communities! I'd check out the following article, it looks like it applies to your situation:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    You'll want to go through the following troubleshooting steps, and for more detail on each step follow the link to the article above:
    Try the iPod troubleshooting assistant:
    If you have not already done so, try the steps in the iPod Troubleshooting Assistant (choose your iPod model from the list).
    If the issue remains after following your iPod's troubleshooting assistant, follow the steps below to continue troubleshooting your issue.
    Restart the iPod Service
    Restart the Apple Mobile Device Service
    Empty your Temp directory and restart
    Verify that the Apple Mobile Device USB Driver is installed
    Change your iPod's drive letter
    Remove and reinstall iTunes
    Disable conflicting System Services and Startup Items
    Update, Reconfigure, Disable, or Remove Security Software
    Deleting damaged or incorrect registry keys
    Take care,
    David

  • Downloading the new IPhone  software update keeps failing ,I get error code -3259 is there a fix for this

    Downloading the new IPhone  software update keeps failing ,I get error code -3259 is there a fix for this

    Disable the security software and try again, Kaspersky's has been really annoying with this along with a couple others.

  • Why the new version of iTunes don't have photo features?

    Why the new version of iTunes don't have phot features? How can I sync my photo from my pc to Ipad2?

    Every version of iTunes that supports syncing with an iPhone has the ability to sync pictures to the device.
    Resize the iTunes windowso that you can see the entire window.

  • Why the new iPad still has no Flash

    I wonder why the new iPad still has no flash. I love to take photos with my iPhones and iPads, sometimes a flash could be handy when it's dark.
    I know it could be another nightmare for the Apple case makers.

    Apple has never said why, and rarely does explain decisions like that... my guess is that it would have taken space and power away from something else, it's a pretty tightly-packed product. :-)

  • Why the new firefox version 31.0 is getting stuck when something is downloaded.

    Why the new firefox version 31.0 is getting stuck when something is downloaded. After force restart also same issue (still the download status is showing the same and again getting stuck) for 4-5 times and then it asks for to clear all the data. After that it is working fine. Again If I download something facing the same issue. Its really irritating. I am using windows7.

    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Press the '''Alt''' or '''F10''' key to bring up the tool bar.
    Followed by;
    Windows; '''Tools > Options'''
    Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

  • Does anyone maybe know why the new Macbook pros don't have iWeb and how i can install it. My Macbook already came with the iLife thing, but it seems to only have iMovie, iPhoto and Garage Band. is there any way that i can install iWeb?

    Does anyone maybe know why the new Macbook pros don't have iWeb and how i can install it. My Macbook already came with the iLife thing, but it seems to only have iMovie, iPhoto and Garage Band. is there any way that i can install iWeb?

    Apple discontinued iWeb. That's the case for over a year now.
    Topics in this forum will tell you that in order to install iWeb you have to find a copy at eBay, Amazon and similar places.
    Or here

  • HT201269 Why the new iTunes can't detect any of my devices(iPhone & iPad)?

    Why when I connect my iPhone or iPad the new iTunes can't detect it?

    Well, you do not indicate what computer operating system you use, so here are the support documents for both. Choose the one that applies to you.
    Windows:     http://support.apple.com/kb/TS1538
    OS X:     http://support.apple.com/kb/TS1591

  • Why the new QuickType in iOS 8 disappear suddenly?

    Early today, the new QuickType feature in iOS 8 on my iPhone 5 worked well. However, later, this new impressive feature desapperaed all of a sudden. I cannot figure out why.

    The same thing happened to me. I simply went to settings general, keyboard and then togled the on and off the predictive button. Went back to Messages and quick type reappeared. In fact I'm using it now.

  • Why the new Discussions format is so wrong

    This topic is not for what we like or don't like about the new discussions format, nor about what works and doesn't work. It's about philosophy.
    Why do people come to the Apple Discussions? Why are the Apple Discussions so popular? What will the new format change?

    Why do people come to the Apple Discussions? Why are
    the Apple Discussions so popular? What will the new
    format change?
    I believe there are at least three reasons:
    - To ask a question / get an answer
    - For discussion
    - For community
    The new format focuses on the question/answer format only. It discourages discussion and destroys community.
    Community is what makes Apple great. When someone becomes an Apple user they join a community.
    The old Apple Discussions was a place for discussions, as well as for question/answer. The community joined together to help, to answer questions. It was a team effort.
    The new format makes Apple Discussions like many other discussions, not a discussion, but a question/answer depot. Two people can be helpful, one can give the answer. End of discussion. End of community.
    The old format encouraged partnership, the building of a helpful community.
    The new format is individualistic: Question - answer - who's next?
    Think about other help forums you have posted in. They are question/answer based. Once you have the answer to your question, do you go back? Rarely.
    Why do the "experts," the ones with answers, come to the Apple Discussions? To help people, and also for community. The new format discourages discussion. With community gone, people will leave and look for community elsewhere. Then who will answer the questions?
    The new format focuses on the question/answer format only. It discourages discussion and destroys community.
    Do you agree? Disagree?

  • I was wondering if anybody can tell me why the new Apple iPhone 5 is $600 AUD/US more expensive in Australia than the US??? Please explain somebody?

    I was wondering if anybody can tell me why the Apple IPhone 5  is $600 US/AUD more expensive in Australia than in the US!
    thanks

    Thanks for the reply - I still know that this issue is also relevant for so many other apple products which don't involve cellular providers.... I think Australians are tired of paying so much more for things than in the US and other countries.  It used to be explained by the poor Australian dollar but that doesnt exactly work when we are over parity with the US dollar and have been for a while now....

  • Why the new playbook 2.0 os doesn't support asian languages again? so stupid!

    i found the new 2.0 os is not supporting any of the asian languages such as chinese, japanese text again... so stupid, what rim has in mind for marketing direction?

    If I read Neal Gafters article right, the migration compatibilty is this:
    Point 4 would have been possible, but then every core class that is generic now, would have to be a new class with the same functionality.
    So when you used to use new ArrayList(), if you want to use generics you would have to use new GenericArrayList<String>();.
    It is a different class from ArrayList and which would be reified (sp?) to a new StringArrayList() (generated) class by the compiler.
    So if you have a library with a method which used to except a List as parameter, your new generic version of the library would now require a GenericList insetad. Someone who uses your library cannot just drop in your new version without changing all his Lists to GenericLists.
    With erasure he can, but gets type safety warning instead, fixable by only adding the generic type to his lists (new ArrayList() to new ArrayList<String>()).

  • HT1399 I have 11,000 songs on my iPod Classic but since downloading the new itunes software I am having trouble locating where I can view my full collection of songs. Can anyone tell me where I can view these please?

    ! have 11,000 songs on my iPod Classic but since downloading the new version of itunes software I am having trouble locating where I can view my full collection to edit/delete. I can add music and see the additions cannot see the full list. Can anyone tell me where I can view them please?

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • Why the new Android permissions requirements for AIR 4.0.0.139?

    When starting to update my AIR app to 4.0.0.139 on my Android devices through the Google Play store I found a number of new permission requirements.
    They are:
    New: Approximate location
    New: Receive data from Internet
    New: Prevent tablet from sleeping
    New: Find accounts on the device
    So does this mean that flash apps not using a captive runtime will no longer have to directly request these permissions from the user because the AIR libraries have already acquired them? This could be misleading to the user who installs an AIR app that will have far greater permissions that what they thought they were approving.
    My big question is why are these permission needed? As a developer I submit the Android permissions I need for my app into the application descriptor file. So why does AIR itself need all these extra permissions?
    As a consumer i've started finding too many apps that want access to run at startup, know my location, or contacts, or accounts, with no apparent reason for it. I've been uninstalling such apps or refusing to update them further. Does Adobe worry that other consumers may follow suit? Does the AIR libraries really need these permissions? Why?
    Thanks in advance.

    This is typical of Adobe and how they have always been. They do whatever they want with absolutely no respect or consideration for the user. Not only did they add several new permissions, but they don't have any way to contact them about Air. The email listed on the Google Play page isn't valid, there's no contact info listed on the website, and if you try to submit a question to them Air isn't even an available option. It just goes to show how little they care about the users of their products. And then when someone like yourself goes to the trouble of asking them about it the only way possible, they ignore the question. Which says they don't care, they're hiding something, or both. In any case, I've always hated Adobe and steered clear of their products as much as possible because of this behavior, and I will continue to do so. I won't be letting this app have all these permissions without so much as an explanation why, so I'll be uninstalling it and just won't use any apps that require it, which to my understanding is mostly games, so I'll live. I just hope their disdainful attitude toward their users catches up to them and they crash and burn. We're on the right track with HTML5 moving away from Flash.

  • Can anyone explain why the new blackberrys don't come with a holster?

    I'm just looking to upgrade my phone on contract through vodafone. I have been looking at the Z30 model for a few weeks. When i got my current phone (White Bold 9900) I recived a leather holster that came with the phone.
    I would like to know a reason why blackberry have decided to stop the holsters. I have always seen blackberry as a luxury device and the holster was always part of that reason. I would of thought since blackberry started to struggle to keep up with the lastest competing phones, they would be trying harder to keep their existing custom as much as possible.  
    I feel like blackberry has forgotten they were once seen as the luxury phone only a few years ago.
    Could anyone please explain why they have stopped it? thanks

    The seller, the mobile provider, decides what all accessories go in the box. And yes, I would bet the belt holster was or is the least popular case. Although it's the one I use.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • My bank uses FinanceWorks.  I can't get it to work on my MAC which uses 10.10.2 Yosemite

    I just upgraded my iMac to yosemite 10.10.2.  Now the app my bank uses, FinanceWorks, doesn't work.  Anyone know how to fix this?  Thank you!

  • Can I use Mac Book at same time as watching something on Apple TV?

    Hi I recently purchased a Mac Book Pro along with Apple TV. I purchased a movie via Lovefilm (UK based site) on a "watch it now" basis.  I then proceeded to watch using Airplay and "mirroring".  However doing it this way I quickly realised that while

  • Bridge requests

    These issues may have been added/changed in CS3 Beta, or have already been suggested (I did look), but... In Bridge, add the ability to save all keywords w/o quitting Bridge. Or, have Bridge automatically save them on the fly in case Bridge/computer

  • Adobe Photoshop Scratch File

    Hi Guys, I just installed Adobe Photoshop and when trying to start the application I get this error (Mac OS X Lion): "Could not open a scratch file because the file is locked or you do not have necessary access privledges. Use the 'Get Info' command

  • Safari stops scrolling pages

    Since recently upgrading safari and of course the OS to Mountain LIon, I have discovered a quite serious bug. Randomly safari stops scrolling pages. This has so far happened 3 times in the last week or so. You can open/close/view pages, but even thou