I've been trying for days to get Tomcat up and running through IIS via the Jakarta Connector.
I've followed all of Microsoft's instructions -- put the connector .dll in %tomcatdir%\bin\win32\i386\, added the registry entry, added a filter (pointing to the .dll) to the default web site... and yet, any time I try to access a Tomcat web app, I get the "You are not authorized to view this page" error.
Has anyone experienced this? Help!
Thanks,
-Dan
http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.14/isapi_redirect-1.2.14.exe
I use this redirect with Tomcat 5.5 and IIS 5 or 6. I haven't tried it with IIS 7.
You have to modify the uriworkermap.properties file to choose which paths to redirect, but besides that it works pretty much straight up. It adds all the registry garbage for you.
Ah, except on IIS 6 you have to add the isapi redirect.dll into its application whitelist.
Try this mate, it can help you.
http://itgration.blogspot.com/2016/04/configuring-tomcat-connector-for-iis-8.html
It tells you how to configure access to tomcat website via IIS and the necessary to set up tomcat server as a windows service and then forward the website to IIS via port 80. You will do this by installing a custom ISAPI filter in IIS that understands how to use the AJP protocol (Apache JServ Protocol) to communicate with tomcat. The main idea is to use Tomcat Connector ISAPI available to download from apache web site.
I used it with IIS 8 and 7
Related
I originally installed ColdFusion 11 in a local environment (windows 7) and selected "Use built in web server". Everything was working pretty good. Now months later, I realize I need to use a real web server for URL rewrites (Apache, IIS, etc) but there is no documentation I can find on how to do so.
I have attempted looking through the administrator's panel for any information, but couldn't even get a jumping off point. Any assistance would be greatly appreciated.
First, it sounds like you need to decide which web server you want/need to use and that could be determined by where you'll end up hosting your site. CF code is quite portable but if you're doing URL rewrites, file system access, etc... then you need to code those to match the production environment, otherwise you might find yourself having to rewrite and retest all that again.
As commented above, a lot of information about configuring CF for web servers is available by searching. You'll first need to install & configure your web server, so search around that first. Then you'll need to configure the web server to understand which requests to pass to ColdFusion's engine.
If it's IIS then you need to make sure IIS is installed and the following components are installed: ISAPI Extensions, ISAPI Filters, CGI, ASP .NET
Then configure an IIS site to point to your CF code and after that use the "Web Server Configuration Tool" application (installed with CF) that will associate the relevant file types with ColdFusion.
Most of the time it's as simple as that.
I have a web application that is running on WebSphere Liberty Profile 8.5.x, which is located in a private LAN. I have set up an IIS reverse proxy in a DMZ that points to the application server in the LAN and has a URL Rewrite outbound rule. URL Rewrite outbound rules will not work if the content is compressed.
I have zero experience with WebSphere, and the people who set up the application server are unavailable. I have searched and can't find any answers -- at least that I can understand with my lack of experience.
So, is there a way to disable compression in WebSphere Liberty Profile 8.5.x, and if so, how exactly do I go about doing it?
Instead of working with some reverse proxy config, I'd suggest you to install supported WebSphere Plugin for IIS.
You can download it from WebSphere for Developers downloads or if you have production license:
Web Server Plug-ins for IBM WebSphere Application Server Part 1 and Part 2
https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=swerpws-wasdevdl85
Then install plugin and configure for MS IIS
Then configure plugin to work with Liberty. Although this page is mentioning IBM Http Server, same configuration steps are for any web server supported by plugin.
It turns out I didn't need to change any WebSphere Liberty settings at all. Here's how I fixed it:
In the URL Rewrite module, I added the HTTP_ACCEPT_ENCODING server variable.
In the Server Variables section of the Inbound Rule, I added HTTP_ACCEPT_ENCODING with an arbitrary value (I used "asdf") and set Replace to true.
I edited the web.config, and changed the value of "HTTP_ACCEPT_ENCODING" serverVariables node to an empty string.
Now IIS only accepts non-compressed responses, and the Outbound Rule works as expected.
I'm trying to use Liferays webservices (viewable at /api/jsonws), but my Liferay installation is not starting any of this services. I'm running Liferay 6.1.3 on JBoss 7.2. This problem occures on three different servers. Same Liferay & JBoss setup on all 3. Only difference is that one of those servers had Liferay 6.2 running briefly. 6.2 allowed access to all webservices from /api/jsonws. Sadly I cannot switch back to 6.2 for several reasons.
Got a log entry stating that no service is configured.
16:36:03,291 DEBUG [ServerService Thread Pool -- 268][JSONWebServiceConfigurator:221] Configure JSON web service actions
16:36:03,299 DEBUG [ServerService Thread Pool -- 268][JSONWebServiceConfigurator:236] Configured 0 actions in 7 ms
Same liferay on a local tomcat works pretty fine and starts all webservices. So my question is if there is any kind of global on/off switch or if I have to set any special settings? I'm running out of ideas right now ...
Thanks in advance and regards, Sebastian
It may be worth checking portal-ext.properties file in your server.
There is a setting to turn JSON web services on/off. I guess it may be set as "false" in your case.
#
# Set this property to true to enable JSON web services. Note that setting
# this to false will cause portlets that make JSON web service calls from
# working.
#
json.web.service.enabled=true
I'm trying to get my Win2K8 Server (Intel Xeon 64bit machine) working with IIS7 web server and the latest release of JBoss AS (8 Wildfly).
I followed many tuts on how to get that done and I ended up with:
C:\mod_jk
\bin
isapi_redirect.dll (x86_64 v.1.2.40 for iis)
isapi_redirect.properties (all paths correctly in place)
\log
\conf
uriworkermap.properties (containing simply /mycontext/*=myworker
workers.properties (containing myworker's configuration on ajp port 8009)
I omitted jk details because I never reach the filter (isapi_redirect.log is never created). However, Wildfly is configured for ajp and listening to 8009 port.
In IIS 7.0 I added the isapi filter and set the right permissions to all, according to the official documentation and several tutorials.
I keep getting a
HTTP Error 500.0 - Internal Server Error
Calling LoadLibraryEx on ISAPI filter “C:\Tomcat\ISAPI\isapi_redirect.dll” failed
when visiting www.myhost.com/mycontext/
Enabling 32 bit appPool makes the error change in a common 404 - not found.
Can you suggest me a checklist to follow to make the whole thing work? Thank you.
I ended up using ARR.
http://www.iis.net/downloads/microsoft/application-request-routing
That avoids AJP by simply forwarding all traffic to JBoss 8080 port.
I have a problem with a web site running on an IIS 8.5 server that is not started automatically when the server reboots. The site is originally installed through ServerManager, where there is this line of code:
site.ServerAutoStart = false;
Now I would like to change this setting through the IIS Manager interface.
In IIS 7.5 i can set a web site to start automatically by setting the Start Automatically property under Advanced settings. But this setting is gone in IIS 8.5.
I found a solution to my problem inspired by this question:
How to config application pool in IIS 7.5 automatically re-start when it was stopped?
It is possible to access and edit all the detailed settings through the Configuration Editor, which can be accessed through the Features View in IIS Manager. I realize that in the link Mr Mo sent, the Configuration Editor was used, but it is not specified very clearly how to access it.
Check it out:
http://blogs.msdn.com/b/benjaminperkins/archive/2014/01/07/configure-the-iis-application-initialization-module.aspx
I think it will solve the issue.