My application was running Jboss 4.2.3 GA and i enabled the tomcatauthentication in server.xml. I also enabled integrated windows authentication on IIS. By doing these steps, i was able to retrieve the logged in user by request.getRemoteUser().
Now application is upgraded to Jboss 7 and there is no tomcatauthentication flag available. Is there any way to extract the username in the application?
I suppose you connect IIS and JBoss using AJP Connector.
Ensure you set the tomcatAuthentication="false" attribute on the AJP element, otherwise you will not get REMOTE_USER. See Tomcat's AJP Connector documentation for more details: http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html
Related
I'm trying to use active directory authentication on hawtio login.
I've defined the JNDIRealm on my server.xml and enabled authentication on tomcat catalina options - but couldn't get the hawt to use this realm.
I saw that hawt website presents that the default behavior on tomcat is using users data file (tomcat-users.xml) - and I succeed using it as described in website.
But is there any way to work with JNDIRealm instead this default UserDatabaseRealm behavior?
Any help appreciated.
Thx.
I am new to JSF, was setting up my first workspace in Eclipse Helios and Weblogic 10.0 server, I am getting 'Stopped, Unable to validate weblogic domain' while trying to start the server. Same problem persists while trying to add a new domain.
Please help.
I am using WebLogic server 12c and the steps to resolve this issue is:
Start Weblogic server(I started through command prompt)
Go to Weblogic console page (login with admin credentials)
Domain Structure >> Select your domain (i was having base_domain)
Click on the Security tab
Check Anonymous Admin Lookup enabled. (by default its unchecked)
Save (save the changes)
** Restart the server (preferably through admin console)
Now, Start the server through eclipse. It should work.!!
Regards,
Maris
And here is the resolution :
Go to Window Tab -> Preferences -> General -> Network Connections
Change the Active provider to "Direct". The default is usually Native. and that's it. Close and restart eclipse.
It happened to me as well, I even reinstalled weblogic again, after a bit of research I decided to kill all of the Java(TM) Platform SE Binary process via Task Manager and restarted the Server.
That's all It took to resolve the issue.
I tested this on Weblogic 10.3.6. Luck!!
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'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