Server :: TOMCAT Redirect A Stopped Application To Another?
Jul 18, 2011
So, I have two application that I've deployed. Let's say:
[URL]
I stopped my application version 14 but I want to create a internal/external link so when the user types the address [URL] , it automatically goes to my newer version application [URL].
Im using SunOS 5.9 and tomcat 5.0.28
View 2 Replies
ADVERTISEMENT
Jun 17, 2011
I have multiple jvm instance of tomcat application on a unix server and its running on different port.i would like to redirect the port and uri.How can i achieve this with the help of apache. i heard we can do it using mod_proxy.
[URL]
Currently when i access http://myapp.xx.com/offer i get 404 error.
one way to achieve this is to rename my exploded app name (offers-service-main) to offer. But i dont want to do that.anyway to achieve it.
This what i have done from my side.
1) installed apache 2.2 with mod_proxy
./configure --prefix=/usr/local/apache2.0
--enable-proxy
--enable-proxy-connect
--enable-proxy-http
2) Added the below config in apache
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /offer http://myapp.xx.com:18120/offers-service-main
ProxyPassReverse /offer http://myapp.xx.com:18120/offers-service-main
But the above configuration dosent seems to be work. Let me know if i need to do anything on the tomcat side.
View 5 Replies
View Related
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
Feb 23, 2011
I have a site [URL] right now what you are seeing is a default Tomcat6 page. I am using mod_ajp as a front end and Apache vhost configuration for same is
Code:
<VirtualHost *:80 >
ServerName mysite.com
ServerAdmin webmaster@localhost
ProxyRequests off
<Proxy *>
Order deny,allow
[Code]....
View 2 Replies
View Related
Jan 9, 2010
I am trying to run my tomcat 5.5 at startup.. I went to System-->Preferences-->Startup applications and entered the command to launch my script: /bin/sh /home/marco/apache-tomcat-5.5/bin/catalina.sh run
But when i restart ubuntu, my tomcat does not run and i dont know where to find the proper logs to see what happened.
View 2 Replies
View Related
Aug 5, 2010
i want to redirect application to file.i m redirecting it by command
konsole -e 'application name' >> applog.txt
but it is not working.
View 6 Replies
View Related
May 14, 2010
How system call internals could be known ? I mean for example if i take the example of write system call of linux kernel, where i can find out the code of write() system call in the kernel source tree ? The problem is write() system call directly write on console.If we want to write the data on some web page then write() system call will not do that ? How to redirect out data from console to application like html/web page?
View 6 Replies
View Related
Aug 18, 2011
I use a small application called bendometer.jnlp. On my desktop running 10.04 it runs fine after opening with "OpenJDK Java 6 Web Start".
I have installed the same application on my brand new laptop running Ubuntu 11.04 and it was running perfectly until yesterday. Yesterday it hung during the startup and since I killed the hung process it has refused to start again. If I now run it in a terminal using the command
Code:
javaws "/home/steve/Music/Bendo/bendometer.jnlp"
I get the following errors
Code:
Unable to use Firefox's proxy settings. Using "DIRECT" as proxy type.
Exception in thread "Thread-2" java.lang.InternalError: Corrupt LRU file entries
at net.sourceforge.jnlp.cache.CacheLRUWrapper$1.compare(CacheLRUWrapper.java:184)
at net.sourceforge.jnlp.cache.CacheLRUWrapper$1.compare(CacheLRUWrapper.java:172)
[Code]....
View 2 Replies
View Related
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
Sep 9, 2009
I have one server with Jboss and Tomcat installed, I have to start these servers manually everytime I do reboot the server.How I could do to start Jboss and Tomcat automatically, when I do reboot the server?
View 1 Replies
View Related
Aug 21, 2010
I've two internet based server ( xx.xx.xx.xx and yy.yy.yy.yy ) The Y server is running VNC server and is responsible for answering to VNC sessions. But I need to hide the IP of Y server so I want X server to be as VNC Proxy and redirect all VNC sessions to Y server.
I guess the best way is to use iptables but actually I can't get it working so
View 4 Replies
View Related
Apr 6, 2010
I have been beating my head for the last few weeks on this problem, (although I have been taking the wrong approach, it seems).
I need a gateway to direct web traffic to three separate servers/domains. I have been trying to do this with both a dns server and , (seperatly), apache server to forward requests. The dns server was a no go, and <i can only get apache to redirect http and ftp.
After Googling this ALOT, I believe that what I need is a gateway server to redirect my traffic to the 3 different servers. I have been reading about using using nat and iptables for this and was wondering if anyone had any advice/suggestions on this. The other thought I had was to use something like pfSense to create the gateway, but I am still reading the documentation, and I am unsure if this approach will work.
View 1 Replies
View Related
Feb 19, 2010
The issue is that my CentOS workstation is in a vlan from where the Intranet's DNS servers are unreachable. For browsing the web there is an ISA proxy server, which I presume resolves DNS for my firefox. However, wget, host, ping and aria2c fail to get any sort of DNS resolution since they're being run from command line.I have exported HTTP_PROXY value, which provides me internet access on console, but,only when I connect using IP address. It fails on name resolution.
My question is:May I redirect the DNS queries to my home PC which would be running a DNS server on a non standard port?I was thinking of putting nameserver 127.0.0.1 in /etc/resolv.conf and then put iptables rule to redirect 127.0.0.1:53 UDP to a.public.ip.address:3535 UDP..I don't know if I am shooting blanks or what, I am not very much aware of this kind of setup.My main need is to provide DNS resolution to console apps.I want to utilize my company's idle bandwidth for bulk downloads, so, using proxy, SSH tunneling through my Home PC is out of question.
View 8 Replies
View Related
Apr 11, 2010
I am stuck with an issue related to domain hosting. Currently i have an application hosted in my own server using a static ip from a service provider. I got a domain name from another domain provider. Everything went in right way till when i click my url in browser using internet through another system. I am able to see my application when i use my ip address, where as when i use my domain name its not working.
[Code]....
View 2 Replies
View Related
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
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
Mar 16, 2010
I need to install apache tomcat on centos 5.3...How can i do it
View 4 Replies
View Related
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
Jan 25, 2011
I have application (WAR format) deployed on tomcat 5.5. I am able to access application using: "http://my_server_hostname/application_base_directory_name/hello.do" for example. I do not want my users to remember or bookmark the full link "http://my_server_hostname/application_base_name/hello.do"). Is there a way that i could have tomcat host it like a website and i can directly get the index page open by simply typing a url (http://hostname) in the browser? if possible, i would like to do it using tomcat only (no httpd connectors or modules).
View 1 Replies
View Related
May 6, 2009
I am trying to setup Tomcat on CentOS 5.2,This is that ive done so far...Installed Apache, which works fine and I get the "Apache 2 Test Page powered by CentOS" Did this
yum install tomcat5 tomcat5-common-lib tomcat5-jasper tomcat5-jsp-2.0-api tomcat5-server-lib tomcat5-servlet-2.4-api
View 3 Replies
View Related
Jul 23, 2010
I should have caught this during the upgrade, I saw the potential problem but failed to write it down. All my applications served by Tomcat fail to load. Catalina logs show the following error for each app. Error deploying configuration descriptor msgboard.xml The complete error for an individual application is
[Code]...
Again, during the upgrade a warning popped up that each app would need to be spelled out in some configuration file SOMEWHERE because of a change in security! Would someone be so kind as to direct me as to where and how this would be accomplished. I apologizes for not being able to find this out on my own but have looked and can't find it. I'm pretty sure anyone proficient with Tomcat on Linux will know what and where these changes need to be made. Or if anyone knows if and where there is a log of all communication during the upgrade I might be able to figure this out on my own. Is there such a log kept during an upgrade? Also if this question would be more appropriate in the Server Platforms forum I will do that.
View 4 Replies
View Related
Aug 26, 2010
how I can deploy a WAR file with a Tomcat that happens to be installed on a server. I divided it to different small questions but no strait answer so far.
These are the things I've done:
created a myapps folder inside the tomcat directory, and copied the WAR file there.
These are the questions:
1. I did not touch anything inside the Tomcat folder, anything need to be changed?.
2.How to start the Tomcat so that it can deploy th e WAR file?
View 3 Replies
View Related
Aug 5, 2010
I am trying to start remote tomcat server, it's not working as expected. I like to mansion that..I am able to stop tomcat server remotly. Below command i am using
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/catalina.sh start
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/startup.sh
Both are not working..when i run this script locally it's working file
same way when i run tomcat stop command it's working fine.
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/catalina.sh stop
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/shutdown.sh
I check log file also..when i am executing tomcat start there is no log entry in log file
Using CATALINA_BASE: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
Using CATALINA_HOME: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
[code]....
View 14 Replies
View Related
Mar 20, 2011
We have three production websites running on RHEL 3 AS running tomcat 5. After a reboot last night Tomcat will not start and has the following in the catalina.out log:
Mar 20, 2011 4:09:31 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org/apache/naming/resources/ProxyDirContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308) .....
I have spoken with our Java Developers and they seem to think it is something up between httpd and tomcat at an OS level. Since Tomcat is not starting and giving an error that it is all ready running, I think you have a stale lock file. Look for the file /var/run/tomcat5.pid and cat or less it to see what the PID number is. If it matches the error, then delete the file and try to start Tomcat again. It should start this time.
Most common problem with Tomcat5. Try following :
1) Search PID in /tmp, if found delete it or else stop your tomcat.
2) Undeploy your application
3) Check out this link [URL] to know what causing tomcat to generate this error.
If none of them work then check your application configuration settings. [URL]. When I do start tomcat it appears to start:
[root@RPSI-2 san00]# service tomcat5 start
Starting tomcat5: Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JAVA_HOME: /usr/java/jdk1.6.0
[root@RPSI-2 san00]#
But then I try to find if it is running via ps -ef | grep tomcat5, I only receive my query. I perform the same query on Java and it also only returns my query.
View 8 Replies
View Related
Apr 28, 2010
If any one knows about Apache-Tomcat installation.
View 5 Replies
View Related
Jun 20, 2011
I've got a server that runs on Ubuntu Server 11.04 amd64.
I've installed Tomcat 6 and Apache 2 servers.
On Tomcat, I installed Liferay portal as a WAR. I can access to my portal with the following address : http://localhost:8080/lportal
I would like to associate a domain name to the "/lportal" context so that I could access my webapp with the "http://my.domain.com" URL. To make it short, I'd like to access the webapp on "http://localhost:8080/lportal" with "http://my.domain.com".
View 2 Replies
View Related
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
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
Aug 13, 2010
When i starts it for the first time,my sites getting loaded fast when requested through browser,but slows down gradually. what could be the reason, my cpu load seems ok. Because i have another site hosted through apache in the same server and its getting loaded fast. so what could be the issue.
View 1 Replies
View Related
Jun 15, 2010
I started seeing error log entries to this effect once we ported a Tomcat webapp, which connects to a remote database, from Tomcat 5 to Tomcat 6.0.26, but it seemed relatively harmless until now. The error we got at first was:
Code:
May 5, 2010 2:36:44 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesStopTimerThread
SEVERE: A web application appears to have started a TimerThread named [Timer-7] via the java.util.Timer API but has failed to stop it. To prevent a memory leak,the timer (and hence the associated thread) has been forcibly cancelled. A restart seemed to cure the server at that point. But now it has died silently: though the process itself was running, the service become unavailable. Entries like this were found in the logs:
Code:
06/15/10 15:05:47.685 EDT -0400 id=1 Error acquiring database:
java.lang.IllegalStateException: Timer already cancelled.
at java.util.Timer.sched(Timer.java:354)
[code].....
View 2 Replies
View Related