[JBoss-user] problem with LoginModule

2002-04-17 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



Re: [JBoss-user] problem with LoginModule

2002-04-17 Thread David Jencks

There are several posts on the db /persistence forum and examples in at
least login-conf.xml, jdatastore-service.xml, and db2-service.xml on how to
set up a ConfiguredIdentityLoginModule for a datasource.

david jencks

On 2002.04.17 02:18:33 -0400 Ren Weili wrote:
 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 mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] embedded tomcat 4 issue

2002-04-17 Thread Scott M Stark

 I haven't found any Entity Bean tests in the test suite so I couldn't
 compare.  This problem may not have anything to do with Session/Entity
 and may just be a configuration issue with the beans - I don't know.
There are now and accessing them from a servlet works fine.

 1. Is there any big difference between:
  a. ctx.lookup (MyEJB )=20
   without adding anything to the web.xml (like ejb-ref)
 
  b. ctx.lookup ( java:comp/env/ejb/MyEJB );
   after adding ejb-ref...nameejb/MyEJB/name.
   to the web.xml
a. requires that you embed the deployed name of the ejb home in
your code while b. is independent of this.

 2. Because I am trying to get the app to run on both embedded and=20
  remote tomcat configs, I pass in a properties file to  InitialContext
 when I create it. =20
  ie ctx =3D new InitialContext(props);
  That way I don't have to modify any tomcat scripts to get the  right
 jnp properties and all.
 
  Does this make any difference to the embedded tomcat on jboss? =20

It should not make a difference.

Look at the jbosstest-web.ear again and submit a bug report with an example
ear that demonstrates the problem.


Scott Stark
Chief Technology Officer
JBoss Group, LLC





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



RE: [JBoss-user] problem with LoginModule

2002-04-17 Thread McAuley, Tim

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:

!-- Security domains for testing new jca framework --
application-policy name = PostgresDbRealm
   authentication
  login-module code =
org.jboss.resource.security.ConfiguredIdentityLoginModule
 flag = required
 module-option name = principalpostgresuser/module-option
 module-option name = userNamepostgresuser/module-option
 module-option name = passwordpassword/module-option
 module-option name =
managedConnectionFactoryNamejboss.jca:service=LocalTxCM,name=PostgresDS/
module-option
  /login-module
   /authentication
/application-policy

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


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ren Weili
 Sent: 17 April 2002 07:19
 To: Jboss-User (E-mail)
 Subject: [JBoss-user] problem with LoginModule
 
 
 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 mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Collections in CMP2.0

2002-04-17 Thread Peter Shillan

Hi there,

If I have a CMP 2.0 attribute which is a collection, I have

public abstract void setChildren(java.util.Collection children);

public abstract java.util.Collection getChildren();

My understanding was that if I want, I can write the following:

public void addChild(MyBean child)
{
Collection children = getChildren();
children.add(child);
setChildren(children);
}

But in the line Collection children = getChildren(); JBoss returns a null. Orion 
returns a valid empty collection and it strikes me that this behaviour is correct. 
What is your opinion here?

Regards,

Peter.



E-mail is an informal method of communication and may be subject to data corruption, 
interception and unauthorised amendment for which Digital Bridges Ltd will accept no 
liability. Therefore, it will normally be inappropriate to rely on information 
contained on e-mail without obtaining written confirmation.

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.




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



Re: [JBoss-user] Curious ejb-jar.xml error

2002-04-17 Thread Ricardo Argüello

Check this:

Sweet Ant Tools
http://www.sdv.fr/pages/casa/html/sat.en.html

I haven't used it, but it has a Validation task for Ant.


Ricardo Arguello
[EMAIL PROTECTED]



- Original Message - 
From: Simon Stewart [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 10:29 AM
Subject: Re: [JBoss-user] Curious ejb-jar.xml error


 My fault: I've been concentrating a little too hard on this problem
 for too long. Did something else, came back and saw that I'd been
 editing the wrong ejb-jar.xml file. Gah!
 
 Still wouldn't mind a verifying tool that plugs into ant, though, if
 anyone knows of one?
 
 On Wed, Apr 17, 2002 at 02:13:21PM +0100, Simon Stewart wrote:
  The reason why I'd like to have a tool to verify my ejb-jar.xml files
  is that I'm currently having a difficult time getting JBoss 3RC1
  running with JDK 1.4 to deploy the OpenSymphony oscore module[1]
  
  I've modified the ejb-jar.xml file after it failed to deploy properly,
  and as far as I can see it's correct. It's probably something obvious,
  but I'm not having the same problem under Orion. The stack trace
  begins:
 
 Cheers,
 
 Simon
 
 -- 
 You know, I've gone to a lot of psychics, and they've told me a lot of different 
things, but
  not one of them has ever told me 'You are an undercover policewoman here to arrest 
me.'
 --- anonymous New York City undercover policewoman
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


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



Re: [JBoss-user] embedded tomcat 4 issue

2002-04-17 Thread Dennis Muhlestein

Thank you for your input.  I'm making much progress in this area and
most of my application works with tomcat locally now.

I have got everything to work at this point except for one Entity Bean
(CMP 2.0).  I have other Entity Beans that work fine.  So this is really
tricky.

I can lookup the bean and get the Home Interface from my servlet/jsp. 
Then, when I try to call findByPrimaryKey, I get a NullPointerException:

java.rmi.ServerException: null; nested exception is:
java.lang.NullPointerException
2002-04-17 11:03:33,118 ERROR [STDERR] java.lang.NullPointerException
2002-04-17 11:03:33,118 ERROR [STDERR]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer
.java:1107)
2002-04-17 11:03:33,119 ERROR [STDERR]  at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java
:73)
2002-04-17 11:03:33,119 ERROR [STDERR]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynch
ronizationInterceptor.java:230)
2002-04-17 11:03:33,119 ERROR [STDERR]  at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome
etc...


This is funny because it only happens on this one bean.  Other beans are
configured the same way and work fine.  Also this works when I use
tomcat on a remote box (I just checked again to make sure) or in a
separate JVM.

I added some debug statements to org.jboss.ejb.EntityContainer.java  I
found that The map does contain an entry for the findByPrimaryKey method
but when the homeMapping.get(mi.getMethod()) is called, it returns null.

Is this a class Loading issue like there used to be?  I wish I could
submit a test cast but when I try a simple example it works fine.  I
have 10-15 beans deployed/a mix of Session/SLS/Entity.  The problem
occurs on this one bean every time without fail and independent of which
jsp/servlet tries to use it.  Everything works great when I run tomcat
on a separate box.

In the mean time, I'll keep playing and seeing if I can find something
unique about this bean?

Again, Thanks for any input.
-Dennis


On Wed, 2002-04-17 at 02:51, Scott M Stark wrote:
  I haven't found any Entity Bean tests in the test suite so I couldn't
  compare.  This problem may not have anything to do with Session/Entity
  and may just be a configuration issue with the beans - I don't know.
 There are now and accessing them from a servlet works fine.
 
  1. Is there any big difference between:
   a. ctx.lookup (MyEJB )=20
without adding anything to the web.xml (like ejb-ref)
  
   b. ctx.lookup ( java:comp/env/ejb/MyEJB );
after adding ejb-ref...nameejb/MyEJB/name.
to the web.xml
 a. requires that you embed the deployed name of the ejb home in
 your code while b. is independent of this.
 
  2. Because I am trying to get the app to run on both embedded and=20
   remote tomcat configs, I pass in a properties file to  InitialContext
  when I create it. =20
   ie ctx =3D new InitialContext(props);
   That way I don't have to modify any tomcat scripts to get the  right
  jnp properties and all.
  
   Does this make any difference to the embedded tomcat on jboss? =20
 
 It should not make a difference.
 
 Look at the jbosstest-web.ear again and submit a bug report with an example
 ear that demonstrates the problem.
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 
 




signature.asc
Description: This is a digitally signed message part


[JBoss-user] embedded tomcat

2002-04-17 Thread Dennis Muhlestein


OK, My bad everyone.   I hope this helps someone out there!

The reason only one bean didn't work is that the WEB-INF/lib/ had on old
copy of that one Bean's interface(Ant build issue I thought was fixed). 
Therefore, it was a classloading issue.  Bottom line is, to deploy an
ear, the war files WEB-INF/lib cannot contain any interfaces to the
ejbs.  Didn't really matter how I configured the web.xml/jboss-web.xml
or how I lookup the beans.

I'm proud to report I've finally got my application running on the
embedded tomcat4/jboss3 solution.

Thanks



signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] Collections in CMP2.0

2002-04-17 Thread Dain Sundstrom

Peter Shillan wrote:

 Hi there,
 
 If I have a CMP 2.0 attribute which is a collection, I have
 
 public abstract void setChildren(java.util.Collection children);
 
 public abstract java.util.Collection getChildren();
 
 My understanding was that if I want, I can write the following:
 
 public void addChild(MyBean child)
 {
   Collection children = getChildren();
   children.add(child);
   setChildren(children);


No, you don't need to do the setChildren.  The collection is live.

 
 But in the line Collection children = getChildren(); JBoss returns

 a null. Orion returns a valid empty collection and it strikes me 

 that this behaviour is correct. What is your opinion here?


That shouldn't happen.  You should always get a collection back.  Check 
your configuration files.

-dain


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



[JBoss-user] Problem with JBOSS

2002-04-17 Thread jaime1

People when i run my application tecedu.ear , after de 30 minutes i have the
following message

./run.sh : line 27 : 23759 Segmentation fault  java $HOTSPOT
$JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@

i use BMP for mi application and when deployment my application, i don't any
anormal message, anybody have an idea about what's my problem

Regards
Jaime



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



[JBoss-user] standardjboss.xml configuration

2002-04-17 Thread Christine

Hi, I wrote a sample code to test the configuration of commit-option
in  standardjboss.xml. I searched the forum, so I think that if i set
like commit-optionC/commit-option then my code should work. But It
doesn't. and I got the exception. Could anyone help? Thanks in advance!

Remote Exception:  RemoteException occurred in server thread; nested
exception is:
javax.transaction.TransactionRolledbackException: INSERTING AN
ALREADY EXISTING BEAN, ID = milos.enactment.Agent
Key@1; nested exception is:
java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING
BEAN, ID = milos.enactment.AgentKey@1

My code is simple. I created 3 agentbeans, then I use jdbc to clean the
table, after that I tried to create the same beans again:

   ctx = new javax.naming.InitialContext();
   AgentHome aHome = (AgentHome) ctx.lookup(milos/enactment/Agent);

aHome.create(lg1, ps, fn1, ln1);
aHome.create(lg2, ps, fn2, ln2);
aHome.create(lg3, ps, fn3, ln3);

  if (connection == null) {
   System.setProperty(jdbc.drivers, DB_DRIVER);
   Class.forName(DB_DRIVER);
   connection = DriverManager.getConnection(DB_URL, DB_ACCOUNT,
DB_PASSWORD);
  }
Statement statement = connection.createStatement();
   // clean Agent
   statement.execute(delete from agent);
  if (connection != null) connection.close();

aHome.create(lg1, ps, fn1, ln1);
aHome.create(lg2, ps, fn2, ln2);
aHome.create(lg3, ps, fn3, ln3);



--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary



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



[JBoss-user] standardjboss.xml configuration

2002-04-17 Thread Christine

Hi, I wrote a sample code to test the configuration of commit-option
in  standardjboss.xml. I searched the forum, so I think that if i set
like commit-optionC/commit-option then my code should work. But It
doesn't. and I got the exception. Could anyone help? Thanks in advance!

Remote Exception:  RemoteException occurred in server thread; nested
exception is:
javax.transaction.TransactionRolledbackException: INSERTING AN
ALREADY EXISTING BEAN, ID = milos.enactment.Agent
Key@1; nested exception is:
java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING
BEAN, ID = milos.enactment.AgentKey@1

My code is simple. I created 3 agentbeans, then I use jdbc to clean the
table, after that I tried to create the same beans again:

   ctx = new javax.naming.InitialContext();
   AgentHome aHome = (AgentHome) ctx.lookup(milos/enactment/Agent);

aHome.create(lg1, ps, fn1, ln1);
aHome.create(lg2, ps, fn2, ln2);
aHome.create(lg3, ps, fn3, ln3);

  if (connection == null) {
   System.setProperty(jdbc.drivers, DB_DRIVER);
   Class.forName(DB_DRIVER);
   connection = DriverManager.getConnection(DB_URL, DB_ACCOUNT,
DB_PASSWORD);
  }
Statement statement = connection.createStatement();
   // clean Agent
   statement.execute(delete from agent);
  if (connection != null) connection.close();

aHome.create(lg1, ps, fn1, ln1);
aHome.create(lg2, ps, fn2, ln2);
aHome.create(lg3, ps, fn3, ln3);



--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary



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



RE: [JBoss-user] Problem with JBOSS

2002-04-17 Thread JD Brennan
Title: RE: [JBoss-user] Problem with JBOSS





Attach gdb to the JBoss java process before you deploy (or run).
Then you should get a stack trace and maybe that will provide
a clue as to what's going wrong. It's probably a bad pointer in
a JNI call. ;-) If you can figure out which JNI .so file, then
we can dig into that.


JD


-Original Message-
From: jaime1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:29 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Problem with JBOSS



People when i run my application tecedu.ear , after de 30 minutes i have the
following message


./run.sh : line 27 : 23759 Segmentation fault java $HOTSPOT
$JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@


i use BMP for mi application and when deployment my application, i don't any
anormal message, anybody have an idea about what's my problem


Regards
Jaime




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





Re: [JBoss-user] Differences between 2.x and 3.x?

2002-04-17 Thread Dmitri Colebatch

  Also - have a look at XDoclet (http://sf.net/projects/xdoclet) as a
useful
  development tool that has strong support for JBoss.

 Thanks.  I will be using JBuilder 6 with the JBoss open tool so I think I
 might have that side of things covered.

just FYI, XDoclet is a tool that plugs into ant, and saves you time
generating, and keeping uptodate, your remote/home interfaces and deployment
descriptors etc.  There's no reason you couldn't use it with JBuilder.

cheers
dimm


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



Re: [JBoss-user] Problem with JBOSS

2002-04-17 Thread jaime1
Title: RE: [JBoss-user] Problem with JBOSS



I don't sure but for run Jboss with gdb , the Jboss 
shoul be compile with the option for support the gdb, the version 

do you knwon if JBoss-2.4.4_Tomcat-3.2.3.zip 
have this option ?

regards
Jaime



  - Original Message - 
  From: 
  JD Brennan 
  To: 'jaime1' ; 
  [EMAIL PROTECTED] 
  
  Sent: Wednesday, April 17, 2002 4:12 
  PM
  Subject: RE: [JBoss-user] Problem with 
  JBOSS
  
  Attach gdb to the JBoss java process before you deploy (or 
  run). Then you should get a stack trace and maybe that 
  will provide a clue as to what's going wrong. 
  It's probably a bad pointer in a JNI call. ;-) 
  If you can figure out which JNI .so file, then we can 
  dig into that. 
  JD 
  -Original Message- From: 
  jaime1 [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, April 17, 2002 1:29 PM To: [EMAIL PROTECTED] 
  Subject: [JBoss-user] Problem with JBOSS 
  People when i run my application tecedu.ear , after de 30 
  minutes i have the following message 
  ./run.sh : line 27 : 23759 Segmentation fault java 
  $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH 
  org.jboss.Main $@ 
  i use BMP for mi application and when deployment my 
  application, i don't any anormal message, anybody have 
  an idea about what's my problem 
  Regards Jaime 
  ___ 
  JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user 
  


RE: [JBoss-user] Problem with JBOSS

2002-04-17 Thread JD Brennan
Title: RE: [JBoss-user] Problem with JBOSS



It's the Java runtime that could be compiled 
with debug support (not JBoss),
but that's not 
necessary. gdb can be used to debug a program that 
was
not compiled with debug info. You 
just get less information (no file name,
and line numbers). The stack trace should 
still tell you what .so file is
causing the 
problem.

JD

-Original Message-From: jaime1 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 17, 2002 3:12 
PMTo: JD Brennan; [EMAIL PROTECTED]Subject: 
Re: [JBoss-user] Problem with JBOSS
I don't sure but for run Jboss with gdb , the Jboss 
shoul be compile with the option for support the gdb, the version 

do you knwon if JBoss-2.4.4_Tomcat-3.2.3.zip 
have this option ?

regards
Jaime



  - Original Message - 
  From: 
  JD Brennan 
  To: 'jaime1' ; 
  [EMAIL PROTECTED] 
  
  Sent: Wednesday, April 17, 2002 4:12 
  PM
  Subject: RE: [JBoss-user] Problem with 
  JBOSS
  
  Attach gdb to the JBoss java process before you deploy (or 
  run). Then you should get a stack trace and maybe that 
  will provide a clue as to what's going wrong. 
  It's probably a bad pointer in a JNI call. ;-) 
  If you can figure out which JNI .so file, then we can 
  dig into that. 
  JD 
  -Original Message- From: 
  jaime1 [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, April 17, 2002 1:29 PM To: [EMAIL PROTECTED] 
  Subject: [JBoss-user] Problem with JBOSS 
  People when i run my application tecedu.ear , after de 30 
  minutes i have the following message 
  ./run.sh : line 27 : 23759 Segmentation fault java 
  $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH 
  org.jboss.Main $@ 
  i use BMP for mi application and when deployment my 
  application, i don't any anormal message, anybody have 
  an idea about what's my problem 
  Regards Jaime 
  ___ 
  JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user 
  


RE: [JBoss-user] Differences between 2.x and 3.x?

2002-04-17 Thread JD Brennan
Title: RE: [JBoss-user] Differences between 2.x and 3.x?





I believe JBuilder will make it easy to create a bean
in one place, but when you want to add a new method to it,
you have to modify all the files. XDoclet allows you to
create and modify your bean in one place - very cool!


JD


-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 3:03 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Differences between 2.x and 3.x?



  Also - have a look at XDoclet (http://sf.net/projects/xdoclet) as a
useful
  development tool that has strong support for JBoss.

 Thanks. I will be using JBuilder 6 with the JBoss open tool so I think I
 might have that side of things covered.


just FYI, XDoclet is a tool that plugs into ant, and saves you time
generating, and keeping uptodate, your remote/home interfaces and deployment
descriptors etc. There's no reason you couldn't use it with JBuilder.


cheers
dimm



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





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:

!-- Security domains for testing new jca framework --
application-policy name = PostgresDbRealm
   authentication
  login-module code =
org.jboss.resource.security.ConfiguredIdentityLoginModule
 flag = required
 module-option name = principalpostgresuser/module-option
 module-option name = userNamepostgresuser/module-option
 module-option name = passwordpassword/module-option
 module-option name =
managedConnectionFactoryNamejboss.jca:service=LocalTxCM,name=PostgresDS/
module-option
  /login-module
   /authentication
/application-policy

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



Re: [JBoss-user] Entity Bean Test Failure

2002-04-17 Thread Burkhard Vogel

Hi.
Try Required so the container does a commit after execution of
ejbCreate() - This should put the data in the DB.
Regards,
Burkhard
- Original Message -
From: Peter Shillan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Burkhard Vogel [EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 10:01 AM
Subject: Re: [JBoss-user] Entity Bean Test Failure


 The transaction attribute is Supports... is this a goof?

 Peter.

 On Tue, 16 Apr 2002 16:26:07 -0500
 Burkhard Vogel [EMAIL PROTECTED] wrote:

  And:
  What's the transaction attribute? Anything deployed without
warning/error?
  Regards,
  Burkhard
  - Original Message -
  From: Dain Sundstrom [EMAIL PROTECTED]
  To: Peter Shillan [EMAIL PROTECTED]
  Cc: jboss-user [EMAIL PROTECTED]
  Sent: Tuesday, April 16, 2002 10:47 AM
  Subject: Re: [JBoss-user] Entity Bean Test Failure
 
 
   What is the code for the create and post create?  What is the
serverside
   exception?  What is the primary key type?
  
   -dain

 

 E-mail is an informal method of communication and may be subject to data
corruption, interception and unauthorised amendment for which Digital
Bridges Ltd will accept no liability. Therefore, it will normally be
inappropriate to rely on information contained on e-mail without obtaining
written confirmation.

 This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

 


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



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



[JBoss-user] ÊÖ»ú×îµÍ¼Û£¬·þÎñË͵½¼Ò¡£

2002-04-17 Thread friend

ÄúºÃ£º

ÎÒ·¢ÏÖÁËÒ»¸öÂôÊÖ»úµÄÍøÕ¾£¬¼Û¸ñ¾ªÈ˵ıãÒË£¬ºóÀ´Á˽⵽´ËÍøÕ¾ÊǹúÄÚÒ»¼Ò±È½Ï´óµÄÊÖ»úÅú·¢É̽¨ÉèµÄÍøÕ¾£¬ºÜ¶àÍøÓÑͨ¹ý´ËÍøÕ¾Âòµ½Á˳ÆÐÄÈçÒâµÄÊÖ»ú£¬È«²¿ÊÖ»ú¶¼ÊÇÕýÆ·Ðлõ£¬ÊÛºó·þÎñºÜºÃ¡£ÍøÕ¾ÄÚÈÝÒ²ºÜ·á¸»£¬¼¸ºõ°üÀ¨ÁËÊÖ»úµÄ·½·½ÃæÃ棬¶ÔÄú¿Ï¶¨ÓаïÖú£¬ÌرðÍƼö¸øÄã¡£ÍøַΪ£º
http://www.139shop.com/asp/mem-from.asp?uid=waynetan

ÎҾͲ»¶à˵ÁË£¬Äã¿´Á˾ÍÖªµÀÁË¡£

ÄãµÄºÃÅóÓÑ£ºwaynetan


ʹÓü«ÐÇÓʼþȺ·¢£¬ÎÞÐëͨ¹ýÓʼþ·þÎñÆ÷£¬Ö±´ï¶Ô·½ÓÊÏ䣬ËٶȾø¶ÔÒ»Á÷£¡
ÏÂÔØÍøÖ·£ºhttp://www.lovexin.com£¬¸ü¶àÃâ·ÑµÄ³¬¿áÈí¼þµÈÄãÀ´Ï¡­¡­


INFORMATION
This message has been sent using a trial-run version
of the TSmtpRelayServer Delphi Component.


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



[JBoss-user] 3RC1 Requires users.properties File?

2002-04-17 Thread Hunter Hillegas

Just checked out a fresh copy of the 3.0RC branch and compiled.

When deploying an EAR, I see this:

21:20:20,036 ERROR [UsersRolesLoginModule] Failed to load
users/passwords/role files
java.io.IOException: Properties file users.properties not found

Is this file required? I've never used/seemed-to-need it before... What
should it contain?

This sets off a long chain of exceptions that all imply that required
security is not present.

Thanks,
Hunter


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