The tag has no usage guidance.

learn more… | top users | synonyms

8
votes
1answer
352 views

How to avoid /usr/bin/env being marked in systemd logs as the executable

I've created a systemd service to run a tomcat application based on the information found in this article. The short version of the article recommends avoiding the shell script wrappers, and executing ...
4
votes
3answers
22k views

How can I redirect ports 80 and 443 to 8080 and 8443 with iptables?

I'm looking at the documentation for a Tomcat 6 webapp called DSpace, specifically in regardds to running Running DSpace on Standard Ports (80 for http:// and 443 for https://) I am trying to use "...
4
votes
2answers
822 views

Not able to view server-status

My application is deployed on ROOT folder in tomcat and it is connected to apache using proxy. Ex:- ProxyPass / ajp://192.168.0.xx:8011/ ProxyPassReverse / ajp://192.168.0.xx:8011/ When I fire http:...
3
votes
3answers
3k views

tomcat 8 will not start after initial install

I am trying to install tomcat on a new CentOS 7 virtual machine. I successfully installed apache httpd, and am able to get the apache test page when I type the ip of the virtual machine into a web ...
3
votes
1answer
562 views

chkconfig does not support my script

I have looked and looked and none of the threads I have found are helping. We have a tomcat startup script that we modified slightly for our needs. It works fine on Centos / redhat 6 boxes, but does ...
3
votes
1answer
272 views

IPTables Port Redirection Should Have Broken Apache But Didn't

I have a Load Balance set up in Apache httpd: <VirtualHost *:80> DocumentRoot /var/www/html ServerName xxx.xxx.xxx.com ProxyRequests Off ...
3
votes
2answers
5k views

Java version for Tomcat

I want to run my Tomcat with Java 7 but all I found about configuring it doesn't work. The management interface of Tomcat shows 1.6.0_24-b24 as Java version. The JAVA_HOME variable is empty. % echo $...
3
votes
1answer
571 views

httpd doesn't serve relative url from tomcat, why not?

In a CentOS 7 server, I am trying to set up httpd to act as a reverse proxy for tomcat. I have httpd running perfectly in the sense that I type in http/mydomain.com and it serves up static content ...
3
votes
1answer
7k views

Can't start Tomcat on Ubuntu

I installed Tomcat on Ubuntu. Then I created a new user. Then did: liferay@web-svr:~/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/bin$ chmod +x *.sh Afterwards, I added JAVA_HOME and PATH in bash like ...
3
votes
0answers
19 views

Tomcat, sql, kerberos, oh my!

I am working on setting up tomcat 8.0.35 on ubuntu 16.04 with Oracle Java (not openjdk) 1.8.0_91-b14 to use kerberos authentication when authenticating to our Microsoft SQL database. The issue I am ...
2
votes
3answers
499 views

How do you set a program as a service in Linux (Debian) but have it switched off by default?

When you install Alfresco, it gives you an option of having it installed as a service or not. If you install it as a service, the service starts up on booting but since it's using Tomcat it's too ...
2
votes
1answer
302 views

Make sense of this strace output

Can anyone make sense of this strace output? [pid 25302] read(34, "}B\311\204\n\250\347$\220\266kRb\304a^^\2504\303k\235\227T\223\16\231\306\277\254\256\306", 32) = 32 It's from a Linux system ...
2
votes
1answer
853 views

Run an application under Tomcat

I have an application that needs to run under Tomcat. I have installed Tomcat but I don't know where can I put the directory of the project.
2
votes
1answer
5k views

AUTHBIND: Unable to authbind with tomcat 6 on redhat host

I have a redhat linux server with tomcat 6.0.39 installed. Before I deploy any web application and open my server to the public I would like to learn how to run tomcat startup script with my tomcat ...
2
votes
1answer
740 views

Running Apache with Tomcat

I was wondering if it's possible to run a Tomcat server within Apache whilst also running PHP servers under other virtual host instances? And if so, how is this done? Basically, I'm trying to run an ...
2
votes
1answer
40 views

Does linux verify server certificate against crl by default?

Let assume that I have a Linux based server running apache or tomcat with a web server certificate created by a trusted authority. The certificate has embedded distribution point of the crl. The ...
2
votes
2answers
5k views

Tomcat won't use setenv.sh

I have Tomcat installed as service. It's CATALINA_HOME and CATALINA_BASE are same: -Dcatalina.base=/usr/share/tomcat7 -Dcatalina.home=/usr/share/tomcat7 I added setenv.sh script to /usr/share/...
2
votes
1answer
587 views

Why store program code in /var/cache?

I have inherited a Java / Tomcat stack, running on Ubuntu. It has crashed and I am trying to restart it. The program code seems to be using a config file which I have found on the file system. The ...
2
votes
4answers
155 views

any feature on linux like Perfermance Counter on Windows servers?

I have a tomcat web application, when invoking an unstable remote API, I want to get realtime http request time at any time. On windows server, I can use Performance Counter, does centos provide ...
2
votes
1answer
297 views

tomcat: symbolic link in a loop

linux-trra:/usr/local> $CATALINA_HOME bash: /home/anisha/openGTS17Nov/apache-tomcat-7.0.32/: is a directory linux-trra:/usr/local # ln -s $CATALINA_HOME tomcat linux-trra:/usr/local # file tomcat ...
2
votes
1answer
1k views

How to redirect Tomcat logs back to catalina.out instead of syslog?

In the release notes for openSUSE 13.1, developers proudly stated that Tomcat logs are no longer being written into catalina.out, but rather written to syslog. I saw similar behaviour with new ...
2
votes
1answer
2k views

How to checkout Tomcat by SVN?

I try: svn co http://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk/ But received error: svn: E170000: Unrecognized URL scheme for 'http://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk' Is it ...
2
votes
2answers
3k views

Virtual hosting a tomcat webapp in Apache on RHEL 5.0

I am in a hosting fix! I have developed a web app for my organisation that allows sharing, interacting, etc. I want to DEPLOY IT ON LAN. BUT... I don't want the end user to type: 10.21.34.56:8080/...
2
votes
0answers
28 views

How does one run Multiple parallel Tomcat instances in CentOS 6?

I can install them to different directories, and I think I can make them use different ports, as well. I'm going to add 10000 to each port number for the second installation, and 20000 to the third ...
2
votes
0answers
1k views

Tomcat unable to create file in dir owned by same group

I have a server running Tomcat, and I need Tomcat to create a file in a particular folder. Tomcat (technically a Java app) runs as the user 'tomcat', as evidenced by top: #top 1251 tomcat 20 0 ...
2
votes
2answers
8k views

Running tomcat under tomcat service account in CentOS

I'm installing tomcat on a CentOS box for use as an application server. My system admin created a tomcat user service account under which to run tomcat. I'm generally following instructions on this ...
2
votes
1answer
913 views

Debian package of Tomee plus

I'm looking for Debian package of Tomee plus but I have not found anything. Also, I would like to know if it is possible to download the package( on windows) then be installed on Debian or I have to ...
2
votes
1answer
356 views

GlassFish/Tomcat security issue between domain users in linux server (alternate docroot issue)

Let's suppose we give to different users(clients) different domains (one domain for one user) in our glassfish application server for their work. This glassfish works in centos 6 server. Every user ...
1
vote
2answers
641 views

How to determine what user was used to start Apache Tomcat last (or last few times)

On a Mac, or a Linux Tomcat install, how do I determine what user was used last to start Tomcat? Is there information in the logs somewhere to that effect? Assume that startup.sh and shutdown.sh are ...
1
vote
1answer
3k views

Why is apache giving DNS lookup failures?

A CentOS 7 web server has tomcat serving up war files behind an apache httpd reverse proxy. This works perfectly when the WAR files are all server-side code. But when client side code (AngularJS in ...
1
vote
1answer
33 views

how can I schedule a custom script to run whenever I restart a service

I wish to know how can I schedule a custom script to run whenever I restart a service. My use case is that I have to run several commands whenever I restart my Tomcat Service. I want to know if there ...
1
vote
1answer
2k views

ssh with sudo doesn't start services

I want to run command with sudo through ssh without disabling "requiretty" sudo option. According to /etc/sudoers: # # Disable "ssh hostname sudo <cmd>", because it will show the password in ...
1
vote
2answers
53 views

I am not able to connect tomcat in my centos browser but it starting in terminal

When I typed ./startup.sh i am getting: Using CATALINA_BASE: /home/ashok/apache-tomcat-7.0.56 Using CATALINA_HOME: /home/ashok/apache-tomcat-7.0.56 Using CATALINA_TMPDIR: /home/ashok/apache-...
1
vote
1answer
2k views

What is rotating Tomcat log files?

One of our servers has Alfresco installed, and this is the content of /opt/alfresco/tomcat/logs: -rw-r--r-- 1 root root 4.1K Jun 29 10:41 catalina.2015-06-29.log -rw-r--r-- 1 root root 352 Jul 1 ...
1
vote
1answer
167 views

Maintain two tomcat installations with apt-get

On our server we have two tomcat8 installations on debian wheezy. One tomcat was installed via apt-get install , the second instance was then just copied from the first installation. But this makes it ...
1
vote
1answer
45 views

Confusion regarding generating self signed certificate for application portal developed using liferay

We have a Application Portal developed using Liferay bundled with tomcat. There are two application servers running liferay and we use httpd as a front-end which forwards requests to application ...
1
vote
1answer
646 views

How to start java application after machine reboot?

I'm wondering if there is easier way to start java application (just tomcat server) after machine has been rebooted? Possible answers: Add the application as a service and then add it using ...
1
vote
1answer
28 views

Tomcat (probably) closes before ROOT directory is entirely populated

on a Ubuntu 12.04 machine, Tomcat 7.0.22 , I have a bash script that copies a ROOT.war file to a specific library, at which point Tomcat deploys it to a directory called ROOT. A few lines later, the ...
1
vote
1answer
38 views

How to export a bks keystore on debain 7.9 wheezy

I need to generate a keystore.bks file to use for android development. I cannot figure out how to export a bks keystore without using a GUI tool. I have server space on Google Compute Engine which I ...
1
vote
1answer
506 views

How do I quickly setup Tomcat server with Java web application on Linux (Debian)?

I was recently setting up a web application running on Tomcat on Windows. What I had to do was the following: Unpack Tomcat in any folder I wanted Copy folder with my web application in ./webapps (...
1
vote
1answer
163 views

If I set java bin PATH Dockerfile Jar Command runs but tomcat doesn't

I'm creating a Docker file that FROM's the official TOMCAT 8 docker file and also seeks to use the jar command to extract content from a WAR file so I install openjdk-7-jdk. If I don't set the PATH ...
1
vote
1answer
200 views

Rotating catalina.out with timestamp format using logrotate. like catalina.$date.out

I am using logrotate to rotate catalina.out, but after rotation the filename is like catalina.out.1.gz. I want it to rotate the file with a timestamp in its name, like: catalina-2015-08-10-2337.out....
1
vote
2answers
2k views

Creating Group and User for Tomcat RHEL/CentOS

I newbie I want to create an user for my Tomcat installation, but I was viewing multiple options: # groupadd tomcat # # useradd -g tomcat -d /usr/local/tomcat tomcat # useradd -g tomcat -c "Tomcat ...
1
vote
1answer
916 views

tomcat6 start failed, but the service status is running

I've installed tomcat6 on my CentOS. It does not work. # service tomcat6 start Starting tomcat6: [FAILED] # service tomcat6 stop Stopping tomcat6: ...
1
vote
1answer
71 views

Assistance applying poorly packaged patches?

I manage a handful of servers running the various roles of a Ahsay online backup solution. A few times a year the software is updated and I need to apply patches on my servers. Annoyingly the ...
1
vote
0answers
11 views

Adding fcontext to unconfined application

This feels like the most horrid twist of fate ever... A user is having me setup tomEE (apache-tomee-jaxrs-1.7.4). This is on a RHEL6 machine. I've installed from the tarball available from apache's ...
1
vote
0answers
225 views

How to get Tomcat7 to run as daemon on CentOS

I am trying to implement SSL for Tomcat on CentOS 6.7. It's not a tick nesting issue, nor does SELinux apply, as other posts address - at least I don't think they do. The server.xml file has entry: ...
1
vote
0answers
104 views

Memory Leak trackdown

I have a server running Red Hat Enterprise Linux Server release 6.7. The server runs a number of java processes including a tomcat server with nginx webserver. The server has 12 GB of ram allocated ...
1
vote
1answer
246 views

Tomcat Homepage (localhost) doesn't showup

Assuming, I've successfully installed Apache tomcat in RHEL 7 followed almost similar instructions in here, except that I've tomcat8 user, assigned permissions and generating a keytool as $JAVA_HOME/...
1
vote
1answer
76 views

Apache Tomcat and Httpd - Sharing common web publication folder - CentOS

Suppose: The Httpd's Web publication folder is assigned according: Edit /usr/local/httpd/conf/httpd.conf file: DocumentRoot "/usr/local/WebFiles/Html" <Directory "/usr/local/WebFiles/Html"&...