Apache Axis2 execution not working. I have Apache 24 http server as well - axis2

I am totally new in this and trying to learn API testing so as per instructions from 2 different courses 1. I have apache 24 http server along with SQL and PHP and that works with local:8080
2. I have installed Apache axis 2, have configured the environment path and followed the instructions but http://localhost:8080/axis2/services does not work.
When I execute the bat file axis2server.bat, I get the following message
C:\Data\Apps\Apache_axis2\axis2-1.8.2\bin>axis2server.bat
Using JAVA_HOME C:\Program Files\Java\jdk-19
Using AXIS2_HOME C:\Data\Apps\Apache\axis2-1.8.2-bin\axis2-1.8.2
but the http://localhost:8080/axis2/services does not work with site cannot be reached.
b. changed the ports in the conf axis2.xml from 8080 8006 still not working.
c. I have stopped Apache24 from services and tried in vain (with same 8080 and changing port).
I have installed all this again still could not get this work. your help would be appreciated.
I searched for the past post, i found one with apache tomcat copying folder in webapp.
Your help would be appreciated.

Related

Apache doesn't start on any port

I just installed apache 2.2 and it was working just fine after I restarted that this error appears when I'm trying to start that:
The requested operation has failed!
first I thought It's about the default 80 port that apache is using so I turned off IIL from windows features but that didn't help
so I change the port from Apache httpd.conf
but still this error prevents me from starting the server.
does anyone know how can I fix this?
any help will be much appreciated.
I just installed apache 2.2.9 instead of 2.2.11 and it's working fine

Need to set proxy server for apache tomcat in RHEL 7.3

I have 3 machines with ips 10...56,10...57 and 10...58. How do I connect all of them using a proxy via tomcat8.
Till now I have made a new file setenv.sh in tomcat8/bin/ folder and wrote the below lines. But it doesn't seem to work.
export JAVA_OPTS="$JAVA_OPTS Dhttp.proxyHost=10...56|10...57|10...58 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=10...56|10...57|10...58 -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost"
Let me know if I am following the right process or I need to modify any other file too.
Below link helps you in setting up the proxy with multiple
http://w3devops.com/add-http-https-proxy-http-non-proxy-jenkins-via-tomcat-server/
However, I think tomcat is not the best option to do the HTTP\HTTPS Proxy.
please feel free to experiment with apache or ngnix.
Apache
https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension
NGNIX
https://www.digitalocean.com/community/tutorials/understanding-nginx-http-proxying-load-balancing-buffering-and-caching
It may help you one day :)

http://localhost:8080/ Access Error: 404 -- Not Found Cannot locate document: /

I'm really very new to this Tomcat stuff. I downloaded Tomcat 7.0 windows installer and installed it using the default configuration. After installing, I typed localhost:8080 in my browser to see if Tomcat is working. However,it showed error message like this: Access Error: 404 -- Not Found Cannot locate document: / And there's nothing else show with Tomcat or Apache words in the page. It seems Tomcat not responding.
I googled and searched this forum, but so far the solutions people provided didn't work for me.
checked the server.xml file, 8080 is the HTTP connector port:
Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"
I did run the Tomcat7.exe in the \bin folder. Something run in the command window and disappeared then. Nothing changed then.
I set some environment system variables like JAVA HOME, PATH, and CLASSPATH according to some tutorials online.
Still not work. Only things I'm suspicious are:
1. I have two JRE folder: jre6 and jre7 in the program files directory. Tomcat7 chose the jre7 one.
2. I installed anyother server called Wamp server, which I used to learn some PHP programming with SQL usage. There's Apache in the package. Not sure if it's using 8080 port.
Please help. I've already digged online more than 2hrs for this headache. Any comments are welcome.
A tip for others: if you have NI applications installed, the NI Application Web Server also uses the port 8080.
When I had an error Access Error: 404 -- Not Found I fixed it by doing the following:
Open command prompt and type "netstat -aon" (without the quotes)
Search for port 8080 and look at its PID number/code.
Open Task Manager (CTRL+ALT+DELETE), go to Services tab, and find the service with the exact PID number. Then right click it and stop the process.
I think I figured out the questions after reading the log. Thanks to Will's reminder, I checked the log and found out the some program else is listening to that port. Before I can start to figure out which program, my computer was restarted and localhost:8080 works and showing tomcat page. Whooh
your 8080 port is already used by another application
1/ you can try to find out which app is using it, using "netstat -aon" and stop the process;
2/ you can go to server.xml and change from port 8080 to another one (ex: 8081)
You can run below commands. I believe this is what you want!
Note: Make sure the port 8080 is open. If not, kill the process that is using 8080 port using sudo kill -9 $(sudo lsof -t -i:8080)
./catalina.sh run
For CentOS users (at least), one will also get a 404 error trying to access the server on port 8080 on a fresh install if the tomcat-webapps package is not installed.

Apache does not start - httpd.conf in windows

I am trying to set up Apache http 2.2, with mod_jk module.
The intention is to set up a load balancer right on my PC, for test purposes.
So I made some changes to httpd.conf to set some parameters, then I run it and I get the popup:
"Windows couldn't start Apache 2.2 on local PC. For more information check system events log. If it's not a windows service contact service provider and reference the code:1"
I check on the log and I get:
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.35 for ServerName
So I uncomment on httpd.conf line: ServerName myPcName:80 and run it again.
I get the same popup, but this time I don't get anything on the events log.
Any idea on how to let it work?
(Nothing is bound on 80 port.)
Thank you
Please check if port 80 is being used by other application or not. Most of the time in my case "Skype" was using port 80. So I had to stop it and then I used to start Apache service.
To troubleshoot further what you can do is, goto apache's bin directory and run httpd.exe -t option. This will show you exactly what is causing problem.
The configuration file in the apache /conf folder, has a piece of code that starts from C:. It is copyrighted and therefore you cannot change the code.
All you have to do is make a second copy of the whole apache folder and put it directly in your C: directory. Your apache file is in System 32 causing you to use cprompt right. Having 2 identical apache folders one in C: and one in System 32 bypasses the problem.

setting up mod_jk on the Apache HTTP web server2.2.13

So I'm trying out JSP for the first time. I found a tutorial that details the installation of the tomcat server and the mod_jk Apache module, but it's a bit outdated. Right now, I've got everything installed and the mod_jk.so file in the modules folder, along with the corresponding loadModule line in the httpd.conf file. The tutorial tells me to copy a file called 'workers.propperties' to the apache conf directory and do some changes inside it, but there's no such file in the win32 binary installation. However, there is a file in the zipped source code, but I'm not sure if I should use it.
I have installed JDK1.6.0U17/JRE6.0/Apache HTTPServer2.2.13/Tomcat6.0.20/Mod_JK1.2.28/Vista
First this question: do you actually need Apache HTTP Server for other purposes? If not, just leave it aside and run Tomcat standlone. I've namely seen too often that starters are somehow under the impression that they need both Apache HTTP Server and Apache Tomcat to be able to run JSP's. This is untrue. Just Tomcat is enough. It's a webserver and servlet container in one.