[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=bbop=viewtopicp=3867205#3867205

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3867205


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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] I [JMS SessionPool Worker-0] Catalog  Index product 
batch time: 22531 ms
  | [05/02/10 08:22:03] I [JMS SessionPool Worker-0] Catalog  Index product 
batch: 50 products
  | [05/02/10 08:22:07] I [JMS SessionPool Worker-1] Catalog  Index product 
batch time: 26859 ms
  | [05/02/10 08:22:13] I [JMS SessionPool Worker-0] Catalog  Index product 
batch time: 10578 ms
  | [05/02/10 08:22:16] I [JMS SessionPool Worker-1] Catalog  Index product 
batch: 50 products
  | [05/02/10 08:22:19] I [JMS SessionPool Worker-0] Catalog  Index product 
batch: 50 products
  | [05/02/10 08:22:22] I [JMS SessionPool Worker-0] Catalog  Index product 
batch time: 2172 ms
  | [05/02/10 08:22:29] I [JMS SessionPool Worker-0] Catalog  Index product 
batch: 50 products
  | [05/02/10 08:22:33] I [JMS SessionPool Worker-1] Catalog  Index product 
batch time: 16781 ms
  | [05/02/10 08:22:43] I [JMS SessionPool Worker-0] Catalog  Index product 
batch time: 13859 ms
  | [05/02/10 08:22:45] I [JMS SessionPool Worker-1] Catalog  Index product 
batch: 50 products
  | [05/02/10 08:22:52] I [JMS SessionPool Worker-0] Catalog  Index product 
batch: 50 products
  | [05/02/10 08:23:13] I [JMS SessionPool Worker-1] Catalog  Index product 
batch time: 27782 ms

Could anybody tell me how to reduce JMS session workers?

Thank you very much


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3866418#3866418

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3866418


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3864485#3864485

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864485


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3864487#3864487

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864487


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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.println(name:  + name);%
  | htmlhead  
  | meta http-equiv=content-type content=text/html; charset=Shift_JIS
  | /headbody  name:
  | b%= name %/b/body/html

It is working very well with english. But if I input japanese. I have got
???/??.

I tried setCharacterEncoding to UTF-8 Shift_JIS and so on, but the same result 
comes out.

My Application Server is JBoss 4.0.1.RC2

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3863683#3863683

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3863683


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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   
   application-policy name=Test
  |   authentication
  |  login-module 
code=org.jboss.security.auth.spi.DatabaseServerLoginModule
  | flag=required
  | module-option 
name=dsJndiNamejava:/oraDataSource/module-option
  | module-option name=principalsQueryselect U_Password from 
users where U_Name=?/module-option
  | module-option name=rolesQueryselect GM_Group, 'Roles' from 
groupmembers where GM_Member=?/module-option
  |  /login-module
  |   /authentication
  |/application-policy

EJB

  jboss.xml  
jboss
  |   security-domainjava:/jaas/Test/security-domain
  |   enterprise-beans
  |   session
  | ejb-nameTestDisplay/ejb-name
  | jndi-nameTestDisplay/jndi-name
  | method-attributes
  |   method
  | method-name*/method-name
  | transaction-timeout3600/transaction-timeout
  |   /method
  | /method-attributes
  |   /session
  |   /enterprise-beans
  | /jboss

   ejb-jar.xml
ejb-jar
  |   enterprise-beans
  | session
  |   ejb-nameTestDisplay/ejb-name
  |   homeTestDisplayHome/home
  |   remoteTestDisplay/remote
  |   ejb-classTestDisplayBean/ejb-class
  |   session-typeStateless/session-type
  |   transaction-typeContainer/transaction-type
  |   security-role-ref
  |  role-nameguest/role-name
  |  role-linkguest/role-link
  |   /security-role-ref
  |   security-identity
  |  run-as
  |role-nameguest/role-name
  |  /run-as
  |   /security-identity
  | /session  
  |   /enterprise-beans
  |   
  |   assembly-descriptor
  | method-permission
  |   role-nameguest/role-name
  |   method
  | ejb-nameTestDisplay/ejb-name
  | method-name*/method-name
  |   /method
  | /method-permission
  |   /assembly-descriptor
  | /ejb-jar

A Class for login in Applet:
  System.setProperty(java.security.auth.login.config, 
c:/jaashowto/example/resources/auth.conf);
  |   System.setProperty(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
  |   System.setProperty(Context.PROVIDER_URL, providerUrl);
  |   String pwd = password;
  | 
  |   char[] password = pwd.toCharArray();
  |   String name = user;
  | 
  |   try
  |   {
  |  AppCallbackHandler handler = new AppCallbackHandler(name, 
password);
  |  LoginContext lc = new LoginContext(Test, handler);
  |  lc.login();
  |   }
  |   catch (LoginException e)
  |   {
  | e.printStackTrace();
  |   }
  
The auth.conf as following:
Test {
  |  org.jboss.security.auth.spi.DatabaseServerLoginModule required;
  | };


The server return exception like this:
javax.security.auth.login.LoginException: javax.naming.NameNotFoundException: 
DefaultDS not bound
  | at 
org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:110)
  | at 
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:156)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at javax.security.auth.login.LoginContext.invoke(Unknown Source)
  | at javax.security.auth.login.LoginContext.access$000(Unknown Source)
  | at javax.security.auth.login.LoginContext$4.run(Unknown Source)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at javax.security.auth.login.LoginContext.invokeModule(Unknown Source)
  | at javax.security.auth.login.LoginContext.login(Unknown Source)

Thank you

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3863486#3863486

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3863486


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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 expired 
XAResource.

In weblogic, I can calling 

weblogic.transaction.TxHelper.getTransactionManager().unregisterResource(xares.getClass().getName());

and 

weblogic.transaction.TxHelper.getTransactionManager().registerDynamicResource(xares.getClass().getName(),
 xares);

for reload.

What can I do in Jboss?

Thank you

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3862536#3862536

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862536


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3862073#3862073

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862073


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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.init(ConfigFile.java:97)
  | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  | at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  | at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
  | at java.lang.Class.newInstance0(Class.java:308)
  | at java.lang.Class.newInstance(Class.java:261)
  | at javax.security.auth.login.Configuration$3.run(Configuration.java:221)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215)
  | at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at javax.security.auth.login.LoginContext.init(LoginContext.java:167)
  | at javax.security.auth.login.LoginContext.init(LoginContext.java:404)
  | at org.jboss.docs.jaas.howto.SessionClient.main(SessionClient.java:65)
  | Caused by: java.io.IOException: ???
  | at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
  | at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95)
  | ... 14 more

Could anybody tell me how to fix it?
Thank you


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3862040#3862040

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862040


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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?module=bbop=viewtopicp=3862051#3862051

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862051


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3859910#3859910

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859910


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3859911#3859911

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859911


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3859912#3859912

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859912


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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.jboss.org/index.html?module=bbop=viewtopicp=3859807#3859807

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859807


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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/index.html?module=bbop=viewtopicp=3859816#3859816

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859816


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3859817#3859817

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859817


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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.

Thanks for any help

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3859584#3859584

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859584


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3859523#3859523

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859523


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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.


  |   param name=codebase value=/bea_wls_internal/classes/ 
  | 

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=bbop=viewtopicp=3859535#3859535

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859535


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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. 

  param name=codebase value=/bea_wls_internal/classes/

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=bbop=viewtopicp=3859543#3859543

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859543


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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



type Status report

message Invalid direct reference to form login page

description The request sent by the client was syntactically incorrect 
(Invalid direct reference to form login page).




Apache Tomcat/5.0.28

If I inputed a bad password, the server.log file showed bad password.

Who can tell me why?

Thanks in advance

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3859228#3859228

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859228


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3859230#3859230

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859230


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3859380#3859380

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859380


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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 404 - 
/jaas-page/j_security_check

The error comes out on Jboss 4.0.1RC2 and 3.2.7RC1 which I am using so far.

How can I fix it?

Thanks for any ideas

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3859381#3859381

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859381


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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=bbop=viewtopicp=3858968#3858968

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858968


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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/)

Hope this can help you.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858965#3858965

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858965


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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 Fouth, to change the JMS and JNDI method.

For client
Hashtable env = new Hashtable();
env.put(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
env.put(java.naming.provider.url, localhost:1099);
env.put(java.naming.factory.url.pkgs, org.jboss.naming);

For Server
  private static final String JNDI_FACTORY = 
org.jnp.interfaces.NamingContextFactory;

Good Luck

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858959#3858959

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858959


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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?

Thanks for help

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858961#3858961

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858961


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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 ClassPath, which will lead to another 
exception at doing startup process.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858810#3858810

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858810


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[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 : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858644#3858644

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858644


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user