[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Cannot start Jboss

2008-11-09 Thread changemylife
Hi all, After JBoss start complete, you can try again in your browser ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4187996#4187996 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4187996

[jboss-user] [Installation, Configuration DEPLOYMENT] - Show/hide the Jboss screen!

2008-01-04 Thread changemylife
Hi all! I succeeded in starting server and deploying my beans. And now, Can I hide jboss screen (and free hide or show it). By the way, after I start Windows, Jboss can run as any services of Windows ? Thanks. View the original post :

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Show/hide the Jboss screen!

2008-01-04 Thread changemylife
Hi! I have used anonymous wrote : jboss-4.0.5.GA, EJB 3.0, Windows XP SP2. The Jboss screen mean, after I start Jboss success (double click run.bat from jboss-4.0.5.GA\bin\run.bat). I want to hide it (or show it if I need). Can I do that ? Thanks.[/url] View the original post

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How to make server's JNDI 1099 connection?

2007-12-02 Thread changemylife
If you use Eclipse to create EJB app. Inside your EJB project has jndi.properties. Go to and edit it: change your jndi.prpperties to ... | java.naming.provider.url=jnp://localhost:1099 You also use InitialContext to edit connection to any urls. View the original post :

[jboss-user] [EJB/JBoss] - Can server recognize disconnection between clients and serve

2007-10-24 Thread changemylife
Hi all! I use jboss-4.0.5.GA and EJB3.0. My client is standard alone. I use DatabaseLoginModule to authenticate a particular client. When the client login success, I can get some informations such as username and role. Can the server maintain connection between clients and

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Bean call bean on muti machines with multi JBoss server

2007-10-11 Thread changemylife
Hi ! Thanks very much. I solved my problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094350#4094350 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094350 ___ jboss-user

[jboss-user] [Installation, Configuration DEPLOYMENT] - Bean call bean on muti machines with multi JBoss server !

2007-10-10 Thread changemylife
Hi all ! I use jboss-4.0.5.GA, EJB 3.0. I have installed JBoss server on two difference machines. anonymous wrote : On the first machine, I have a bean called BeanA (has a method called hello()). --- BeanA was deployed on the first machine | On the second machine, I have a bean called

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Bean call bean on muti machines with multi JBoss server

2007-10-10 Thread changemylife
But my design is: On the Server1, I have the bean called BeanA. It's simply: @Remote | public interface Check { | public boolean isValid(double a, double b); | } and bean class: public @Stateless class CheckBean implements Check { | | public boolean isValid(double a,

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Restrict number of clients connect to JBoss !

2007-10-04 Thread changemylife
From your guide, I think I must configure EJBContainer to limit the number of clients connect to my EJBs. Am I right? If, so how I can configure ? Please guide to me! Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091781#4091781 Reply to the post

[jboss-user] [Installation, Configuration DEPLOYMENT] - Restrict number of clients connect to JBoss !

2007-10-03 Thread changemylife
Hi all! I use anonymous wrote : jboss-4.0.5.GA and EJB3.0 I want restrict number of clients connect with JBoss server (example: 10 clients not 11). From some guides, I must configure file server.xml inside anonymous wrote : server/default/deploy/jboss-web.deployer/server.xml. But I

[jboss-user] [Installation, Configuration DEPLOYMENT] - How configure JBoss to restrict number of Clients ?

2007-10-02 Thread changemylife
Hi all! I want restrict number of client connect with JBoss server (example: 10 clients not 11). If JBoss support, show me where I can do this, please ? Thank all! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090542#4090542 Reply to the post :

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How configure JBoss to restrict number of Clients ?

2007-10-02 Thread changemylife
My application is not web app. The version of JBoss that I have used: anonymous wrote : jboss-4.0.5.GA and EJB3.0. As you said, I did not see file /server.xml for my version 4.0.5.GA. Please guide me to solve my problem Thanks very much. View the original post :

[jboss-user] [Messaging, JMS JBossMQ] - Re: Ask about JMS ?

2007-09-15 Thread changemylife
Hi ! Thank you very much. Good luck. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084798#4084798 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084798 ___ jboss-user mailing

[jboss-user] [Messaging, JMS JBossMQ] - Ask about JMS ?

2007-09-14 Thread changemylife
Hi all! I am beginner about JMS. I show org.jboss.mq.server.jmx.DestinationManager and I want configure it. I'll configure DestinationManager inside: deploy\jms\jbossmq-service.xml --- am I right ? Thanks! View the original post :

[jboss-user] [Installation, Configuration DEPLOYMENT] - Need some helps !!!

2007-09-12 Thread changemylife
Hi all! I were posted my problem but not solved! I read article: http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jSocketServer I were configured JBoss Server inside conf/jboss-service.xml. So, on the client side, I not need add log4j.xml and I can edit file log4j.xml inside conf/log4j.xml ?

[jboss-user] [EJB/JBoss] - Re: Deploy with two beans have same names inside two package

2007-09-11 Thread changemylife
Hi ! The first client: my.com.BeanA The second client: john.com.BeanA I were tried: InitialContext ctx = new InitialContext(); | my.com.BeanA bean = (my.com.BeanA)ctx.lookup(BeanABean/remote); | bean.hello(); --- Ok! but: InitialContext ctx1 = new InitialContext(); |

[jboss-user] [Beginners Corner] - Problem about using SocketAppender !!

2007-09-10 Thread changemylife
Hi all! I use anonymous wrote : jboss-4.0.5.GA, EJB3.0 XP_SP2 I use anonymous wrote : Log4jSocketServer and SocketAppender to log some request from clients to server. (Example both of server and client is the same machine, and host name: pc6 and has IP is: 192.168.1.228 ). Ok, inside

[jboss-user] [Beginners Corner] - Re: Warning when use log4j

2007-09-10 Thread changemylife
Hi all ! Thanks about your guides. I solved my problems. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4082471#4082471 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082471 ___

[jboss-user] [EJB/JBoss] - Re: Deploy with two beans have same names inside two package

2007-09-10 Thread changemylife
Hi! Assume that both of clients call lookup method: BeanA bean = (BeanA)context.lookup(BeanABean/remote); | bean.add(1,2); The first of client is ok, but the second of client is fail and received some errors: .anonymous wrote : Exception in thread main java.lang.ClassCastException:

[jboss-user] [Installation, Configuration DEPLOYMENT] - Error when deploy two beans have same names!

2007-09-10 Thread changemylife
Hi all! I use jboss-4.0.5.GA and EJB3.0 I write two beans that have same name (called BeanA). Example: anonymous wrote : Inside package: my.com has a bean called BeanA and exported to my.jar | Inside package: john.com has a bean called Bean A and exported to john.jar I deployed two jars follow

[jboss-user] [EJB/JBoss] - Deploy with two beans have same names inside two packages di

2007-09-09 Thread changemylife
Hi all! I use jboss-4.0.5.GA and EJB3.0 I write two beans that have same name (called BeanA). Example: anonymous wrote : | Inside package: my.com has a bean called BeanA and exported to my.jar | Inside package: john.com has a bean called Bean A and exported to john.jar I deployed

[jboss-user] [Beginners Corner] - Re: Warning when use log4j

2007-09-08 Thread changemylife
Hi all! Some warning that I received from client. But has a problem that I understand. If my client is EJB project, I will receive this warning. But if my client app is Java project, I not receive some warning! View the original post :

[jboss-user] [Beginners Corner] - Log some requests to database ?

2007-09-08 Thread changemylife
Hi all! I want log some requests to database (example mySQL), so JBoss has support a certain Appender ? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4082378#4082378 Reply to the post :

[jboss-user] [Beginners Corner] - Warning when use log4j

2007-09-07 Thread changemylife
Hi all! I begginer with Log4j, and I have a problem that I need help: I use: anonymous wrote : jboss-4.0.5.GA, EJB3.0 I have a bean (called RecordBean): anonymous wrote : ... | private static final Logger myLogger = Logger.getLogger(RecordBean.class); | | public void add(int

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How to secure beans ?

2007-09-04 Thread changemylife
Hi! 1. I declared SecurityDomain (ex: ClientDomain) inside jboss.xml file. And then, I package my bean to jar file (ex: myBean.jar). 2. The Stranger get it (myBean.jar), he can extract it. And he can see all things in jboss.xml file. (Here, I know SecurityDomain that I declare). I

[jboss-user] [Security JAAS/JBoss] - Re: How to let

2007-09-04 Thread changemylife
I don't sure that I understand your problem. system is a role that you declared in code. If SecurityDoamin is valid, all things are Ok. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4081150#4081150 Reply to the post :

[jboss-user] [EJB 3.0] - Re: ejb-jar.xml file

2007-09-04 Thread changemylife
1. If you need ejb-jar.xml, you can add it into your app. 2. You add SecurityDomain into jboss.xml. Ex: anonymous wrote : security-domainMyDomain/security-domain 3. Enter the jboss-install-dir/server/default/conf to add your SecurityDomain (MyDomain). Hope this helps. Regards. View the

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How to secure beans ?

2007-09-03 Thread changemylife
Hi ! I declared SecurityDomain in XML configuration file. But my problem is: If the stranger has my bean. And he can extract it, and see XML configuration file and know SecurityDomain (and he can edit file login-config.xml on machine). How way to set he can't deploy my bean on his machine

[jboss-user] [Security JAAS/JBoss] - Re: How to let

2007-09-03 Thread changemylife
I think that @SecurityDomain annotation can resolve this problem. You can declare it in your code or XML configuration file. Then, you edit login-config.xml inside xxx/server/conf. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4080687#4080687 Reply to the

[jboss-user] [EJB 3.0] - Re: Please help me !!

2007-09-03 Thread changemylife
Hi! Thanks! I exported my project to Jar file (same as Java project) and it work fine! But I think that if I created a Java project and then I export Jar file, I must copy some libraries of EJB and edit ClassPath. Have a way can more quickly ? View the original post :

[jboss-user] [Security JAAS/JBoss] - How restrict users ? Please guid to me...

2007-08-30 Thread changemylife
Hi all! I use anonymous wrote : jboss-4.0.5.GA, EJB 3.0. I have a problem that need help: My application allows multi-client access at the same time. But now, I want set up: anonymous wrote : If a client, called John, use his account (ex: called johnA). And at this time, Anna also want

[jboss-user] [Security JAAS/JBoss] - Re: How restrict users ? Please guid to me...

2007-08-30 Thread changemylife
I want add some informations: I use DatabaseServerLoginModule to authenticate users. Jboss supports some options to me can solve my problem above ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4079444#4079444 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Please help me !!

2007-08-30 Thread changemylife
Hi all ! Sorry! Because my English is not good. Ok. I writed a bean (called myBean). And then, I write a client application that use (import) myBean. All things are Ok. Now, I use Export command to export all things (myBean and my client application) to EJB Jar file. But on the Export GUI,

[jboss-user] [Installation, Configuration DEPLOYMENT] - How to secure beans ?

2007-08-30 Thread changemylife
Hi all! I use anonymous wrote : jboss-4.0.5.GA, EJB3.0, Windows XP SP2. If the stranger get my beans and paste his deploy folder on his machine -- all things are ok (mean is bean will deployed !) Jboss has support some options to me can set up to the stranger can't deploy my beans if he

[jboss-user] [EJB 3.0] - Please help me !!

2007-08-29 Thread changemylife
Hi all! I use jboss-4.0.5.GA, EJB 3.0 I writed a EJB project by Eclipse. Then, I have a client application. My works are ok! Now want export my EJB project to EJB Jar file. But I can't. I need some documents about it. Please help me. Thanks very much. View the original post :

[jboss-user] [EJB 3.0] - Problem about export my EJB project to EJB Jar file by Eclip

2007-08-27 Thread changemylife
Hi all ! I use: anonymous wrote : 1. jboss-4.0.5.GA | 2. Eclipse to edit my code (bean and GUI). I have a bean, called : anonymous wrote : myBean. And, I write a Client application (use GUI-Swing). All thing ok ! But now, I want Export all things to EJB Jar file and

[jboss-user] [Security JAAS/JBoss] - How declare java.util.ListmyObject

2007-08-09 Thread changemylife
Hi all ! Inside my bean, I use type ListmyObject. Example: public void createMedicalHistory(ListMedicalHistory info);. After, I declare inside my ejb-jar.xml: method-paramjava.util.List(mypackage.MedicalHistory)/method-param But, Jboss show: anonymous wrote :

[jboss-user] [EJB/JBoss] - How declare java.util.ListmyObject

2007-08-09 Thread changemylife
Hi all ! Inside my bean, I use type ListmyObject. Example: public void createMedicalHistory(ListMedicalHistory info);. After, I declare inside my ejb-jar.xml: method-paramjava.util.List(mypackage.MedicalHistory)/method-param But, Jboss show: anonymous wrote :

[jboss-user] [Security JAAS/JBoss] - How declare user type inside ejb-jar.xml !!!!

2007-07-11 Thread changemylife
Hi all! I use jboss-4.0.5.GA, EJB 3.0. I have a problem with declare permissions in ejb-jar.xml file: I have a BeanA, and it has method public void print(myObject tmp); So, inside my ejb-jar.xml, how I declare print method ? method-permission id=NewLabTestOrder |

[jboss-user] [Security JAAS/JBoss] - I need help about JAAs !

2007-07-06 Thread changemylife
Hi all ! I use jboss-4.0.5.GA and EJB3.0. On the server side, I use DatabaseServerLoginModule. And on the client side, I user ClientLoginModule. Every time, the Client A want to log-in application, he must enter username and password. I want design that: every time, client A log

[jboss-user] [Security JAAS/JBoss] - My problem about DefaultCacheTimeout !!!

2007-07-06 Thread changemylife
Hi all ! I read CachingLoginCredentials at http://wiki.jboss.org/wiki/Wiki.jsp?page=CachingLoginCredentials. I set DefaultCacheTimeout = 0 but I have a problem is: I allow clients can change password. So after that, if Client A was changed password and call a method of a bean ---

[jboss-user] [Security JAAS/JBoss] - I need help. Please guide to me !

2007-07-06 Thread changemylife
Hi all! I write GUI to client can enter: username and password. After, a client login and logout by: LoginContext loginContext = new LoginContext(userTest, loginForm); |loginContext.login(); |... |loginContext.logout() Then, if this client relogin. How I

[jboss-user] [Security JAAS/JBoss] - Thanks

2007-06-21 Thread changemylife
Hi all! Thanks ! I solved my problem. Good luck to all. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4056304#4056304 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4056304

[jboss-user] [Security JAAS/JBoss] - I have a problem that need help!!!

2007-06-20 Thread changemylife
Hi all! I have a problem when I authenticate the user. I use JBoss-4.0.5.GA, EJB3.0. I use the DatabaseServerLoginModule to authenticate a user. Here, I only test isCallerInRole method to receive true or false. The first, when I run my app (example: username is Jack that has role is doctor

[jboss-user] [Security JAAS/JBoss] - Help me about DatabaseServerLoginModule !!!

2007-06-12 Thread changemylife
Hi all! I use Jboss 4.05 and EJB 3.0 and use DatabaseServerLoginModule. I were created two tables Users and UserInRoles. In my tables, have two user user1 has two roles: Manager and Physician | user2 has one role: Physican Manager has two permissions (methods): write and read | Physican

[jboss-user] [EJB 3.0] - Declare Anotation @EJB will a new instance ?

2007-04-17 Thread changemylife
Hi all! I have a problem that I need some helps from any one. I has a declare: | @EJB | private MyBean bean; | | a new instance was created (automatically)? Thanks and good luck today! View the original post :

[jboss-user] [EJB/JBoss] - I need read data from ejb-jar.xml !!!

2007-04-09 Thread changemylife
Hi all ! I write a bean called ReadXMLBean to read some data from ejb-jar.xml and give to client to show on screen. So, where folder that I must ejb-jar.xml file ? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4035652#4035652 Reply to the post :

[jboss-user] [EJB/JBoss] - Re: I need read data from ejb-jar.xml !!!

2007-04-09 Thread changemylife
If I place my ejb-jar.xml file inside .\bin is I can get some data that I need! The question that I want ask is rigth ? (place it inside bin folder on Server?) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4035654#4035654 Reply to the post :

[jboss-user] [Security JAAS/JBoss] - Re: I need helps from anyone about JAAS with DatabaseServerL

2007-03-07 Thread changemylife
Hi! anonymous wrote : 1. My operating system is XP2, I use jboss-4.0.5.GA. I assume that have three person with usernames are A, B and C. And now, I want A and B are allow restart JBoss server, C is not allow! How I can do ? --- I installed JBoss server, and I only want the specific user can

[jboss-user] [Security JAAS/JBoss] - How set permissions to the specific user allow to restart Jb

2007-03-06 Thread changemylife
Hi all! I have two problems that need some helps from anyone: 1. My operating system is XP2, I use jboss-4.0.5.GA. I assume that have three person with usernames are A, B and C. And now, I want A and B are allow restart JBoss server, C is not allow! How I can do ? 2. I have two bean called

[jboss-user] [Installation, Configuration Deployment] - How set permissions to the specific user allow to restart Jb

2007-03-06 Thread changemylife
Hi all! I have two problems that need some helps from anyone: 1. My operating system is XP2, I use jboss-4.0.5.GA. I assume that have three person with usernames are A, B and C. And now, I want A and B are allow restart JBoss server, C is not allow! How I can do ? 2. I have two bean called

[jboss-user] [Security JAAS/JBoss] - How to allow the specific restart JBoss Server ?

2007-03-04 Thread changemylife
Hi all! I have two problems that need some helps from anyone: 1. My operating system is XP2, I use jboss-4.0.5.GA. I assume that have three person with usernames are A, B and C. And now, I want A and B are allow restart JBoss server, C is not allow! How I can do ? 2. I have two bean

[jboss-user] [Security JAAS/JBoss] - Re: I need helps from anyone about JAAS with DatabaseServerL

2007-03-03 Thread changemylife
Hi all! Thanks Jaikirain! Your explains are very helpfull for me and everyone that want discovery about JBoss. Two day ago, I have two problems and I posted they on Forum but not received reply. I hope that you can explain and help me about they again. 1. My operating system is XP2, I use

[jboss-user] [Installation, Configuration Deployment] - How set permissions to users need restart Jboss server ?

2007-03-02 Thread changemylife
Hi all! I have two problem that I need some helps from anyone! 1. My operating system is XP2, I use jboss-4.0.5.GA. I assume that have three person with usernames are A, B and C. And now, I want A and B are allow restart JBoss server, C is not allow! How I can do ? 2. I have two

[jboss-user] [Security JAAS/JBoss] - Re: I need helps from anyone about JAAS with DatabaseServerL

2007-03-02 Thread changemylife
Hi ! But when I use UserRoleLoginModule, I writed my login-config.xml. And all things ok! (DatabaseServerLoginModule is not success!). Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024804#4024804 Reply to the post :

[jboss-user] [Security JAAS/JBoss] - I need helps from anyone about JAAS with DatabaseServerLogin

2007-03-01 Thread changemylife
Hi everyone! I have a problem that I can't solve. I have two machines with hostname is A and B. On A, I installed mySQL and create the database is mydatabase and two tables are Roles and Users Also on A, I installed JBoss Server (jboss-4.0.5.GA), and I select database is mysql. File

[jboss-user] [Security JAAS/JBoss] - Re: I need helps from anyone about JAAS with DatabaseServerL

2007-03-01 Thread changemylife
I wonder that some informations (username and passwd) that user enter and informations that Jboss server get from mySQL were encoded ? So, they not match ! Have any ideals ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024515#4024515 Reply to the post :

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-03-01 Thread changemylife
Hi! I have same problem. I wonder that some informations that user entered (username and passwd) were encoded ? Some informations that get from mySQL is plain text ! So they can't match ! Have any ideal ? Thanks! View the original post :

[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-03-01 Thread changemylife
Hi all! Today, all things are ok (they worked!). My project is EJB3.0. Inside folder \server\default\conf, I add some informations: application-policy name = DB-Domain |authentication | login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule |

[jboss-user] [Security JAAS/JBoss] - Re: I need helps from anyone about JAAS with DatabaseServerL

2007-03-01 Thread changemylife
Thanks jaikiran! I solved my problems! But I wondered that: If I write my login-config.xml: ?xml version=1.0 encoding=UTF-8? | | policy | application-policy name = DB-Domain |authentication | login-module code =

[jboss-user] [JNDI/Naming/Network] - Re: Embedded JBoss and Standalone JBoss on same machine

2007-02-16 Thread changemylife
Hello world! I have a same problem! Have any ideals ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018048#4018048 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018048 ___

[jboss-user] [JNDI/Naming/Network] - Help me about DatabaseServerLoginModule (very urgent!! Pleas

2007-02-12 Thread changemylife
Hi all! Please help me !!! http://www.jboss.com/index.html?module=bbop=viewtopict=100996 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4015533#4015533 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015533

[jboss-user] [JNDI/Naming/Network] - Re: look Database not effect (Urgent). Please!

2007-02-09 Thread changemylife
Hi! Previous, I tested the UsersRolesLoginModule inside the jboss.xml. I also security-domainjava:/jaas/DB-Domian/security-domain but not effect. Then, I try used DB-Domain, all things ok. Now, I also by your way is security-domainjava:/jaas/DB-Domian/security-domain and

[jboss-user] [JNDI/Naming/Network] - Re: look Database not effect (Urgent). Please!

2007-02-08 Thread changemylife
Hi all ! Yes! And it's wrong (I read some documents today). The main problem is inside my jboss.xml, all things not effect (and DatabaseServerLoginModule not effect). JBoss server and mySql installed on the same machine (ex: hostname is violon), on the other machine (ex: hostname is abc).

[jboss-user] [JNDI/Naming/Network] - Re: look Database not effect (Urgent). Please!

2007-02-08 Thread changemylife
Hello world ! Today, I try all things again but I also failure. When I install JBoss server, I selected mysql and DataSource name is: DefaultDS, and I created mydatabase that include Users and Roles. My code on the client have contents: - LoginContext lc = new

[jboss-user] [JNDI/Naming/Network] - look Database not effect (Urgent). Please!

2007-02-07 Thread changemylife
Hi all ! I am using jboss-4.0.5.GA. I install MySQL and JBoss Server on the same machine. When I install JBoss server, I select mysql, so I need only copy driver mysql-connector-java-3.1.14-bin.jar to ..\server\lib and don't need edit file hsqldb-ds.xml (inside ..\server\default\deploy). Am I

[jboss-user] [Security JAAS/JBoss] - Using DatabaseServerLoginModule not effect ? Please help me.

2007-02-02 Thread changemylife
Hi all ! I create my database by MySQL on the server side called MyDB. My login-config.xml: . application-policy name=DB-Domain login-module code=org.jboss.security.auth.spi.DatabaseServerLoginModule flag=required module-option name=dsJndiNamejava:jdbc/MyDB/module-option

[jboss-user] [Security JAAS/JBoss] - Have problem about org.jboss.security.ClientLoginModule

2007-01-31 Thread changemylife
Hi all ! On the client, I write: String path = Test.class.getProtectionDomain().getCodeSource().getLocation().getPath(); if (path.endsWith(.jar)) path = path.substring(0, path.lastIndexOf(\\));

[jboss-user] [Security JAAS/JBoss] - Help me about JBoss with JAAS !!

2007-01-30 Thread changemylife
Hi all! At present, I use EJB3. and use Eclipse to write and deploy my EJB project. I have a bean called CalculatorBean. My bean has two method: add and sub two number. On the client side, I write the class called MyLoginModule to authenticate user (it always return true). After call the

[jboss-user] [Security JAAS/JBoss] - Help me about JAAS on JBoss !!!

2007-01-27 Thread changemylife
Hi All ! I am a beginner's JBoss. I have a problem that I understand: I have a Bean called HelloBean that have two methods printA and printB. My ejb-jar.xml has contents: .. assembly-descriptor Security-role role-nameRoleA/role-name