Tomcat7 breaking request parameter behaviour from Tomcat5.5 and Struts1.1? - request

I have a link which points to my servlet (Struts 1.1 App).
http://myserver.com/app/preview.do;jsessionid=1234567;p1=test;filename=/page2.htm
All was working fine in Tomcat5.5 and jdk1.6, but now with tomcat7 and jdk7, it does not work anymore. Tomcat now sends 404 error, because
/app/preview.do;jsessionid=1234567;p1=test;filename=/page2.htm" could not be found on server
So it tries to find the file page2.htm in path.
Does anybody know how to configure Tomcat to get it work again?

Related

error 1503 while installing solr 9 with nssm

Error 1053 - Service do not respond to the start or control request in a timely fashion
I am installing solr 9.1.1 version using nssm. The path to executable was repeatedly setting to nssm.exe path. But I explicitly changed to solr.cmd path.
Now I am getting another error - Error 1053 - Service do not respond to the start or control request in a timely fashion
Path seems fine. I don't find any issue and don't understand why it is happening.
I was able to solve the error. The issue was I downloaded wrong package.
Downloaded latest from https://solr.apache.org/downloads.html.
earlier package was incomplete - without required jar files.
so downloading new package worked.

Can run Angular app from local computer but not from local server

I can start and run my Angular app fine from my local computer. But I have never run it on a server before.
I have tried uploading it to the server. On the server I type the following to start it:
http-server
Then I visit http://serverip:8080/. Instead of seeing my app I see:
Index of /
(-rw-rw-r--) 847B app.js
(-rw-rw-r--) 748B index.htm
Node.js v0.10.25/ ecstatic server running # 195.189.182.160:8080
What is missing in my configuration?
ecstatic is a static file server. It's not set up to be a web server by default, even though it can work that way. When you do run it as a web server, certain standard options in most web servers - like treating a request for /path/ as a request for /path/index.htm - are disabled by default.
You need to enable opts.autoIndex. The package readme tells you how to do that. In your case, it means editing http-server or the .js file that it fires off; it's hard to say from what you have posted.

Apache Tomcat 6.0 IIS 5.1 isapi redirector error "The request is not supported."

I am facing this problem since many days, scratched each n every piece of code again n again, but couldn't rectify it...
I ve installed Apache Tomcat 6.0 on windows XP- service pack 3 & Enabled IIS 5.1.
Tomcat is running on port 8080 and iis is running on port 80.
I ve struts application which uses SMTP service of IIS...
WORKER.PROPERTIES which i've kept in [TOMCAT]/conf/ is as follows
worker.list=wlb,jkstatus,wlb1
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.ajp13w1.type=ajp13
worker.ajp13w1.host=192.168.1.87
worker.ajp13w1.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.wlb1.balance_workers=ajp13w1
worker.jkstatus.type=status
URIWORKERMAP.PROPERTIES is as follows
/admin/*=wlb
/manager/*=wlb
/examples/*=wlb
/jkmanager=jkstatus
I've done changes in regedit. Screen shot of REGISTRY EDITORS is as follows.
I've placed isapi_redirector in /bin directory.
Added a virtual directory pointing to /bin and named as jakarta.
Added isapi filter and it is showing as per the below attachment...
When I enter http://localhost:8080/examples/ in my browser I will get the result.
But when I enter http://localhost/examples/ I am getting an error "The request is not supported."
I am not getting how to trace.

could not connect to local host

Recently i installed apache tomcat 6 on my PC.I started the server and try to open the tomcat manager using the url:
http://localhost:8081/manager/html
8081 is the connector port i used at the time of installation and no other services using this port.But its shows the error like
Oops! Google Chrome could not connect to localhost:8081
I used this with differnt browsers IE and crome but still getting the same error
Please provide me the solving to getrid of this.
Try the "Test your Install" section here.
first make sure the your server is running correctly by connect to http://localhost:8081/

Starting up tomcat-6.0.20 from eclipse-3.5.0 (galileo) leads to the 404 error

Console dogs me. Can anybody help?
The sad story starts like this. My OS is ubuntu-9.04. I installed tomcat-6.0.20 by extracting it from .tar.gz package and put it under the /usr/share/tomcat-6.020 directory.
Then I started tomcat from console, and everything seemed to be fine. localhost answered with the $CATALINA_HOME/webapps/ROOT/index.html page.
The next step was to put my tomcat in the eclipse's servers list. So, I went to Preferences > Server > Runtime Environment > Add > Apache Tomcat v6.0 (here I also browsed to my tomcat and changed JVM from JRE to JDK). Finally, I added my server to the Servers list.
So, having everything configured, I started my tomcat from the eclipse, opened a browser and asked for localhost. 404 all over sudden. Despite the fact that the eclipse's console has shown no errors.
Has anybody encountered the same problem?
I fixed the "Could not load server configuration" problem by deleting the current server configuration from the Servers View and adding it again.
Open your Tomcat settings (double click or F3 on your Tomcat instance in 'Servers' view in Eclipse):
Make sure configuration path is valid and configuration is valid
Click on modules tab and make sure your app is deployed.
I'm with Carlisg. I had this error in Eclipse 3.6 with Tomcat 5.5: "Could not load server configuration at /Servers/Tomcat v5.5 server. The configuration maybe corrupt or incomplete." After playing around with every setting for 20 minutes and getting the same error, I just deleted the server, re-added it and it worked in about 90 seconds with no changes.
yes emanemos is right, I tried it today and got it working instantly. Create a new project in eclipse, I created a Dynamic web project. Create a new server, choose your apache version as the server type. Then create your pages and resources in this project space. I created index.html in Webcontent and pointed to http://localhost:8080/trial/ and I can see my index.html. (trial is the name of my project).
In windows vista 32 I fixed like this, In 'serverlocation' selected Use Tomcat installation(takes control of tomcat installation) and for deploy path I added my tomcat webapp dir.'C:\apache-tocat-6.0.26-windows-x86\apache-tomcat-6.0.26\webapps'. With default configuration path /Servers/Tomcat v6.0 Server at localhost-config, it just works fine.
I had the same problem and solved it following these steps:
On the Server View, right click on the server (Tomcat 6.0 Server at Localhost)
in the menu options click "Open", this opens a menu with all the configurations for the server.
On tab "Server Locations" you must select the option "Use Tomcat Installation (takes control of tomcat installation)".
Do not forget to check the Deploy path.
I think there is a problem with eclipse configuration over Tomcat and it must use the tomcat installation configuration.

Resources