[JBoss-user] [Security & JAAS/JBoss] - How to get login name in JSP

2005-02-20 Thread wxwang
Hello Have you got any method to get login name of current user without access EJB? Thank you Wang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867205#3867205 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867205

[JBoss-user] [Messaging, JMS & JBossMQ] - How to reduce JMS session Worker numbers?

2005-02-13 Thread wxwang
I am using a Message Driven Bean to access Database. The access should be uniqe. I just want only one worker for this JMS pool. When two messages arrived the log as following: [05/02/10 08:21:53] [JMS SessionPool Worker-0] Index product batch time: 22531 ms | [05/02/10 08:22:03] [JMS Sess

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Question about multi-language support

2005-01-31 Thread wxwang
Thank you very much I did it. The problem is caused by my custom form authenticator, which deals with request paramter at the first time and affect the others. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864487#3864487 Reply to the post : http://www.jb

[JBoss-user] [Security & JAAS/JBoss] - Re: About Loing Model

2005-01-31 Thread wxwang
Thank you for your response. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864485#3864485 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864485 --- This SF.Net emai

[JBoss-user] [HTTPD, Servlets & JSP] - Question about multi-language support

2005-01-26 Thread wxwang
It is very simple, and a jsp page submits japanese text message to another JSP by using post or get. Some code as following: <%System.out.println(request.getCharacterEncoding()); | //request.setCharacterEncoding("SHIFT_JIS"); | String name = request.getParameter("name"); | System.out.printl

[JBoss-user] [Security & JAAS/JBoss] - About Loing Model

2005-01-25 Thread wxwang
DatabaseServerLoginModule is used for login in my Application. EJB can be access correctly by using JSP. But I cannot login through Applet. Could anyone tell me How I can call the secury EJB method by using Applet? The deployment as following login-config.xml | | |

[JBoss-user] [JCA/JBoss] - About XAResource

2005-01-18 Thread wxwang
Could anyone tell me how can I reload or revive a XAResource in JBoss. I am coding an application server which communicate with another Server through socket. After restarted Server, I need to reload or revive the XAResource of the application server(JBoss). I have no idea how to deal with the e

[JBoss-user] [Security & JAAS/JBoss] - Re: Error on SessionClient of JAAS Example

2005-01-14 Thread wxwang
I am doing by this way The program calls System.setProperty() and put "java.security.auth.login.config" and value in. Is it OK? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3862073#3862073 Reply to the post : http://www.jboss.org/index.html?module=bb&op=p

[JBoss-user] [Security & JAAS/JBoss] - Re: Error on SessionClient of JAAS Example

2005-01-13 Thread wxwang
I see. I need put the #-Djava.security.auth.login.config=file:c:/jaashowto/example/resources/auth.conf" in the command line. But I am going to use it in Applet. So what shall I deal with this? How could I write a AppletClient? Thanks View the original post : http://www.jboss.org/index.html?mo

[JBoss-user] [Security & JAAS/JBoss] - Error on SessionClient of JAAS Example

2005-01-13 Thread wxwang
Hello I ran the example on my JBoss Server 4.01RC2. It is fine to access from web, but I have got an error for using SessionClient. java.lang.SecurityException: ??? | at com.sun.security.auth.login.ConfigFile.(ConfigFile.java:97) | at sun.reflect.NativeConstructorAccessor

[JBoss-user] [Security & JAAS/JBoss] - Re: How can I customize FormAuthenticator?

2004-12-26 Thread wxwang
For example: Write a FormAuthenticatorImpl extend FormAuthenticator. After then change the describe in the file /org/apache/catalina/mbeans/mbeans-descriptors.xml. Thanks for any help View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859912#3859912 Reply to t

[JBoss-user] [Security & JAAS/JBoss] - How can I customize FormAuthenticator?

2004-12-26 Thread wxwang
I hardly find any document to show how to do that. Do I need to rewrite the FormAuthenticator or extend it and describe in a XML file? Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859911#3859911 Reply to the post : http://www.jboss.org/index.html

[JBoss-user] [Security & JAAS/JBoss] - Re: Auth Filter

2004-12-26 Thread wxwang
I will do that. Thank you very much. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859910#3859910 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859910 --- SF ema

[JBoss-user] [Security & JAAS/JBoss] - Re: Get current User

2004-12-24 Thread wxwang
I am using request.getPrincipal.getName() from servlet and ctx.getCallerPrincipal().getName() from EJB. Is it correct. Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859817#3859817 Reply to the post : http://www.jboss.org/index.html?module=bb&op=pos

[JBoss-user] [Security & JAAS/JBoss] - Auth Filter

2004-12-24 Thread wxwang
Hello In weblogic, AuthFilterImpl is called via a RequestDispatcher.include() from inside the servlet engine just before Authentication and Authorization and just after. Could any one tell me Jboss has got a similar interface? Thanks in advance. View the original post : http://www.jboss.org/

[JBoss-user] [Security & JAAS/JBoss] - Get current User

2004-12-24 Thread wxwang
I have got one question is how can I get current user?(who is authenticated or a guest and running this thread) In weblogic, we canuse weblogic.security.acl.Security.getCurrentUser(); It returns "guest", if the user is unauthenticated. Thanks in Advance. View the original post : http://www.jb

[JBoss-user] [Security & JAAS/JBoss] - another peroblem about j_security_check

2004-12-22 Thread wxwang
Dear All I don't know it is a bug or something else. session.invalidate(); I put this code in my login.jsp, the "HTTP Status 400 - Invalid direct reference to form login page" will come out. Is it meaning I can not disable a session in login.jsp? Login.jsp uses j_security_check as action. Th

[JBoss-user] [HTTPD, Servlets & JSP] - Question about CodeBase parameter in Applet

2004-12-21 Thread wxwang
I have got a jsp using Applet like that Under Weblogic Server. It is using weblogic class path as CodeBase. Could you tell me the JBoss has got similar parameter for setting CodeBase. Thanks in Advance View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=

[JBoss-user] [Beginners Corner] - Question About using Applet

2004-12-21 Thread wxwang
I have got a jsp using Applet like that Under Weblogic Server. | | It is using weblogic class path as CodeBase. Could you tell me the JBoss has got similar parameter for setting CodeBase. Thanks in Advance View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopi

[JBoss-user] [Beginners Corner] - Re: One simple question

2004-12-21 Thread wxwang
Thank you very much. It is working now. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859523#3859523 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859523 --- SF e

[JBoss-user] [Security & JAAS/JBoss] - A bug about j_security_check

2004-12-20 Thread wxwang
If I visit the http://localhost:8080/library/, it is working and without any error. But when I use http://localhost:8080/library/login.jsp, it goes to login.jsp again after successful login. After that, if you input password and username and submit again, I have got error like this "HTTP Status

[JBoss-user] [Beginners Corner] - One simple question

2004-12-20 Thread wxwang
Please tell me how can I see the access log file wroten by Tomcat? It doesn't in the log directory. Thanks in Advance View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859380#3859380 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode

[JBoss-user] [Security & JAAS/JBoss] - Re: Error about j_security_check

2004-12-20 Thread wxwang
The document said if the authentification succeed, the page will move to index.jsp. But in my case it is not working. On the contra, it goes to the page I defined, when the authentification unsucceed. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859230#385

[JBoss-user] [Security & JAAS/JBoss] - Error about j_security_check

2004-12-20 Thread wxwang
Hello everyone When I use action=j_security_check in my login.jsp, it goes to Http 400 Error on the web page without any error log in the Server.log file. >From broswer >HTTP Status 400 - Invalid direct reference to form login page > >-

[JBoss-user] [Beginners Corner] - Re: Crystal Reports configuration

2004-12-16 Thread wxwang
Hi suzyrizzo Could you give me the source code of JPEReportSourceFactory.java? I think that it should be something wrong there. JPEReportSourceFactory is responsible for generating a absolute path. the root path in Jboss for my application is the place where you start it.(%JBOSS_HOME%/bin/) H

[JBoss-user] [Beginners Corner] - Re: Using run.jar and shutdown.jar in minimal configuration

2004-12-16 Thread wxwang
It seems like the shutdown jar will call RMIAdapter or JMX service. But for the minimal service, both of the services are not support. Just my opinion View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858968#3858968 Reply to the post : http://www.jboss.org/ind

[JBoss-user] [Beginners Corner] - Question about JAAS

2004-12-16 Thread wxwang
Hello: I want to implement JAAS in my application by calling j_security_check in JSP. I really want the Application to access database and doing security authentification and known that it could be done by using realm. Where can I find any documents about implementing this function on Jboss? T

[JBoss-user] [Beginners Corner] - Re: Migrating from WebSphere to JBoss...

2004-12-16 Thread wxwang
I am doing it.(migrate from Weblogic to JBoss) The first, you should check whether the application used API only supported by old Application. The second, you should make sure that the web.xml is correct. The third, you should modify the egb-jar.xml and create a jboss.xml in EJB jar file. The

[JBoss-user] [Beginners Corner] - Re: T3services in Jboss

2004-12-15 Thread wxwang
I implemented in by using JMX MBean Thank you very much. I have got an other question so far. Can I Shutdown Jboss. When the Server is failure of Deployment my MBean? I tried calling org.jboss.Shutdown, but it need to visit shutdown.jar in bin directory. But I cannot put the shutdown.jar into

[JBoss-user] [Beginners Corner] - T3services in Jboss

2004-12-14 Thread wxwang
I am carrying out a project to migrate a application from Weblogic to Jboss Server. I have got some code using T3StartupDef and T3ShutdownDef services supported by Weblogic. Does anybody can tell me whether Jboss have got any similar interfaces or APIs? Thanks View the original post : htt