'Jboss'에 해당되는 글 5건

  1. 2010/03/20 Jboss 에서 context-root 을 바꿀때
  2. 2010/02/28 Securing the jboss JMX console
  3. 2010/02/28 Jboss LDAP Intergration
  4. 2009/12/12 Jboss Seam
  5. 2009/11/09 Jboss Training
사용하는 applcation 에서 applcaiton.xml 을 아래와같이 하면 직접 doman url 로 application 이 포인트 됨
또한  아래와 같이 root.war 을 rename 하여함

[root@localhost deploy]# cd jboss-web.deployer/
[root@localhost jboss-web.deployer]# ls
aROOT.war    jasper-jdt.jar       jbossweb-service.jar  META-INF
conf         jbossweb-extras.jar  jsf-libs              server.xml
context.xml  jbossweb.jar         jstl.jar
[root@localhost jboss-web.deployer]# pwd
/usr/local/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer

=======================================================

application.xml  jboss-app.xml
[root@localhost META-INF]# more application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.
xsd"
             version="5">
   
   <display-name>sangbooking</display-name>
  
   <module>
      <web>
         <web-uri>sangbooking.war</web-uri>
         <context-root>/sangbooking      /              </context-root>
      </web>
   </module>
  
   <module>
      <ejb>sangbooking.jar</ejb>
   </module>
  
   <!-- Seam and EL -->
   <module>
       <ejb>jboss-seam.jar</ejb>
   </module>   

'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz
TAG Jboss, seam
JMX console 보안을 위해 유저 와 패스워드을 입력하게 하는 방법. 모든 웹로인에도 같은 방식을 적용.

http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/Server_Configuration_Guide/Inspecting_the_Server___the_JMX_Console_Web_Application-Securing_the_JMX_Console.html

'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz
TAG Jboss, JMX
Jboss  와 opend ldap intergration 에 대한 좋은 블로그 입니다.

1)우선 openldap server 와 openldap client ( ldapsearch 을 사용하기위해 ) 설치하고
 
2) ldap configuration 인  /etc/openldap/slapd.conf 에서  suffix, rootdn 을  아래화같이 수정하고

         suffix          "dc=company,dc=com"
         rootdn          "cn=Manager,dc=company,dc=com"
3) slappasswd 을 사용하여 패스워드을 사용하여 hash 값을 구해 /etc/openldap/slapd.conf 에 저장한다.

4)    http://dsoft-tech.blogspot.com/2006/10/jboss-ldap-integration.html 있는 데이타을 ldif 로 저장하여 추가한다     

      ldapadd -f entries.ldif -x -D "cn=Manager,dc=company,dc=com" -w secret

5)  lidf 파일을 설치하여 아래와 같은 ldapsearch   해본다.

ldapsearch -x -D "cn=Manager,dc=example,dc=com" -W


ldapsearch -x -b 'dc=company,dc=com' '(objectclass=*)'

ldapsearch -x -b 'dc=company,dc=com' uid="admin" | more


  http://dsoft-tech.blogspot.com/2006/10/jboss-ldap-integration.html  에서 잘못된것

dn: dc=company,dc=com
dc: company
objectClass: top
objectClass: dcObject
objectClass: domain

dn: ou=Roles,dc=company,dc=com
ou: Roles
objectClass: top
objectClass: organizationalUnit

dn: ou=People,dc=company,dc=com
ou: People
objectClass: top
objectClass: organizationalUnit

dn: uid=demo,ou=People,dc=conpany   company,dc=com
uid: demo
objectclass: person
objectclass: inetOrgPerson
cn: demo
sn: demo

dn: uid=admin,ou=People,dc=company,dc=com
uid: admin
objectClass: person
objectClass: inetOrgPerson
cn: Admin
sn: admin

dn: cn=Administrator,ou=Roles,dc=company,dc=com
cn: Admin Administrator
objectClass: top
objectClass: groupOfNames
member: uid=admin,ou=People,dc=company,dc=com

dn: cn=Users,ou=Roles,dc=company,dc=com
cn:Users
objectClass: top
objectClass: groupOfNames
member: uid=demo,ou=People,dc=company,dc=com
member: uid=admin,ou=People,dc=company,dc=com

web.xml 파일도 아래아 같이
 
<security-constraint>
     <web-resource-collection>
       <web-resource-name>HtmlAdaptor</web-resource-name>
       <description>An example security config that only allows users with the
         role JBossAdmin to access the HTML JMX console web application
       </description>
       <url-pattern>/*</url-pattern>
       <http-method>GET</http-method>
       <http-method>POST</http-method>
     </web-resource-collection>
     <auth-constraint>
       <role-name>Administrator</role-name>
     </auth-constraint>
   </security-constraint>

<login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>Admin</realm-name>
           </login-config>

<security-role>

하면 admin 만 입력하면 role group 에 있기에 authenication 됨.

sldap.conf 이 다음을 첨가
allow bind_anon_dn

'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz
TAG Jboss
Seam 관련 사이트 모음입니다.

http://docs.jboss.org/tools/movies/

http://edemmorny.wordpress.com/2007/12/12/getting-netbeans-60-ready-for-seam-development/

http://www.javapassion.com/handsonlabs/jsfvisualjsf/#Homework_Exercise

http://www.thescreencast.com/2007/06/jboss-seam-generator-and-eclipse-ide.html

http://blogs.sun.com/carolmcdonald/entry/sample_application_using_jsf_seam

http://weblogs.java.net/blog/caroljmcdonald/archive/2007/07/sample_applicat_1.html




'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz
TAG Jboss, seam

오랜만에 회사에서 교육을 받았다.  교육과목은 Redhat 의 JBoss. 지금까진 Sun iplanet, weblogic, IBM websphere 을 경험해 보았으나 JBoss 와의 만남은 처음이었다. 추세가 추세인지나 TCO 절감을 위해 오픈소스나
오픈소스에 가까운 제품들을 대기업들도 찿고 있는듯하다. 모든 미들웨어와 같이 모든기능이 있으나 보안면이 좀 부족하 보인다. 간만에 교육을 받으니 다시금 내가 IT 에 종사한다고 느끼는것은 왜일까? 일이 따분에서인가? 단순해서일까? 생각해본다......

'I.T. Diary > Middleware' 카테고리의 다른 글

Jboss 에서 context-root 을 바꿀때  (0) 2010/03/20
Securing the jboss JMX console  (0) 2010/02/28
Jboss LDAP Intergration  (0) 2010/02/28
Jboss Seam  (0) 2009/12/12
Seam  (0) 2009/11/09
Jboss Training  (0) 2009/11/09
Posted by aboutnz