[Beginner's Corner] - Re: How to get JBoss and Apache to work together
by rbrtfreund
First check to make sure you are indeed listening on ports 80 and 8080. cmd>netstat -an. You should be listening on these ports.
Also not sure about Coldfusion specifics but shouldn't your config for jboss-web exist in WEB-INF as opposed to web.inf...!
Next I would check the root of Jboss on start. You should be able to bring up Welcome To JBoss from http://localhost. If that comes up then you know you are setup right and it's an application problem and not a jboss / apache problem. So remove your <context-root>/</context-root> and the app will live at the http://localhost/cfusion/.
Also check nothing else is listening on those ports (other servers etc...).
And lastly, make sure you indeed have those modules installed.
You can add virtual-host to the jboss-web but generally you only need that if you have mutliple domains etc... so if you are accessing it from a different domain... ie devmktgweb.fullsail.com then add that virtual-host to your jboss-web.
But first make sure jboss and apache work together... then drill down on your application specific setup.
I see fullsail in your post above...! ROCK ON FULL SAIL!!!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270299#4270299
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270299
14 years, 11 months
[Security] - Changing passwords in Active Directory from a web service in
by brazil123
Hi,
I'm trying to figure out the best way to change passwords in an Active Directory server. I need to provide a web service that allows for callers to do this.
I have code in my web service that connects to AD and changes the password, but I'm not sure how to get the configuration data I need (server name, port, etc.) This configuration data already exists in the login-module configuration for JAAS, and I really don't want to duplicate it in another file.
What I'd like to do is get the active LoginModules for a given security domain, and then I could use the LDAP configuration data from the appropriate LoginModule. But I can't find a way to do this.
I suppose I could subclass LdapExtLoginModule and cache the data somewhere, but that's a pretty ugly hack.
The second ugly hack I can think of is reading the configuration back in from the filesystem. I have a security-domain-jboss-beans.xml file which specifies the security domain configuration, so in a pinch, I could read that file.
Any thoughts?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270291#4270291
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270291
14 years, 11 months
[Beginner's Corner] - Re: How to get JBoss and Apache to work together
by fsweb
Thanks for the reply!
I must still not have something configured correctly because now with all that setup I get the nice 404 error when I point the browser to localhost. If I comment it out I can get the It Works! page from Apache but if I try and hit a coldfusion page it will just show all the code.
Anyway, here are my config files.
httpd.conf
| LoadModule proxy_module modules/mod_proxy.so
| #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
| #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
| LoadModule proxy_connect_module modules/mod_proxy_connect.so
| #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
| LoadModule proxy_http_module modules/mod_proxy_http.so
|
| ProxyRequests Off
| ProxyPreserveHost On
|
| <Proxy *>
| Order deny,allow
| Allow from all
| </Proxy>
|
| ProxyPass / http://localhost:8080/
| ProxyPassReverse / http://localhost:8080/
|
| <Location />
| Order allow,deny
| Allow from all
| </Location>
|
Virtual host config
| <VirtualHost *:80>
| ServerName devmktgweb.mysite.com
| ServerAlias devmktgweb.mysite.com
| ProxyPass / http://{IP of the box}:8080/
| ErrorLog "logs/devmktgweb.fullsail.com-error.log"
| CustomLog "logs/devmktgweb.fullsail.com-access.log" common
|
| </VirtualHost>
|
In my cfusion.war\web.inf\jboss-web.xml
| <jboss-web>
| <context-root>/</context-root>
| </jboss-web>
|
What am I missing or doing wrong??
Thanks again for any help!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270286#4270286
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270286
14 years, 11 months