FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-18-2008, 05:27 PM
buters
 
Default export and Tomcat?

Hi,

Earlier another person set $JAVA_OPTS as
"=-Dartifactory.home=/srv/artifactory-1.2.5"
I would change it with "export
JAVA_OPTS=-Dartifactory.home=/srv/artifactory-1.3". If I execute echo
$JAVA_OPTS, I see "=-Dartifactory.home=/srv/artifactory-1.3". Also it is
correct. But tomcat sees it as earlier i.e.
"=-Dartifactory.home=/srv/artifactory-1.2.5" (info from localhost.log). I
insert "export JAVA_OPTS=-Dartifactory.home=/srv/artifactory-1.3" in
.bashrc, but it was unsuccessful. My $JAVA_OPTS points on
-Dartifactory.home=/srv/artifactory-1.3, but tomcat won't watch it so. Where
should I it change, that tomcat can find it?

Thanks beforehand,
regards, buters
--
View this message in context: http://www.nabble.com/export-and-Tomcat--tp18534202p18534202.html
Sent from the ubuntu-users mailing list archive at Nabble.com.


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-19-2008, 11:45 AM
kapil singh
 
Default export and Tomcat?

Hello,

unset the variable first using command

$ unset JAVA_OPTS

and, remove it from your .bashrc file

Restart, the system and then check what its value now. ( by echo
$JAVA_OPTS)
if it returns any value, then
check the file /etc/profile, if this variable exist here, then replace the
value of variable with your new variable.
i.e,
export JAVA_OPTS=-Dartifactory.home=/srv/artifactory-1.3
(otherwise, put this line to the end of /etc/profile).
(remember that remove the variable setting from your local .bashrc file.)

now, reboot the system. if you don't want to reboot.then run

export JAVA_OPTS=-Dartifactory.home=/srv/artifactory-1.3

i think it will work.

But, if you will find any problem then,
check for Tomcat configuration files (it may be declared there. )

Thanks and Regards
Kapil Singh Kushwah
Linux System Administrator
Hotwax Media Inc




buters wrote:
>
> Hi,
>
> Earlier another person set $JAVA_OPTS as
> "=-Dartifactory.home=/srv/artifactory-1.2.5"
> I would change it with "export
> JAVA_OPTS=-Dartifactory.home=/srv/artifactory-1.3". If I execute echo
> $JAVA_OPTS, I see "=-Dartifactory.home=/srv/artifactory-1.3". Also it is
> correct. But tomcat sees it as earlier i.e.
> "=-Dartifactory.home=/srv/artifactory-1.2.5" (info from localhost.log). I
> insert "export JAVA_OPTS=-Dartifactory.home=/srv/artifactory-1.3" in
> .bashrc, but it was unsuccessful. My $JAVA_OPTS points on
> -Dartifactory.home=/srv/artifactory-1.3, but tomcat won't watch it so.
> Where should I it change, that tomcat can find it?
>
> Thanks beforehand,
> regards, buters
>

--
View this message in context: http://www.nabble.com/export-and-Tomcat--tp18534202p18543788.html
Sent from the ubuntu-users mailing list archive at Nabble.com.


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 07:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org