[JBoss-user] What does this exception mean?

2003-01-07 Thread Matthew Van Horn
I get this message intermittently, usually after another error has 
occurred, and I am rerunning a test.

javax.ejb.EJBException: Invalid invocation, check your deployment 
packaging, method=public abstract 
com.accesstech.atjsystems.db.XindiceClientLocal 
com.accesstech.atjsystems.db.XindiceClientLocalHome.create() throws 
javax.ejb.CreateException

Can someone give me a quick summary of what this is all about?

Thanks,
Matt



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Strange Exception: JMS - MDB - Session Bean

2003-01-07 Thread Scott M Stark
2.4 will automatically downgrade to marshall calls by value. Use the by value
interceptor in 3.0.5 and would can have the same effect as the cost of the
by value calls as opposed to call by reference.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: joerg maier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 06, 2003 10:45 PM
Subject: Re: [JBoss-user] Strange Exception: JMS - MDB - Session Bean


  An MDB interacting with a session bean will fail if they are in seperate
  deployment
  units and you redeploy the session bean. When you do this you have
  effectively
  changed the versions of all the session bean interfaces.
  The MDB must be redeployed as well.
   ^^^
 With Jboss2.4.9 it works. You don´t need a redeploy of the MDB bean when
 you change the sessionbean.
 It seems only the new version 3.04 have this problem.

 --
 +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
 NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!



 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
 http://www.vasoftware.com
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] FK fields mapped to PK fields support ported to JBoss-3.2

2003-01-07 Thread Jon Finanger
You mean i can download the 3.2rc and use a fk as a pk?
wasn't that headed for the 4.0 release?
-Jon

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
 Loubyansky
 Sent: 24. desember 2002 20:28
 To: JBoss-User
 Subject: [JBoss-user] FK fields mapped to PK fields support ported to
 JBoss-3.2
 
 
 It's possible to map foreign key fields in one-to-many and one-to-one
 relationships to the primary key fields. All is needed is to assign the same
 names to the corresponding foreign and primary key fields.
 
 Relationships are assigned between ejbCreate and ejbPostCreate. This
 means that relationships are accessible in ejbPostCreate and not in ejbCreate.
 Relationships are established and removed only with creation and
 removal of entities. Modifications with abstract CMR accessors are not
 allowed as they change primary key values.
 
 If ONE side doesn't exist CMR on the MANY side will return null value.
 If MANY side doesn't exist CMR on the ONE side will return empty collection.
 
 If cascade-delete is specified then removal of the ONE side will
 remove the related MANY side. In this case, ONE side is removed first
 breaking the relationship, i.e. CMR field on the MANY side in ejbRemove will return 
null.
 
 alex
 
 
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] [non HTML repost] References ObjectFactories

2003-01-07 Thread Brian Topping
 From: Scott M Stark [mailto:[EMAIL PROTECTED]]
 Subject: Re: [JBoss-user] [non HTML repost] References  
 ObjectFactories
 

Sorry, this is my first time for remoted MBeans, so I'm a little slow.

 1. Expose the security manager interfaces methods as MBean 
 operations on
 the JaasSecurityManagerServiceMBean with an additional argument of the
 security domain name. Now the ops are available over any protocol for
 which there is a JMX connector.

Okay, there are a total of four of them.  For example on the
AuthenticationManager exposure:

public boolean isValid(String securityDomain, Principal principal, Object
credential) {
SecurityDomainContext securityDomainCtx = (SecurityDomainContext)
securityDomainCtxMap.get(securityDomain);
if( securityDomainCtx == null ) {
AuthenticationManager am =
securityDomainCtx.getSecurityManager();
return am.isValid(principal, credential);
}
return false;
}

Looks okay?

 2. Create a ObjectFactory that returns a security manager proxy...

How's this look?  I'm concerned that I need to do stuff that is more like
what's found in AbstractSecurityProxy though, maybe even subclass it and
publish that.  Which method is correct, AbstractSecurityProxy or what I'm
doing here?  

public class AuthenticationManagerFactory implements InvocationHandler,
ObjectFactory {
protected String securityDomain = null;

/** Object factory implementation. This method returns an
AuthenticationManager proxy
 that is only able to handle all operations
 */
public Object getObjectInstance(Object obj, Name name, Context
nameCtx, Hashtable environment)
throws Exception {
this.securityDomain = name.toString();
ClassLoader loader =
Thread.currentThread().getContextClassLoader();
Class[] interfaces = {AuthenticationManager.class};
Context ctx = (Context) Proxy.newProxyInstance(loader,
interfaces, this);
return ctx;
}

/** This is the InvocationHandler callback for the
AuthenticationManager interface that
 was created by out getObjectInstance() method. This remotes through
to the methods exposed on the
 JaasSecurityManagerService (which in turn call into the actual
AuthenticationManager)
 */
public Object invoke(Object obj, Method method, Object[] args) throws
Throwable {
String methodName = method.getName();
if (methodName.equals(isValid) == true) {
SecurityDomainContext securityDomainCtx =
(SecurityDomainContext) securityDomainCtxMap.get(securityDomain);
AuthenticationManager authenticationMgr =
securityDomainCtx.getSecurityManager();
return new Boolean(authenticationMgr.isValid((Principal)
args[0], args[1]));
} else {
throw new OperationNotSupportedException(method +  is not
supported);
}
}
}


 ... bound to a security domain name based on the subcontext name used
during the
 lookup. This delegates to the JaasSecurityManagerServiceMBean 
 operations using the JMX connector. Bind this into the client 
 JNDI space.

If what I have above is correct, the actual bind is no big deal, but where to
put it so it isn't getting bound every time a new container comes on line
seems to be the best thing to do.  I'm guessing there is some point in the
XML config digester (or that it calls) that would be a good place for this.

 3. For each web app create a JNDI link from the ENC space to the name
 of the ObjectFactory binding + the security domain name.

That's also pretty simple, as a part of the web.xml.

 90 mins of work.

I'm really looking forward for when this applies to me too :-)

Thanks for your patience with me on this...

-b


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] certain apps hanging..

2003-01-07 Thread Scott M Stark
Try sending it as an attachment.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: Rob Helmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 06, 2003 4:56 PM
Subject: Re: [JBoss-user] certain apps hanging..


 Hi Scott,
 
 
 Thanks for the reply!
 
 This is one of the first things I did, I couldn't seem to spot it
 from the output though.. 
 
 Can I send this to the list?
 
 
 
 Thanks,
 Rob Helmer



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[2]: [JBoss-user] FK fields mapped to PK fields support ported to JBoss-3.2

2003-01-07 Thread Alex Loubyansky
Hello Jon,

Tuesday, January 07, 2003, 11:56:56 AM, you wrote:

JF You mean i can download the 3.2rc and use a fk as a pk?

yes, though, not sure whether it is in the binaries.
Use CVS to get it for sure.

alex

JF wasn't that headed for the 4.0 release?
JF -Jon

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
 Loubyansky
 Sent: 24. desember 2002 20:28
 To: JBoss-User
 Subject: [JBoss-user] FK fields mapped to PK fields support ported to
 JBoss-3.2
 
 
 It's possible to map foreign key fields in one-to-many and one-to-one
 relationships to the primary key fields. All is needed is to assign the same
 names to the corresponding foreign and primary key fields.
 
 Relationships are assigned between ejbCreate and ejbPostCreate. This
 means that relationships are accessible in ejbPostCreate and not in ejbCreate.
 Relationships are established and removed only with creation and
 removal of entities. Modifications with abstract CMR accessors are not
 allowed as they change primary key values.
 
 If ONE side doesn't exist CMR on the MANY side will return null value.
 If MANY side doesn't exist CMR on the ONE side will return empty collection.
 
 If cascade-delete is specified then removal of the ONE side will
 remove the related MANY side. In this case, ONE side is removed first
 breaking the relationship, i.e. CMR field on the MANY side in ejbRemove will return 
null.
 
 alex




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Purposes/behavior of different MBean services

2003-01-07 Thread Meyer-Willner, Bernhard
Hi,

does anybody from the JBoss team care to comment on those MBeans? Seems
there some interesting services offered and I'd love to know what they're
for, can't find any docs or meaningful info on the forums, though.

Thanks,
Bernhard

-Ursprüngliche Nachricht-
Von: Meyer-Willner, Bernhard [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 6. Januar 2003 16:06
An: JBoss-User (E-Mail)
Betreff: [JBoss-user] Purposes/behavior of different MBean services


Hi,

I have a couple of questions on different MBean services which are not
covered in the paid-for docs unfortunately, or are covered, but not in a
sufficient manner IMHO.

I'd love to hear from anybody who can tell me about the following:

1:
--

Except from jboss-service.xml:

!--
 --
!-- Monitoring and Management
--
!--
 --
!-- Uncomment to enable JMX monitoring of the bean cache   --

  mbean code=org.jboss.monitor.BeanCacheMonitor 
 name=jboss.monitor:name=BeanCacheMonitor/
!-- Uncomment to enable JMX monitoring of the entity bean locking
--
  mbean code=org.jboss.monitor.EntityLockMonitor 
 name=jboss.monitor:name=EntityLockMonitor/

2:
--

Excerpt from jboss-service.xml

!--
 --
!-- Deployment Scanning
--
!--
 --
!-- Uncomment to enable caching of deployment units  --
  mbean code=org.jboss.deployment.cache.FileDeploymentStore
 name=jboss.deployment:type=DeploymentStore,flavor=File
attribute name=DirectoryNamedata/deployment-cache/attribute
  /mbean

  mbean code=org.jboss.deployment.cache.DeploymentCache
 name=jboss.deployment:type=DeploymentCache
depends
optional-attribute-name=Deployerjboss.system:service=MainDeployer/depend
s
depends
optional-attribute-name=Storejboss.deployment:type=DeploymentStore,flavor
=File/depends
  /mbean

3:
--

What's the counter service MBean for (counter-service.xml) and how can it be
used and for what purposes?

Thanks,
Bernhard

This e-mail and any attachment is for authorised use by the intended
recipient(s) only.  It may contain proprietary material, confidential
information and/or be subject to legal privilege.  It should not be copied,
disclosed to, retained or used by, any other party.  If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender.  Thank you.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] ANNOUNCE: BeanShell JBoss sub-deployer in HEAD

2003-01-07 Thread Sacha Labourey
Hello,

Yesterday I commited a BeanShell (BSH, www.beanshell.org) sub-deployer in
HEAD. It is in module varia and you can find its lib in
varia/output/lib/bsh-deployer.sar.

It allows you to hot-deploy *.bsh files in /deploy.

SIMPLE USAGE: client-only
=
In its simple usage, the script will act as a simple client-script making
invocations on other objects. Each script can follow the
org.jboss.system.Service interface i.e. the create, start, stop and destroy
calls. You can implement only a subset of those. Thus, a very simply
one-line script can be: Simple.bsh:

void start() { System.out.println (I'm called!); }

that's it.


ADVANCED USAGE: server script!
==
But it is almost as easy to make your script a JBoss service fully
invocable/administrable through JMX! For this, your script can implement any
of the methods of the following interface:

public interface ScriptService
   extends org.jboss.system.Service
{
   public String objectName ();
   public String[] dependsOn ();
   public Class[] getInterfaces ();

   public void setCtx (ServiceMBeanSupport wrapper);
}

You can implement the objectName method to choose your own MBean ObjectName.
You can implement the dependsOn method to return a set of JMX MBean
ObjectName (as string) on which you depends (for service lifecyle).
You can implement the getInterfaces method to return the set of interfaces
that you *say* your script do implement. Your wrapper will analyse these
interfaces and fully generate the associated JMX MBeanInfo (the script
wrapper is a Dynamic MBean).

Example, let's say you have this interface:

public interface MyIntf
{
   public void doThat();

   public String getRWString ();
   public void setRWString (String val);

   public String getROString ();
}

You could then provide this script:

   String name = bla;

   String objectName () { return jboss.scripts:service=myService; }
   Class[] getInterfaces () { return new Class[] {MyIntf.class}; }

   void create () { System.out.println (Create called on me); }

   void doThat () { System.out.println (doThat called); }

   String getRWString() { return super.name; }
   void setRWString(String bla) { super.name = bla; }

   String getROString() { return I am read-only!; }


Then, not only can you invoke methods and get/set attributes on your script
using JMX, you can also browse your scripts using the
http://localhost:8080/jmx-console/ and see all available methods/attributes
(MBeanInfo is generated by the DynamicMBean script wrapper)

Infos on BeanShell are available here: www.beanshell.org

Do you want this feature on 3.2?

Cheers,


Sacha


P.S.: This e-mail is cross-posted to the beanshell-users ML.



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Guarantee Message Ordering in JBossMQ

2003-01-07 Thread Muntean Horia
Hi,
I am using JBoss-2.4.9, J2SDK1.4.1, WinXP SP1.
Changed configs:
   - in jmboss.jcml I changed the persistence manager to 
org.jboss.mq.pm.file.PersistenceManager
   - in standardjboss.xml I've changed the Standard Message Driven 
Bean container param MaximumSize1/MaximumSize

I know that jms-1.0.2b states (section 4.4.10) that the JMS defines 
that messages sent by a session to a destination must be received in the 
order in witch they where sent ... and further The only ordering that 
is visible to receiving clients is the order of messages a session send 
to a particular destination.

Given a SINGLE PRODUCER - SINGLE CONSUMER - ONE DESTINATION design:
   - the producer could be a separate JVM connecting to JBossMQ 
over OIL or a SLSB using JVM protocol with transactional JMS delivery
   - the consumer can be  MDB or a separate JVM client
   - the messages can be sent as goups(one group per QueueSession) 
but always by only one thread.

Question:does JBossMQ guarantee in any way that I will have a FIFO 
behaviour? BTW, this knowledge is almost fatal for our app. cause if the 
order of delivery is not kept we are in big trouble.

Thanks,
Horia



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] cmp composite field problems

2003-01-07 Thread Alex Loubyansky
Hello Ryan,

have you also declared dependent-value-class element for the class
that represents audit?

alex

Monday, January 06, 2003, 10:24:42 PM, you wrote:

SR i'm working with a CMP composite field using jboss 3.0.4 and oracle 8i.
SR i've gone through the paydoc's several times, and can't pinpoint where this
SR is wrong.  my audit object has 4 fields, 2 string and 2 date.  all have
SR correct getters/setters.  the cmp bean has a getter and setter for the Audit
SR object.  the sql that is generated is trying to work with the audit object
SR as if it's a blob, and not 4 seperate fields.  

SR any direction would be appreciated.  i've included a dump from the
SR server.log along with my relevent ejb-jar.xml and jbosscmp-jdbc.xml.
SR Ryan

SR Ryan J. Sonnek
SR Brown Printing Company
SR J2EE Application Developer
SR 507.835.0803
SR mailto:[EMAIL PROTECTED]



SR server.log (cleaned up for readibility)
SR --
SR Executing SQL: INSERT INTO BCS_DEPARTMENT (department_num, name,
SR description, audit) VALUES (?, ?, ?, ?)
SR Set parameter: index=1, jdbcType=INTEGER, value=NULL
SR Set parameter: index=2, jdbcType=VARCHAR, value=department 2
SR Set parameter: index=3, jdbcType=VARCHAR, value=department description2
SR Set parameter: index=4, jdbcType=BLOB,
SR value=username:null;processCode:DepartmentBean.create;dateCreated:null;dateU
SR pdated:null
SR Could not create entity

SR ejb-jar.xml (included only the relevent CMP object)
SR ---
SR   entity 
SR  description![CDATA[Abstract class for
Departments.]]/description
SR  display-nameDepartment/display-name

SR  ejb-nameDepartment/ejb-name

SR  local-homecom.bpc.bcs.interfaces.DepartmentLocalHome/local-home
SR  localcom.bpc.bcs.interfaces.DepartmentLocal/local

SR  ejb-classcom.bpc.bcs.ejb.DepartmentCMP/ejb-class
SR  persistence-typeContainer/persistence-type
SR  prim-key-classjava.lang.Integer/prim-key-class
SR  reentrantfalse/reentrant
SR  cmp-version2.x/cmp-version
SR  abstract-schema-nameDepartment/abstract-schema-name
SR  cmp-field 
SR description![CDATA[gets this department id.]]/description
SR field-namedepartmentID/field-name
SR  /cmp-field
SR  cmp-field 
SR description![CDATA[gets the name of this
department.]]/description
SR field-namename/field-name
SR  /cmp-field
SR  cmp-field 
SR description![CDATA[gets the description of this
department.]]/description
SR field-namedescription/field-name
SR  /cmp-field
SR  cmp-field 
SR description![CDATA[Gets the database audit information for
this bean.]]/description
SR field-nameaudit/field-name
SR  /cmp-field
SR  primkey-fielddepartmentID/primkey-field

SR  resource-ref 
SR res-ref-namejdbc/bcs/bcsuser/res-ref-name
SR res-typejavax.sql.DataSource/res-type
SR res-authContainer/res-auth
SR  /resource-ref

SR  query
SR query-method
SRmethod-namefindAll/method-name
SRmethod-params
SR/method-params
SR /query-method
SR ejb-ql![CDATA[SELECT OBJECT(d) from Department d]]/ejb-ql
SR  /query
SR   !-- Write a file named ejb-finders-DepartmentBean.xml if you want
SR to define extra finders. --
SR   /entity

SR jbosscmp-jdbc.xml (only included relevent CMP object)
SR ---
SR   entity
SR  ejb-nameDepartment/ejb-name
SR  table-namebcs_department/table-name

SR  cmp-field
SR field-namedepartmentID/field-name
SR column-namedepartment_num/column-name

SR  /cmp-field
SR  cmp-field
SR field-namename/field-name
SR column-namename/column-name

SR  /cmp-field
SR  cmp-field
SR field-namedescription/field-name
SR column-namedescription/column-name

SR  /cmp-field
SR  cmp-field
SR field-nameaudit/field-name
SR property
SR   property-nameaudit.username/property-name
SR   column-nameaudit_id/column-name
SR /property
SR property
SR   property-nameaudit.processCode/property-name
SR   column-nameaudit_process_code/column-name
SR /property
SR property
SR   property-nameaudit.dateCreated/property-name
SR   column-nameaudit_insert_dtm/column-name
SR /property
SR property
SR 

AW: [JBoss-user] problem with DatabaseServerLoginModule

2003-01-07 Thread Scheil, Sven
great. thank u. that works very well. :-)

but is there a chance to configure the caching behavior via
xml-configuration file?

sven




-Ursprüngliche Nachricht-
Von: laurent belmonte [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 6. Januar 2003 18:27
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] problem with DatabaseServerLoginModule


On Mon, 2003-01-06 at 16:19, Scheil, Sven wrote:
 Hi,
 
 we are using jboss3.0.3 + tomcat 4.1.x and have developed a webapp that
uses
 a form-based login with the following Realm :
 
application-policy name = GatewayRealm  
   authentication
   login-module code =
 org.jboss.security.auth.spi.DatabaseServerLoginModule flag = required
 
   module-option name =
 dsJndiNamejava:/CloudscapeDS/module-option  
   !-- 
   module-option name = principalsQueryselect
 PASSWORD from PRINCIPALS where PRINCIPALID=?/module-option   
   module-option name = rolesQueryselect r.ROLE,
 'Roles' from ROLES r where r.PRINCIPALID=? /module-option 
   -- 
   module-option name = principalsQueryselect
 PASSWORD from PERSON p where p.USERNAME=? and
p.LOCKED=false/module-option
 
   module-option name = rolesQueryselect r.ROLE,
 'Roles' from PERSON_ROLE_ROLE_PERSON_ROLE r, PERSON p where p.USERNAME=?
AND
 p.PERSONNO=r.PERSON/module-option
   /login-module  
   /authentication
 /application-policy 
 
 
 The field LOCKED in the PERSON table allows the admin to lock an account.
 But this field is ingnored by the SELECT statement. It doesn't matter
wether
 the account is locked or not.
 
 Another problem is that updates in database (e.g. changing users password)
 are somewhat cached. The changed password is only active after restarting
 jboss + tomcat.
 
you have to flush the cache :

java.util.ArrayList servers =
MBeanServerFactory.findMBeanServer(null);
if (servers.size() != 1)
throw new EJBException(Not exactly one server found);
MBeanServer mbeanServer = (MBeanServer) servers.get(0);
String[] params = { your_domain };
String[] signature = { java.lang.String };
try {
ObjectName name =
new ObjectName(
jboss.security,
service,
JaasSecurityManager);
mbeanServer.invoke(
name,
flushAuthenticationCache,
params,
signature);

} catch (Exception e) {
e.printStackTrace();
throw new EJBException(e);
}
 How to configure the server to get rid of these problems?
 
 thanx for all comments
 sven
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jboss-3.2.0beta3_tomcat-4.1.18?

2003-01-07 Thread David Ward
May the JBoss team please publish a jboss-3.2.0beta3_tomcat-4.1.18 
package to SourceForge?  (The latest tomcat bundle I see there is 
jboss-3.2.0beta2_tomcat-4.1.12.)

Thank you muchly,
David



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: Jboss 3.0.4 and the Oracle 9i XA configuration

2003-01-07 Thread Weiqi Gao
Weiqi Gao wrote:

David Jencks wrote:


I think you need a 3.2 version from after 11/22/2002 when (I think)
this was fixed.



Thank you for the response.  I downloaded jboss-3.2.0beta3 and
configured my Oracle XA DataSource easily (with the oracle-xa-ds.xml)
and everything seemed to work, until ...

I shut down the server and restarted it.  Then I saw an
IllegalAccessError: trying to access


Here's the exception:

16:17:58,415 ERROR [LogInterceptor] Unexpected Error:
java.lang.IllegalAccessError: tried to access method 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory.getConnectionProperties(Ljavax/security/auth/Subject;Ljavax/resource/spi/ConnectionRequestInfo;)Ljava/util/Properties;
from class org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkIdentity(BaseWrapperManagedConnection.java:295)
at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.getConnection(BaseWrapperManagedConnection.java:188)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:596)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:885)
at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] DatabaseServerLoginModule is caching Roles Info...how to deactivate?

2003-01-07 Thread Victor Batista
Hello!
My JBoss is caching the user's roles info. How can I deactivate this
caching mechanism?
Suppose I am logged with a User with Roles A and B. If this user changes
his roles (Administrator :-)), and adds Role C, the user wan't have this
permission until JBoss is restarted. If I change the roles of a user who has
already loggen in any time, I get the same problem.
Is it possible to deactivate this caching mechanism, and force JBoss to
read data from the database every time?

Any help would be welcome.

Thanks in advance,
Victor Batista

PS - I am using JBoss 3.0.4 with bundled Tomcat 4.0.6. I am using
DatabaseServerLoginModule




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss and syslog (UNIX) logging problems

2003-01-07 Thread Anders Nordby
Hello,

Using JBoss 3.0.4:

a) Enabled SYSLOG appender in log4j.xml.
b) Set it up in the Root category.
c) JBoss then fails to start:

17:12:33,240 INFO  [Log4jService] Starting
17:12:33,274 INFO  [Log4jService$URLWatchTimerTask] Configuring from
URL: resource:log4j.xml
17:12:40,348 WARN  [Log4jService$URLWatchTimerTask] Failed to check URL:
resource:log4j.xml
java.lang.NullPointerException
at
org.apache.log4j.net.SyslogAppender.append(SyslogAppender.java:241)
at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:222)
at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:190)
at org.apache.log4j.Category.forcedLog(Category.java:375)
at org.apache.log4j.Category.log(Category.java:850)
at org.jboss.logging.Logger.debug(Logger.java:117)
at
org.jboss.logging.Log4jService.installSystemAdapters(Log4jService.java:302)

Has anyone experienced anything similar or know what I can do about it?
This is the syslog configuration I use (default config, I did not change
it):

  appender name=SYSLOG class=org.apache.log4j.net.SyslogAppender
param name=Facility value=LOCAL7/
param name=FacilityPrinting value=true/
param name=SyslogHost value=localhost/
  /appender

Syslogd is running and accepting connections.. (using Solaris 8).

Cheers,

-- 
Anders.


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jboss-3.2.0beta3_tomcat-4.1.18?

2003-01-07 Thread Scott M Stark
There will be an RC1 release this weekend.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: David Ward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 5:54 AM
Subject: [JBoss-user] jboss-3.2.0beta3_tomcat-4.1.18?


 May the JBoss team please publish a jboss-3.2.0beta3_tomcat-4.1.18 
 package to SourceForge?  (The latest tomcat bundle I see there is 
 jboss-3.2.0beta2_tomcat-4.1.12.)
 
 Thank you muchly,
 David
 
 
 
 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
 http://www.vasoftware.com
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: Jboss 3.0.4 and the Oracle 9i XA configuration

2003-01-07 Thread Scott M Stark
Follow the instructions given in the release notes to generate a bug report with
the class loading details. See:
http://sourceforge.net/project/shownotes.php?release_id=13


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: Weiqi Gao [EMAIL PROTECTED]
Newsgroups: gmane.comp.java.jboss.user
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 7:40 AM
Subject: [JBoss-user] Re: Jboss 3.0.4 and the Oracle 9i XA configuration


 Weiqi Gao wrote:
  David Jencks wrote:
 
 I think you need a 3.2 version from after 11/22/2002 when (I think)
 this was fixed.
 
 
  Thank you for the response.  I downloaded jboss-3.2.0beta3 and
  configured my Oracle XA DataSource easily (with the oracle-xa-ds.xml)
  and everything seemed to work, until ...
 
  I shut down the server and restarted it.  Then I saw an
  IllegalAccessError: trying to access

 Here's the exception:

 16:17:58,415 ERROR [LogInterceptor] Unexpected Error:
 java.lang.IllegalAccessError: tried to access method

org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory.getConnectionProperties(Ljavax/security/auth/Subject;Ljava
x/resource/spi/ConnectionRequestInfo;)Ljava/util/Properties;
 from class org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
  at
 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkIdentity(BaseWrapperManagedConnection.java:295)
  at
 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.getConnection(BaseWrapperManagedConnection.java:188)
  at
 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:596)
  at

org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.j
ava:885)
  at
 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] DatabaseServerLoginModule is caching Roles Info...how to deactivate?

2003-01-07 Thread Guy Rouillier
See Re: [JBoss-user] problem with DatabaseServerLoginModule  from Laurent
Belmont from Monday January 06, 2003.

- Original Message -
From: Victor Batista [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 11:06 AM
Subject: [JBoss-user] DatabaseServerLoginModule is caching Roles Info...how
to deactivate?


 Hello!
 My JBoss is caching the user's roles info. How can I deactivate this
 caching mechanism?
 Suppose I am logged with a User with Roles A and B. If this user changes
 his roles (Administrator :-)), and adds Role C, the user wan't have this
 permission until JBoss is restarted. If I change the roles of a user who
has
 already loggen in any time, I get the same problem.
 Is it possible to deactivate this caching mechanism, and force JBoss to
 read data from the database every time?

 Any help would be welcome.

 Thanks in advance,
 Victor Batista

 PS - I am using JBoss 3.0.4 with bundled Tomcat 4.0.6. I am using
 DatabaseServerLoginModule




 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
 http://www.vasoftware.com
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] DatabaseServerLoginModule is caching Roles Info...how to deactivate?

2003-01-07 Thread Scott M Stark
The cache is flushed based on time which is 30 mins by default. Change this in the
conf/jboss-service.xml descriptor as documented in the admin/devel book:

  mbean code=org.jboss.security.plugins.JaasSecurityManagerService
name=jboss.security:service=JaasSecurityManager
attribute name=SecurityManagerClassName
  org.jboss.security.plugins.JaasSecurityManager
/attribute
attribute name=DefaultCacheTimeout0/attribute
  /mbean


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: Victor Batista [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 8:06 AM
Subject: [JBoss-user] DatabaseServerLoginModule is caching Roles Info...how to 
deactivate?


 Hello!
 My JBoss is caching the user's roles info. How can I deactivate this
 caching mechanism?
 Suppose I am logged with a User with Roles A and B. If this user changes
 his roles (Administrator :-)), and adds Role C, the user wan't have this
 permission until JBoss is restarted. If I change the roles of a user who has
 already loggen in any time, I get the same problem.
 Is it possible to deactivate this caching mechanism, and force JBoss to
 read data from the database every time?
 
 Any help would be welcome.
 
 Thanks in advance,
 Victor Batista
 
 PS - I am using JBoss 3.0.4 with bundled Tomcat 4.0.6. I am using
 DatabaseServerLoginModule



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] DatabaseServerLoginModule is caching Roles Info...how todeactivate?

2003-01-07 Thread Jonathan . O'Connor
Victor,
we thought about this same issue, and then we remembered the following:
If you change a user's groups in Linux, they won't see them until they log 
in again.
Of course, your business people may say you have to have immediate update.
Maybe you can add the user to a list in the application attributes which 
is checked before each response generation. If their name is in the list, 
they get booted off. This forces them to log in again!
This is probably not the answer you wanted. Sorry!
Jonathan




Victor Batista [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
07.01.2003 16:06
Please respond to jboss-user

 
To: [EMAIL PROTECTED]
cc: 
Subject:[JBoss-user] DatabaseServerLoginModule is caching Roles 
Info...how to 
deactivate?


Hello!
 My JBoss is caching the user's roles info. How can I 
deactivate this
caching mechanism?
 Suppose I am logged with a User with Roles A and B. If 
this user changes
his roles (Administrator :-)), and adds Role C, the user wan't have this
permission until JBoss is restarted. If I change the roles of a user who 
has
already loggen in any time, I get the same problem.
 Is it possible to deactivate this caching mechanism, and 
force JBoss to
read data from the database every time?

 Any help would be welcome.

 Thanks in advance,
 Victor Batista

 PS - I am using JBoss 3.0.4 with bundled Tomcat 4.0.6. I 
am using
DatabaseServerLoginModule




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] certain apps hanging..

2003-01-07 Thread Rob Helmer
Hi Scott,


Thanks, just wanted to make sure this was ok.

I'm attaching a thread dump.

Also, I've noticed that after about 30-40 minutes, the JSPs that
are hanging will return ( they seem to be waiting on an EJB, I'm
not positive which one ). I think it's just timing out.

As I mentioned before, this same copy of JBoss w/ the same EAR
file works on a different server, same DB, same Java, same
version of RedHat etc.



Thanks!
Rob Helmer


On Tue, Jan 07, 2003 at 02:31:30AM -0800, Scott M Stark wrote:
 Try sending it as an attachment.
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 - Original Message - 
 From: Rob Helmer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 06, 2003 4:56 PM
 Subject: Re: [JBoss-user] certain apps hanging..
 
 
  Hi Scott,
  
  
  Thanks for the reply!
  
  This is one of the first things I did, I couldn't seem to spot it
  from the output though.. 
  
  Can I send this to the list?
  
  
  
  Thanks,
  Rob Helmer
 
 
 
 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
 http://www.vasoftware.com
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 

Full thread dump Java HotSpot(TM) Server VM (1.4.1_01-b01 mixed mode):

SocketListener-9 prio=1 tid=0x0x85de410 nid=0x5c8d waiting for monitor entry 
[52b71000..52b71840]
at java.util.Hashtable.get(Hashtable.java:328)
- waiting to lock 0x4573b710 (a skeva.utils.SkevaHashtable)
at skeva.utils.SkevaHashtable.getString(SkevaHashtable.java:63)
at 
skeva.engage.controller.EngageServletUtil.getSysConfigDefault(EngageServletUtil.java:585)
at org.apache.jsp.logonGOOD$jsp._jspService(logonGOOD$jsp.java:116)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:293)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
at org.mortbay.http.HttpServer.service(HttpServer.java:875)
at org.jboss.jetty.Jetty.service(Jetty.java:543)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
at java.lang.Thread.run(Thread.java:536)

SocketListener-8 prio=1 tid=0x0x85de090 nid=0x5c8c in Object.wait() 
[52af..52af0840]
at java.lang.Object.wait(Native Method)
- waiting on 0x44e11910 (a [Ljava.lang.Object;)
at org.mortbay.util.BlockingQueue.get(BlockingQueue.java:133)
- locked 0x44e11910 (a [Ljava.lang.Object;)
at org.mortbay.util.ThreadPool.getJob(ThreadPool.java:547)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:678)
at java.lang.Thread.run(Thread.java:536)

SocketListener-7 prio=1 tid=0x0x85ddd30 nid=0x5c88 waiting for monitor entry 
[52a6f000..52a6f840]
at java.util.Hashtable.get(Hashtable.java:328)
- waiting to lock 0x4573b710 (a skeva.utils.SkevaHashtable)
at skeva.utils.SkevaHashtable.getString(SkevaHashtable.java:63)
at 
skeva.engage.controller.EngageServletUtil.getSysConfigDefault(EngageServletUtil.java:585)
at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:116)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at 

[JBoss-user] Running multiple JBoss instances on multi-homed machine

2003-01-07 Thread Barney Rubble
I have a requirement to run several instances of JBoss on a single machine
with each bound to its own host name. How do you tell JBoss (and by
extension all of its sub-systems) what host name it should bind to? Can we
set the host name in one fell swoop or does it need to be configured on a
service-by-service basis: RMI, HTTP...?



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: Jboss 3.0.4 and the Oracle 9i XA configuration

2003-01-07 Thread Scott M Stark
See bug [ 664081 ] JCA rars packaging causes IllegalAccessError:
https://sourceforge.net/tracker/index.php?func=detailaid=664081group_id=22866atid=376685


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: Weiqi Gao [EMAIL PROTECTED]
Newsgroups: gmane.comp.java.jboss.user
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 7:40 AM
Subject: [JBoss-user] Re: Jboss 3.0.4 and the Oracle 9i XA configuration


 Weiqi Gao wrote:
  David Jencks wrote:
 
 I think you need a 3.2 version from after 11/22/2002 when (I think)
 this was fixed.
 
 
  Thank you for the response.  I downloaded jboss-3.2.0beta3 and
  configured my Oracle XA DataSource easily (with the oracle-xa-ds.xml)
  and everything seemed to work, until ...
 
  I shut down the server and restarted it.  Then I saw an
  IllegalAccessError: trying to access

 Here's the exception:

 16:17:58,415 ERROR [LogInterceptor] Unexpected Error:
 java.lang.IllegalAccessError: tried to access method

org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory.getConnectionProperties(Ljavax/security/auth/Subject;Ljava
x/resource/spi/ConnectionRequestInfo;)Ljava/util/Properties;
 from class org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
  at
 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkIdentity(BaseWrapperManagedConnection.java:295)
  at
 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.getConnection(BaseWrapperManagedConnection.java:188)
  at
 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:596)
  at

org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.j
ava:885)
  at
 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] building from cvs failing

2003-01-07 Thread Emily Short








Hi there,

For several weeks Ive been getting the latest version
of Jboss4.0.0alpha from CVS and attempting to build by executing ant all
from the jboss-head/build directory, but it has been failing consistently for
one reason or another. Does anyone have time to fix the build? The
error Im getting now is that some jars are missing from the classpath.
First commons-logging.jar was missing and now I get this error:



java.lang.NoClassDefFoundError:
org/apache/commons/collections/Predicate

 at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:49)

 at org.apache.tools.ant.Task.perform(Task.java:319)

 at org.apache.tools.ant.Target.execute(Target.java:309)

 at org.apache.tools.ant.Target.performTasks(Target.java:336)

 at org.apache.tools.ant.Project.executeTarget(Project.java:1306)

 at org.jboss.tools.buildmagic.task.Ant.execute(Ant.java:261)

 at
org.jboss.tools.buildmagic.task.module.ExecuteModules$1.run(ExecuteModules.java:329)

 at
org.jboss.tools.buildmagic.task.module.ExecuteModules.executeModule(ExecuteModules.java:342)

 at org.jboss.tools.buildmagic.task.module.ExecuteModules.execute(ExecuteModules.java:217)

 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)

 at org.apache.tools.ant.Task.perform(Task.java:319)

 at org.apache.tools.ant.Target.execute(Target.java:309)

 at org.apache.tools.ant.Target.performTasks(Target.java:336)

 at org.apache.tools.ant.Project.executeTarget(Project.java:1306)

 at org.apache.tools.ant.Project.executeTargets(Project.java:1250)

 at org.apache.tools.ant.Main.runBuild(Main.java:610)

 at org.apache.tools.ant.Main.start(Main.java:196)

 at org.apache.tools.ant.Main.main(Main.java:235)



for which I cannot find a jar to remedy.



Your help is appreciated,

Emily








Re: [JBoss-user] certain apps hanging..

2003-01-07 Thread Scott M Stark
This shows several servlet threads waiting for:
- waiting to lock 0x4573b710 (a skeva.utils.SkevaHashtable)

And this thread trying to connect to a naming service in outer space
apparently as it is certainly not talking to the naming service in the
same VM. This is what is holding the 0x4573b710  lock so either
the host table or DNS on this box is screwed up.

Thread-24 prio=1 tid=0x0x4f8f3568 nid=0x5b07 runnable [525e6000..525e6840]
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
 - locked 0x458af0c0 (a java.net.PlainSocketImpl)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
 at java.net.Socket.connect(Socket.java:426)
 at java.net.Socket.connect(Socket.java:376)
 at java.net.Socket.init(Socket.java:291)
 at java.net.Socket.init(Socket.java:119)
 at 
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
 at 
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
 at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
 at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
 at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
 at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
 at javax.naming.InitialContext.lookup(InitialContext.java:347)
 at skeva.utils.EJBLookupHelper.lookupHome(EJBLookupHelper.java:32)
 at skeva.utils.EJBUtil.getHome(EJBUtil.java:94)
 at skeva.utils.EJBUtil.getHome(EJBUtil.java:65)
 at skeva.engage.util.EJBLocator.getConfigSession(EJBLocator.java:55)
 at skeva.engage.controller.EngageServlet.initConfigData(EngageServlet.java:919)
 - locked 0x4573b710 (a skeva.utils.SkevaHashtable)
 at skeva.engage.controller.EngageServlet$1.run(EngageServlet.java:1193)


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: Rob Helmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 10:09 AM
Subject: Re: [JBoss-user] certain apps hanging..


 Hi Scott,
 
 
 Thanks, just wanted to make sure this was ok.
 
 I'm attaching a thread dump.
 
 Also, I've noticed that after about 30-40 minutes, the JSPs that
 are hanging will return ( they seem to be waiting on an EJB, I'm
 not positive which one ). I think it's just timing out.
 
 As I mentioned before, this same copy of JBoss w/ the same EAR
 file works on a different server, same DB, same Java, same
 version of RedHat etc.
 
 
 
 Thanks!
 Rob Helmer



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] CMT Ttransactions vs database transactions

2003-01-07 Thread Miso Pach
Hello-

Is there any relationship between jboss transactions
and underlying database transactions? I'm using CMT. I
am wondering if I can assume that all CMP updates that
are executed in the same EJB CMT transaction happen in
the same database transaction if I am using just one
database source in my application. Is there a way to
configure jboss to behave this way? I am using jboss
3.0.3 and oracle 8i or 9i.

The reason I'm asking is that I am intending to use
triggers to do data changes auditing and if I can
assume that things are happening in one oracle
transaction the triggers can expect certain rows to be
created by other entities since im running in the same
database transaction.

thanks a lot for any replies

Miso

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Purposes/behavior of different MBean services

2003-01-07 Thread Scott M Stark
- BeanCacheMonitor is obsolete and will be removed.
- FileDeploymentStore and DeploymentCache were experiments by Jason. They
are unsupported and only available for experimentation.
- CounterService is simple accumulator you can lookup from JNDI under
java:/CounterService to invoker accumulate(String counterName, long add) ops
on and list totals from.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: Meyer-Willner, Bernhard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 2:46 AM
Subject: Re: [JBoss-user] Purposes/behavior of different MBean services


Hi,

does anybody from the JBoss team care to comment on those MBeans? Seems
there some interesting services offered and I'd love to know what they're
for, can't find any docs or meaningful info on the forums, though.

Thanks,
Bernhard

-Ursprüngliche Nachricht-
Von: Meyer-Willner, Bernhard [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 6. Januar 2003 16:06
An: JBoss-User (E-Mail)
Betreff: [JBoss-user] Purposes/behavior of different MBean services


Hi,

I have a couple of questions on different MBean services which are not
covered in the paid-for docs unfortunately, or are covered, but not in a
sufficient manner IMHO.

I'd love to hear from anybody who can tell me about the following:

1:
--

Except from jboss-service.xml:

!--
 --
!-- Monitoring and Management
--
!--
 --
!-- Uncomment to enable JMX monitoring of the bean cache   --

  mbean code=org.jboss.monitor.BeanCacheMonitor
 name=jboss.monitor:name=BeanCacheMonitor/
!-- Uncomment to enable JMX monitoring of the entity bean locking
--
  mbean code=org.jboss.monitor.EntityLockMonitor
 name=jboss.monitor:name=EntityLockMonitor/

2:
--

Excerpt from jboss-service.xml

!--
 --
!-- Deployment Scanning
--
!--
 --
!-- Uncomment to enable caching of deployment units  --
  mbean code=org.jboss.deployment.cache.FileDeploymentStore
name=jboss.deployment:type=DeploymentStore,flavor=File
attribute name=DirectoryNamedata/deployment-cache/attribute
  /mbean

  mbean code=org.jboss.deployment.cache.DeploymentCache
name=jboss.deployment:type=DeploymentCache
depends
optional-attribute-name=Deployerjboss.system:service=MainDeployer/depend
s
depends
optional-attribute-name=Storejboss.deployment:type=DeploymentStore,flavor
=File/depends
  /mbean

3:
--

What's the counter service MBean for (counter-service.xml) and how can it be
used and for what purposes?

Thanks,
Bernhard




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE: [JBoss-dev] ANNOUNCE: BeanShell JBoss sub-deployer in HEAD

2003-01-07 Thread James Higginbotham
Sounds very interesting.. I wonder how it might help to integrate Jboss
and Emacs/JDEE, since they use the bsh to perform Lisp-Java
integration.. 

James

 -Original Message-
 From: Sacha Labourey [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, January 07, 2003 3:57 AM
 To: Jboss-Dev
 Cc: jBoss-User Mailing List; [EMAIL PROTECTED]
 Subject: [JBoss-dev] ANNOUNCE: BeanShell JBoss sub-deployer in HEAD
 
 
 Hello,
 
 Yesterday I commited a BeanShell (BSH, www.beanshell.org) 
 sub-deployer in HEAD. It is in module varia and you can find 
 its lib in varia/output/lib/bsh-deployer.sar.
 
 It allows you to hot-deploy *.bsh files in /deploy.
 
 SIMPLE USAGE: client-only
 =
 In its simple usage, the script will act as a simple 
 client-script making invocations on other objects. Each 
 script can follow the org.jboss.system.Service interface i.e. 
 the create, start, stop and destroy calls. You can implement 
 only a subset of those. Thus, a very simply one-line script 
 can be: Simple.bsh:
 
   void start() { System.out.println (I'm called!); }
 
 that's it.
 
 
 ADVANCED USAGE: server script!
 ==
 But it is almost as easy to make your script a JBoss service 
 fully invocable/administrable through JMX! For this, your 
 script can implement any of the methods of the following interface:
 
   public interface ScriptService
  extends org.jboss.system.Service
   {
  public String objectName ();
  public String[] dependsOn ();
  public Class[] getInterfaces ();
 
  public void setCtx (ServiceMBeanSupport wrapper);
   }
 
 You can implement the objectName method to choose your own 
 MBean ObjectName. You can implement the dependsOn method to 
 return a set of JMX MBean ObjectName (as string) on which you 
 depends (for service lifecyle). You can implement the 
 getInterfaces method to return the set of interfaces that you 
 *say* your script do implement. Your wrapper will analyse 
 these interfaces and fully generate the associated JMX 
 MBeanInfo (the script wrapper is a Dynamic MBean).
 
 Example, let's say you have this interface:
 
   public interface MyIntf
   {
  public void doThat();
 
  public String getRWString ();
  public void setRWString (String val);
 
  public String getROString ();
   }
 
 You could then provide this script:
 
String name = bla;
 
String objectName () { return jboss.scripts:service=myService; }
Class[] getInterfaces () { return new Class[] {MyIntf.class}; }
 
void create () { System.out.println (Create called on me); }
 
void doThat () { System.out.println (doThat called); }
 
String getRWString() { return super.name; }
void setRWString(String bla) { super.name = bla; }
 
String getROString() { return I am read-only!; }
 
 
 Then, not only can you invoke methods and get/set attributes 
 on your script using JMX, you can also browse your scripts 
 using the http://localhost:8080/jmx-console/ and see all 
 available methods/attributes (MBeanInfo is generated by the 
 DynamicMBean script wrapper)
 
 Infos on BeanShell are available here: www.beanshell.org
 
 Do you want this feature on 3.2?
 
 Cheers,
 
 
   Sacha
 
 
 P.S.: This e-mail is cross-posted to the beanshell-users ML.
 
 
 
 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 
 2 See! http://www.vasoftware.com 
 ___
 Jboss-development mailing list [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-development
 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Jbuilder integration question...

2003-01-07 Thread Matthew Van Horn
I am using JBuilder and JBoss 3.0.4 with the Protegra tool and there is  
a really annoying thing happening.
Somehow JBuilder is overwriting my jboss.xml file so that this:

destination-jndi-namequeue/testQueue/destination-jndi-name

is changed to this:
message-driven-destination-namequeue/testQueue/message-driven- 
destination-name

in my message driven bean.

Just wondering if anyone else has experienced this, and if there is a  
way to avoid it?

Matt



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] cmp composite field problems

2003-01-07 Thread Sonnek, Ryan
no i haven't.  i can't seem to find a way to generate the
dependent-value-classes element using xdoclet-1.2-b2.  also, reading
through the pay docs, they show an example (listing 3-7) that does not use
the dependent-value-class.  instead, they only override the column name
within the cmp-field.  
is it required to have the dependent-value-class element?  can it be
generated from xdoclet?

Ryan

-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 5:14 AM
To: Sonnek, Ryan
Subject: Re: [JBoss-user] cmp composite field problems


Hello Ryan,

have you also declared dependent-value-class element for the class
that represents audit?

alex

Monday, January 06, 2003, 10:24:42 PM, you wrote:

SR i'm working with a CMP composite field using jboss 3.0.4 and oracle 8i.
SR i've gone through the paydoc's several times, and can't pinpoint where
this
SR is wrong.  my audit object has 4 fields, 2 string and 2 date.  all have
SR correct getters/setters.  the cmp bean has a getter and setter for the
Audit
SR object.  the sql that is generated is trying to work with the audit
object
SR as if it's a blob, and not 4 seperate fields.  

SR any direction would be appreciated.  i've included a dump from the
SR server.log along with my relevent ejb-jar.xml and jbosscmp-jdbc.xml.
SR Ryan

SR Ryan J. Sonnek
SR Brown Printing Company
SR J2EE Application Developer
SR 507.835.0803
SR mailto:[EMAIL PROTECTED]



SR server.log (cleaned up for readibility)
SR --
SR Executing SQL: INSERT INTO BCS_DEPARTMENT (department_num, name,
SR description, audit) VALUES (?, ?, ?, ?)
SR Set parameter: index=1, jdbcType=INTEGER, value=NULL
SR Set parameter: index=2, jdbcType=VARCHAR, value=department 2
SR Set parameter: index=3, jdbcType=VARCHAR, value=department description2
SR Set parameter: index=4, jdbcType=BLOB,
SR
value=username:null;processCode:DepartmentBean.create;dateCreated:null;dateU
SR pdated:null
SR Could not create entity

SR ejb-jar.xml (included only the relevent CMP object)
SR
---
SR   entity 
SR  description![CDATA[Abstract class for
Departments.]]/description
SR  display-nameDepartment/display-name

SR  ejb-nameDepartment/ejb-name

SR
local-homecom.bpc.bcs.interfaces.DepartmentLocalHome/local-home
SR  localcom.bpc.bcs.interfaces.DepartmentLocal/local

SR  ejb-classcom.bpc.bcs.ejb.DepartmentCMP/ejb-class
SR  persistence-typeContainer/persistence-type
SR  prim-key-classjava.lang.Integer/prim-key-class
SR  reentrantfalse/reentrant
SR  cmp-version2.x/cmp-version
SR  abstract-schema-nameDepartment/abstract-schema-name
SR  cmp-field 
SR description![CDATA[gets this department
id.]]/description
SR field-namedepartmentID/field-name
SR  /cmp-field
SR  cmp-field 
SR description![CDATA[gets the name of this
department.]]/description
SR field-namename/field-name
SR  /cmp-field
SR  cmp-field 
SR description![CDATA[gets the description of this
department.]]/description
SR field-namedescription/field-name
SR  /cmp-field
SR  cmp-field 
SR description![CDATA[Gets the database audit information
for
this bean.]]/description
SR field-nameaudit/field-name
SR  /cmp-field
SR  primkey-fielddepartmentID/primkey-field

SR  resource-ref 
SR res-ref-namejdbc/bcs/bcsuser/res-ref-name
SR res-typejavax.sql.DataSource/res-type
SR res-authContainer/res-auth
SR  /resource-ref

SR  query
SR query-method
SRmethod-namefindAll/method-name
SRmethod-params
SR/method-params
SR /query-method
SR ejb-ql![CDATA[SELECT OBJECT(d) from Department
d]]/ejb-ql
SR  /query
SR   !-- Write a file named ejb-finders-DepartmentBean.xml if you
want
SR to define extra finders. --
SR   /entity

SR jbosscmp-jdbc.xml (only included relevent CMP object)
SR ---
SR   entity
SR  ejb-nameDepartment/ejb-name
SR  table-namebcs_department/table-name

SR  cmp-field
SR field-namedepartmentID/field-name
SR column-namedepartment_num/column-name

SR  /cmp-field
SR  cmp-field
SR field-namename/field-name
SR column-namename/column-name

SR  /cmp-field
SR  cmp-field
SR field-namedescription/field-name
SR column-namedescription/column-name

SR  /cmp-field
SR  cmp-field
SR field-nameaudit/field-name
SR property
SR   property-nameaudit.username/property-name
SR  

RE: [JBoss-user] Some J2EE questions... please help

2003-01-07 Thread James Higginbotham
Title: Message



Answers inline.. I'd suggest reading all the specs for 
the associated j2ee technologies to solve the simple questions.. 


HTH,
James

  
  -Original Message-From: Sasidharan, 
  Manoj [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 
  2003 1:01 PMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] Some J2EE questions... please help
  Hello 
  All,
  
  I have a few questions on J2EE and 
  request the J2EE gurus in this list to find some time to answer 
  them...
  
  1. Can we use Java Threads in a 
  J2EE application (usingSingleton class)
  Read the spec.. Ejbs - no, other areas 
  -possibly
  
  2. How to achieve session time-out 
  feature... we want to expire auser session after a configured interval 
  of inactivity.. We need this at theserver endand hence JSP/HTML 
  techniques cannot be used.
  Read the servlet 
  spec
  
  3. Does JMS allow enqueueing a 
  message that can only be dequeuedafter a configured time/interval? Say 
  the message can only be dequeued after 1 hour.. Does this require explicit 
  programming at the MDB level..
  
  You 
  mean a delayed dequeuing? No, but you can use an attribute (property?) and 
  make your MDB use a specific queryusing the current time vs. the time 
  the message is allowed to be 
  dequeued.
  
  4. Singleton 
  class
  a. I think they are neccessary 
  evils.. Any J2EE design pattern to eliminate them completely
  
  Use 
  an MBean
  
  b. Will any database operations 
  (say insert/update/delete) done by these participate in transaction... or will 
  they have the same transaction context as their using beans (Session)
  
  The 
  will inherit it from the thread context,including the mbean 
  solution
  
  5. How does J2EE applications do 
  some startup jobs - read configuration file, do some cleanup, etc. Where would 
  you place these logics and how will one ensure that they get called... Any 
  J2EE based approach.
  
  Either mbean (not j2ee), or awar file with 
  astartup context listener.. Package the war file in the ear with your 
  ejbs, and list it as the last module in your application.xml to ensure that 
  all ejbs are deployed before your logic is run, should it need to do things 
  like communicate to EJBs to prime caches, performbiz logic, 
  etc.
  
  6. Are there any installers (like 
  InstallShield) for developing J2EE application installations..
  
  Well, I know ofproducts that use installshield 
  to query for your app server, your deploy directory for that server, and place 
  the ear/war file(s) in the proper place. This will require custom scripting on 
  your side, though.. Haven't seen anything automated.. In fact, that would make 
  a great OSS 
project..
  
  Thanks a lot for your valuable 
  time.
  
  regards
  MS
  


[JBoss-user] Some J2EE questions... please help

2003-01-07 Thread Sasidharan, Manoj



Hello 
All,

I have a few questions on J2EE and request 
the J2EE gurus in this list to find some time to answer 
them...

1. Can we use Java Threads in a J2EE 
application (usingSingleton 
class)
2. How to achieve session time-out 
feature... we want to expire auser session after a configured interval of 
inactivity.. We need this at theserver endand hence JSP/HTML 
techniques cannot be used.
3. Does JMS allow enqueueing a message 
that can only be dequeuedafter a configured time/interval? Say the message 
can only be dequeued after 1 hour.. Does this require explicit programming at 
the MDB level..
4. Singleton 
class
a. I think they are neccessary evils.. Any 
J2EE design pattern to eliminate them 
completely
b. Will any database operations (say 
insert/update/delete) done by these participate in transaction... or will they 
have the same transaction context as their using beans 
(Session)
5. How does J2EE applications do some 
startup jobs - read configuration file, do some cleanup, etc. Where would you 
place these logics and how will one ensure that they get called... Any J2EE 
based approach.
6. Are there any installers (like 
InstallShield) for developing J2EE application 
installations..

Thanks a lot for your valuable 
time.

regards
MS