[JBoss-user] ALERT - GroupShield ticket number OA388_1056436110_AAQMAIP01_3 was generated

2003-06-24 Thread GroupShield for Exchange \(AAQMAIP01\)
Action Taken:
The attachment was quarantined from the message and replaced with a text
file informing the recipient of the action taken.

To:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]

From:
Arun [EMAIL PROTECTED]

Sent:
194639104,29571601

Subject:
[JBoss-user] Question on JBOSS/LDAP

Attachment Details:-

Attachment Name: server.log
File: server.log
Infected? No
Repaired? No
Blocked? Yes
Deleted? No
Virus Name: 





This message is intended for the sole use of the individual and entity to whom it is 
addressed, and may contain information that is privileged, confidential and exempt 
from disclosure under applicable law. If you are not the intended addressee, nor 
authorized to receive for the intended addressee, you are hereby notified that you may 
not use, copy, disclose or distribute to anyone the message or any information 
contained in the message. If you have received this message in error, please 
immediately advise the sender by reply email and delete the message.


application/ms-tnef

[JBoss-user] Re: Mod_JK Failover

2003-06-24 Thread Eric Jain
 My client currently alters the weighting in the 
 workers.properties files to '-1'

Can this be done at runtime without restarting Apache?

--
Eric Jain



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] Jboss 3.2.1 Problems with table's relationship

2003-06-24 Thread Alexey Loubyansky
Hello Marco,

Monday, June 23, 2003, 9:32:04 PM, Marco Tedone wrote:

MT BINGOO! Actually in the AddressBean.ejbCreate() method none of the
MT AddressBean fields was set. Thank you Alex, I want to pay you a dinner!

Status: Open
Resolution: Accepted

alex

MT Marco
MT - Original Message - 
MT From: Alexey Loubyansky [EMAIL PROTECTED]
MT To: Marco Tedone [EMAIL PROTECTED]
MT Sent: Monday, June 23, 2003 8:03 AM
MT Subject: Re: [JBoss-user] Jboss 3.2.1 Problems with table's relationship


 Are you sure AddressBean.ejbCreate(AddressData aData) initializes all
 fields properly?

 alex

 Monday, June 23, 2003, 12:41:38 AM, Marco Tedone wrote:

 MT Hi, it's me again. I created the table's relationship as shown by
MT Jboss
 MT logging messages (don't consider the Numerator Table which is not
MT related to
 MT the problem).

 MT 22:25:03,828 INFO  [People] Created table 'People' successfully.
 MT 22:25:03,828 INFO  [Numerator] Table 'Numerator' already exists
 MT 22:25:03,906 INFO  [Address] Created table 'Address' successfully.
 MT 22:25:03,937 INFO  [Address] Added foreign key constraint to table
MT 'People'

 MT After deployment I find in my database the People and Address tables.
MT People
 MT has an index (addressId) which is the pk of Address table. Here
MT follows the
 MT code of my entity bean:

 MT !-- BEGIN of CODE --

 MT package org.jemos.core.framework.ejbs.entities;
 MT import java.util.Date;
 MT import javax.ejb.CreateException;
 MT import javax.ejb.EJBException;
 MT import javax.ejb.EntityBean;
 MT import javax.naming.InitialContext;
 MT import javax.naming.NamingException;
 MT import org.apache.log4j.Category;
 MT import org.jemos.core.framework.ejbs.BaseEntityBean;
 MT import org.jemos.core.framework.ejbs.interfaces.AddressData;
 MT import org.jemos.core.framework.ejbs.interfaces.AddressLocal;
 MT import org.jemos.core.framework.ejbs.interfaces.AddressLocalHome;
 MT import org.jemos.core.framework.ejbs.interfaces.PeopleData;
 MT import org.jemos.core.framework.ejbs.interfaces.PeopleKey;


 MT /**
 MT *
 MT * @ejb.bean
 MT * type=CMP
 MT * name=People
 MT * reentrant=true
 MT * local-jndi-name=ejb/jemos/core/PeopleEJB
 MT * view-type=local
 MT * transaction-type=Container
 MT * cmp-version=2.x
 MT * @ejb.transaction
 MT * type=Required
 MT *
 MT * @ejb.ejb-ref
 MT * ejb-name=Address
 MT * view-type=local
 MT * ref-name=Address
 MT *
 MT *
 MT * @jboss.persistence
 MT * pk-constraint=true
 MT * table-name=people
 MT *
 MT * @ejb.value-object
 MT * name=PeopleValue
 MT * match=*
 MT *
 MT */
 MT public abstract class PeopleBean
 MT extends BaseEntityBean implements EntityBean {
 MT //The logger instance
 MT private transient final Category log =
 MT Category.getInstance(getClass().getName());
 MT /**
 MT * @ejb.create-method
 MT * @param pData
 MT * @return
 MT * @throws CreateException
 MT */
 MT public PeopleKey ejbCreate(PeopleData pData, AddressData aData)
 MT throws CreateException {
 MT log.info(Now in ejbCreate: Setting People data);
 MT setEmail(pData.getEmail());
 MT setPassword(pData.getPassword());
 MT setFirstName(pData.getFirstName());
 MT setLastName(pData.getLastName());
 MT setCreationDate(new java.util.Date());
 MT return null;
 MT }
 MT public void ejbPostCreate(PeopleData pData, AddressData aData)
 MT throws CreateException {
 MT AddressLocal address = createAddress(aData);
 MT setHomeAddress(address);
 MT }
 MT //Business methods
 MT /**
 MT * @ejb.interface-method
 MT */
 MT public AddressLocal createAddress(AddressData aData)
 MT throws EJBException
 MT {
 MT AddressLocal addr = this.getHomeAddress( );
 MT log.info(from setAddress. AddressData: + aData);
 MT try
 MT {
 MT if (addr == null)
 MT {
 MT log.info(Creating a new reference to AddressEJB);
 MT // Customer doesn't have an address yet. Create a new one.
 MT InitialContext cntx = new InitialContext( );
 MT AddressLocalHome addrHome =
 MT (AddressLocalHome)cntx.lookup(ejb/jemos/core/AddressEJB);
 MT log.info(Before creating: addressId value=  + aData.getAddressId());
 MT addr = addrHome.create(aData);
 MT log.info(Address created.);
 MT }
 MT else
 MT {
 MT // Customer already has an address. Change its fields
 MT log.info(Customer already has an address. Change its fields);
 MT addr.setAddress1(aData.getAddress1());
 MT addr.setAddress2(aData.getAddress2());
 MT addr.setAddress3(aData.getAddress3());
 MT addr.setZip(aData.getZip());
 MT addr.setCity(aData.getCity());
 MT addr.setCountry(aData.getCountry());
 MT }
 MT }
 MT catch (NamingException ne)
 MT {
 MT throw new EJBException(ne);
 MT } catch (CreateException e) {
 MT e.printStackTrace();
 MT }
 MT finally{
 MT return addr;
 MT }
 MT }
 MT /**
 MT * @ejb.interface-method
 MT * @return
 MT */
 MT public AddressData getAddress()
 MT {
 MT AddressLocal addrLocal = this.getHomeAddress();
 MT if (addrLocal == null) return null;
 MT int addressId = addrLocal.getAddressId();
 MT String address1 = addrLocal.getAddress1();
 MT String address2 = 

RE: [JBoss-user] JMX: can not invoke operation on MBean

2003-06-24 Thread j . m . vanbergen
 The , is a red-herring. It is poor formatting in the exception handling
and has
 been fixed in the latest versions of jboss.
 
 You haven't posted any information about your MBean, so I have no idea why
it is failing.
 
 My first guess would be AllowedContentTypes is an
 attribute, you should be using MBeanServer.setAttribute(...)

Your guess was right. I should be using the setAttribute(...) and read the
JMX docs more carefully :)

thanks,
Jeroen



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMX notifications

2003-06-24 Thread Simone Milani
Thanks!

One more question if I can.  I wonder if is possible to have notifications
sent to an external JVM.  I tried using the RMINotificationListener but
witouth luck.

Thanks

Simone
- Original Message - 
From: Adrian Brock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:35 PM
Subject: RE: [JBoss-user] JMX notifications


 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jmx/src/main/test/c
 ompliance/server/MBeanServerTEST.java?annotate=1.14.4.1

 Any of the testAddNotificationListener* tests

 Regards,
 Adrian

 
 Adrian Brock
 Director of Support
 Back Office
 JBoss Group, LLC
 


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Simone Milani
  Sent: 23 June 2003 17:42
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] JMX notifications
 
 
  Hi,
 
  Could please someone point me at some examples of
  registering for JMX
  notifications?
 
  Thanks!!!
 
  Simone
 
 
  ---
  This SF.Net email is sponsored by: INetU
  Attention Web Developers  Consultants: Become An INetU
  Hosting Partner.
  Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
  Commission!
  INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 





 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Adding Resources to Tomcat Context configuration under 3.2.1/4.1.24

2003-06-24 Thread Brian Topping
Hi all,

I'm trying to add a subclass of org.apache.naming.resources.BaseDirContext to
a deployment for a specific webapp to implement a VFS for the single webapp.
I'm having some problems understanding where to hook this in while Tomcat is
running under JBoss.  Any ideas?

More information about what I have found:  

1) The current manner of embedding Tomcat does not seem to be developed
sufficiently to support this.  Putting a Resources element in the
DefaultContext element of
deploy/jboss-web-tomcat.sar/META-INF/jboss-service.xml does not seem to make
a difference, which would be backed up by
org.jboss.web.catalina.ConfigHandler.java.  Even if that were to be
supported, this would add a VFS to every web app context created, which is
not desirable either.

2) The concept of using a DirContext... is this something that is shared by
Jetty?  It doesn't seem to show up in a search of their site and their
javadoc is down.  If so, it seems like something that could be added to
org.jboss.metadata.WebMetaData and configured in both containers.  If not,
it's unclear where this could be configured on a per-app basis.  

So what to do?  It seems like there needs to be a tomcat-web.xml file that is
looked for  in /WEB-INF from
createWebContext():org.jboss.web.catalina.EmbeddedCatalinaService41.java, and
the contents integrated into the StandardContext before
virtualHost.addChild() is called.  No?

Thanks!

-b


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] MBean deployment ignores depends tag

2003-06-24 Thread Alex Hornby
Hi David,

Just to say thanks for the suggestions. Packaging the ejb jar and
-service.xml into a .EAR worked well.

The one extra thing I had to do was package some support jars into the
EAR as well instead of installing them in deploy/../lib, otherwise I got
class not found errors.

Cheers,
Alex.

On Wed, 2003-06-18 at 18:36, Alex Hornby wrote:
 
 Hi David,
 
 After reading your and Scotts replies I've packaged the mbean classes
 and -service.xml into a .sar to try to get the classes loaded.
 
 I have a problem that both my mbean .sar and my ejb .jar both need to
 use the EJB interfaces, so I've packaged the interfaces into both the
 .sar and the ejb .jar.
 
 This cause problems with duplicate class errors like below. 
 
 There is obviously a better way to do this - do I need to create a
 separare interfaces .jar? If so where would I deploy it to?
 
 TIA,
 Alex.
 
 18:27:36,126 WARN  [ClassLoadingTask] Duplicate class found:
 com.anvil.ate.marke
 t.interfaces.OrderBookData
 Current CS:
 (file:/home/alex/output/i686-pc-linux-gnu/ate-head/release/support/j
 boss/default/tmp/deploy/home/alex/output/i686-pc-linux-gnu/ate-head/release/supp
 ort/jboss/default/deploy/ejb-anvil-market.jar/31.ejb-anvil-market.jar
 no certif
 icates)
 Duplicate CS:
 (file:/home/alex/output/i686-pc-linux-gnu/ate-head/release/support
 /jboss/default/tmp/deploy/home/alex/output/i686-pc-linux-gnu/ate-head/release/su
 pport/jboss/default/deploy/anvil-market.sar/12.anvil-market.sar no
 certificates
 )
 
 
 On Tue, 2003-06-17 at 22:07, David Jencks wrote:
  To expand a little on Scott's answer,
  
  In jb 3.2 and earlier, you have to have the mbean's class available before
  you try to deploy the mbean.  When you deploy the mbean, it is created and
  the attributes are set.  Then the dependency stuff starts, so create and
  start are not called until the needed mbeans are created and started.
  
  In jb4, if you try to deploy an mbean before its class is deployed, it will
  wait and deploy when the class becomes available (and undeploy when the
  class is removed).  Also IIRC, there is a *-service.xml top level depends
  tag that you can use to depend on other mbeans, to make the *-service.xml
  wait for the DeploymentInfo mbean for the needed jar file.  (Also IIRC, the
  DeploymentInfo is an mbean only in jb4)
  
  david jencks
  /**
  * David Jencks
  * Partner
  * Core Developers Network
  * http://www.coredevelopers.net
  **/
  
  On 2003.06.09 09:37 Alex Hornby wrote:
   On Mon, 2003-06-09 at 14:25, Nicholas wrote:
Can you send them again ? I could not find them in the
archive.
   
   Hmmm, looks like the sourceforge archive strips off attachments.
   
   Here is the body of my reply to Scott and the attachment again:
   
   I've attached a gzip'd jboss log from a jboss 3.2.1 startup showing that
   the jboss-anvilmarket2-service.xml file is deployed before any of the
   EJBs in the ejb-anvil-market.jar are deployed, resulting in class not
   found error.
   
   I think the depends tags in jboss-anvilmarket2-service.xml should make
   the mbean deployment wait until after the named EJB has deployed,
   however this is not happening.
   
   The very same ejb jar and -service.xml work fine if I force the
   deployment order by copying them into the deploy directory manually one
   by one.
   
   Cheers,
   Alex.
   
   
   ?xml version=1.0 encoding=UTF-8?
   
   server
   
 classpath codebase=lib archives=quickfix.jar/
   
 mbean code=com.anvil.ate.market.common.ApplicationConstants
  name=com.anvil.ate.market:service=ApplicationConstants
   dependsjboss:service=Naming/depends 
   dependsjboss.j2ee:jndiName=market/MarketData,service=EJB/depends 
   attribute name=ServerNamelocalhost/attribute
   attribute name=InOrderQinboundOrderQueue/attribute
   attribute name=InQuoteQinboundQuoteQueue/attribute
   attribute name=InSessionQinboundSessionQueue/attribute
   attribute name=OutQoutboundQueue/attribute   
 /mbean
   
   /server
   
  
  
  ---
  This SF.Net email is sponsored by: INetU
  Attention Web Developers  Consultants: Become An INetU Hosting Partner.
  Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
  INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 

[JBoss-user] New Projects

2003-06-24 Thread nfs_ nfs
Please visit the website below to undertake programming projects.

http://www.thesoftwareobjects.com

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Shutdown JBoss programmatically

2003-06-24 Thread Magesh Prabhu
Guys,

I do some initialization stuff on a startup Servlet. If some services fail during this 
initialization, I want to shutdown JBoss. Is there a programmatical way of doing it. 
Can any body suggest please.

Thanks in advance,
Magesh



**
This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to 
you in error, you must take no action based on them, nor 
must you copy or show them to anyone; please reply to this 
email and highlight the error.
Security Warning: Please note that this email has been 
created in the knowledge that the internet email is not a 
100% secure communications medium.  We advise that you 
understand and observe this lack of security when emailing us.
Viruses:  Although we have taken steps to ensure that this 
email and attachments are free from any virus, we advise 
that in keeping with good computing practice the recipient 
should ensure they are actually virus free.
If you have received this email in error please notify:
[EMAIL PROTECTED]
**



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] MBean deployment ignores depends tag

2003-06-24 Thread Danny . Yates
Alex,

Are the class files from the supporting JARs loaded dynamically? Are
they loaded using Class.forName()? I've seen instances where this
doesn't work under JBoss. I guess this is due to the vaguaries of
the J2EE spec with regard to ClassLoaders.

Try:

 
Thread.currentThread().getContextClassLoader().loadClass(name).newInstance
();

(Although there's an argument which says keeping the supporting JARs
in the EAR file is the best place for them...)

Rgds,

Dan.

-- 
Danny Yates
 


-Original Message-
From: Alex Hornby [mailto:[EMAIL PROTECTED] 
Sent: 24 June 2003 10:12
To: jboss-user
Cc: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] MBean deployment ignores depends tag


Hi David,

Just to say thanks for the suggestions. Packaging the ejb jar and
-service.xml into a .EAR worked well.

The one extra thing I had to do was package some support jars into the
EAR as well instead of installing them in deploy/../lib, otherwise I got
class not found errors.

Cheers,
Alex.

On Wed, 2003-06-18 at 18:36, Alex Hornby wrote:
 
 Hi David,
 
 After reading your and Scotts replies I've packaged the mbean classes
 and -service.xml into a .sar to try to get the classes loaded.
 
 I have a problem that both my mbean .sar and my ejb .jar both need to
 use the EJB interfaces, so I've packaged the interfaces into both the
 .sar and the ejb .jar.
 
 This cause problems with duplicate class errors like below. 
 
 There is obviously a better way to do this - do I need to create a
 separare interfaces .jar? If so where would I deploy it to?
 
 TIA,
 Alex.
 
 18:27:36,126 WARN  [ClassLoadingTask] Duplicate class found:
 com.anvil.ate.marke
 t.interfaces.OrderBookData
 Current CS:
 (file:/home/alex/output/i686-pc-linux-gnu/ate-head/release/support/j

boss/default/tmp/deploy/home/alex/output/i686-pc-linux-gnu/ate-head/release/
supp
 ort/jboss/default/deploy/ejb-anvil-market.jar/31.ejb-anvil-market.jar
 no certif
 icates)
 Duplicate CS:
 (file:/home/alex/output/i686-pc-linux-gnu/ate-head/release/support

/jboss/default/tmp/deploy/home/alex/output/i686-pc-linux-gnu/ate-head/releas
e/su
 pport/jboss/default/deploy/anvil-market.sar/12.anvil-market.sar no
 certificates
 )
 
 
 On Tue, 2003-06-17 at 22:07, David Jencks wrote:
  To expand a little on Scott's answer,
  
  In jb 3.2 and earlier, you have to have the mbean's class available
before
  you try to deploy the mbean.  When you deploy the mbean, it is created
and
  the attributes are set.  Then the dependency stuff starts, so create and
  start are not called until the needed mbeans are created and started.
  
  In jb4, if you try to deploy an mbean before its class is deployed, it
will
  wait and deploy when the class becomes available (and undeploy when the
  class is removed).  Also IIRC, there is a *-service.xml top level
depends
  tag that you can use to depend on other mbeans, to make the
*-service.xml
  wait for the DeploymentInfo mbean for the needed jar file.  (Also IIRC,
the
  DeploymentInfo is an mbean only in jb4)
  
  david jencks
  /**
  * David Jencks
  * Partner
  * Core Developers Network
  * http://www.coredevelopers.net
  **/
  
  On 2003.06.09 09:37 Alex Hornby wrote:
   On Mon, 2003-06-09 at 14:25, Nicholas wrote:
Can you send them again ? I could not find them in the
archive.
   
   Hmmm, looks like the sourceforge archive strips off attachments.
   
   Here is the body of my reply to Scott and the attachment again:
   
   I've attached a gzip'd jboss log from a jboss 3.2.1 startup showing
that
   the jboss-anvilmarket2-service.xml file is deployed before any of the
   EJBs in the ejb-anvil-market.jar are deployed, resulting in class not
   found error.
   
   I think the depends tags in jboss-anvilmarket2-service.xml should
make
   the mbean deployment wait until after the named EJB has deployed,
   however this is not happening.
   
   The very same ejb jar and -service.xml work fine if I force the
   deployment order by copying them into the deploy directory manually
one
   by one.
   
   Cheers,
   Alex.
   
   
   ?xml version=1.0 encoding=UTF-8?
   
   server
   
 classpath codebase=lib archives=quickfix.jar/
   
 mbean code=com.anvil.ate.market.common.ApplicationConstants
  name=com.anvil.ate.market:service=ApplicationConstants
   dependsjboss:service=Naming/depends 
  
dependsjboss.j2ee:jndiName=market/MarketData,service=EJB/depends 
   attribute name=ServerNamelocalhost/attribute
   attribute name=InOrderQinboundOrderQueue/attribute
   attribute name=InQuoteQinboundQuoteQueue/attribute
   attribute name=InSessionQinboundSessionQueue/attribute
   attribute name=OutQoutboundQueue/attribute   
 /mbean
   
   /server
   
  
  
  ---
  This SF.Net email is sponsored by: INetU
  Attention Web Developers  Consultants: Become An INetU Hosting Partner.
  Refer Dedicated Servers. We Manage 

RE: [JBoss-user] JMX notifications

2003-06-24 Thread Adrian Brock
What does without luck mean?

Have you seen this (it applies to 2.4 but you
be able to make it work).
http://jboss.sourceforge.net/doc-24/ch11s39.html

Regards,
Adrian

 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Simone Milani
 Sent: 24 June 2003 09:36
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] JMX notifications
 
 
 Thanks!
 
 One more question if I can.  I wonder if is possible to have 
 notifications
 sent to an external JVM.  I tried using the 
 RMINotificationListener but
 witouth luck.
 
 Thanks
 
 Simone
 - Original Message - 
 From: Adrian Brock [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 23, 2003 6:35 PM
 Subject: RE: [JBoss-user] JMX notifications
 
 
  
 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jmx/src/m
 ain/test/c
  ompliance/server/MBeanServerTEST.java?annotate=1.14.4.1
 
  Any of the testAddNotificationListener* tests
 
  Regards,
  Adrian
 
  
  Adrian Brock
  Director of Support
  Back Office
  JBoss Group, LLC
  
 
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
   Simone Milani
   Sent: 23 June 2003 17:42
   To: [EMAIL PROTECTED]
   Subject: [JBoss-user] JMX notifications
  
  
   Hi,
  
   Could please someone point me at some examples of
   registering for JMX
   notifications?
  
   Thanks!!!
  
   Simone
  
  
   ---
   This SF.Net email is sponsored by: INetU
   Attention Web Developers  Consultants: Become An INetU
   Hosting Partner.
   Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
   Commission!
   INetU Dedicated Managed Hosting 
 http://www.inetu.net/partner/index.php
   
 ___
   JBoss-user mailing list
   [EMAIL PROTECTED]
   https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 
 
 
  ---
  This SF.Net email is sponsored by: INetU
  Attention Web Developers  Consultants: Become An INetU 
 Hosting Partner.
  Refer Dedicated Servers. We Manage Them. You Get 10% 
 Monthly Commission!
  INetU Dedicated Managed Hosting 
 http://www.inetu.net/partner/index.php
  
 ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU 
 Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
 Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 





---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] creating virtual host on the fly

2003-06-24 Thread Ionel Gardais
Hi,

Is it possible to create virtual hosts on the fly at deploy time ?

thanks,
ionel


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMX notifications

2003-06-24 Thread Simone Milani
Hi Adrian,

Thank you.  I got to the point where my notification are all handled on
the server not on the client.
Here is what I have done:

public class JMXClient
 implements RMINotificationListener, Serializable
{
 .

 public static void main(String[] args)
 {

  try
  {


   RMIAdaptor server = (RMIAdaptor)
ctx.lookup(jmx/rmi/RMIAdaptor);

//Server will print handling here, why?
ObjectName myObjectName = new
ObjectName(mercury.farming:service=FarmHandPoolService);
   server.addNotificationListener (myObjectName,
   new JMXClient(),
   null,
   null);

   Object[] params = new Object[] {};

   String[] signature = {};

   Thread.currentThread().sleep(5 * 1000);

//This causes one notification to be sent and server prints Handling here
   Object result =  server.invoke(myObjectName, testNotification,
params, signature);
   System.out.println(Result:  + result);

   Thread.currentThread().sleep(30 * 1000);
  }
  catch (Exception e)
  {
   e.printStackTrace();
  }
 }

 public void handleNotification(Notification notification, Object handback)
 {
  System.out.println(Handling here);
 }
}

Thanks!

Simone
- Original Message - 
From: Adrian Brock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 10:48 AM
Subject: RE: [JBoss-user] JMX notifications


 What does without luck mean?

 Have you seen this (it applies to 2.4 but you
 be able to make it work).
 http://jboss.sourceforge.net/doc-24/ch11s39.html

 Regards,
 Adrian

 
 Adrian Brock
 Director of Support
 Back Office
 JBoss Group, LLC
 


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Simone Milani
  Sent: 24 June 2003 09:36
  To: [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] JMX notifications
 
 
  Thanks!
 
  One more question if I can.  I wonder if is possible to have
  notifications
  sent to an external JVM.  I tried using the
  RMINotificationListener but
  witouth luck.
 
  Thanks
 
  Simone
  - Original Message - 
  From: Adrian Brock [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 23, 2003 6:35 PM
  Subject: RE: [JBoss-user] JMX notifications
 
 
  
  http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jmx/src/m
  ain/test/c
   ompliance/server/MBeanServerTEST.java?annotate=1.14.4.1
  
   Any of the testAddNotificationListener* tests
  
   Regards,
   Adrian
  
   
   Adrian Brock
   Director of Support
   Back Office
   JBoss Group, LLC
   
  
  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Simone Milani
Sent: 23 June 2003 17:42
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JMX notifications
   
   
Hi,
   
Could please someone point me at some examples of
registering for JMX
notifications?
   
Thanks!!!
   
Simone
   
   
---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU
Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
Commission!
INetU Dedicated Managed Hosting
  http://www.inetu.net/partner/index.php
   
  ___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
   
  
  
  
  
  
   ---
   This SF.Net email is sponsored by: INetU
   Attention Web Developers  Consultants: Become An INetU
  Hosting Partner.
   Refer Dedicated Servers. We Manage Them. You Get 10%
  Monthly Commission!
   INetU Dedicated Managed Hosting
  http://www.inetu.net/partner/index.php
  
  ___
   JBoss-user mailing list
   [EMAIL PROTECTED]
   https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
  ---
  This SF.Net email is sponsored by: INetU
  Attention Web Developers  Consultants: Become An INetU
  Hosting Partner.
  Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
  Commission!
  INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 





 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




[JBoss-user] WSDL Part names within messages.

2003-06-24 Thread Mark.Gargan
Title: Message



Hi 
folks,
 I'm exposing 
a few session beans as web services. In the generated WSDL the part names are 
given automatic names i.e. in0,in1 etc. I was wondering if there was anyway to 
be able to set these to the argument name presented in the session bean? 


i.e. I have a bean 
called FPGbean which has the following method signature
public double 
orderFPGTest(String mrn){
 
:
 
:
}

The wsdl for this is 
described as 







- wsdl:message name="orderFPGTestResponse"


 wsdl:part name="orderFPGTestReturn" 
type="xsd:double" / 
 
/wsdl:message

- wsdl:message name="orderFPGTestRequest"


 wsdl:part name="in0" 
type="xsd:string" / 
 
/wsdl:message
and as you can see 
the part name attribute for the Request is in0.
I'm hoping 
eventually to use a UDDIBrowser and some sort of DragNDrop functionality into an 
open source UML 
suite from which I will generate clients. I 
don't exactly need the names I suppose it would just mean I wouldn't have to 
worry about the parameters being in order as I added them to the 
call.

Thanks,
Mark.


[JBoss-user] CMP ejb-ql and Joins

2003-06-24 Thread Allan Kamau
I am trying to write join queries in ejb-ql.
This is my situation. I have three CMP entry beans,
two of these entity beans are have a many to many
relationship, so I created an the third ejb. This new
ejb is also a parent of some other ejb.
I would like to retrive a Collection or Set of this
third ejb from it's home interface depending on some
criteria that is dependent on one of the first two
(parent) EJBs.

I tried each of these ejb-ql statements but I get
deployment errors.

ejb-ql
select object(prs) from
ProjectReportingScheduleTimingAlertEJB prs join
ProjectReportingScheduleTimingEJB on
prs.projectReportingScheduleTimingCode=ProjectReportingScheduleTimingEJB.projectReportingScheduleTimingCode
where ProjectReportingScheduleTimingEJB.timing 
![CDATA[]]?1![CDATA[]] and
prs.hasSuccessfullyAlerted!=true
/ejb-ql

I have even tried rewriting the query

ejb-ql
select object(prs2) from
ProjectReportingScheduleTimingAlertEJB prs2 where
prs2.hasSuccessfullyAlerted ![CDATA[] 'true' and
prs2.projectReportingScheduleTimingCode in (select
projectReportingScheduleTimingCode from
ProjectReportingScheduleTimingEJB where
ProjectReportingScheduleTimingEJB.timing
![CDATA[]]?1)
/ejb-ql


During deployment I get the error:
2003-06-24 14:55:21,405 WARN 
[org.jboss.system.ServiceController] Problem starting
service
jboss.j2ee:jndiName=ProjectReportingScheduleEJB,service=EJB
org.jboss.deployment.DeploymentException: Error
compiling ejbql; - nested throwable:
(org.jboss.ejb.plugins.cmp.ejbql.TokenMgrError:
Lexical error at line 1, column 106.  Encountered: ]
(93), after : )
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.init(JDBCEJBQLQuery.java:46)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:44)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:218)


Thank you.

Allan

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Adding Resources to Tomcat Context configuration under 3.2.1/4.1.24

2003-06-24 Thread Scott M Stark
The notion of external static resources that should be included
as part of a web deployment should be added genericly to the 
jboss-web.xml descriptor for use by any web container that supports
it. This would show up in the WebMetaData.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Brian Topping wrote:

Hi all,

I'm trying to add a subclass of org.apache.naming.resources.BaseDirContext to
a deployment for a specific webapp to implement a VFS for the single webapp.
I'm having some problems understanding where to hook this in while Tomcat is
running under JBoss.  Any ideas?
More information about what I have found:  

1) The current manner of embedding Tomcat does not seem to be developed
sufficiently to support this.  Putting a Resources element in the
DefaultContext element of
deploy/jboss-web-tomcat.sar/META-INF/jboss-service.xml does not seem to make
a difference, which would be backed up by
org.jboss.web.catalina.ConfigHandler.java.  Even if that were to be
supported, this would add a VFS to every web app context created, which is
not desirable either.
2) The concept of using a DirContext... is this something that is shared by
Jetty?  It doesn't seem to show up in a search of their site and their
javadoc is down.  If so, it seems like something that could be added to
org.jboss.metadata.WebMetaData and configured in both containers.  If not,
it's unclear where this could be configured on a per-app basis.  

So what to do?  It seems like there needs to be a tomcat-web.xml file that is
looked for  in /WEB-INF from
createWebContext():org.jboss.web.catalina.EmbeddedCatalinaService41.java, and
the contents integrated into the StandardContext before
virtualHost.addChild() is called.  No?
Thanks!

-b



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JMX notifications

2003-06-24 Thread Adrian Brock
What is RMINotificationListener?

It looks like you've just serialized your notification listener
and therefore it is running on the server.

JBoss includes a connector and some support mbeans that
allow notifications to be returned to the client
using RMI or JMS or polling.
You register your listener with the connector which
will proxy requests to the remote mbeanserver.

Some of this is documented in the (out-of-date) link I posted before
http://jboss.sourceforge.net/doc-24/ch11s39.html

Regards,
Adrian

 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Simone Milani
 Sent: 24 June 2003 12:07
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] JMX notifications
 
 
 Hi Adrian,
 
 Thank you.  I got to the point where my notification are 
 all handled on
 the server not on the client.
 Here is what I have done:
 
 public class JMXClient
  implements RMINotificationListener, Serializable
 {
  .
 
  public static void main(String[] args)
  {
 
   try
   {
 
 
RMIAdaptor server = (RMIAdaptor)
 ctx.lookup(jmx/rmi/RMIAdaptor);
 
 //Server will print handling here, why?
 ObjectName myObjectName = new
 ObjectName(mercury.farming:service=FarmHandPoolService);
server.addNotificationListener (myObjectName,
new JMXClient(),
null,
null);
 
Object[] params = new Object[] {};
 
String[] signature = {};
 
Thread.currentThread().sleep(5 * 1000);
 
 //This causes one notification to be sent and server prints 
 Handling here
Object result =  server.invoke(myObjectName, testNotification,
 params, signature);
System.out.println(Result:  + result);
 
Thread.currentThread().sleep(30 * 1000);
   }
   catch (Exception e)
   {
e.printStackTrace();
   }
  }
 
  public void handleNotification(Notification notification, 
 Object handback)
  {
   System.out.println(Handling here);
  }
 }
 
 Thanks!
 
 Simone





---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jboss 3.2 datasource lookup error

2003-06-24 Thread _/^\_ _/^\_
Hello:

I downloaded 3.2.1. To do the datasource I updated the 
config/login-config.xml and put a modified copy of sysbase-ds.xml into  
default/deploy folder. In the program I called lookup(java/sybaseds). I am 
getting the unable to retrieve error.

I have only web.xml attached to the war file. No resource name file 
'jboss-web.xml'. I was getting error , If I put jboss-web.xml with jndi 
values into the war file.

In the jboss startup, I don't see any error related to the datasource. In 
the jmx console I see the datasource shows up.

Is there an example to follow to the 'datasource' in jboss 3.x .

Errors:

javax.servlet.UnavailableException: javax.servlet.ServletException: Cannot 
retrieve java/sybaseDS

getRootCause():javax.naming.NameNotFoundException: java not bound

thank you.
kay vee
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Shutdown JBoss programmatically

2003-06-24 Thread robert
 Guys,

 I do some initialization stuff on a startup Servlet. If some services
 fail during this initialization, I want to shutdown JBoss. Is there a
 programmatical way of doing it. Can any body suggest please.

Try using System.exit. JBoss install Shutdown hooks in order to do a clean
exit

 Thanks in advance,
 Magesh



--
Robert Marcano
IT System Architect
http://www.marcanoonline.com/




---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMP ejb-ql and Joins

2003-06-24 Thread Alexey Loubyansky
Hello Allan,

try to include the whole query into CDATA.

alex

Tuesday, June 24, 2003, 2:50:29 PM, Allan Kamau wrote:

AK I am trying to write join queries in ejb-ql.
AK This is my situation. I have three CMP entry beans,
AK two of these entity beans are have a many to many
AK relationship, so I created an the third ejb. This new
AK ejb is also a parent of some other ejb.
AK I would like to retrive a Collection or Set of this
AK third ejb from it's home interface depending on some
AK criteria that is dependent on one of the first two
AK (parent) EJBs.

AK I tried each of these ejb-ql statements but I get
AK deployment errors.

AK ejb-ql
AK select object(prs) from
AK ProjectReportingScheduleTimingAlertEJB prs join
AK ProjectReportingScheduleTimingEJB on
AK 
prs.projectReportingScheduleTimingCode=ProjectReportingScheduleTimingEJB.projectReportingScheduleTimingCode
AK where ProjectReportingScheduleTimingEJB.timing 
AK ![CDATA[]]?1![CDATA[]] and
AK prs.hasSuccessfullyAlerted!=true
AK /ejb-ql

AK I have even tried rewriting the query

AK ejb-ql
AK select object(prs2) from
AK ProjectReportingScheduleTimingAlertEJB prs2 where
AK prs2.hasSuccessfullyAlerted ![CDATA[] 'true' and
AK prs2.projectReportingScheduleTimingCode in (select
AK projectReportingScheduleTimingCode from
AK ProjectReportingScheduleTimingEJB where
AK ProjectReportingScheduleTimingEJB.timing
AK ![CDATA[]]?1)
AK /ejb-ql


AK During deployment I get the error:
AK 2003-06-24 14:55:21,405 WARN 
AK [org.jboss.system.ServiceController] Problem starting
AK service
AK jboss.j2ee:jndiName=ProjectReportingScheduleEJB,service=EJB
AK org.jboss.deployment.DeploymentException: Error
AK compiling ejbql; - nested throwable:
AK (org.jboss.ejb.plugins.cmp.ejbql.TokenMgrError:
AK Lexical error at line 1, column 106.  Encountered: ]
AK (93), after : )
AK at
AK org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.init(JDBCEJBQLQuery.java:46)
AK at
AK 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:44)
AK at
AK org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:218)


AK Thank you.

AK Allan

AK __
AK Do you Yahoo!?
AK SBC Yahoo! DSL - Now only $29.95 per month!
AK http://sbc.yahoo.com



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] creating virtual host on the fly

2003-06-24 Thread Brian Topping
 -Original Message-
 From: Ionel Gardais [mailto:[EMAIL PROTECTED]
 Subject: [JBoss-user] creating virtual host on the fly
 
 Is it possible to create virtual hosts on the fly at deploy time ?

Yes, read up on the contents of jboss-web.xml.

-b  


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jboss 3.2 datasource lookup error

2003-06-24 Thread David Jencks
try java:/sybaseds

david jencks

On 2003.06.24 08:25 _/^ _/^ wrote:
 Hello:
 
 I downloaded 3.2.1. To do the datasource I updated the 
 config/login-config.xml and put a modified copy of sysbase-ds.xml into  
 default/deploy folder. In the program I called lookup(java/sybaseds). I
 am 
 getting the unable to retrieve error.
 
 I have only web.xml attached to the war file. No resource name file 
 'jboss-web.xml'. I was getting error , If I put jboss-web.xml with jndi 
 values into the war file.
 
 In the jboss startup, I don't see any error related to the datasource. In
 
 the jmx console I see the datasource shows up.
 
 Is there an example to follow to the 'datasource' in jboss 3.x .
 
 Errors:
 
 javax.servlet.UnavailableException: javax.servlet.ServletException:
 Cannot 
 retrieve java/sybaseDS
 
 getRootCause():javax.naming.NameNotFoundException: java not bound
 
 
 thank you.
 kay vee
 
 _
 Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
 http://join.msn.com/?page=features/featuredemail
 
 
 
 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] creating virtual host on the fly

2003-06-24 Thread Ionel Gardais
Brian Topping wrote:

Yes, read up on the contents of jboss-web.xml.

-b  
 

From jboss-web_3_2.dtd :

!-- The virtual-host element allows one to specify which virtual host the war
should be deployed to. Example, to specify that a war should be deployed to the
www.jboss-store.org virtual host add the following virtual-host element:
  virtual-hostwww.jboss-store.org/virtual-host
--
I understand this as :
if a virtual-host is configured, this war will be deployed to the specified virtual-host (ie. 
www.jboss-store.org/appname). Else, the war will be deployed under the basic root server (ie. 
computername:port/appname)
not :
if you specify a virtual-host, it will be created and the specified virtual-host will be bind to the app 
root (either context-root or the war name) so www.jboss-store.org will be bind to 
computername:port/appname
Another question is : if this war is deployed inside an ear, does the virtual-host setting is still used ?

thanks,
ionel


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jetty and work files

2003-06-24 Thread David Ward
Quote from: 
http://www.coredevelopers.net/technology/jetty/jetty-jboss-faq.jsp

I want to change where Jetty writes it's temporary files. (revised: 
02/06/2003)
Jetty, being a good java citizen, respects the 'java.io.tmpdir' property 
(defaults to /tmp on Unix). Try setting this as you start up JBoss (see 
the following item) to your required directory e.g. 
$JBOSS_HOME/server/default/tmp.

So basically, set the java.io.tmpdir -D property when jboss starts up 
(edit your run.sh script or set it in your $JAVA_OPTS).

Hope this helps,
David
Lars Hoss escribió::
Hi all!

Is it possible to tell Jetty not to store the work files below /tmp 
(using Linux)?
Currently whenever I start Jetty it creates a directory like 
Jetty_0_0_0_... below /tmp.
This isn't very feasible because our cronjob removes files below /tmp 
after some days
of inactivity. Setting the scratchdir variable in webdefault.xml isn't 
very useable as well for the work
files of all webapps will go into one single directory.

Any suggestions?

Thanks in advance,
Lars


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] CMP 2.0 Deployment Problem

2003-06-24 Thread Klaus Richarz
Hello,

I have about 15 CMP entity beans. Some of them are connected by relation tables (many 
to many). I have checked all DD, and they seem to be correct (mostly checked 
jbosscmp-jdbc.xml), but I get the following error:

ERROR [org.jboss.ejb.EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: CMP field for key not found: field 
name=idLine

This CMP field is listed in the ejb-jar.xml and in the jbosscmp-jdbc.xml file.
Btw. is there any possibility to get behind this error msg ? Maybe which bean is 
affected ???

Any help would be appreciated,

Klaus Richarz


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] problem accessing an inner class from an MBean

2003-06-24 Thread George Icriverzi
Hi,

Here's my problem, please reply if you have any ideas about its cause:

I have an mbean, and an inner class defined inside the mbean.
In the start() of the mbean, I try to instantiate the inner class. Using 
jboss-3.0.7 was ok, but jboss-3.2.1 throws IllegalAccessError when I try 
to deploy . It looks like this:

WARN  [ServiceController] Problem starting service eu:service=CService
java.lang.IllegalAccessError: try to access class 
org.ca.ejb.services.CService$Scanner from class org.ca.ejb.services.CService
   at org.ca.ejb.services.CService.start(CService.java:209)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
..  Co.

The start() contains :

  public void start() throws Exception{
   .
 scanner = new Scanner( delay ); // here I get the error
   .
   }
and the inner class looks like:

  private class Scanner extends Thread{
 int timeout;
 Scanner(int delay){
   
 }  
   }

If I set the inner class and its constructor as public, the error is the 
following, at the same line:

WARN  [ServiceController] Problem starting service eu:service=CService
java.lang.LinkageError: loader constraints violated when linking 
org/ca/ejb/services/CService class
   at org.ca.ejb.services.CService.start(CService.java:209)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
   at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
   at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)


In both cases the mbean does not start.
Does anyone have any explanation about this?
Again, this is happening when I use jboss-3.2.1 .
Thanks,
George


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Run a class onStartup

2003-06-24 Thread Edgar Silva
Thanks Sebastien

You're right

The big problem is I don´t have documentation about
this Specification

I think that this subjects can be more public, more easy to find.

Regards...

Edgar
- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 8:35 PM
Subject: RE: [JBoss-user] Run a class onStartup


Edgar,

When you create an MBean (Standard MBean), It must follow a naming
convention :

Let's call the implementation class Foo, its interface must be called
FooMBean.
It is part of the JMX spec.

I guess that your Mbean is not implemented with this convention.

Sebastien



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Astie...

I just created this class following theses steps:

1) I created a Interface with init(),start(), stop(),detroy() methods.
2) I created a Class called Ebony , which implements the interface above.
3) I made all implementations nested to this class works fine.
4) I made an special file called my_mbean.xml describing my special MBean
this way:

?xml version=1.0 encoding=UTF-8?

server

  mbean code=com.argos.util.jmx.Ebony
name=DefaultDomain:service=ebony/

/server

Where Ebony is my Class where the implementation was made.

5) I Deploy it

6) I get this error:

19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean
ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  none
Incompletely deployed packages:
[EMAIL PROTECTED] {
url=file:/C:/jboss/server/defaul
t/deploy/ebony_service.xml }
  deployer: [EMAIL PROTECTED]
  status: Deployment FAILED reason: Class does not expose a management
interface
: com.argos.util.jmx.Ebony; - nested throwable:
(javax.management.NotCompliantMB
eanException: Class does not expose a management interface:
com.argos.util.jmx.E
bony)
  state: FAILED
  watch: file:/C:/jboss/server/default/deploy/ebony_service.xml
  lastDeployed: 1056408707513
  lastModified: 1056408708000
  mbeans:
]MBeans waiting for classes:
  none
MBeans waiting for other MBeans:
  none


7) I made the copy of Jar file to de Lib directory of my default
configuration Server...


Have other more simpler way that this above?

Any Idea?

If possible can you send a example of this declaration inside jboss
configuration file?


Regards

Edgar

- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:30 PM
Subject: RE: [JBoss-user] Run a class onStartup


Hello Edgar,

The obvious way to start a process at startup is to wrap your class in an
MBean and declare the MBean in user-service.xml



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Run a class onStartup


Hi Folks...

Can I put a simple .class to run in JBoss Startup?

For example, to start a SessionBean automaticlly...

Any Idea?

Regards

Edgar



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





Re: [JBoss-user] Jetty and work files

2003-06-24 Thread Felipe Oliveira
http://jetty.mortbay.com/jetty/doc/cronCleanup.html

Lars Hoss wrote:

Hi all!

Is it possible to tell Jetty not to store the work files below /tmp 
(using Linux)?
Currently whenever I start Jetty it creates a directory like 
Jetty_0_0_0_... below /tmp.
This isn't very feasible because our cronjob removes files below /tmp 
after some days
of inactivity. Setting the scratchdir variable in webdefault.xml 
isn't very useable as well for the work
files of all webapps will go into one single directory.

Any suggestions?

Thanks in advance,
Lars


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jetty and work files

2003-06-24 Thread Lars Hoss
So basically, set the java.io.tmpdir -D property when jboss starts up 
(edit your run.sh script or set it in your $JAVA_OPTS).
Uhm, yes, sounds pretty easy. Sometimes the solution is so easy but ... 
well =)
I will try that.
Thanks a lot =)

Yours,
Lars


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jetty and work files

2003-06-24 Thread Dave Smith
-Djava.io.tmpdir=path to tmp dir 
add it in your jboss startup script


On Tue, 2003-06-24 at 09:48, Lars Hoss wrote:
 Hi all!
 
 Is it possible to tell Jetty not to store the work files below /tmp 
 (using Linux)?
 Currently whenever I start Jetty it creates a directory like 
 Jetty_0_0_0_... below /tmp.
 This isn't very feasible because our cronjob removes files below /tmp 
 after some days
 of inactivity. Setting the scratchdir variable in webdefault.xml 
 isn't very useable as well for the work
 files of all webapps will go into one single directory.
 
 Any suggestions?
 
 Thanks in advance,
 Lars
 
 
 
 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Run a class onStartup

2003-06-24 Thread Danny . Yates
I guessed at:

http://java.sun.com/jmx

How much more public would you like?! ;-)

Rgds,

Dan.

-- 
Danny Yates
 


-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED] 
Sent: 24 June 2003 15:36
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Thanks Sebastien

You're right

The big problem is I don´t have documentation about
this Specification

I think that this subjects can be more public, more easy to find.

Regards...

Edgar
- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 8:35 PM
Subject: RE: [JBoss-user] Run a class onStartup


Edgar,

When you create an MBean (Standard MBean), It must follow a naming
convention :

Let's call the implementation class Foo, its interface must be called
FooMBean.
It is part of the JMX spec.

I guess that your Mbean is not implemented with this convention.

Sebastien



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Astie...

I just created this class following theses steps:

1) I created a Interface with init(),start(), stop(),detroy() methods.
2) I created a Class called Ebony , which implements the interface above.
3) I made all implementations nested to this class works fine.
4) I made an special file called my_mbean.xml describing my special MBean
this way:

?xml version=1.0 encoding=UTF-8?

server

  mbean code=com.argos.util.jmx.Ebony
name=DefaultDomain:service=ebony/

/server

Where Ebony is my Class where the implementation was made.

5) I Deploy it

6) I get this error:

19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean
ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  none
Incompletely deployed packages:
[EMAIL PROTECTED] {
url=file:/C:/jboss/server/defaul
t/deploy/ebony_service.xml }
  deployer: [EMAIL PROTECTED]
  status: Deployment FAILED reason: Class does not expose a management
interface
: com.argos.util.jmx.Ebony; - nested throwable:
(javax.management.NotCompliantMB
eanException: Class does not expose a management interface:
com.argos.util.jmx.E
bony)
  state: FAILED
  watch: file:/C:/jboss/server/default/deploy/ebony_service.xml
  lastDeployed: 1056408707513
  lastModified: 1056408708000
  mbeans:
]MBeans waiting for classes:
  none
MBeans waiting for other MBeans:
  none


7) I made the copy of Jar file to de Lib directory of my default
configuration Server...


Have other more simpler way that this above?

Any Idea?

If possible can you send a example of this declaration inside jboss
configuration file?


Regards

Edgar

- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:30 PM
Subject: RE: [JBoss-user] Run a class onStartup


Hello Edgar,

The obvious way to start a process at startup is to wrap your class in an
MBean and declare the MBean in user-service.xml



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Run a class onStartup


Hi Folks...

Can I put a simple .class to run in JBoss Startup?

For example, to start a SessionBean automaticlly...

Any Idea?

Regards

Edgar



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage 

Re: [JBoss-user] CMP 2.0 Deployment Problem

2003-06-24 Thread Dain Sundstrom
This particular error message comes from 
JDBCRelationshipRoleMetaData.java, which loads the data inside of the 
ejb-relationship-role.  Check your jbosscmp-jdbc.xml file for a 
relationship with a field-name element containing idLine.  My guess 
is you have the key declaration backwards (try swapping the keys, 
between the two sides).

-dain

/*
 * Dain Sundstrom
 * Partner
 * Core Developers Network
 */
On Tuesday, June 24, 2003, at 09:30 AM, Klaus Richarz wrote:

Hello,

I have about 15 CMP entity beans. Some of them are connected by 
relation tables (many to many). I have checked all DD, and they seem 
to be correct (mostly checked jbosscmp-jdbc.xml), but I get the 
following error:

ERROR [org.jboss.ejb.EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: CMP field for key not found: 
field name=idLine

This CMP field is listed in the ejb-jar.xml and in the 
jbosscmp-jdbc.xml file.
Btw. is there any possibility to get behind this error msg ? Maybe 
which bean is affected ???

Any help would be appreciated,

Klaus Richarz

---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting 
Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] srp configuration

2003-06-24 Thread Scott M Stark
You need to create your own implementation of the VerifierStore to
integrate with your security database. SRP is not configured by
default since it requires a VerifierStore. This is independent of
any login module as it is simply the mechanism by which the SRP service
obtains the password verifier and algorithm parameters. This is
detailed in the Providing Password Information for SRP section.
The client side configuration uses the SRPLoginModule with the apporiate
module options to connect to the SRP service. This is the similar to 
configuring a client to authentication against an ldap server using the
LdapLoginModule.

The server side configuration of the login modules includes the 
SRPCacheLoginModule + whatever login module provides the user roles. 
Roles are not handled by SRP.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Sonnek, Ryan wrote:

Thanks scott.
I do have the purchased documentation and have been trying to go through it
step by step.  The example sourcecode has been helpful, but when
implementing it on my own, do I need to create a custom implementation of
the VerifierStore, or is one provided (specifically for the
DatabaseLoginModule)?  Also, looking through the all/default/minimal
configurations, SRP is not enabled by default, is that correct?
Does this look right for setup?
Server side:
1.  deploy the SRP service mbean to jboss.
2.  deploy a VerifierStore mbean to jboss.
3.  define a login-config that uses SRP and desired module (Database, LDAP,
etc).
Client side:
??? I'm still confused with this, but I'll worry about that in a little bit.
Ryan


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] problem accessing an inner class from an MBean

2003-06-24 Thread Scott M Stark
Two class loaders are attempting to load the 
org.ca.ejb.services.CService class in the same application context. How 
is this service packaged and deployed?

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

George Icriverzi wrote:

Hi,

Here's my problem, please reply if you have any ideas about its cause:

I have an mbean, and an inner class defined inside the mbean.
In the start() of the mbean, I try to instantiate the inner class. Using 
jboss-3.0.7 was ok, but jboss-3.2.1 throws IllegalAccessError when I try 
to deploy . It looks like this:

WARN  [ServiceController] Problem starting service eu:service=CService
java.lang.IllegalAccessError: try to access class 
org.ca.ejb.services.CService$Scanner from class 
org.ca.ejb.services.CService
   at org.ca.ejb.services.CService.start(CService.java:209)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) 

..  Co.

The start() contains :

  public void start() throws Exception{
   .
 scanner = new Scanner( delay ); // here I get the error
   .
   }
and the inner class looks like:

  private class Scanner extends Thread{
 int timeout;
 Scanner(int delay){
   
 } }
If I set the inner class and its constructor as public, the error is the 
following, at the same line:

WARN  [ServiceController] Problem starting service eu:service=CService
java.lang.LinkageError: loader constraints violated when linking 
org/ca/ejb/services/CService class
   at org.ca.ejb.services.CService.start(CService.java:209)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) 

   at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
   at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) 



In both cases the mbean does not start.
Does anyone have any explanation about this?
Again, this is happening when I use jboss-3.2.1 .
Thanks,
George



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMX notifications

2003-06-24 Thread Scott M Stark
There is an example of using the RMINotificationListener in the 3.2.1
draft edition of the admin/devel guide. You need to export your 
RMINotificationListener since it should be a RMI server, not a 
serialzable instance.

package org.jboss.chap2.xmbean;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import javax.management.Attribute;
import javax.management.MBeanInfo;
import javax.management.MBeanOperationInfo;
import javax.management.MBeanParameterInfo;
import javax.management.Notification;
import javax.management.ObjectName;
import javax.naming.InitialContext;
import org.jboss.jmx.adaptor.rmi.RMIAdaptor;
import org.jboss.jmx.adaptor.rmi.RMINotificationListener;
/** A client that demonstrates how to connect to the JMX server using 
the RMI adaptor.

 @author [EMAIL PROTECTED]
 @version $Revision: 1.1 $
 */
public class TestXMBean1
{
   public static class Listener implements RMINotificationListener
   {
  public Listener() throws RemoteException
  {
 UnicastRemoteObject.exportObject(this);
  }
  public void handleNotification(Notification event, Object handback)
  {
 System.out.println(handleNotification, event: +event);
  }
   }
   /**
* @param args the command line arguments
*/
   public static void main(String[] args) throws Exception
   {
  InitialContext ic = new InitialContext();
  RMIAdaptor server = (RMIAdaptor) ic.lookup(jmx/rmi/RMIAdaptor);
  // Get the MBeanInfo for the JNDIMap XMBean
  ObjectName name = new ObjectName(chap2.xmbean:service=JNDIMap);
  MBeanInfo info = server.getMBeanInfo(name);
  System.out.println(JNDIMap Class: +info.getClassName());
  MBeanOperationInfo[] opInfo = info.getOperations();
  System.out.println(JNDIMap Operations: );
  for(int o = 0; o  opInfo.length; o ++)
  {
 MBeanOperationInfo op = opInfo[o];
 String returnType = op.getReturnType();
 String opName = op.getName();
 System.out.print( + +returnType+ +opName+();
 MBeanParameterInfo[] params = op.getSignature();
 for(int p = 0; p  params.length; p ++)
 {
MBeanParameterInfo paramInfo = params[p];
String pname = paramInfo.getName();
String type = paramInfo.getType();
if( pname.equals(type) )
   System.out.print(type);
else
   System.out.print(type+ +name);
if( p  params.length-1 )
   System.out.print(',');
 }
 System.out.println());
  }
  // Register as a notification listener
  Listener listener = new Listener();
  server.addNotificationListener(name, listener, null, null);
  // Get the InitialValues attribute
  String[] initialValues = (String[]) server.getAttribute(name, 
InitialValues);
  for(int n = 0; n  initialValues.length; n += 2)
  {
 String key = initialValues[n];
 String value = initialValues[n+1];
 System.out.println(key=+key+, value=+value);
  }

  // Invoke the put(Object, Object) op
  String[] sig = {java.lang.Object, java.lang.Object};
  Object[] opArgs = {key1, value1};
  server.invoke(name, put, opArgs, sig);
  System.out.println(JNDIMap.put(key1, value1) successful);
  sig = new String[]{java.lang.Object};
  opArgs = new Object[]{key0};
  Object result0 = server.invoke(name, get, opArgs, sig);
  System.out.println(JNDIMap.get(key0): +result0);
  opArgs = new Object[]{key1};
  Object result1 = server.invoke(name, get, opArgs, sig);
  System.out.println(JNDIMap.get(key1): +result1);
  // Change the InitialValues
  initialValues[0] = key10;
  initialValues[1] = value10;
  Attribute ivalues = new Attribute(InitialValues, initialValues);
  server.setAttribute(name, ivalues);
  // Unregister the listener.
  server.removeNotificationListener(name, listener);
  UnicastRemoteObject.unexportObject(listener, true);
   }
}
Simone Milani wrote:

Hi Adrian,

Thank you.  I got to the point where my notification are all handled on
the server not on the client.
Here is what I have done:
public class JMXClient
 implements RMINotificationListener, Serializable
{
 .
 public static void main(String[] args)
 {
  try
  {
   RMIAdaptor server = (RMIAdaptor)
ctx.lookup(jmx/rmi/RMIAdaptor);
//Server will print handling here, why?
ObjectName myObjectName = new
ObjectName(mercury.farming:service=FarmHandPoolService);
   server.addNotificationListener (myObjectName,
   new JMXClient(),
   null,
   null);
   Object[] params = new Object[] {};

   String[] signature = {};

   Thread.currentThread().sleep(5 * 1000);

//This causes one notification to be sent and server prints Handling here
   Object result =  server.invoke(myObjectName, testNotification,
params, signature);
   System.out.println(Result:  + result);
   Thread.currentThread().sleep(30 * 

Re: [JBoss-user] jboss 3.2 datasource lookup error

2003-06-24 Thread _/^\_ _/^\_
Hello:

That syntax is not working.

Other than sybase-ds.xml and login-config.xml , I think there is more to 
edit/update in the setup files. I am missing the steps.

any comments.

thank you.
kay vee

From: David Jencks [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] jboss 3.2 datasource lookup error
Date: Tue, 24 Jun 2003 10:18:55 -0400
try java:/sybaseds

david jencks

On 2003.06.24 08:25 _/^ _/^ wrote:
 Hello:

 I downloaded 3.2.1. To do the datasource I updated the
 config/login-config.xml and put a modified copy of sysbase-ds.xml into
 default/deploy folder. In the program I called lookup(java/sybaseds). 
I
 am
 getting the unable to retrieve error.

 I have only web.xml attached to the war file. No resource name file
 'jboss-web.xml'. I was getting error , If I put jboss-web.xml with jndi
 values into the war file.

 In the jboss startup, I don't see any error related to the datasource. 
In

 the jmx console I see the datasource shows up.

 Is there an example to follow to the 'datasource' in jboss 3.x .

 Errors:

 javax.servlet.UnavailableException: javax.servlet.ServletException:
 Cannot
 retrieve java/sybaseDS

 getRootCause():javax.naming.NameNotFoundException: java not bound


 thank you.
 kay vee

 _
 Add photos to your e-mail with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail



 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMX notifications

2003-06-24 Thread Simone Milani
Hi Adrian,

The  RMINotificationListener is on package org.jboss.jmx.adaptor.rmi and
indeed is serializing the object to the server (anyway good to know that can
be used :) ).  I was actually
I just wonder now what would should go in the placeholder of the following
code so that the notification gets back to the client.

   RMIAdaptor server = (RMIAdaptor)
ctx.lookup(jmx/rmi/RMIAdaptor);
   ObjectName myObjectName = new
ObjectName(mercury.farming:service=FarmHandPoolService);
   server.addNotificationListener (myObjectName,
   
   null,
   );
I could not figure it out from that example.
Thank you!!!

Simone
- Original Message - 
From: Adrian Brock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 1:19 PM
Subject: RE: [JBoss-user] JMX notifications


 What is RMINotificationListener?

 It looks like you've just serialized your notification listener
 and therefore it is running on the server.

 JBoss includes a connector and some support mbeans that
 allow notifications to be returned to the client
 using RMI or JMS or polling.
 You register your listener with the connector which
 will proxy requests to the remote mbeanserver.

 Some of this is documented in the (out-of-date) link I posted before
 http://jboss.sourceforge.net/doc-24/ch11s39.html

 Regards,
 Adrian

 
 Adrian Brock
 Director of Support
 Back Office
 JBoss Group, LLC
 


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Simone Milani
  Sent: 24 June 2003 12:07
  To: [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] JMX notifications
 
 
  Hi Adrian,
 
  Thank you.  I got to the point where my notification are
  all handled on
  the server not on the client.
  Here is what I have done:
 
  public class JMXClient
   implements RMINotificationListener, Serializable
  {
   .
 
   public static void main(String[] args)
   {
 
try
{
 
 
 RMIAdaptor server = (RMIAdaptor)
  ctx.lookup(jmx/rmi/RMIAdaptor);
 
  //Server will print handling here, why?
  ObjectName myObjectName = new
  ObjectName(mercury.farming:service=FarmHandPoolService);
 server.addNotificationListener (myObjectName,
 new JMXClient(),
 null,
 null);
 
 Object[] params = new Object[] {};
 
 String[] signature = {};
 
 Thread.currentThread().sleep(5 * 1000);
 
  //This causes one notification to be sent and server prints
  Handling here
 Object result =  server.invoke(myObjectName, testNotification,
  params, signature);
 System.out.println(Result:  + result);
 
 Thread.currentThread().sleep(30 * 1000);
}
catch (Exception e)
{
 e.printStackTrace();
}
   }
 
   public void handleNotification(Notification notification,
  Object handback)
   {
System.out.println(Handling here);
   }
  }
 
  Thanks!
 
  Simone





 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMX notifications

2003-06-24 Thread Simone Milani
Apologies,
Please ignore my last message, I did not read the last reply from Scott.
That solved my problem.

Thank you!

Simone
- Original Message - 
From: Simone Milani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 6:12 PM
Subject: Re: [JBoss-user] JMX notifications


 Hi Adrian,

 The  RMINotificationListener is on package org.jboss.jmx.adaptor.rmi
and
 indeed is serializing the object to the server (anyway good to know that
can
 be used :) ).  I was actually
 I just wonder now what would should go in the placeholder of the following
 code so that the notification gets back to the client.

RMIAdaptor server = (RMIAdaptor)
 ctx.lookup(jmx/rmi/RMIAdaptor);
ObjectName myObjectName = new
 ObjectName(mercury.farming:service=FarmHandPoolService);
server.addNotificationListener (myObjectName,

null,
);
 I could not figure it out from that example.
 Thank you!!!

 Simone
 - Original Message - 
 From: Adrian Brock [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2003 1:19 PM
 Subject: RE: [JBoss-user] JMX notifications


  What is RMINotificationListener?
 
  It looks like you've just serialized your notification listener
  and therefore it is running on the server.
 
  JBoss includes a connector and some support mbeans that
  allow notifications to be returned to the client
  using RMI or JMS or polling.
  You register your listener with the connector which
  will proxy requests to the remote mbeanserver.
 
  Some of this is documented in the (out-of-date) link I posted before
  http://jboss.sourceforge.net/doc-24/ch11s39.html
 
  Regards,
  Adrian
 
  
  Adrian Brock
  Director of Support
  Back Office
  JBoss Group, LLC
  
 
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
   Simone Milani
   Sent: 24 June 2003 12:07
   To: [EMAIL PROTECTED]
   Subject: Re: [JBoss-user] JMX notifications
  
  
   Hi Adrian,
  
   Thank you.  I got to the point where my notification are
   all handled on
   the server not on the client.
   Here is what I have done:
  
   public class JMXClient
implements RMINotificationListener, Serializable
   {
.
  
public static void main(String[] args)
{
  
 try
 {
  
  
  RMIAdaptor server = (RMIAdaptor)
   ctx.lookup(jmx/rmi/RMIAdaptor);
  
   //Server will print handling here, why?
   ObjectName myObjectName = new
   ObjectName(mercury.farming:service=FarmHandPoolService);
  server.addNotificationListener (myObjectName,
  new JMXClient(),
  null,
  null);
  
  Object[] params = new Object[] {};
  
  String[] signature = {};
  
  Thread.currentThread().sleep(5 * 1000);
  
   //This causes one notification to be sent and server prints
   Handling here
  Object result =  server.invoke(myObjectName, testNotification,
   params, signature);
  System.out.println(Result:  + result);
  
  Thread.currentThread().sleep(30 * 1000);
 }
 catch (Exception e)
 {
  e.printStackTrace();
 }
}
  
public void handleNotification(Notification notification,
   Object handback)
{
 System.out.println(Handling here);
}
   }
  
   Thanks!
  
   Simone
 
 
 
 
 
  ---
  This SF.Net email is sponsored by: INetU
  Attention Web Developers  Consultants: Become An INetU Hosting Partner.
  Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
  INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 


 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] creating virtual host on the fly

2003-06-24 Thread Brian Topping
 -Original Message-
 From: Ionel Gardais [mailto:[EMAIL PROTECTED]
 Subject: Re: [JBoss-user] creating virtual host on the fly
 
 
 Brian Topping wrote:
 
 Yes, read up on the contents of jboss-web.xml.
 
 -b  
   
 
  From jboss-web_3_2.dtd :

I would read the pay-for docs, they are very complete.  You've already spent
more than $10 in time trying to figure this out... :-)

 !-- The virtual-host element allows one to specify which 
 virtual host the war
 should be deployed to. Example, to specify that a war should 
 be deployed to the
 www.jboss-store.org virtual host add the following 
 virtual-host element:
virtual-hostwww.jboss-store.org/virtual-host
 --
 
 I understand this as :
 if a virtual-host is configured, this war will be deployed 
 to the specified virtual-host (ie. 
 www.jboss-store.org/appname). Else, the war will be 
 deployed under the basic root server (ie. 
 computername:port/appname)

This is correct for 3.0.x.  It deploys at server root if you specify / as
context root in jboss-web.xml along with the host that you want to deploy on.


There's been some changes (for the better, IMHO) to 3.2 and I'm still
squeaking by on the out-of-date 3.0.4 docs.  But basically, you can figure
out the element structure that the deployer expects in the
jboss-tomcat.sar/META-INF/jboss-service.xml through the source in the file
catalina/src/main/org/jboss/web/catalina/ConfigHandler.java.  I'd give you a
full URL through http://sourceforge.net/cvs/?group_id=22866, but the thing is
down again.

Keep your eye on http://tinyurl.com/f5aa for it to be updated to 3.2, then
get it.  It's really worth your time, I read it for reference about once
every few days.  If I added up the value of the time I saved, it's free
money.

 Another question is : if this war is deployed inside an ear, 
 does the virtual-host setting is still used ?

Yes.

-b


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JMS Singleton

2003-06-24 Thread Magesh Prabhu
Hi Guys,

My requirement is to get (onMessage) notification one by one. 
Next notification should wait until I finish my onMessage method.

So I created my own type of MessageDrivenBean and named it Singleton Message Driven 
Bean and configured the following in standardjboss.xml

  container-configuration
 container-nameSingleton Message Driven Bean/container-name
 call-loggingfalse/call-logging
 
!--invoker-proxy-binding-namemessage-driven-bean/invoker-proxy-binding-name--
 container-interceptors

interceptororg.jboss.ejb.plugins.ProxyFactoryFinderInterceptor/interceptor
interceptororg.jboss.ejb.plugins.LogInterceptor/interceptor
interceptororg.jboss.ejb.plugins.RunAsSecurityInterceptor/interceptor
!-- CMT --
interceptor 
transaction=Containerorg.jboss.ejb.plugins.TxInterceptorCMT/interceptor
interceptor transaction=Container 
metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/interceptor
interceptor 
transaction=Containerorg.jboss.ejb.plugins.MessageDrivenInstanceInterceptor/interceptor
!-- BMT --
interceptor 
transaction=Beanorg.jboss.ejb.plugins.MessageDrivenInstanceInterceptor/interceptor
interceptor 
transaction=Beanorg.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT/interceptor
interceptor transaction=Bean 
metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/interceptor

interceptororg.jboss.resource.connectionmanager.CachedConnectionInterceptor/interceptor
 /container-interceptors
 instance-poolorg.jboss.ejb.plugins.MessageDrivenInstancePool/instance-pool
 instance-cache/instance-cache
 persistence-manager/persistence-manager
 container-pool-conf
MaximumSize100/MaximumSize
 /container-pool-conf
 invoker-proxy-binding
namemessage-driven-bean/name
invoker-mbeandefault/invoker-mbean
proxy-factoryorg.jboss.ejb.plugins.jms.JMSContainerInvoker/proxy-factory
proxy-factory-config
JMSProviderAdapterJNDIDefaultJMSProvider/JMSProviderAdapterJNDI
ServerSessionPoolFactoryJNDIStdJMSPool/ServerSessionPoolFactoryJNDI
!--MaximumSize15/MaximumSize--
MaximumSize1/MaximumSize
MaxMessages1/MaxMessages
MDBConfig
ReconnectIntervalSec10/ReconnectIntervalSec
DLQConfig
DestinationQueuequeue/DLQ/DestinationQueue
MaxTimesRedelivered10/MaxTimesRedelivered
TimeToLive0/TimeToLive
/DLQConfig
/MDBConfig
/proxy-factory-config
/invoker-proxy-binding
  /container-configuration 

When I used this configuration in my MessageDrivenbean, even though I limited the 
JMSPool to be 1, it is not behaving the way I want. It just flushes the onMessage call 
before my method ends. Am I doing anything wrong. Could anybody suggest me please.

I'm running on jboss-3.2.1_tomcat-4.1.24, and JDK1.4.1 on windows platform.

Thanks in advance,
Magesh



**
This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to 
you in error, you must take no action based on them, nor 
must you copy or show them to anyone; please reply to this 
email and highlight the error.
Security Warning: Please note that this email has been 
created in the knowledge that the internet email is not a 
100% secure communications medium.  We advise that you 
understand and observe this lack of security when emailing us.
Viruses:  Although we have taken steps to ensure that this 
email and attachments are free from any virus, we advise 
that in keeping with good computing practice the recipient 
should ensure they are actually virus free.
If you have received this email in error please notify:
[EMAIL PROTECTED]
**



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] CMP and DataSource with Security Domain

2003-06-24 Thread Mauricio De Diana
Hi all,

I have a datasource under a security domain. It is
referenced from a CMP entity bean. When the bean is
deployed, I get the following exception:

java.lang.SecurityException: Invalid authentication
attempt, principal=null
at
org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:709)
at
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:531)
at
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:822)
at
org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(LocalDataSource.java:102)
at
org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:38)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:103)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:397)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339)
at
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
at
org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
at
org.jboss.ejb.Container.invoke(Container.java:756)
at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
at $Proxy4.start(Unknown Source)
...

My datasource configuration is:

...
mbean
code=org.jboss.resource.connectionmanager.LocalTxConnectionManager
name=jboss.jca:service=LocalTxCM,name=dedianaDS
  attribute
name=SecurityDomainJndiNamededianaDSRealm/attribute
  depends
optional-attribute-name=ManagedConnectionFactoryName
mbean
code=org.jboss.resource.connectionmanager.RARDeployment
name=jboss.jca:service=LocalTxDS,name=dedianaDS
  attribute
name=JndiNamejdbc/dedianaDS/attribute
  attribute
name=ManagedConnectionFactoryProperties
properties
  config-property name=ConnectionURL
type=java.lang.StringMYSQL_URL/DB_NAME?autoReconnect=true/config-property
  config-property name=DriverClass
type=java.lang.Stringorg.gjt.mm.mysql.Driver/config-property

(Username and password are not here because I´m using
JAAS)
...

And the login-config.xml:

application-policy name=dedianaDSRealm
  authentication
login-module
code=br.com.locaweb.resource.security.ConfiguredIdentityLoginModule
flag=required
  module-option
name=principaldediana/module-option
  module-option
name=userNamedediana/module-option
  module-option
name=passwordMY_PASSWORD/module-option
  module-option
name=managedConnectionFactoryNamejboss.jca:service=LocalTxCM,name=dedianaDS/module-option
/login-module
  /authentication
/application-policy

Any help will be much appreciated.

Thanks in advance.

De Diana

___
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção 
contra spam.
http://br.mail.yahoo.com/


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] ClassLoader issues when going from 3.2.0 - 3.2.2(RC1)

2003-06-24 Thread Gavin Matthews
All,
 I need to upgrade me to 3.2.2 to get some of the primary key gen fixes in
that version. I had hoped that the upgrade would be fairly transparent as
it's only a minor release. However now my app fails to deploy. I believe
this is due to some of the Class Loader changes that went into 3.2.1 but I'm
not sure what the correct configuration should be. (Bear in mind I'm no
class loader wizz so this may just be some dumb config issue).

 I have a SAR which just calls through to a JAR which implements my service.
So I put the JAR on the SARs manifest classpath. The JAR has dependencies on
DigesterBase (an inhouse helper for commons-digester) so I put that on the
JARs manifest classpath. However when I deploy the SAR I get an classdef not
found error - the SAR wants DigesterBase on it's manifest classpath (this
makes no sense to me and everything was working fine in 3.2.0). Can someone
enlighten me on how my app should be configured?

The SAR classpath is: lib/messenger-server-configservice.jar
lib/tumbleweedCore.jar

The JAR classpath is: lib/commons-collections.jar lib/commons-digester.jar
lib/tumbleweedCore.jar lib/tumbleweedDatabase.jar lib/tumbleweedDigester.jar

The exception is:

11:05:33,234 WARN  [ServiceController] Problem starting service
com.tumbleweed.m
essenger.server.configservice.jboss3:service=ConfigService
java.lang.NoClassDefFoundError: com/tumbleweed/digester/DigesterBase
at
com.tumbleweed.messenger.server.configservice.jboss3.ConfigServiceSer
ver.rebind(ConfigServiceServer.java:125)
at
com.tumbleweed.messenger.server.configservice.jboss3.ConfigServiceSer
ver.start(ConfigServiceServer.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:966)
at $Proxy11.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:392)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:822)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:630)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:603)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:200)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
bstractDeploymentScanner.java:273)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
92)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:966)
at $Proxy0.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:392)
at 

RE: [JBoss-user] unchecked/ method security fails

2003-06-24 Thread Sebastian Hauer

Hi Scott,

Thanks for the answer I think that worked for me.
Now I have a different problem.  I wrote a little test where I have an
authenticated user with roles assigned to it which will try to call a
bean method that is unsecured unchecked/ (in this case create() is
unchecked as well) and fails with this exception on the client side:
 
javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
Insufficient method permissions, principal=admin1#XON,
method=create, interface=HOME, requiredRoles=[ANYBODY],
 principalRoles=[rejectVoidTrades$, amendTradesFO$, readDateSequences$,
readParties$, createUnverifiedTradesBO$, readBal

Sebastian

 -Original Message-
 From: Scott M Stark [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 23, 2003 7:54 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] unchecked/ method security fails
 
 
 
 Unchecked in JBoss does not mean anonymous by default. A 
 caller still must be authenticated, but there will be no 
 authorization check. If you want to allow anonymous access to 
 an unchecked ejb you need to configure the security domain 
 login modules to allow this. Most JBoss login modules support 
 this using the unauthenticatedIdentity module option so read 
 up on that.


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Order By Boolean

2003-06-24 Thread Jason Calabrese
Hi everyone,

I have a bean that I need to create a finder for that orders by a boolean 
field.  It seems like JBoss does not support this.  Is that true?

As a work around I just added an extra field of type int that maps to the same 
column, but that's kind of a hack.

Is there a better way to handle this?

Thanks,

Jason


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Shutdown JBoss programmatically

2003-06-24 Thread Guy Rouillier
Magesh Prabhu wrote:
Guys,

I do some initialization stuff on a startup Servlet. If some services fail during this initialization, I want to shutdown JBoss. Is there a programmatical way of doing it. Can any body suggest please.
You don't mention what version of JBoss you are working with.  There is 
a shutdown.bat and shutdown.jar in the bin directory of 3.2.x.  You 
could probably execute the same code that it is using.  shutdown.bat 
would obviously run in a separate JVM, so I don't know what kind of 
problems you are going to get trying to shut down the JVM you are 
running in.

Thanks in advance,
Magesh


**
This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to 
you in error, you must take no action based on them, nor 
must you copy or show them to anyone; please reply to this 
email and highlight the error.
Security Warning: Please note that this email has been 
created in the knowledge that the internet email is not a 
100% secure communications medium.  We advise that you 
understand and observe this lack of security when emailing us.
Viruses:  Although we have taken steps to ensure that this 
email and attachments are free from any virus, we advise 
that in keeping with good computing practice the recipient 
should ensure they are actually virus free.
If you have received this email in error please notify:
[EMAIL PROTECTED]
**



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] ClassLoader issues when going from 3.2.0 - 3.2.2(RC1)

2003-06-24 Thread Scott M Stark
Show the full deployment output to see if there are any manifest entry 
warnings. Also run the attached ListJar program passing in the path to
the deployment to illustrate the archive structure.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Gavin Matthews wrote:

All,
 I need to upgrade me to 3.2.2 to get some of the primary key gen fixes in
that version. I had hoped that the upgrade would be fairly transparent as
it's only a minor release. However now my app fails to deploy. I believe
this is due to some of the Class Loader changes that went into 3.2.1 but I'm
not sure what the correct configuration should be. (Bear in mind I'm no
class loader wizz so this may just be some dumb config issue).
 I have a SAR which just calls through to a JAR which implements my service.
So I put the JAR on the SARs manifest classpath. The JAR has dependencies on
DigesterBase (an inhouse helper for commons-digester) so I put that on the
JARs manifest classpath. However when I deploy the SAR I get an classdef not
found error - the SAR wants DigesterBase on it's manifest classpath (this
makes no sense to me and everything was working fine in 3.2.0). Can someone
enlighten me on how my app should be configured?
The SAR classpath is: lib/messenger-server-configservice.jar
lib/tumbleweedCore.jar
The JAR classpath is: lib/commons-collections.jar lib/commons-digester.jar
lib/tumbleweedCore.jar lib/tumbleweedDatabase.jar lib/tumbleweedDigester.jar
The exception is:

11:05:33,234 WARN  [ServiceController] Problem starting service
com.tumbleweed.m
essenger.server.configservice.jboss3:service=ConfigService
java.lang.NoClassDefFoundError: com/tumbleweed/digester/DigesterBase
at
com.tumbleweed.messenger.server.configservice.jboss3.ConfigServiceSer
ver.rebind(ConfigServiceServer.java:125)
at
com.tumbleweed.messenger.server.configservice.jboss3.ConfigServiceSer
ver.start(ConfigServiceServer.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:966)
at $Proxy11.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:392)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:822)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:630)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:603)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:200)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
bstractDeploymentScanner.java:273)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
92)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at

Re: [JBoss-user] java.util.logging

2003-06-24 Thread Guy Rouillier
Snell Nguyen wrote:

I  have wrote a Java Server. I used java.util.logging package to log
message. I integrated it into JBoss. How to configure to log message? Please
help me.
Thanks
Snell Nguyen
Did you read the Java Logging Overview here:
http://java.sun.com/j2se/1.4.1/docs/guide/util/logging/overview.html#1.2
It discusses configuration files, etc.

BTW, are you aware that JBoss comes configured with a full-featured 
logging mechanism, log4j?  Very easy to use.  What features are you 
looking for that log4j does not provide?

--
Guy Rouillier


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMS Singleton

2003-06-24 Thread Scott M Stark
You need to specify a strictMaximumSize element to enforce the
MaximumSize constraint:
 container-pool-conf
MaximumSize1/MaximumSize
MinimumSize1/MinimumSize
strictMaximumSizetrue/strictMaximumSize
 /container-pool-conf
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Magesh Prabhu wrote:

Hi Guys,

My requirement is to get (onMessage) notification one by one. 
Next notification should wait until I finish my onMessage method.

So I created my own type of MessageDrivenBean and named it Singleton Message Driven Bean and configured the following in standardjboss.xml

  container-configuration
 container-nameSingleton Message Driven Bean/container-name
 call-loggingfalse/call-logging
 !--invoker-proxy-binding-namemessage-driven-bean/invoker-proxy-binding-name--
 container-interceptors
interceptororg.jboss.ejb.plugins.ProxyFactoryFinderInterceptor/interceptor
interceptororg.jboss.ejb.plugins.LogInterceptor/interceptor
interceptororg.jboss.ejb.plugins.RunAsSecurityInterceptor/interceptor
!-- CMT --
interceptor transaction=Containerorg.jboss.ejb.plugins.TxInterceptorCMT/interceptor
interceptor transaction=Container metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/interceptor
interceptor transaction=Containerorg.jboss.ejb.plugins.MessageDrivenInstanceInterceptor/interceptor
!-- BMT --
interceptor transaction=Beanorg.jboss.ejb.plugins.MessageDrivenInstanceInterceptor/interceptor
interceptor transaction=Beanorg.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT/interceptor
interceptor transaction=Bean metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/interceptor
interceptororg.jboss.resource.connectionmanager.CachedConnectionInterceptor/interceptor
 /container-interceptors
 instance-poolorg.jboss.ejb.plugins.MessageDrivenInstancePool/instance-pool
 instance-cache/instance-cache
 persistence-manager/persistence-manager
 container-pool-conf
MaximumSize100/MaximumSize
 /container-pool-conf
 invoker-proxy-binding
	namemessage-driven-bean/name
	invoker-mbeandefault/invoker-mbean
	proxy-factoryorg.jboss.ejb.plugins.jms.JMSContainerInvoker/proxy-factory
	proxy-factory-config
	JMSProviderAdapterJNDIDefaultJMSProvider/JMSProviderAdapterJNDI
	ServerSessionPoolFactoryJNDIStdJMSPool/ServerSessionPoolFactoryJNDI
	!--MaximumSize15/MaximumSize--
	MaximumSize1/MaximumSize
	MaxMessages1/MaxMessages
	MDBConfig
	ReconnectIntervalSec10/ReconnectIntervalSec
	DLQConfig
	DestinationQueuequeue/DLQ/DestinationQueue
	MaxTimesRedelivered10/MaxTimesRedelivered
	TimeToLive0/TimeToLive
	/DLQConfig
	/MDBConfig
	/proxy-factory-config
/invoker-proxy-binding
  /container-configuration 

When I used this configuration in my MessageDrivenbean, even though I limited the JMSPool to be 1, it is not behaving the way I want. It just flushes the onMessage call before my method ends. Am I doing anything wrong. Could anybody suggest me please.

I'm running on jboss-3.2.1_tomcat-4.1.24, and JDK1.4.1 on windows platform.

Thanks in advance,
Magesh


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Run a class onStartup

2003-06-24 Thread Edgar Silva
Danny...

I am talking about JBoss integration with JMX,
I just solve my trouble after some emails in the list,
And nothing in the sites or other source of documentations
available for me

However, everybody thanks by link

Great...

Edgar
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 11:57 AM
Subject: RE: [JBoss-user] Run a class onStartup


I guessed at:

http://java.sun.com/jmx

How much more public would you like?! ;-)

Rgds,

Dan.

--
Danny Yates



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: 24 June 2003 15:36
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Thanks Sebastien

You're right

The big problem is I don´t have documentation about
this Specification

I think that this subjects can be more public, more easy to find.

Regards...

Edgar
- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 8:35 PM
Subject: RE: [JBoss-user] Run a class onStartup


Edgar,

When you create an MBean (Standard MBean), It must follow a naming
convention :

Let's call the implementation class Foo, its interface must be called
FooMBean.
It is part of the JMX spec.

I guess that your Mbean is not implemented with this convention.

Sebastien



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Astie...

I just created this class following theses steps:

1) I created a Interface with init(),start(), stop(),detroy() methods.
2) I created a Class called Ebony , which implements the interface above.
3) I made all implementations nested to this class works fine.
4) I made an special file called my_mbean.xml describing my special MBean
this way:

?xml version=1.0 encoding=UTF-8?

server

  mbean code=com.argos.util.jmx.Ebony
name=DefaultDomain:service=ebony/

/server

Where Ebony is my Class where the implementation was made.

5) I Deploy it

6) I get this error:

19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean
ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  none
Incompletely deployed packages:
[EMAIL PROTECTED] {
url=file:/C:/jboss/server/defaul
t/deploy/ebony_service.xml }
  deployer: [EMAIL PROTECTED]
  status: Deployment FAILED reason: Class does not expose a management
interface
: com.argos.util.jmx.Ebony; - nested throwable:
(javax.management.NotCompliantMB
eanException: Class does not expose a management interface:
com.argos.util.jmx.E
bony)
  state: FAILED
  watch: file:/C:/jboss/server/default/deploy/ebony_service.xml
  lastDeployed: 1056408707513
  lastModified: 1056408708000
  mbeans:
]MBeans waiting for classes:
  none
MBeans waiting for other MBeans:
  none


7) I made the copy of Jar file to de Lib directory of my default
configuration Server...


Have other more simpler way that this above?

Any Idea?

If possible can you send a example of this declaration inside jboss
configuration file?


Regards

Edgar

- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:30 PM
Subject: RE: [JBoss-user] Run a class onStartup


Hello Edgar,

The obvious way to start a process at startup is to wrap your class in an
MBean and declare the MBean in user-service.xml



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Run a class onStartup


Hi Folks...

Can I put a simple .class to run in JBoss Startup?

For example, to start a SessionBean automaticlly...

Any Idea?

Regards

Edgar



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated 

Re: [JBoss-user] unchecked/ method security fails

2003-06-24 Thread Scott M Stark
Are you populating the Subject with your own Roles group
instance? Validation of the special ANYBODY only works
with org.jboss.security.NestableGroup for any release
version. This restriction was removed a couple of days ago
so you could test against any branch 3.0 and higher if this
is the case.
If you are using a JBoss login module, how does your testcase
differ from the EJBSpecUnitTestCase.testUncheckedWithLogin case
I just checked in?
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Sebastian Hauer wrote:

Hi Scott,

Thanks for the answer I think that worked for me.
Now I have a different problem.  I wrote a little test where I have an
authenticated user with roles assigned to it which will try to call a
bean method that is unsecured unchecked/ (in this case create() is
unchecked as well) and fails with this exception on the client side:
 
javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
Insufficient method permissions, principal=admin1#XON,
method=create, interface=HOME, requiredRoles=[ANYBODY],
 principalRoles=[rejectVoidTrades$, amendTradesFO$, readDateSequences$,
readParties$, createUnverifiedTradesBO$, readBal

Sebastian



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Run a class onStartup

2003-06-24 Thread Astie, Sebastien
Edgar,

If you want to learn more about JMX, I really suggest the JMX book from PEARSON 
EDUCATION.

It helped me a lot understanding JBOSS.

Sebastien

-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 3:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Danny...

I am talking about JBoss integration with JMX,
I just solve my trouble after some emails in the list,
And nothing in the sites or other source of documentations
available for me

However, everybody thanks by link

Great...

Edgar
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 11:57 AM
Subject: RE: [JBoss-user] Run a class onStartup


I guessed at:

http://java.sun.com/jmx

How much more public would you like?! ;-)

Rgds,

Dan.

--
Danny Yates



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: 24 June 2003 15:36
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Thanks Sebastien

You're right

The big problem is I don´t have documentation about
this Specification

I think that this subjects can be more public, more easy to find.

Regards...

Edgar
- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 8:35 PM
Subject: RE: [JBoss-user] Run a class onStartup


Edgar,

When you create an MBean (Standard MBean), It must follow a naming
convention :

Let's call the implementation class Foo, its interface must be called
FooMBean.
It is part of the JMX spec.

I guess that your Mbean is not implemented with this convention.

Sebastien



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Astie...

I just created this class following theses steps:

1) I created a Interface with init(),start(), stop(),detroy() methods.
2) I created a Class called Ebony , which implements the interface above.
3) I made all implementations nested to this class works fine.
4) I made an special file called my_mbean.xml describing my special MBean
this way:

?xml version=1.0 encoding=UTF-8?

server

  mbean code=com.argos.util.jmx.Ebony
name=DefaultDomain:service=ebony/

/server

Where Ebony is my Class where the implementation was made.

5) I Deploy it

6) I get this error:

19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean
ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  none
Incompletely deployed packages:
[EMAIL PROTECTED] {
url=file:/C:/jboss/server/defaul
t/deploy/ebony_service.xml }
  deployer: [EMAIL PROTECTED]
  status: Deployment FAILED reason: Class does not expose a management
interface
: com.argos.util.jmx.Ebony; - nested throwable:
(javax.management.NotCompliantMB
eanException: Class does not expose a management interface:
com.argos.util.jmx.E
bony)
  state: FAILED
  watch: file:/C:/jboss/server/default/deploy/ebony_service.xml
  lastDeployed: 1056408707513
  lastModified: 1056408708000
  mbeans:
]MBeans waiting for classes:
  none
MBeans waiting for other MBeans:
  none


7) I made the copy of Jar file to de Lib directory of my default
configuration Server...


Have other more simpler way that this above?

Any Idea?

If possible can you send a example of this declaration inside jboss
configuration file?


Regards

Edgar

- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:30 PM
Subject: RE: [JBoss-user] Run a class onStartup


Hello Edgar,

The obvious way to start a process at startup is to wrap your class in an
MBean and declare the MBean in user-service.xml



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Run a class onStartup


Hi Folks...

Can I put a simple .class to run in JBoss Startup?

For example, to start a SessionBean automaticlly...

Any Idea?

Regards

Edgar



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list

[JBoss-user] CMR exception (bug?)

2003-06-24 Thread Louis Leung
Hi all,

My application has a 1 to many CMR  (i.e. one being a purchase order ,
and many being line items).  I don't think i've specified the column
mapping for this relationship wrong.  JBoss should be firing Select
MASTERORDER ... sql when retreiving info about this relation.  But
instead, it fired Select MASTERORDER_ORDERID   I have no idea why
did it appended the _ORDERID at the end.  Here is a snippet of the
relation mapping xml in jbosscmp-jdbc.xml:

!-- Relationships --
relationships
ejb-relation

ejb-relation-namePurchaseOrderBean-lineItems-masterOrder-LineItemBean/ejb-relation-name

foreign-key-mapping/
ejb-relationship-role

ejb-relationship-role-namePurchaseOrderBean-lineItems-LineItemBean/ejb-relationship-role-name

key-fields
key-field
field-nameorderId/field-name
column-nameMASTERORDER/column-name
/key-field
/key-fields
/ejb-relationship-role
ejb-relationship-role

ejb-relationship-role-nameLineItemBean-masterOrder-PurchaseOrderBean/ejb-relationship-role-name

/ejb-relationship-role
/ejb-relation
/relationships


Anyone has any idea ?  I've included the exception that JBoss throws as
well.  Thanks.


Louis






16:15:48,645 ERROR [LineItemBean] Error checking if entity exists
java.sql.SQLException: Column MASTERORDER_ORDERID not found in table
at position 36.
at
com.pointbase.net.netJDBCPrimitives.handleResponse(DashOB3242)
at
com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(DashOB3242)

at
com.pointbase.net.netJDBCConnection.prepareStatement(DashOB3242)
at
org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:221)

at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.entityExists(JDBCCreateEntityCommand.java:230)

at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEntityCommand.java:204)

at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:569)

at
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:225)

at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:270)

at
org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:571)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:998)

at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)

at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:188)

at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)

at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)

at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:91)

at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)

at
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)

at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)

at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)

at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)

at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92)

at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)

at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)

at
org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:477)

at org.jboss.ejb.Container.invoke(Container.java:694)
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:272)

at
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)

at $Proxy34.create(Unknown Source)
at
com.sun.purchaseorder.entity.LineItemFactory.create(LineItemFactory.java:248)

at
com.sun.purchaseorder.struts.EditPOAction.makeTransitionAddLineItem(EditPOAction.java:155)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at

Re: [JBoss-user] Run a class onStartup

2003-06-24 Thread Edgar Silva
Thanks Again Sebastien...

I had seen this Book, it´s very good really

I think to buy soon.

For now you and Nicholas are big friends provided the help to solve my
problem


For other friends interesting in this book, following the url with
more details:

http://vig.pearsoned.com/store/product/1,3498,store-6781_isbn-0672322889,00.
html


Regards

Edgar


- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 7:58 PM
Subject: RE: [JBoss-user] Run a class onStartup


Edgar,

If you want to learn more about JMX, I really suggest the JMX book from
PEARSON EDUCATION.

It helped me a lot understanding JBOSS.

Sebastien

-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 3:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Danny...

I am talking about JBoss integration with JMX,
I just solve my trouble after some emails in the list,
And nothing in the sites or other source of documentations
available for me

However, everybody thanks by link

Great...

Edgar
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 11:57 AM
Subject: RE: [JBoss-user] Run a class onStartup


I guessed at:

http://java.sun.com/jmx

How much more public would you like?! ;-)

Rgds,

Dan.

--
Danny Yates



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: 24 June 2003 15:36
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Thanks Sebastien

You're right

The big problem is I don´t have documentation about
this Specification

I think that this subjects can be more public, more easy to find.

Regards...

Edgar
- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 8:35 PM
Subject: RE: [JBoss-user] Run a class onStartup


Edgar,

When you create an MBean (Standard MBean), It must follow a naming
convention :

Let's call the implementation class Foo, its interface must be called
FooMBean.
It is part of the JMX spec.

I guess that your Mbean is not implemented with this convention.

Sebastien



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Astie...

I just created this class following theses steps:

1) I created a Interface with init(),start(), stop(),detroy() methods.
2) I created a Class called Ebony , which implements the interface above.
3) I made all implementations nested to this class works fine.
4) I made an special file called my_mbean.xml describing my special MBean
this way:

?xml version=1.0 encoding=UTF-8?

server

  mbean code=com.argos.util.jmx.Ebony
name=DefaultDomain:service=ebony/

/server

Where Ebony is my Class where the implementation was made.

5) I Deploy it

6) I get this error:

19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean
ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  none
Incompletely deployed packages:
[EMAIL PROTECTED] {
url=file:/C:/jboss/server/defaul
t/deploy/ebony_service.xml }
  deployer: [EMAIL PROTECTED]
  status: Deployment FAILED reason: Class does not expose a management
interface
: com.argos.util.jmx.Ebony; - nested throwable:
(javax.management.NotCompliantMB
eanException: Class does not expose a management interface:
com.argos.util.jmx.E
bony)
  state: FAILED
  watch: file:/C:/jboss/server/default/deploy/ebony_service.xml
  lastDeployed: 1056408707513
  lastModified: 1056408708000
  mbeans:
]MBeans waiting for classes:
  none
MBeans waiting for other MBeans:
  none


7) I made the copy of Jar file to de Lib directory of my default
configuration Server...


Have other more simpler way that this above?

Any Idea?

If possible can you send a example of this declaration inside jboss
configuration file?


Regards

Edgar

- Original Message -
From: Astie, Sebastien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:30 PM
Subject: RE: [JBoss-user] Run a class onStartup


Hello Edgar,

The obvious way to start a process at startup is to wrap your class in an
MBean and declare the MBean in user-service.xml



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Run a class onStartup


Hi Folks...

Can I put a simple .class to run in JBoss Startup?

For example, to start a SessionBean automaticlly...

Any Idea?

Regards

Edgar



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting 

Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop

2003-06-24 Thread Neal Sanche
I am also very interested in testing this functionality. I am 
currently writing an application for PocketPC using the new .NET 
Compact Framework, and nothing I have tried so far causes basic 
authentication to kick in.

Is there an XDoclet module that includes the new 
validateUnauthenticatedCalls? What version of JBoss is this feature 
included in? 3.2.1?

Thanks,

-Neal

On June 11, 2003 06:37 am, Simone Milani wrote:
 Thanks for your reply.  I added the parameter and the first time I
 make the request I get the Authentication error and after that I
 get an Authorization error.  Still looks like M$ is not sending
 anything after getting the 500 error.  Did you managed to get it
 working?
 Is it possible that to trigger the sending of data M$ expect the
 500 when getting the wsdl on the init call and not on the actual
 web service call?

 Thanks

 Simone
 - Original Message -
 From: Jung , Dr. Christoph [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 10, 2003 4:43 PM
 Subject: AW: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop


 There was a bug-report on that issue stating that M$ would not send
 authentication data
 until faced with a server error (50x or something similar, I
 think).

 The JBoss Authentication Handler has been extended with the
 parameter validateUnauthenticatedCalls

 !-- authentication runs against the jaas:/other
 domain --
   handler
 type=java:org.jboss.net.axis.server.JBossAuthenticationHandler
 parameter name=securityDomain
 value=java:/jaas/other/
 parameter
 name=validateUnauthenticatedCalls value=false/
 /handler

 This will block any unauthenticated calls from trying to get routed
 (this is what M$ could first try to do before going the right
 way).

 Best,
 CGJ

  -Ursprüngliche Nachricht-
  Von: Simone Milani [mailto:[EMAIL PROTECTED]
  Gesendet: Dienstag, 10. Juni 2003 16:29
  An: [EMAIL PROTECTED]
  Betreff: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
 
 
  Hi,
 
  I am happily using the M$ Soap 3.0 toolkit as a client
  for JBoss.net.  I am now having trouble having the Basic
  Authentication to work.  Has anyone managed to use it?
 
  Thanks
 
 
  Simone
 
 
 
  ---
  This SF.net email is sponsored by:  Etnus, makers of
  TotalView, The best thread debugger on the planet. Designed
  with thread debugging features you've never dreamed of, try
  TotalView 6 free at www.etnus.com.
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/j boss-user

 ###

 This message has been scanned by F-Secure Anti-Virus for Microsoft
 Exchange. For more information, connect to http://www.F-Secure.com/


 ---
 This SF.net email is sponsored by:  Etnus, makers of TotalView, The
 best thread debugger on the planet. Designed with thread debugging
 features you've never dreamed of, try TotalView 6 free at
 www.etnus.com. ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


 ---
 This SF.net email is sponsored by:  Etnus, makers of TotalView, The
 best thread debugger on the planet. Designed with thread debugging
 features you've never dreamed of, try TotalView 6 free at
 www.etnus.com. ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] j_security_check JBoss/Jetty

2003-06-24 Thread Brian Wallis

I'm running 3.0.7 JBoss with the default Jetty integration and am writing a 
struts based web app front end to an EJB application.

I have been trying to find out how form based authentication works and have 
read a lot of articles and mail items from various lists and am confused 
about a couple of things.

Do I have to provide an action class and a form class for the login form or 
does the web container handle this, ie: do I have to point j_security_check 
to an action that I write? If not, why do I keep getting Cannot retrieve 
mapping for action /j_security_check errors?

Do I have to provide the form with the j_username and j_password fields for 
the login or does the web container handle this as well.

I believe that I have to provide some code to pass the authentication details 
onto an EJB container when I call into a bean. I'm not sure what this code 
is. Any examples? I thought I saw one once during my searching but cannot 
find it again.

thanks,

brian wallis...



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] RE: JBoss web site

2003-06-24 Thread Michael Klem
Title: RE: JBoss web site


I cannot log into
the JBoss web site and I cannot retrieve my password because of the
following error:

 Module
lostpassword has not been found


-- 

Michael Klem [EMAIL PROTECTED]
626-296-3027



[JBoss-user] Jetty and work files

2003-06-24 Thread Lars Hoss
Hi all!

Is it possible to tell Jetty not to store the work files below /tmp 
(using Linux)?
Currently whenever I start Jetty it creates a directory like 
Jetty_0_0_0_... below /tmp.
This isn't very feasible because our cronjob removes files below /tmp 
after some days
of inactivity. Setting the scratchdir variable in webdefault.xml 
isn't very useable as well for the work
files of all webapps will go into one single directory.

Any suggestions?

Thanks in advance,
Lars


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user