[Remoting] - JBoss5 && DetectorService
by Rhodan
Hello,
i have written an Java-Client, that connects to an JBoss 5.1. This connection should first be possible, when the jboss server is fully started. Therefore i tried to get jboss remoting's detector service working in jboss and client.
The client's detector seems to work, but the jboss server seems not to send any signal to the clients detector.
On jboss server side i deploy an mbean which registers the network registry and the detector service:
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <!-- The NetworkRegistry contains all the local and remote -->
| <!-- servers that it recognizes. The remote ones registered -->
| <!-- are dependant on the detectors running and which domains -->
| <!-- they are configured to identify. -->
| <mbean code="org.jboss.remoting.network.NetworkRegistry" name="jboss.remoting:service=NetworkRegistry">
| </mbean>
|
| <mbean code="org.jboss.remoting.detection.multicast.MulticastDetector"
| name="jboss.remoting:service=Detector,transport=multicast">
| <attribute name="Port">5400</attribute>
| <attribute name="Configuration">
| <domains>
| </domains>
| <!-- local /-->
| </attribute>
| </mbean>
| </server>
Can somebody help how to geht Multicastdetector working withhin jboss 5?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236267#4236267
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236267
16 years, 10 months
[Security & JAAS/JBoss] - securing a web project on jboss using https(SSL)
by GajananM
Hi
I facing some problems while securing a web application on jboss...
below are the steps which i followed.....
I have created a web application in eclipse 3.2.2 on jboss 4.2.2GA .
I want to secure my webappllication using SSL
for this i have
1.generated certificate by using "%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA" command line
2.I have changed jboss/server/default/deploy/jboss-web.deployer/server.xml file .in this file i replaced <connector port=8080..../> TO
3.Modified web.xml of the web application:
Added security mappings to web.xml file:
<servlet-mapping>
<servlet-name>testsecurity</servlet-name>
<url-pattern>/testsecurity</url-pattern>
</servlet-mapping>
<security-constraint>
<web-resource-collection>
<web-resource-name>All resources</web-resource-name>
Protects all resources
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>WebAppUser</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>WebAppUser</role-name>
</security-role>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Test Realm</realm-name>
</login-config>
4. created a jboss-web.xml file in side web-inf and made an entry of
<jboss-web>
<security-domain>java:/jaas/myweb-console</security-domain>
</jboss-web>
5. when iam trying to deploy and run the applocation on jboss it is prompting for user name and password.
6.i have changed the boss-4.2.0.GA\server\default\conf\login-config.xml file . added :
<application-policy name = "myweb-console">
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required">
<module-option name="usersProperties">web-console-users.properties</module-option>
<module-option name="rolesProperties">web-console-roles.properties</module-option>
</login-module>
</application-policy>
when i specify the username and password i am not able to see my index.jsp page it isgi=ving me status 401 error authentication.
my dout is do i need to specify username password of the certificate in any one of the property file of jboss if so ... please let me know the formate to spaecify....
tel me weather my approach to secure the webapplication on jboss is correct or not
I am anle to access the jboss console using
https://localhost:8443/
when iam trying to access https://localhost:8443/testsecurity
it is giving error asaying status 401 authentication...
it should display index.jsp page ....
looking forward for ur replies .......Please help if any one has idea about ssl security for jboss
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236262#4236262
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236262
16 years, 10 months
[Beginners Corner] - Migration.. Stupid Question?
by Lieve
I'm currently migrating from Weblogic to JBoss but I'm having some pretty (stupid) basic problems and I really hope someone can help me out here..
First of all in Weblogic you can access your server console from anywhere on the network (http://<<server-address>>/console), now I was wondering if you can do the same for jboss? I know there is the jmx-console but for now I can only access it on the local machine as for all the other stuff I deployed..
I installed a Jboss 4 and I also deployed Axis (my project uses that and I want to start with what I have right now).. If I run the server and go to the localhost:8080/axis, I get the axis page, but if I try it from my local PC I can't get it to work it always says Page cannot be displayed..
I guess this is a pretty dumb question but I've been looking for a day and I just can't seem to find the answer to that..
So please help me out here :)
Thank you very much!
Lieve
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236253#4236253
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236253
16 years, 10 months