re: [JBoss-user] problem with LoginModule

2002-04-17 Thread Ren Weili

Great! Cya Tim,
you have really made a woderful solution for this problem!
thanks, thanks!

-ԭʼÓʼþ-
·¢¼þÈË: McAuley, Tim [mailto:[EMAIL PROTECTED]]
·¢ËÍʱ¼ä: 2002Äê4ÔÂ17ÈÕ 17:18
ÊÕ¼þÈË: 'Jboss-User (E-mail)'
³­ËÍ: Ren Weili
Ö÷Ìâ: RE: [JBoss-user] problem with LoginModule


I had the same (or at least similar) problem. 

>From a recent version of JBoss beta2 (about 2 weeks ago) I found I needed to
add some security settings for accessing the database. These I added into
auth.conf, by duplicating the entry for DefaultDbRealm that was in that file
and produced:

// Security domain for testing new jca framework
PostgresDbRealm {
//  
//  Security domain for new jca framework. 
// One per ManagedConnectionFactory are required.
org.jboss.resource.security.ConfiguredIdentityLoginModule required
principal="postgresuser"
userName="postgresuser"
password="password"
 
managedConnectionFactoryName="jboss.jca:service=LocalTxCM,name=PostgresDS"
;
};

When I switched to RC1 I began getting security errors.

After a while of messing about I found the settings had been moved from
auth.conf to login-config.xml, like so:



   
  
 postgresuser
 postgresuser
 password
 jboss.jca:service=LocalTxCM,name=PostgresDS
  
   


Once I reset auth.conf to the RC1 version and setup login-config.xml
correctly everything was fine. I didn't need to add in users.properties or
roles.properties.

This may or may not help you, but it worked for me fine. 

Yes, it would be nice to have access to updated docs... or even basic
release notes to point out these things, but aside from that you're getting
a lot from JBoss and we just have to be patient sometimes.

Cya

Tim


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] problem with LoginModule

2002-04-16 Thread Ren Weili

Hi all,
my old .ear worked fine with jboss-3.0.0beta.
in jboss-3.0.0RC1, it first complained with NullPointerException.
After I have read the user-maillist, I removed all ejb interfaces in
.war file.
then it complained SecurityException. and in the JBoss Console, it
said can not find users.properties and roles.properties.
I followed the description in
jboss-3.0.0RC1/server/default/conf/login-config.xml, created the 2 files
with same line :
unauthenticatedIdentity="nobody"

finally it appears in the browser :
getAll failed due to: java.lang.SecurityException:Invalid
authentication attempt, principal=null; nested exception is:
javax.ejb.EJBException: getAll failed due to:
java.lang.SecurityException:Invalid authentication attempt, principal=null

what can I do ?
Hope the Manual for 3.0.0 can be updated not too late.


thanks to any answer.

Mit freundlichen Gruessen
Ren Weili  
<mailto:[EMAIL PROTECTED]>
TEL : 0086-21-695-62686
FAX : 0086-21-595-77922
SVW CS *-1


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problem mit 3.0.0RC1

2002-04-15 Thread Ren Weili

hi all,
I have installed JBoss-3.0.0RC1 on Debian Linux.
And I replaced jetty with Tomcat-4.0.4-b2-01.

After I started with run.sh, it complains the same error:

  Starting deployment of package:
file:/opt/jboss-3.0.0RC1/server/default/deploy/webtest.ear
  13:04:49,898 INFO  [EARDeployer] Init J2EE application: file:/opt/jboss-3.
0.0RC1/server/default/deploy/webtest.ear
  13:04:50,184 INFO  [EmbeddedCatalinaServiceSX] deploy, ctxPath=,
warUrl=njar:file:/opt/jboss-3.0.0RC1/server/default/tmp/deploy/opt/jboss-3.0
.0RC1/server/default/deploy/webtest.ear/105.webtest.ear^/ROOT.war
  13:04:52,392 INFO  [Engine] StandardContext[]: Error initializing
resources: Doc base must point to a WAR file
  13:04:54,666 INFO  [Engine] StandardContext[]: Context startup failed due
to previous errors
  13:04:54,686 ERROR [Engine] StandardContext[]: Exception during cleanup
after start failed
  LifecycleException:  Container StandardContext[] has not been started

 
 
 
 deploy, ctxPath=/lreg1,
warUrl=njar:file:/opt/jboss-3.0.0RC1/server/default/tmp/deploy/opt/jboss-3.0
.0RC1/server/default/deploy/lr_eg1.ear/106.lr_eg1.ear^/lr_eg1.war
 13:04:56,754 INFO  [Engine] StandardContext[/lreg1]: Error initializing
resources: Doc base must point to a WAR file
 13:04:56,759 INFO  [Engine] StandardContext[/lreg1]: Context startup failed
due to previous errors
 13:04:56,780 ERROR [Engine] StandardContext[/lreg1]: Exception during
cleanup after start failed
 LifecycleException:  Container StandardContext[/lreg1] has not been started


can anybody help me?


Mit freundlichen Gruessen
Ren Weili  
<mailto:[EMAIL PROTECTED]>
TEL : 0086-21-695-62686
FAX : 0086-21-595-77922
SVW CS *-1


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] problem with the cmp2-example

2002-03-24 Thread Ren Weili

> hello all ,  
>   I have bought the six month subscription of whole JBOSS Doc set.
>   When I play with cmp-example, it produced error.
>   the file is  log fragment, can somebody  tell me how to solve it?
>   thanks!
>  <> 
> 
> Mit freundlichen Gruessen
> Ren Weili  
> <mailto:[EMAIL PROTECTED]>
> TEL   : 0086-21-695-62686
> FAX   : 0086-21-595-77922
> SVW CS *-1
> 



err.log
Description: Binary data