Server :: Apache HTTP And Tomcat - How To Process Java Servlets

Jun 8, 2011

Fedora 14. I have Apache HTTP Server installed and running fine. I am interested in doing some java servlet pages. Am I correct that in addition to the above I need to install another server - for example Tomcat - that knows how to process java servlets? I see that yum has tomcat. And that Tomcat is not an add on to the HTTP Server, but an alternative to it? i.e I start one or the other?

View 2 Replies


ADVERTISEMENT

Programming :: Java Servlets: Setup The Server Side Configuration On Fedora Web Server?

Jan 4, 2010

If you hadn't guessed it from my last 3000(ish) java-related posts, I'm a Java n00b writing a Java Applet for a work project. I got to the part was I was about to write the applet code that would send HTTP requests to my CGI scripts. But I read some paragraphs in a book praising Java servlets as better that CGI because they are easier to use and give much better performance server side. My server load isn't very big, though, and I was wondering if it would be worth taking the time to learn about Java servlets and how to set up the server side configuration on my Fedora web server.

View 3 Replies View Related

Server :: Benchmarking Tomcat Vs Apache

Jun 4, 2009

I have used same Hardware and OS platfrom for web server benchmarking and i have used similar php and jsp scripts for Apache and Tomcat. For this testing i have used apache ab benchmarking toolFrom this statistics i would like to clarify the performances about Apache and Tomcat.

1. why Tomcat have taken too much of time to finish this 10 million requests to compare with Apache?
2. why this huge different for "Request per Second"?
3. To Tomcat i have increased multi thread level 300 and JVM memory usage upto 2048mb(but performances not increased), rather than these, is there any other performance tune-up settings for Tomcat?
4. from these statistics, can i come to the conclusion that apache is the best?
5.do u feel that ab tool favouring to Apache?

View 1 Replies View Related

Server :: How To Connect Apache To Tomcat?

May 1, 2011

I'm configuring a web server using Apache and Tomcat. I use Apache 2 and various instances of Tomcat5 and Tomcat6..I try that Apache serves the static data and tomcat the dynamic (Apache receives all requests, sending tomcat only the dynamic)I see that Apache and Tomcat can be connected using http or ajp Can any tell me:
- What connector should I use: ajp, http,...?
- How can I say Apache to serve the static data and Tomcat the dynamic?Due to I have many instances of Tomcat, connectins http and https, https with client certificates, and due to the port configuration:
- Is there any way to configure Apache-tomcat without the use of ports in tomcat (a differect connector)?

View 3 Replies View Related

Server :: Install Apache Tomcat

Mar 16, 2010

I need to install apache tomcat on centos 5.3...How can i do it

View 4 Replies View Related

Server :: Mapping Apache To Tomcat

Jul 3, 2010

we have configured snv in our server but when we tried to access our svn folder from client its saying path not found error.This is because apache is mapped to tomcat so when we tried to access svn by default it looks to some other path and displaying path not found error.My question is how to restrict apache from forwarding its request to tomcat or else how to stop the tomcat service. I am using centos and i tried with /etc/init.d/tomcat5 stop but it is not getting stopped.

View 3 Replies View Related

Server :: Performance Tunning Of Apache-tomcat And Jboss Application Server?

Jul 2, 2010

Can anyone tell me in performance tunning of apache-tomcat and jboss application server?when I deploy some application in apache-tomcat the performance is say 100 users per second and incase of jboss it is even worst (35-40 users per second)i want to improve my performance 1000 uesrs per second..

View 1 Replies View Related

Server :: Single Wildcard Certificate For Apache Httpd Server And Tomcat?

Feb 10, 2010

I have a requirement of using a wildcard certificate for 5 subdomains running under apache httpd server and 1 subdomain under tomcat.Is there any possibility of using the single wildcard certificate both in tomcat and apache

View 3 Replies View Related

Server :: Apache Tomcat Installation And Configuration

Apr 28, 2010

If any one knows about Apache-Tomcat installation.

View 5 Replies View Related

Server :: How To Finalize Apache Tomcat Setup

Nov 16, 2010

I have FC13 with apache up and running. I need to run tomcat to do some dynamic web with eclipse, I checked my setup and noticed that I already have tomcat5 in add/remove software as installed bu can not find any etc/tomcat and not able to find how to test. I went through the FC13 documentaion, nothing is mentioned abou apache tomcat setup finalizing and testing that ships with FC13 it works. I googled and found some docs around setup tomcat6 or tomcat 5 but not how finalize the one shipped with FC13.

View 2 Replies View Related

Server :: Installation Of Apache Tomcat 5.5.27 In CentOS5

Jan 4, 2010

I have installed apache tomcat 5.5.27 in centos5. I edited the server.xml file also. The startup.sh and shutdown.sh commands are working fine. But tomcat is not opening in the browser. Can you suggest me something or tell me the steps involved in installing tomcat. Is admin.tar.gz of apache tomcat required for its working?

View 1 Replies View Related

Server :: Updating Apache Tomcat On RHEL4

May 15, 2011

I installed very old the rhel package Apache Tomcat/5.5.20. I want to update it 5.5.33 or Tomcat6. Do you have the update for redhat?

View 1 Replies View Related

Software :: Run Apache On One Server And Connect To Tomcat On Another?

Jan 3, 2011

Right now I have Apache and Tomcat running on the same server. For reasons I won't go into I'm experimenting with putting Apache on a separate server, and installing Tomcat on multiple back-end servers. This isn't a load-balancing scenario as each Tomcat container on the back-end servers will be providing a separate application/responding to a different url. In a typical setup (everything on one box) the configuration file (we use workers.properties)sets what appears to be parameters such as the location of tomcat and Java. For example, here is the current output of workers.properties:Quote:

workers.tomcat_home=/usr/share/tomcat6/
workers.java_home=/usr/lib/jvm/default-java
ps=/

[code]...

View 3 Replies View Related

CentOS 5 Server :: Apache-Tomcat Not Working?

Feb 5, 2009

I've installed Apache Tomcat--6 and even jdk1.6.I've even created a tomcat.sh file to start the serverautomatically and it includes the Environment variables also ($CATALINA_HOME & JAVA_HOME) for automatic startup.Next when i'm using http://localhost:8080 to call the server it shows unable to connect.I've tried changing the port no of tomcat in server.xml file. but still its not working.

-->Then i tried using--telnet localhost comand--it shows Trying 127.0.0.1...

telnet: connect to address 127.0.0.1: Connection refused

telnet: Unable to connect to remote host: Connection refused

Here I'[m stuck i don't understand how do i make the localhost work.

-->If I'm giving telnet localhost 25 the sendmail server is working.But the 80 and 8080 ports are not getting configured.

-->I've tried adding the port and its name in /etc/services file but still its not working.

-->When I'm giving the command--/sbin/chkconfig --list--->Its shows: xinetd based services:

...
...

telnet on.what should i do to get my tomcat server work properly.

View 2 Replies View Related

Server :: Name Based Virtual Host For Apache And Tomcat

Jul 22, 2010

I am having two domains. for ex: www.example1.com and www.example2.com. These two domains need to be hosted under one ip. Yes by configuring name based virtual host we can do that. But, my question is my first domain(www.example1.com) need to be hosted by Apache web server, and my second domain(www.example2.com) need to be hosted by Tomact. Is it possible to configure name based virtual host for a scenario like this.

View 6 Replies View Related

Server :: Using Apache As A Front End To A Running Tomcat Instance?

Jul 20, 2010

I am having a problem.I use Ubuntu 10.04 server edition.Two computers on LAN one with Public Ip A other with local (Class C IP)say it BWith a third computer in same subnet I can access a TomCat application running on B as http://Ip of B:8080/applicationI want to use A as a Reverse Proxy for this application to be reachable from internet.So on Googling I came across some thing known as mod_ajp I enabled that on my Server A asa2enmod proxya2enmod proxy_ajpa2enmod headersbut after that I am not able to understand as how do I define vhost to be able to forward HTTP request which come on A as www.myserver.com/appto B which I can see internally as http://Ip of B:8080/application so Tomcat on B handles this.

View 4 Replies View Related

Server :: MySQL & HTTP Process Allocation To Separate Processors

Sep 29, 2010

I have 2 CPU 8 GB RAM server running MySQL & HTTP server with apps using LAMP architecture. Since last few days we are having some performance problems.While looking at the problem i came to know both mysql and http are almost taking 100% cpu time of a single processor and the second processor is free. redirecting the mysql load to one cpu and http load to the second one? Is it possible? If so how to do it?

View 1 Replies View Related

Server :: Apache Stops Responding To HTTP Requests Every Few Days?

Dec 28, 2010

I've had a VPS running Ubuntu 9.10 x64 server, hosting 3 websites of mine for a few months now. This problem has been happening for a while. Every once in a while, probably every 2 or 3 days, I'll wake up in the morning, and apache won't be responding, no web pages will load. /etc/init.d/apache2 status, reports that apache is functioning properly. Every time I simply have to restart the daemon and things run fine for another few days.

I thought maybe it was a memory issue, so I lowered the MaxClients in the prefork module from 50 to 30 a few days ago, but the same thing is still happening. My VPS has 512MB of ram, burstable to 1GB, and according to Virtuozzo, there was only one night of high traffic where I even came close to that soft limit. I've checked my syslog, and there's absolutely nothing in there about apache. I've checked apache's error.log as well, and there's nothing in there that would indicate a problem either.

View 3 Replies View Related

Server :: Start Download Files Through Http Protocol With Apache 2?

Jul 2, 2010

I'd like to permit to start download file when I click over some links. How can I to start download files through http protocol with apache 2?

View 5 Replies View Related

Debian Configuration :: Both HTTP And HTTPS On Same Server? (Apache Virtual Hosts)

Oct 30, 2015

How to best manage both http and https pages on the same apache-server without conflicts. For example, if i have both 000-default.conf and 000-default-ssl.conf pointing to mydomain.com, and don't want users who visit mydomain.com without specifically type the https-prefix to be redirected to the https-page - how to handle users using browserplugins such as https-everywhere etc?

Another option would be to create a subdomain ssl.mudomain.com and have users who want to reach the ssl site to have to type ssl. I have tested several things with https everywhere enabled in my own browser, and it seems really hard to make this working the way i want, in one way or another i always end up getting redirected to the ssl-site automatically.

The reason i need this to work is because i run one site that i don't care much about SSL, that is the "official" part of that site, and i also host some things for friends and family on the SSL-part. This would not have been a problem if it wasn't that i use self-signed certificates for my ssl-site and the major user become afraid when a certificate-warning pops up in their browser and therefor leave the site.

View 2 Replies View Related

Server :: Apache Reverse Proxy Slow In Serving HTTP Requests

Mar 18, 2010

A Linux (CentOS5.3) server is setup with apache reverse proxy. The reverse proxy server is opened to outside and an internal server is mapped to ProxyPass configuration. SSL certificate is also installed on the Apache reverse proxy server. The problem is, it is extremely slow in serving http requests through reverse proxy. There is no problem with server resources or bandwidth. When the internal server is directly accessed through Internet, there is no delay. The backend server and the reverse proxy server are also on the same switch (same subnet). When I searched the Net, there were recommendations to enable cache in Apache. I did so as follows in httpd.conf.

<IfModule mod_disk_cache.c>
CacheEnable disk /
CacheRoot "/var/cache/mod_proxy"
CacheDirLevels 5
CacheDirLength 3
</IfModule>

But still there is no progress. Do I want to enable cache in ssl.conf too? Or is there any other workaround to speed up Apache reverse proxy. Is there a way to check that caching is happening?

View 4 Replies View Related

Server :: Send Files From A Unix Using Http / Curl To A Webserver Running Apache

Jun 9, 2010

I'm trying to send files from a Unix server using http/curl to a Linux webserver running Apache. I get the following PUT error message when and the file does not send:

<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method PUT is not allowed for the URL

View 2 Replies View Related

Server :: Config Apache Server To List Php, C/c++, Java Files As Regular Txt On Website?

Feb 2, 2011

I try to config my apache server to list all my files: c/c++, php, java files, like the txt file on my server,

e.g /var/www/mydomain/pub

i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name,

if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file,

Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?

View 1 Replies View Related

Server :: Config Apache Server To List Php / C/c++ / Java Files As Regular Txt On Website?

Feb 23, 2011

config my apache server to list all my files: c/c++, php, java files, like the txt file on my server, e.g /var/www/mydomain/pub i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name, if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file, Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?

View 1 Replies View Related

Server :: Css And Java Script Is Broken Zope Running Behind An Apache Reverse Proxy?

Jun 7, 2010

a reverse proxy scenario

Code:

Server A Server B (Zope Application)
Public IP 192.168.1.5

On the first one that is A in Apache vhost file I made

Code:

ProxyPass / http://192.168.1.5:8080/VirtualHostBase/http/192.168.1.5:8080/virtual_hosting/VirtualHostRoot/eduCommons
ProxyPassReverse / http://192.168.1.5:8080/VirtualHostBase/http/192.168.1.5:8080/virtual_hosting/VirtualHostRoot/eduCommons

but the CSS and images on internet which people are accessing are broken while it is running perfectly fine if I access on LAN.

Code:

[URL]

I have checked the documentation page and here also but still the problem persists.Also on LAN if the same is accessed like this

Code:

[URL] then CSS and Java script is broken. It is an eduCommons CMS. Which I am trying to access via internet.

View 1 Replies View Related

Fedora :: Cannot Run Tomcat Apache 5.5 On 14?

Dec 19, 2010

i have changed the permissions of tomcat folder stiill firstly,i did this

[whacko@localhost local]$ /usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat

[code]...

View 14 Replies View Related

General :: Tomcat Behind An Apache

Jan 20, 2011

I am trying to set up an Apache frontend server followed by a Tomcat server. Tomcat needs to run as an https service. I will have two services, both accessible independently, if desired.This login module is a webapp, running inside Tomcat.

Question:
Do I configure the Tomcat on port 8443 (I want to run it as a non-root) and do nothing with Apache or do I run on the standard port 8080 and configure Apache?
If Tomcat, is it server.xml? (connector?)
If Apache, is it httpd.conf?

View 1 Replies View Related

Ubuntu Servers :: Running Tomcat Using Java VM Option

May 31, 2010

I'm trying to get a Tomcat server running using the Java VM -server option on Ubuntu Karmic 9.10 (I'm using the official Karmic AMI on EC2: ami-bb709dd2)

I install Tomcat:
Code:
sudo apt-get -y install tomcat6

I set up a bit of configuration in /etc/default/tomcat6:
Code:
JAVA_OPTS="-Djava.awt.headless=true -Xms1024m -Xmx1024m -XX:PermSize=384m -XX:MaxPermSize=384m"

I can start Tomcat with no problems:
Code:
sudo /etc/init.d/tomcat6 restart

However, if I add the -server option into the JAVA_OPTS variable, like so:
Code:
JAVA_OPTS="-server -Djava.awt.headless=true -Xms1024m -Xmx1024m -XX:PermSize=384m -XX:MaxPermSize=384m"

I get this:
Code:
$ sudo /etc/init.d/tomcat6 restart
* Stopping Tomcat servlet engine tomcat6
...done.
* Starting Tomcat servlet engine tomcat6
Invalid option -server
Cannot parse command line arguments

How do I set the -server option correctly?

View 1 Replies View Related

Programming :: Script To Install Java And Tomcat From Tar Files?

Oct 29, 2010

I am trying to write a script where I can install Java and Tomcat from tar file, I don't need to use any rmp files, that's why I am asking if there's a way how to install them.

View 2 Replies View Related

Ubuntu :: Apache Tomcat Setup To Run On SSL

Feb 22, 2010

I want to setup tomcat and apache to run on SSL. I did set up apache to run with ssl and tomcat (wo ssl). Tomcat is on 8081 and apache is on standard HTTP/HTTPS ports. Now I installed JK module and I want to access "host-manager" application on tomcat with ssl, but when I try https://localhost/host-manager/ I get 503 error and when I try [URL]. I get 404 error. Here's my /etc/apache2/sites-available/default conf:


Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory> .....

Here is /etc/apache2/mods-enabled/jk.load:

Code:
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
and here is workers.properties:

Code:
worker.list=worker1
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved