[JBoss-user] $1000.00 FREE - $100,000 JACKPOTS - CASINO ONLINE.......... vmt

2003-07-06 Thread ONLINE CASINO



ENTER HERE
 
Unsubscribe me: [EMAIL PROTECTED]

lyoprfjofqgcacudevuchwcdqkf


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Explicit Usage of Commit and Rollabck...

2003-07-06 Thread Adrian Brock
If you want to handle commit/rollback inside your bean you should
use BMT (Bean managed transactions).

 is only for entity beans. It is a policy for the
cached entity bean instance at the end of the transaction.

Regards,
Adrian 

On Mon, 2003-07-07 at 06:12, Muraly R wrote:
> Hi Gurus,
>   I am having a particular Stateful session bean. In this bean I want to 
> handle the database connection manually. That is I should be able to use 
> Connection.commit() and Connection.rollback explicitly, for only this Bean.
>   On a previous mail thread David explained that since the transaction 
> happens inside the JTA context, usage of commit and rollback throws exception.
>   In the standardjboss.xml, for entity beans I saw the '' 
> tag. But I am not able understand the usage of this. Can I add this to a 
>  and add it to this particular bean? If yes which 
> is option I can use(A,B,C,..)
>   Could anyone please guide how can I achieve the explicit usage of commit 
> and rollback in a particular Satefull session Bean?
> 
> Thanks
> Muraly
> 
> 
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: [JBoss-user] JBoss & SAP DB

2003-07-06 Thread Nicolai Bieber
Thanki a lot !

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag von Vittorio
> Ballestra
> Gesendet: Freitag, 4. Juli 2003 16:12
> An: [EMAIL PROTECTED]
> Betreff: Re: [JBoss-user] JBoss & SAP DB
>
>
> I've used it since about 6 months ago.
> I had had a lot of problem with sapdb jdbc driver that had caused
> big memory
> leaks problems in the application server.
> Now we're going with postgresql and happy with it. No more daily
> reboot of the
> jboss server and life easier.
>
> But perhaps now sapdb finally succeded in creating a reliable
> jdbc driver, I
> don't know.
>
> Bye,
>   V
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Explicit Usage of Commit and Rollabck...

2003-07-06 Thread Muraly R
Hi Gurus,
	I am having a particular Stateful session bean. In this bean I want to 
handle the database connection manually. That is I should be able to use 
Connection.commit() and Connection.rollback explicitly, for only this Bean.
	On a previous mail thread David explained that since the transaction 
happens inside the JTA context, usage of commit and rollback throws exception.
	In the standardjboss.xml, for entity beans I saw the '' 
tag. But I am not able understand the usage of this. Can I add this to a 
 and add it to this particular bean? If yes which 
is option I can use(A,B,C,..)
	Could anyone please guide how can I achieve the explicit usage of commit 
and rollback in a particular Satefull session Bean?

Thanks
Muraly
---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Question about CMP entity

2003-07-06 Thread Marco Garbelini



I´ll check it out..
 
Thanks,
Marco Garbelini

  - Original Message - 
  From: 
  Marco Tedone 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, July 04, 2003 6:27 PM
  Subject: Re: [JBoss-user] Question about 
  CMP entity
  
  Marco I tried your code (adapting it to my 
  project - I changed the key and the package names, substantially) but I found 
  what I think could be a bug.
   
  I had the tb_sequence table with the first key 
  set to 10, but the returned value (the one to which I set the primary key) set 
  to 11. I discovered the reason in the Session bean getNextId method, as once 
  you retrieve the value then you add 1:
   
      public Integer 
  getNextId(String sequenceName)    
  throws FinderException, SequenceException, CreateException { 
   
      //Get 
  cached block    
      Integer nextId = (Integer) 
  blocks.get(sequenceName);
   
      if 
  (nextId == null || ((nextId.intValue() % BLOCK_SIZE) == 0)) 
  {    nextId 
  = 
  getNextBlockStart(sequenceName);    
  }
          //This is 
  the part of code - Marco Tedone    
  nextId = new Integer(nextId.intValue() + 
  1);    blocks.put(sequenceName, 
  nextId);
   
      
  return nextId;
   
      }
   
  So, I updated the line 
  nextId = new 
  Integer(nextId.intValue() + 1);
  with 
  
  nextId = new 
  Integer(nextId.intValue);and everything worked fine.
   
  Marco
  
  
- Original Message - 
From: 
Marco 
Garbelini 
To: [EMAIL PROTECTED] 

Sent: Thursday, June 26, 2003 12:30 
AM
Subject: Re: [JBoss-user] Question 
about CMP entity

- Original Message - 

From: "Marco Tedone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 8:19 
PM
Subject: Re: [JBoss-user] Question about CMP 
entity

> Could you please forward some 
example?
You can use this same bean to create ids for any entity, or 
create a sequence bean for each entity to get some performance boost.
 
Observe the for (;;) loop and the TransactionRolledbackException catch, that´s the tricky 
part.
 
there you go:
--
package 
com.ped.server.util.sequence;
 
import javax.ejb.EntityBean;import 
javax.ejb.EntityContext;import javax.ejb.CreateException;
 
import org.jboss.logging.Logger;
 
/** * Class to implement Sequence 
entity * @ejb.bean *  
cmp-version = "2.x" *  name = 
"Sequence" *  local-jndi-name = 
"ped/server/SequenceLocal" *  type = 
"CMP" *  view-type = 
"local" * @ejb.persistence *  
table-name="tb_sequence" * 
@ejb.pk *  class = 
"com.ped.server.util.sequence.SequencePk"   */public 
abstract class SequenceBean implements EntityBean {
 
    private EntityContext 
context; //EJB context    private static final Logger 
logger = Logger.getLogger(SequenceBean.class);
 
    // EJB Default Methods 
-
 
    
/** *  
*/        public void 
setEntityContext(EntityContext context) 
{    this.context = 
context;    }
 
    
/** *  
*/    public void ejbActivate() {    
}
 
    
/** *  
*/    public void ejbPassivate() {    
}
 
    
/** *  * @param 
sequenceName * 
@return * @throws 
CreateException * @ejb.create-method 
 */    public SequencePk 
ejbCreate(String sequenceName) throws CreateException {
 
    
setSequenceName(sequenceName);    
setCurrentKeyValue(0); //Set initial 
value    return 
null;
 
    }
 
    
/** *  * @param 
sequenceName * @throws 
CreateException */    public 
void ejbPostCreate(String sequenceName) throws CreateException 
{    }
 
    
/** *  
*/    public void ejbRemove() {    
}
 
    
/** *  
*/    public void unsetEntityContext() 
{    context = 
null;    }
 
    
/** *  
*/    public void ejbLoad() {    
}
 
    
/** *  
*/    public void ejbStore() {
 
    }
 
    
/** *  * @param 
blockSize * @return 
* @ejb.interface-method 
*  view-type = 
"local" */    public int 
getNextBlockFirstKey(int blockSize) {
 
    int 
nextCounter = 
getCurrentKeyValue();    
nextCounter += blockSize;    
setCurrentKeyValue(nextCounter);
 
    
return nextCounter;    }
 
    //CMP methods 
--
 
    
/** * Get sequene name 
 * 
@ejb.persistent-field 

Re: [JBoss-user] Entity bean Attribute Changed Notifications

2003-07-06 Thread Brian Wallis
On Fri, 4 Jul 2003 20:21, Andy Godwin wrote:
> JBoss AOP would certainly do what you want, it wouldn't be that
> hard to write an Interceptor that generated your notification for the
> setXXX methods you're interested in.

AOP would be fun to try (but as you mentioned, exactly how is still a question 
to be answered)

We came to the interceptor conclusion a couple of hours after I posted the 
question and that allowed us to defer the implementation until later in the 
project (ie: put of 'till tomorrow what you could be doing today :-)

thanks Andy,
brian wallis...



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


gaaak (RE: [JBoss-user] Exception "Attempt to get lock ref with a null object" with self-referential CMR)

2003-07-06 Thread Brian Topping
yeesh, figured it out right after sending.  I hate when that happens.

It wasn't the CMR at all.  It's a new project that I am getting off the
ground (http://dentaku.sf.net, an LGPL enterprise accounting system), and my
templates were a bit messed up.

Apologies for the noise.

-b

p.s. - if anyone here is interested in open source financial accounting,
please check out the link! :)

> -Original Message-
> From: Brian Topping 
> Sent: Monday, July 07, 2003 4:55 AM
> To: JBoss User List (E-mail)
> Subject: [JBoss-user] Exception "Attempt to get lock ref with a null
> object" with self-referential CMR
> 
> 
> Hi all,
> 
> Has anyone seen anything like this before?
> 
> I doing an import of a bunch of records in a file.  The 
> entities are created
> just fine, until I try to set the parent on one of them.  The CMR is
> self-referential -- the parent is a record in the same table. 
>  There is only
> a get/setParent call, no get/setChildren (Collection) accessors.  
> 
> When I call entityLocal.setParent(entityLocal), I get the following
> exception:
> 
> java.lang.IllegalArgumentException: Attempt to get lock ref 
> with a null
> object
> at 
> org.jboss.ejb.BeanLockManager.getLock(BeanLockManager.java:80)
> at
> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockI
> nterceptor.java
> :81)
> at
> org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityC
> reationIntercep
> tor.java:53)
> at
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstrac
> tTxInterceptor.
> java:84)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> nterceptorCMT.j
> ava:243)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT
> .java:104)
> at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInter
> ceptor.java:117
> )
> at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
> at
> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(Pro
> xyFactoryFinder
> Interceptor.java:122)
> at
> org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
> at org.jboss.ejb.Container.invoke(Container.java:674)
> at
> org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseL
> ocalProxyFactor
> y.java:353)
> at
> org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
> at $Proxy2302.setParent(Unknown Source)
> 
> I get this whether I cache the value of entityLocal from 
> earlier create()
> cached from a previous iteration or I use a finder method on the home
> interface.  The finder method returns fine, it's just a 
> problem to send the
> result in to set the parent with it.
> 
> So the SessionBean class looks like the following.  The two 
> key lines are
> highlighted.  Is the problem something to do with the fact 
> that this code is
> all running within the same transaction?  
> 
> public abstract class ImportManagerBean implements SessionBean {
> 
> public void doImport(String xml, String dtd) {
> ... bunch of xml DOM parsing deleted...
> for (int it = 0; it < nodesCount; it++) {
> ...
> if(isChild) {
>  >>>parent = glHome.findByName(name);
> }
> GL_AccountLocal gla = glHome.create();
> gla.setContent(...);
> if (parent != null) {
> ->>>gla.setParent(parent);
> } 
> }
> }
> }
> 
> 
>AccountBean-parent
> 
>
>   
> fromChild
>   One
>   
>  GL_Account
>   
>   
>  parent
>   
>
> 
>
>   
> fromParent
>   One
>   
>  GL_Account
>   
>
> 
> 
> 
> I looked around on the lists, traced into the code, etc.  
> Can't figure out
> what is going on.  Thanks for reading this far!
> 
> Brian
> 
> 
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06
1203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Exception "Attempt to get lock ref with a nullobject" with self-referential CMR

2003-07-06 Thread Adrian Brock
On Sun, 2003-07-06 at 20:55, Brian Topping wrote:

> java.lang.IllegalArgumentException: Attempt to get lock ref with a null
> object
> at org.jboss.ejb.BeanLockManager.getLock(BeanLockManager.java:80)
> at
> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java
> :81)
> at

This normally happens when your primary key isn't mapped correctly.
The container creates the local interface implementation (a smart proxy)
and embeds the primary key in it. In this case it is null. When you
try to use the proxy it fails with this error.

-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] CMP persistent field using relationship-field fk column

2003-07-06 Thread John Fawcett
Alex,

Thank you for your help. I am in fact using an old cut. By "crazy", I
meant "really amazing and cool". I was not sure the cmp engine could
handle a potentially ambiguous case. I was quite happily surprised, and
likewise quite happy with the performance improvement in directly
accessing the fk.

Thanks,
fawce

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexey
Loubyansky
Sent: Sunday, July 06, 2003 8:05 AM
To: John Fawcett
Subject: Re: [JBoss-user] CMP persistent field using relationship-field
fk column


Hello John,

as to foreign key updates, I don't see it occuring. There is a testcase
in the testsuit and it passes (JBoss-3.2.2RC2).

* What JBoss version are you using?
* If it is not fresh, could you try to check out a fresh one and test
  again?

Thanks,

alex

Friday, July 04, 2003, 10:59:59 PM, John Fawcett wrote:

JF> Hi,

JF> I have a cmp question:

JF> We have bean that consists entirely of CMP relationship fields. When

JF> we xml-encode this entity bean's contents, we simply want the 
JF> primary key, and the foreign keys. In an effort to avoid loading the

JF> related beans, I've added persistent fields that point to the 
JF> fk-columns.

JF> Amazingly, this seems to work. However, after calling a finder and 
JF> then accessing the persistent fields of each bean that is returned, 
JF> I see an update called for every bean on the database log.

JF> First, is there a less crazy way to directly access the fk value 
JF> without loading the related bean?

JF> Secondly, why are there these "unnecessary" updates to the db, and 
JF> is it possible to avoid them?

JF> Thanks,
JF> fawce



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Exception "Attempt to get lock ref with a null object" with self-referential CMR

2003-07-06 Thread Brian Topping
Hi all,

Has anyone seen anything like this before?

I doing an import of a bunch of records in a file.  The entities are created
just fine, until I try to set the parent on one of them.  The CMR is
self-referential -- the parent is a record in the same table.  There is only
a get/setParent call, no get/setChildren (Collection) accessors.  

When I call entityLocal.setParent(entityLocal), I get the following
exception:

java.lang.IllegalArgumentException: Attempt to get lock ref with a null
object
at org.jboss.ejb.BeanLockManager.getLock(BeanLockManager.java:80)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java
:81)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationIntercep
tor.java:53)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.
java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.j
ava:243)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117
)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinder
Interceptor.java:122)
at
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
at org.jboss.ejb.Container.invoke(Container.java:674)
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactor
y.java:353)
at
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
at $Proxy2302.setParent(Unknown Source)

I get this whether I cache the value of entityLocal from earlier create()
cached from a previous iteration or I use a finder method on the home
interface.  The finder method returns fine, it's just a problem to send the
result in to set the parent with it.

So the SessionBean class looks like the following.  The two key lines are
highlighted.  Is the problem something to do with the fact that this code is
all running within the same transaction?  

public abstract class ImportManagerBean implements SessionBean {

public void doImport(String xml, String dtd) {
... bunch of xml DOM parsing deleted...
for (int it = 0; it < nodesCount; it++) {
...
if(isChild) {
 >>>parent = glHome.findByName(name);
}
GL_AccountLocal gla = glHome.create();
gla.setContent(...);
if (parent != null) {
->>>gla.setParent(parent);
} 
}
}
}


   AccountBean-parent

   
  fromChild
  One
  
 GL_Account
  
  
 parent
  
   

   
  fromParent
  One
  
 GL_Account
  
   



I looked around on the lists, traced into the code, etc.  Can't figure out
what is going on.  Thanks for reading this far!

Brian


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: Re[2]: [JBoss-user] Question about CMP entity

2003-07-06 Thread Marco Tedone
Alexey, I would be interested in writing something useful for Jboss users if
possible. Where shall I implemented the bottom interfaces? In an ordinary
class? In an EJB? Shall I write any code for getFactoryName() and
getKeyGenerator()? Is the  element support by XDoclet AFAYK?
May the bottom mentioned interfaces implemented in the same class? At
present we are deciding if implementing Marco Garbelini's solution or a
built in solution (by means of a synchronized method). In any case, I will
probably ask to one of my developers to build this solution with you, if
that is ok for you.

Regards,

Marco
- Original Message - 
From: "Alexey Loubyansky" <[EMAIL PROTECTED]>
To: "Marco Tedone" <[EMAIL PROTECTED]>
Sent: Thursday, June 26, 2003 9:51 AM
Subject: Re[2]: [JBoss-user] Question about CMP entity


> You need to implement two interfaces (in package
org.jboss.ejb.plugins.keygenerator)
> public interface KeyGenerator
> {
>public Object generateKey();
> }
>
> public interface KeyGeneratorFactory
> {
>public String getFactoryName();
>public KeyGenerator getKeyGenerator() throws Exception;
> }
>
> Then deploy/bind the factory to JNDI and declare entity-command in
> jbosscmp-jdbc.xml supplying fractory's JNDI name, for example
>   
>   
>  UUIDKeyGeneratorFactory
>   
>
> In ejbCreate container calls KeyGenerator.generateKey() to set PK
> value.
>
> There is UUID key generator in 3.2 and there is HiLo generator
> (something like you are going to implement with EJBs) in HEAD.
>
> If you really would like to go this route, feel free to contact me.
>
> BTW, key generation welcomes contributions. In 4.0 it is also used for
> our JDO implementation JBossDO. If anyone is interested in
> contribution, please, contact me.
>
> alex
>
> Thursday, June 26, 2003, 10:15:30 AM, Marco Tedone wrote:
>
> MT> Thank you Alex, I have already received a possible solution from Marco
> MT> Garbelini and I'll try it, but particularly, the one you are
suggesting (my
> MT> own key generator class) sounds interesting. How could I implement it
in the
> MT> EJB CMP architecture?
>
> MT> Marco
> MT> - Original Message - 
> MT> From: "Alexey Loubyansky" <[EMAIL PROTECTED]>
> MT> To: "Marco Tedone" <[EMAIL PROTECTED]>
> MT> Sent: Thursday, June 26, 2003 7:12 AM
> MT> Subject: Re: [JBoss-user] Question about CMP entity
>
>
> >> Hello Marco,
> >>
> >> if the problem really is a primary key generation you could consider
> >> entity-commands in JBoss-3.2.
> >> The options are:
> >> - database key generation (sequences, etc);
> >> - custom sql;
> >> - you can supply your own key generator class that will be asked for
> >>   the next key;
> >> - JDBC3.0 PreparedStatement.getGeneratedKeys().
> >>
> >> alex
> >>
> >> Thursday, June 26, 2003, 1:06:43 AM, Marco Tedone wrote:
> >>
> >> MT> Sorry guru for the [silly] question: I am having a discussion with
> MT> people in
> >> MT> my project regarding the container work with CMP entity beans. More
> >> MT> specifically, we want to implement a Numerator table to assign
numbers
> MT> to
> >> MT> several entities of our model.
> >>
> >> MT> Suppose a client wants to assign a value to a peopleId field in a
> MT> People
> >> MT> table, then it will in order:
> >>
> >> MT> 1) Access the Numerator table (behind a CMP entity bean)
> >> MT> 2) Retrieve the value from the number field;
> >> MT> 3) Assign that value to peopleId
> >> MT> 4) Increment the value by 1
> >>
> >> MT> What I am saying to the guys in the project is that the container
> MT> (Jboss in
> >> MT> our case) could ensure that, from the moment when the number is
> MT> retrieved to
> >> MT> the moment when the number is  incremented by 1 nobody else will be
> MT> able to
> >> MT> alter the value of the number field in the Numerator table. Someone
is
> >> MT> replying that we should implement a synchronized method. Is that
> MT> really
> >> MT> necessary? I'm quite sure that there is a way to instruct the
> MT> container to
> >> MT> 'lock' in a certain sense the value of the number field. One way
could
> MT> be a
> >> MT> transaction (shall we use synchronization in this case?); is there
> MT> anything
> >> MT> simplier?
> >>
> >> MT> Many thanks for your time,
> >>
> >> MT> Marco
>
>
>
> ---
> 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 sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio

Re: Re[4]: [JBoss-user] Compile current cvs

2003-07-06 Thread snpe
hello,
  This is complete source.I want update or checkout cvs.
Cvs sourceforge for non-members (pserver) is unusable now

Thanks
Haris Peco
On Sunday 06 July 2003 10:45 am, Adrian Brock wrote:
> You can download a source snapshot here:
> http://www.jboss.org/index.html?module=html&op=userdisplay&id=developers/so
>urcecode
>
> Regards,
> Adrian
>
> On Sun, 2003-07-06 at 10:49, Alexey Loubyansky wrote:
> > I don't know about that.
> >
> > alex
> >
> > Saturday, July 05, 2003, 8:03:14 PM, snpe snpe wrote:
> >
> > s> Hello Alex,
> > s>   I find trove.jar, but I have another errors.
> > s>   Is there mirror cvs for jboss.I can't checkout sourceforge, again
> >
> > s> Thanks
> > s> Haris Peco
> >
> > s> On Saturday 05 July 2003 01:02 pm, Alexey Loubyansky wrote:
> > >> thirdparty/trove/lib/trove.jar
> > >>
> > >> alex
> > >>
> > >> Saturday, July 05, 2003, 4:04:05 AM, snpe snpe wrote:
> > >>
> > >> s> I checkout jboss-head more times.Where is trove.jar (which modul) ?
> > >> s> Sourceforge cvs is very slow for last time, I don't know why
> > >>
> > >> s> Thanks
> > >> s> Haris Peco
> > >>
> > >> s> On Friday 04 July 2003 06:24 pm, Alexey Loubyansky wrote:
> > >> >> Probably, you need to check it out again. I think that JAR was
> > >> >> added just in DR2.
> > >> >> I have a fresh copy and it compiles fine.
> > >> >>
> > >> >> alex
> > >> >>
> > >> >> Friday, July 04, 2003, 11:13:29 PM, snpe snpe wrote:
> > >> >>
> > >> >> s> I try compile current cvs and get error
> > >> >> s> /u1/jboss/jboss-head/aop/src/main/org/jboss/aop/Advisor.java:11:
> > >> >> package gnu.trove does not exist s> import
> > >> >> gnu.trove.TLongObjectHashMap; s>  ^
> > >> >> s> package gnu.trove doesn't exists
> > >> >>
> > >> >> s> ./build.sh clean
> > >> >> s> don't work with error that directory jms doesn't exists
> > >> >>
> > >> >> s> regards
> > >> >> s> Haris Peco
> >
> > ---
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> > http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hello ! The problem of JBoss 3.2.1 + Tomcat 4.1.24-LE

2003-07-06 Thread jonathan wong
Dear Brock , 
 Hello ! Thank you for your nice help . I can run the
web app properly . Thank you ! 


=
Jonathan 
(Wong Yat Sing) 
Jonathan Studio
M.P (852) - 91235947 
NetMeeting : [EMAIL PROTECTED]
ICQ# 57646152 


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


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JAAS login failure logging in JBoss/Tomcat?

2003-07-06 Thread Craig Berry
We would like to be able to record failed login attempts, with the username supplied 
with the failed login.  We're using standard forms authentication with JBoss 3.2.1 and 
Tomcat 4.1.24.  Just getting normal log messages to be written with the failure info 
would be sufficient for our needs, though a callback hook where we could log them 
ourselves would be even better.  Any ideas?
 
<>

Re: [JBoss-user] JBoss 4.0DR2 EJB Validation Errors

2003-07-06 Thread Neal Sanche
On July 6, 2003 11:54 am, Adrian Brock wrote:
> On Sun, 2003-07-06 at 16:08, Neal Sanche wrote:
> > Well, that's definitely true. But, since it's a local interface,
> > I will generally not be. It is also a different interpretation of
> > the spec than the JBoss 3.2 server's enforce. Is this something
> > Sun came up with in the newer EJB spec? It's not a problem for me
> > to go through and change the few methods where I decided to throw
> > Exception and make them more specific.
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=626430&gro
>up_id=22866&atid=376685
>
> This bug report looks like what you are talking about, the fix is
> only in 3.2.

Okay, Thanks Adrian,

The more I think about it, I really should be making more specific 
Exceptions to be thrown anyway, so I'll probably do that. Though this 
is exactly the sample problem.

Cheers.

-Neal



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] WARN [...] what they mean...

2003-07-06 Thread Adrian Brock
On Sun, 2003-07-06 at 16:40, Magesh Prabhu wrote:

> I could'nt understand this Adrian, I'm using Oracle 8.1.6 database with the 
> following datasource configuration:
> 
> 
>   
> OracleDS
> jdbc:oracle:thin:@193.16.18.126:1521:clipper
> oracle.jdbc.driver.OracleDriver
> test
> test
> 
> org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
>   
> 
> 
> Could you please give more explanation on your comment.. Should my jdbc driver 
> support this prepare() method  My transaction is all Container managed and I run 
> on Commit Option 'B'
> 

You need the xa datasource for prepare()

> >
> >> 2)  WARN  [WrappedConnection] Closing a statement you left open, 
> >please do your own housekeeping
> >> 
> >
> >You are not closing a statement. Closing a pooled connection
> >just returns the connection to the pool.

> 
> In all my Entity Beans, I have this following code to clean up the resources they 
> use and I've double checked all my beans so that they dont leave any connections 
> open.
> 
> private void releaseResources(ResultSet rs, Statement stmt, Connection conn) {
>if (rs != null) {
>try {
>rs.close();
>} catch (SQLException e) {
>log.fatal(e);
>}
>}
> 
>if (stmt != null) {
>try {
>stmt.close();
>} catch (SQLException e) {
>log.fatal(e);
>}
>}
> 
>if (conn != null) {
>try {
>conn.close();
>} catch (SQLException e) {
>log.fatal(e);
>}
>}
> }

JBoss disagrees with you.

Maybe you have:

Statement stmt = conn.prepareStatement(...);
...
stmt = conn.prepareStatement(...);
...
releaseResources(rs, stmt, conn);

The first statement won't be closed.

Or maybe your releaseResources is not in a finally block.

-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 4.0DR2 EJB Validation Errors

2003-07-06 Thread Adrian Brock
On Sun, 2003-07-06 at 16:08, Neal Sanche wrote:
> Well, that's definitely true. But, since it's a local interface, I 
> will generally not be. It is also a different interpretation of the 
> spec than the JBoss 3.2 server's enforce. Is this something Sun came 
> up with in the newer EJB spec? It's not a problem for me to go 
> through and change the few methods where I decided to throw Exception 
> and make them more specific.

http://sourceforge.net/tracker/index.php?func=detail&aid=626430&group_id=22866&atid=376685

This bug report looks like what you are talking about, the fix is only
in 3.2.

-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 4.0DR2 EJB Validation Errors

2003-07-06 Thread Adrian Brock
On Sun, 2003-07-06 at 16:08, Neal Sanche wrote:
> Is there a more technical explanation of why Local interfaces can't 
> throw RemoteException other than it'd be confusing for the container?

I think you'll find that if you turn off the strict verifier, JBoss will
wrap RemoteExceptions in EJBExceptions for local invocations.

Diffing the 3.2 and 4.0 verifier shows some differences in the
assignable tests, I don't believe these are due spec changes.
Most of the EJB2.1 changes are for webservices.

-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] WARN [...] what they mean...

2003-07-06 Thread Magesh Prabhu

On 7/6/03 3:56 PM, Adrian Brock <[EMAIL PROTECTED]> wrote:
>On Sun, 2003-07-06 at 15:27, Magesh Prabhu wrote:
>
>> 1)  WARN  [TxConnectionManager$LocalXAResource] Prepare called 
>on a local tx. Use of localtransactions on a jta transaction with 
>more than one branch may result in inconsistent data in some cases 
>of failure.
>> 
>
>It is telling you your local-tx-datasource doesn't have a prepare(),
>the commit() could fail leaving your data in an inconsistent state.

I could'nt understand this Adrian, I'm using Oracle 8.1.6 database with the following 
datasource configuration:


  
OracleDS
jdbc:oracle:thin:@193.16.18.126:1521:clipper
oracle.jdbc.driver.OracleDriver
test
test

org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
  


Could you please give more explanation on your comment.. Should my jdbc driver support 
this prepare() method  My transaction is all Container managed and I run on Commit 
Option 'B'

>
>> 2)  WARN  [WrappedConnection] Closing a statement you left open, 
>please do your own housekeeping
>> 
>
>You are not closing a statement. Closing a pooled connection
>just returns the connection to the pool.


In all my Entity Beans, I have this following code to clean up the resources they use 
and I've double checked all my beans so that they dont leave any connections open.

private void releaseResources(ResultSet rs, Statement stmt, Connection conn) {
   if (rs != null) {
   try {
   rs.close();
   } catch (SQLException e) {
   log.fatal(e);
   }
   }

   if (stmt != null) {
   try {
   stmt.close();
   } catch (SQLException e) {
   log.fatal(e);
   }
   }

   if (conn != null) {
   try {
   conn.close();
   } catch (SQLException e) {
   log.fatal(e);
   }
   }
}

Thanks very much for your response,
Magesh




>
>-- 
> 
>Adrian Brock
>Director of Support
>Back Office
>JBoss Group, LLC 
> 
>
>
>
>---
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



**
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 sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 4.0DR2 EJB Validation Errors

2003-07-06 Thread Neal Sanche
Well, that's definitely true. But, since it's a local interface, I 
will generally not be. It is also a different interpretation of the 
spec than the JBoss 3.2 server's enforce. Is this something Sun came 
up with in the newer EJB spec? It's not a problem for me to go 
through and change the few methods where I decided to throw Exception 
and make them more specific.

Is there a more technical explanation of why Local interfaces can't 
throw RemoteException other than it'd be confusing for the container?

-Neal

On July 6, 2003 10:13 am, Adrian Brock wrote:
> Allowing a Local Interface to throw a java.lang.Exception
> would also allow it to throw a java.rmi.RemoteException
> It depends how you read the intension of the spec.
>
> The other way around is correct, on a remote interface
> you can declare a java.lang.Exception which covers the
> java.rmi.RemoteException requirement.
>
> Regards,
> Adrian
>
> On Sun, 2003-07-06 at 14:19, Neal Sanche wrote:
> > Good day,
> >
> > I tried JBoss 4.0.0DR2 the other day, and subjected it to the
> > torture of my latest application. I was interested in the new web
> > service stuff, but wasn't able to get my .EAR file to load
> > without validation errors. In particular, the validator was
> > complaining that methods in local interfaces are not allowed to
> > throw java.rmi.RemoteException. But my methods don't throw that
> > exception, they throw
> > java.lang.Exception (I know, I'm a bit lazy and sometimes force
> > other layers to do the work of figuring out what went wrong).
> >
> > Is this a bug? If so, I'd be happy to report it on sf.net
> > instead.
> >
> > Cheers.
> >
> > -Neal
> >
> >
> >
> > ---
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites
> > including Data Reports, E-commerce, Portals, and Forums are
> > available now. Download today and enter to win an XBOX or Visual
> > Studio .NET.
> > http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06120
> >3_01/01 ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] (광고)맛있는 바닷가재/대게/킹크랩~댁에서 편하게 드세요@

2003-07-06 Thread 캐나다수산닷컴
Title: 1






  
  




  
  

  


  
  

  

  
  

  
  

 
귀하의 이메일주소는 인터넷서핑중(http://www.fsf.org)알게되었으며, 메일주소이외의 어떠한 정보도 가지고 있지 않습니다. 메일수신을 원하지 않을경우 [수신거부]를 눌러주십시요.. 감사 합니다.
If you feel that this information is not what you want, please click [HERE] requesting to be removed. Thank you, and we apologize for any inconvenience.





---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] WARN [...] what they mean...

2003-07-06 Thread Adrian Brock
On Sun, 2003-07-06 at 15:27, Magesh Prabhu wrote:

> 1)  WARN  [TxConnectionManager$LocalXAResource] Prepare called on a local tx. Use of 
> localtransactions on a jta transaction with more than one branch may result in 
> inconsistent data in some cases of failure.
> 

It is telling you your local-tx-datasource doesn't have a prepare(),
the commit() could fail leaving your data in an inconsistent state.

> 2)  WARN  [WrappedConnection] Closing a statement you left open, please do your own 
> housekeeping
> 

You are not closing a statement. Closing a pooled connection
just returns the connection to the pool.

-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] WARN [...] what they mean...

2003-07-06 Thread Magesh Prabhu
Hi Guys,

I get two warnings and I can't figure out why these warnings are getting displayed.
I checked my whole app and I'm clearly closing all the connections and the Transaction 
boundaries are all set properly. Can somebody advice me on what I need to do in order 
to avoid these.

I have a bunch of beans and MDB's. I use a local-tx-datasource and I'm running on 
jboss-3.2.1_tomcat-4.1.24 with Oracle 8.1.6 as the database.

Thanks is advance,
Magesh

1)  WARN  [TxConnectionManager$LocalXAResource] Prepare called on a local tx. Use of 
localtransactions on a jta transaction with more than one branch may result in 
inconsistent data in some cases of failure.

2)  WARN  [WrappedConnection] Closing a statement you left open, please do your own 
housekeeping



**
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 sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 4.0DR2 EJB Validation Errors

2003-07-06 Thread Adrian Brock
Allowing a Local Interface to throw a java.lang.Exception
would also allow it to throw a java.rmi.RemoteException
It depends how you read the intension of the spec.

The other way around is correct, on a remote interface
you can declare a java.lang.Exception which covers the
java.rmi.RemoteException requirement.

Regards,
Adrian

On Sun, 2003-07-06 at 14:19, Neal Sanche wrote:
> Good day,
> 
> I tried JBoss 4.0.0DR2 the other day, and subjected it to the torture 
> of my latest application. I was interested in the new web service 
> stuff, but wasn't able to get my .EAR file to load without validation 
> errors. In particular, the validator was complaining that methods in 
> local interfaces are not allowed to throw java.rmi.RemoteException. 
> But my methods don't throw that exception, they throw 
> java.lang.Exception (I know, I'm a bit lazy and sometimes force other 
> layers to do the work of figuring out what went wrong).
> 
> Is this a bug? If so, I'd be happy to report it on sf.net instead.
> 
> Cheers.
> 
> -Neal
> 
> 
> 
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss 4.0DR2 EJB Validation Errors

2003-07-06 Thread Neal Sanche
Good day,

I tried JBoss 4.0.0DR2 the other day, and subjected it to the torture 
of my latest application. I was interested in the new web service 
stuff, but wasn't able to get my .EAR file to load without validation 
errors. In particular, the validator was complaining that methods in 
local interfaces are not allowed to throw java.rmi.RemoteException. 
But my methods don't throw that exception, they throw 
java.lang.Exception (I know, I'm a bit lazy and sometimes force other 
layers to do the work of figuring out what went wrong).

Is this a bug? If so, I'd be happy to report it on sf.net instead.

Cheers.

-Neal



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hello ! The problem of JBoss 3.2.1 + Tomcat4.1.24-LE

2003-07-06 Thread Adrian Brock
On Sun, 2003-07-06 at 12:40, jonathan wong wrote:
>  The web.xml 
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
>   Welcome to EJB
>   
>   HelloWorld
>   Session
>   com.sample.HelloWorldHome
>   com.samlpe.HelloWorld
>   
> 
> 
> 
>  And the jboss-web.xml
> 
> 
> 
>   /ejb
> 
> 

You need to specify the jndi-name 
of the ejb-ref in jboss-web.xml
You had this in your previous post?

This NullPointerException was replaced with a more
informative error message in 3.2.2RC1

-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMP persistent field using relationship-field fk column

2003-07-06 Thread Alexey Loubyansky
Hello John,

as to foreign key updates, I don't see it occuring. There is a
testcase in the testsuit and it passes (JBoss-3.2.2RC2).

* What JBoss version are you using?
* If it is not fresh, could you try to check out a fresh one and test
  again?

Thanks,

alex

Friday, July 04, 2003, 10:59:59 PM, John Fawcett wrote:

JF> Hi,

JF> I have a cmp question:

JF> We have bean that consists entirely of CMP relationship fields. When we
JF> xml-encode this entity bean's contents, we simply want the primary key,
JF> and the foreign keys. In an effort to avoid loading the related beans,
JF> I've added persistent fields that point to the fk-columns. 

JF> Amazingly, this seems to work. However, after calling a finder and then
JF> accessing the persistent fields of each bean that is returned, I see an
JF> update called for every bean on the database log.

JF> First, is there a less crazy way to directly access the fk value without
JF> loading the related bean?

JF> Secondly, why are there these "unnecessary" updates to the db, and is it
JF> possible to avoid them?

JF> Thanks,
JF> fawce



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hello ! The problem of JBoss 3.2.1 + Tomcat 4.1.24-LE

2003-07-06 Thread jonathan wong
Dear Brock , 
 Hello ! I just correct the web.xml , but the problem
still exists . 

The structure of my helloworld.war is as follow : 

index.jsp
WEB-INF\web.xml
WEB-INF\jboss-web.xml
WEB-INF\classes\jndi.properties
WEB-INF\classes\com\sample\HelloWorld.class
WEB-INF\classes\com\sample\HelloWorldBean.class
WEB-INF\classes\com\sample\HelloWorldClient.class
WEB-INF\classes\com\sample\HelloWorldHome.class
WEB-INF\lib\jbossall-client.jar
WEB-INF\lib\jbossjmx-ant.jar
WEB-INF\lib\jnp-client.jar

 The web.xml 



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


  Welcome to EJB
  
  HelloWorld
  Session
  com.sample.HelloWorldHome
  com.samlpe.HelloWorld
  



 And the jboss-web.xml



/ejb


 However , the JBoss says : 

19:24:38,718 INFO  [MainDeployer] Starting deployment
of package:
file:/C:/jboss-3.2.1_tc/server/default/deploy/helloworld.war
19:24:38,921 INFO  [EmbeddedCatalinaService41] deploy,
ctxPath=/ejb,
warUrl=file:/C:/jboss-3.2.1_tc/server/default/tmp/deploy/server/default/deploy/helloworld.war/40.helloworld.war
19:24:38,937 ERROR [MainDeployer] could not start
deployment:
file:/C:/jboss-3.2.1_tc/server/default/deploy/helloworld.war
org.jboss.deployment.DeploymentException: Error during
deploy; - nested throwable:
(java.lang.NullPointerException)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:369)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at
sun.reflect.GeneratedMethodAccessor35.invoke(Unknown
Source)
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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at
sun.reflect.GeneratedMethodAccessor7.invoke(Unknown
Source)
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)
at $Proxy0.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:392)
at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown
Source)
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.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:832)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Ma

Re: [JBoss-user] WSDL Part names within messages.

2003-07-06 Thread Neal Sanche
Hi Mark,

I've created a fresh xdoclet-module-jboss-net.jar from jboss-head this 
morning, I applied your patch, and a patch to allow Microsoft .NET 
clients to connect to web services in JBoss and put it up on my 
website at http://www.nsdev.org/jboss/stories/jboss-net.html

I'm going to try and make sure I have the latest JBoss.NET XDoclet 
module up there until a more official way of obtaining it is there.
I also sent a patch to Dr. Jung containing the changes I made (and you 
provided in an earlier mail) in case that helps him.

Cheers.

-Neal

On July 2, 2003 10:25 am, [EMAIL PROTECTED] wrote:
> Hi Dr. Jung,
> Anytime, delighted I could be of any help. You
> mentioned the tags for operations. Ye couldn't point me in their
> general direction could ye? I used the xdoclet-module-jbos-net from
> an old jboss-head. I tried checking out the new module but I'm
> rarely able to connect to the CVS.
>
> Thanks again,
> Mark.
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jung ,
> Dr. Christoph
> Sent: 02 July 2003 10:11
> To: '[EMAIL PROTECTED]'
> Subject: AW: [JBoss-user] WSDL Part names within messages.
>
>
> Mark,
>
> In fact that was not what I had in mind ... it´s even much better.
> Manipulating deployment meta-data is the best way to
> influence such runtime issues. If you got to change code, it can
> only get worse.
>
> I will see whether I could include that idea into the jboss.net
> xdoclet module (there are tags for exposing service operations
> anyway which could be extended in that way).
>
> Thanks for this hint!
>
> CGJ
>
>
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 1. Juli 2003 17:56
> An: [EMAIL PROTECTED]
> Betreff: RE: [JBoss-user] WSDL Part names within messages.
>
>
>
> I'm not sure if this is what you had in mind and in fact the more I
> think about it maybe you meant for me to amend the axis code as
> opposed to manipulating the xdoclet stuff.
>
>
> Anyway I'd really appreciate your thoughts on this, any glaring
> errors etc as I'm not the oldest hat to web-services and can't see
> many of the obvious errors that will result from this.
> For example I've no idea how this would handle types other than
> simple objects Strings Booleans i.e. yer basic java.lang classes.
> I'm not sure if the axis generator will handle them or what might
> happen. Maybe it's a bit narrow minded in that it's only really
> applicable to ejbs?
>
> Thanks,
> Mark.
>
>
>  -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jung ,
> Dr. Christoph
> Sent: 25 June 2003 14:24
> To: '[EMAIL PROTECTED]'
> Subject: AW: [JBoss-user] WSDL Part names within messages.
>
>
>
> I would be quite interested in the results of your experiments
> given that we will rewrite EJBProvider for a more tight
> integration with the jboss invocation stack.
>
>
> CGJ
>
>
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 25. Juni 2003 14:43
> An: [EMAIL PROTECTED]
> Betreff: RE: [JBoss-user] WSDL Part names within messages.
>
>
> Hi Dr. Jung,
> I was hoping you'd get back to me. Thanks again. I
> think I'll have a look at the BCEL and XJavadoc option.
>
> Thanks very much for your help,
> Mark.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jung ,
> Dr. Christoph
> Sent: 25 June 2003 07:36
> To: '[EMAIL PROTECTED]'
> Subject: AW: [JBoss-user] WSDL Part names within messages.
>
>
> Mark,
>
> Axis has several ways of annotating such meta-data to be used by
> the WSDL Emitter (which uses reflection and builtin naming rules to
> build its default meta-data thats why the parameter names are so
> ugly).
>
> First the deployment descriptor itself, but in this case it does
> not leave you much options except giving a service name.
>
> You could also subclass the provider implementation (EJBProvider in
> this case) for preparing the WSDL emitter with
> additional information, .e.g, doing the reflection via a different
> bytecode analyzer, such as BCEL or xjavadoc or 
>
> What Ive also seen is the possibilty for some target beans (Im not
> sure for EJBProvider, but you should look in the Axis docu) to
> implement a static method that will return the already prepared
> meta-data to the emitter.
>
> CGJ
>
>
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 24. Juni 2003 13:51
> An: [EMAIL PROTECTED]
> Betreff: [JBoss-user] WSDL Part names within messages.
>
>
> 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
> signa

Re: Re[4]: [JBoss-user] Compile current cvs

2003-07-06 Thread Adrian Brock
You can download a source snapshot here:
http://www.jboss.org/index.html?module=html&op=userdisplay&id=developers/sourcecode

Regards,
Adrian

On Sun, 2003-07-06 at 10:49, Alexey Loubyansky wrote:
> I don't know about that.
> 
> alex
> 
> Saturday, July 05, 2003, 8:03:14 PM, snpe snpe wrote:
> 
> s> Hello Alex,
> s>   I find trove.jar, but I have another errors.
> s>   Is there mirror cvs for jboss.I can't checkout sourceforge, again 
> 
> s> Thanks
> s> Haris Peco
> s> On Saturday 05 July 2003 01:02 pm, Alexey Loubyansky wrote:
> >> thirdparty/trove/lib/trove.jar
> >>
> >> alex
> >>
> >> Saturday, July 05, 2003, 4:04:05 AM, snpe snpe wrote:
> >>
> >> s> I checkout jboss-head more times.Where is trove.jar (which modul) ?
> >> s> Sourceforge cvs is very slow for last time, I don't know why
> >>
> >> s> Thanks
> >> s> Haris Peco
> >>
> >> s> On Friday 04 July 2003 06:24 pm, Alexey Loubyansky wrote:
> >> >> Probably, you need to check it out again. I think that JAR was added
> >> >> just in DR2.
> >> >> I have a fresh copy and it compiles fine.
> >> >>
> >> >> alex
> >> >>
> >> >> Friday, July 04, 2003, 11:13:29 PM, snpe snpe wrote:
> >> >>
> >> >> s> I try compile current cvs and get error
> >> >> s> /u1/jboss/jboss-head/aop/src/main/org/jboss/aop/Advisor.java:11:
> >> >> package gnu.trove does not exist s> import gnu.trove.TLongObjectHashMap;
> >> >> s>  ^
> >> >> s> package gnu.trove doesn't exists
> >> >>
> >> >> s> ./build.sh clean
> >> >> s> don't work with error that directory jms doesn't exists
> >> >>
> >> >> s> regards
> >> >> s> Haris Peco
> 
> 
> 
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hello ! The problem of JBoss 3.2.1 + Tomcat4.1.24-LE

2003-07-06 Thread Adrian Brock
On Sun, 2003-07-06 at 10:02, jonathan wong wrote:

>  I place ejb-jar.xml , jboss-web.xml and web.xml under
> WEB-INF . The content is as follow : 
> 

ejb-jar.xml belongs in the META-INF of ejb deployment's jar.

>  And the web.xml : 
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
>   Welcome to EJB
>   
>   HelloWorld
>   Session
>   com.sample.HelloWorldHome
>   come.samlpe.HelloWorld

Is that a typo?

> Incompletely deployed packages:
> [EMAIL PROTECTED] {
> url=file:/C:/jboss-3.2.1_tc/serv
> er/default/deploy/helloworld.war }
>   deployer:
> [EMAIL PROTECTED]
>   status: Deployment FAILED reason: Error during
> deploy; - nested throwable: (ja
> va.lang.NullPointerException)
>   state: FAILED
>   watch:
> file:/C:/jboss-3.2.1_tc/server/default/deploy/helloworld.war
>   lastDeployed: 1057480274640
>   lastModified: 1057480274562
>   mbeans:
> ]MBeans waiting for classes:
>   
> MBeans waiting for other MBeans:
>   
> 
>  Therefore , what should I do ? Thank you ! 

If you look further back in the log you will see the full stacktrace
for the NullPointerException, can you post that?

-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[4]: [JBoss-user] Compile current cvs

2003-07-06 Thread Alexey Loubyansky
I don't know about that.

alex

Saturday, July 05, 2003, 8:03:14 PM, snpe snpe wrote:

s> Hello Alex,
s>   I find trove.jar, but I have another errors.
s>   Is there mirror cvs for jboss.I can't checkout sourceforge, again 

s> Thanks
s> Haris Peco
s> On Saturday 05 July 2003 01:02 pm, Alexey Loubyansky wrote:
>> thirdparty/trove/lib/trove.jar
>>
>> alex
>>
>> Saturday, July 05, 2003, 4:04:05 AM, snpe snpe wrote:
>>
>> s> I checkout jboss-head more times.Where is trove.jar (which modul) ?
>> s> Sourceforge cvs is very slow for last time, I don't know why
>>
>> s> Thanks
>> s> Haris Peco
>>
>> s> On Friday 04 July 2003 06:24 pm, Alexey Loubyansky wrote:
>> >> Probably, you need to check it out again. I think that JAR was added
>> >> just in DR2.
>> >> I have a fresh copy and it compiles fine.
>> >>
>> >> alex
>> >>
>> >> Friday, July 04, 2003, 11:13:29 PM, snpe snpe wrote:
>> >>
>> >> s> I try compile current cvs and get error
>> >> s> /u1/jboss/jboss-head/aop/src/main/org/jboss/aop/Advisor.java:11:
>> >> package gnu.trove does not exist s> import gnu.trove.TLongObjectHashMap;
>> >> s>  ^
>> >> s> package gnu.trove doesn't exists
>> >>
>> >> s> ./build.sh clean
>> >> s> don't work with error that directory jms doesn't exists
>> >>
>> >> s> regards
>> >> s> Haris Peco



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hello ! The problem of JBoss 3.2.1 + Tomcat 4.1.24-LE

2003-07-06 Thread jonathan wong
Dear Brock , 

 Hello ! Thank your for your help . Ican deploy the
"ROOT" . I try to deploy another war ( called
"helloworld.war" ) . 

 I place ejb-jar.xml , jboss-web.xml and web.xml under
WEB-INF . The content is as follow : 

 ejb-jar.xml : 


http://java.sun.com/dtd/ejb-jar_2_0.dtd";>

JBoss Hello World
Application
Hello World EJB


HelloWorld
com.sample.HelloWorldHome
com.sample.HelloWorld
   
com.sample.HelloWorldBean
Stateless
   
Container




 And the jboss-web.xml : 



ejb


  HelloWorld
  HelloWorld
  



 And the web.xml : 



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


  Welcome to EJB
  
  HelloWorld
  Session
  com.sample.HelloWorldHome
  come.samlpe.HelloWorld
  



 I also place the corresponding class files under
classes folder and EJB's jar in JBoss . However , when
I restart the JBoss , it says : 

Incompletely deployed packages:
[EMAIL PROTECTED] {
url=file:/C:/jboss-3.2.1_tc/serv
er/default/deploy/helloworld.war }
  deployer:
[EMAIL PROTECTED]
  status: Deployment FAILED reason: Error during
deploy; - nested throwable: (ja
va.lang.NullPointerException)
  state: FAILED
  watch:
file:/C:/jboss-3.2.1_tc/server/default/deploy/helloworld.war
  lastDeployed: 1057480274640
  lastModified: 1057480274562
  mbeans:
]MBeans waiting for classes:
  
MBeans waiting for other MBeans:
  

 Therefore , what should I do ? Thank you ! 


=
Jonathan 
(Wong Yat Sing) 
Jonathan Studio
M.P (852) - 91235947 
NetMeeting : [EMAIL PROTECTED]
ICQ# 57646152 


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


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] 2003年發信創業行銷開店大全2003/7/6 下午04:45:51 "通路即競爭力"

2003-07-06 Thread 16:45:51網路即通路jboss-user





Dear,bidboy30 


  
  

  
  ¦p¦³¥´ÂZ¥ý¦b¦¹¦V±z­P¤W¸U¤Àºp·N
  
  


  
2003¦~µo«H³Ð·~¦æ¾P¶}©±¤j¥þ

  [EMAIL PROTECTED] ±Ð±z¦p¦ó¦b³Ìµuªº®É¶¡¤º¦bºô¸ô¤W¾P°â²£«~¡C[EMAIL PROTECTED]  
¶W¯Å700¸U³Ì·sÂA¦³®Ä¦W³æ¡]«á±Ô­z¡^´£¨Ñ±zºô¸ô³Ì¨ã¦³®ÄªGªº¦æ¾PºÞ¹D¡C[EMAIL PROTECTED]   
«ü¾É±z¨Ï¥Î¯u¥¿¦³¥ÎE-milµo°e³nÅé¡]¥Ø«e¦U¤j¥Nµo«H·~ªÌ¤Î§Ú­Ì¨Ï¥Îªº³nÅé¡^[EMAIL PROTECTED]   
[EMAIL PROTECTED]@¨Ç¡@      
ªá¿úªºÁôÂÃIP·|­û¤F¡I¡C[EMAIL PROTECTED]
´£¨Ñ§K¶O§Þ³N«t¸ß±M½u¹q¸Ü¡A¥u­n±zÁʶR¥»¥úºÐ´N¦³§K¶O´£¨Ñ§Þ³N«t¸ßªº°â«á¡@   
ªA°È¡C[EMAIL PROTECTED] «ü¾É±z¬O¨Ï¥ÎSTMP¨Óµo«HÁÙ¬O¨Ï¥ÎDNSµo«H¡C¡]§K¶OÃØ°e³Ì·sSTMP5000²Õ¡^[EMAIL PROTECTED]¡@¡i [EMAIL PROTECTED] ¡j¡@700¸Uµ§2003¦~¶W·Ç±M·~¦W³æ¡]§t¦a°Ï¤ÀÃþ¦p¥x¥_¡B¥x¤¤¡K¡K¡^¡B¤u°Ó¦W¿ý¡@©Ò¿×ªº¤d¸Uµ§¦W³æ¤F¡A¥þ·|¥xÆW¯u¥¿E-mail¨Ï¥ÎªÌ¨Ã¤£¶W¹L300¸U¤H¡A¦nªº¡]¦³®Ä¡^E-mail±z¯à¦³100¸Uµ§´N«ÜÃø±o¤F¡A¦³«Ü¦h¦W³æ¾P°â¸¹ºÙ95¢H¦³®Ä¡I±z¬Û«H¶Ü¡H¨ä¤¤¥]§t¤F¤j¶q¶Ã¼Æ²£¥Í¦W³æ¡BµL®Ä¦W³æ¡B¥¢®Ä¦W³æ¡B¦ÑµL®Ä¦W³æ¡A¯u¹ê¯u¥¿¥i¥Î¦W³æ¥i¯à¤£¤Î¤Q¸Uµ§¡I2003¦~³Ì·sÂAªºE-mail¦W³æ¥XÄl¡A§Ú­Ì±Ä¥Î¥Ñ¦U¤j¥D¾÷¤]°t¦X¦U¬ÛÃö³æ¦ì¤H­û·j¶°¦Ó¦¨¡A¨Ã¥B¥ÑICQ¤W·j¯Á©Ò¦³ICQ¥Î¤á¦W³æ¡A¨Ã¥B±Ä¥Î°Ï°ì¤ÀÃþ¡A¤§«á±z¤£¥²¦Aª¼¥Øµo«H¤F¡C¥»¦W³æ¤º§t700¸U¦W³æ¡A¨ä¤¤¦³®Ä¡]¥Ø«e¦³¦b¨Ï¥Îªº¥¿½TEmail¡^«O¦u¦ô­p«OÃÒ¦b¤K¦¨¥H¤W¡]¨ä¤¤¦³¨Ç¦W³æ·|¦]«H½c®e¶q°ÝÃD¼È®É¥¢®Äªº¡^¡C¥Ñ¦U¤j¥D¾÷¤]°t¦X¦U¬ÛÃö³æ¦ì¤H­û·j¶°¡A§Ú­Ìªá¶O¤Fªñ¥b¦~®É¶¡±q2002¦~12¤ëª½¨ì2003¦~5¤ë2¤é§¹¦¨¡A©Òªá¶Oªº®É¶¡¡Bª÷¿ú¤H¤O¡]§t¦UISP¤½Ãö¶O¥Î¡B·j
¶°¤H­ûºÞ¾P¶O¥Î¥b¦~¨Óªá¤Fªñ¤­¤Q¸U¡^¥þ®M¥u°â1500¤¸¹ê¦b¤Ó«K©y¤F¡I¡I¡I 
¡@¡i 
²Ä¤G¤ù¡j¡@±Ð±z¦p¦ó¦Û¦æ³]­pºô¸ôE-mail  
DM¡B¹B¥Î¦UºØ³nÅ餧±Ð¾Ç¡B¨ì­þ¸Ì¥h¤U¸ü¥i¥Îªº§K¶O³nÅé¡B©çÄáºô­¶¥Î¤u°Ó²£«~·Ó¤ù¤èªk¡Bºô¸ô©Îºô­¶¶K¹Ï§Þ³N¡A¨ä¥L¦U¦¡ºô¸ôÁÈ¿ú³N¡¼¶W±j¦W³æ¤Á³Î³nÅé¡A»´»´ÃPÃPÅý§A±N¸û¤jªº¦W³æÀɤÀ³Î¦¨¼Æ­Ó¤p¦W³æÀÉ¡¼³t«×³Ì§Öªº¦W³æ¾ã²zµ{¦¡¡AÀ°§A¹LÂo­«ÂЦW³æ¡A¥h°£¥¢®Ä¦W³æ¡A¶Â¦W³æ
¡¼¦W³æ¦¬¶°µ{¦¡¡AÅý§A¨C­Ó¤ë³£¥i¦¬¶°¨ì¤Q´X¸Uµ§³Ì·s¦W³æ
¡¼´¦ÅS¶l¥ó¥D¾÷¾×«Hªº­ì²z¡A¤£³Q¾×«Hªº§Þ¥©¡AÅý©Ò¦³ªº¥D¾÷³£µLªk©è¾×§Aªº¼s§i«H
¡¼³Ì§¹¾ãªºµo«H³nÅ餤¤å¨Ï¥Î»¡©ú¡AÅý¤£·|¥Î¹q¸£ªº¤H¤]¥i¥H¥ß§Y¤W¤â¡@¡i ²Ä¤T¤ù¡j¡¼±Ð¯à¦p¦ó³]­pºô­¶¶}©±©ÎµL¶·ºô¯¸ªº¦æ¾P¤âªk
¡¼¥t¥~±Ð±z¦p¦ó¥Ó½Ðºô­¶ªÅ¶¡¡¼±Ð±z¦p¦ó³]­pºô­¶
¡¼¬[³]§K¶Oºô¯¸¨Ó¶}©±¦p¦ó§â·Ó¤ù©ñ¸m¦bºô­¶ªÅ¶¡
[EMAIL PROTECTED]@¼Ë§Ö
¡@¦b±z¤U³æ«á48¤p®É¤º¡A±z·|¦b±z©Ò«ü©wªºÁpµ¸®É¶¡¤º¡A±µ¨ì§Ú­Ìªº½T»{¹q¸Ü©Î¹q¤l¶l¥ó³qª¾¡A§Ú­Ì¦b¸ò±z½T»{§¹«á·í¤Ñ¡A·|À°±z¥H³f¹B©Î­­®É±¾¸¹¨ç¥ó¥N¦¬³f»ùªº¤è¦¡¾¨³t±H¥X¡A¬ù¤G¤Ñ¤º§Y¥i¦¬¨ì±z©Ò­qÁʪº³f«~¡C¨ì®É³f¹B¥q¾÷©Î¶l®t¥ý¥Í°e¨ì®É·|¦V±z¦¬´Ú¡C 

[EMAIL PROTECTED]@·m±Ï³h½a¯S´f»ù¡G1500¤¸§t¶l¸ê   


[EMAIL PROTECTED]   ½Ð¶ñ¼g¯u¹ê¤¤¤å©m¦W[EMAIL PROTECTED]   
 ¬°¤F¤è«K»P§AÁpµ¸¡A½Ð°È¥²¶ñ¼g¦æ°Ê¹q¸Ü[EMAIL PROTECTED]
[EMAIL PROTECTED][EMAIL PROTECTED]
½Ð¥[¤W¶l»¼°Ï¸¹[EMAIL PROTECTED]
(1®M1500¤¸,¤w§t¶l¸ê¹B¶O)[EMAIL PROTECTED]
¡@¦p¦³¥´ÂZ¦b¦¹­P¤Q¤G¸U¤Àºp·N 


¡@





---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user