[JBoss-dev] CVS update: newsite/src/docs cmp-two.jsp

2001-09-21 Thread Tobias Frech

  User: gropi   
  Date: 01/09/20 23:32:29

  Modified:src/docs cmp-two.jsp
  Log:
  A revised version is included in the manual now. For some time this file will
  still be here, pointing people to the manual now.
  
  Revision  ChangesPath
  1.2   +1 -240newsite/src/docs/cmp-two.jsp
  
  Index: cmp-two.jsp
  ===
  RCS file: /cvsroot/jboss/newsite/src/docs/cmp-two.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- cmp-two.jsp   2001/08/30 22:29:19 1.1
  +++ cmp-two.jsp   2001/09/21 06:32:29 1.2
  @@ -8,245 +8,6 @@
   
!-- CONTENT --
   p class=text
  -bThis feature is only available in the CVS version of JBoss. Please note that
  -the code for CMP 2.x support is still in ALPHA state. Try it out, give
  -feedback, but don't built any production machines with it ! You have
  -been warned .../b
  -br
  +Information about CMP 2.0 support has been revised and is now included in the 
regular a href=documentation/HTML/index.htmlJBoss manual/a. 
   /p
  -p class=textI will attempt to
  -explain how to turn on the new features in CMP 2.x
  -/p
  -
  -ol class=text
  -lip class=textSpecify the ejb-jar.xml to validate with the EJB 2.0 DTD. 
Change the
  -doctype in your current ejb-jar.xml to the following:
  -/p
  -pre
  -
  -lt;!DOCTYPE jar-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 
2.0//EN http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtdgt;
  -
  -/pre
  -
  -p class=textThis will activate the new persistence store, and turn on the first 
two
  -features CMP 2.x abstract accessors and Tuned updates.  Tuned updates are
  -now always on; this is a side affect of eager/lazy loading.
  -/pbr
  -/li
  -lip class=textAdd a jbosscmp-jdbc.xml to the META-INF directory of your jar. 
The format
  -is similar to jaws.xml, with one major change around finder specification.
  -Everything else is new, so just build one according to the jaws docs.br
  -/p
  -/li
  -li
  -p class=textEager loading:  The new lt;eager-loadgt; element is declared 
after your
  -lt;cmp-fieldgt; elements in the lt;entitygt; section. Eager load tells the store
  -manager which fields to load when loading your bean from the database.  In
  -CMP 1.x every field in the bean was eager loaded, and this is the default if
  -eager-load is not specified. The XML follows:
  -/p
  -pre
  -
  -lt;eager-loadgt;
  - lt;field-namegt;titlelt;/field-namegt;
  - lt;field-namegt;artistlt;/field-namegt;
  -lt;/eager-loadgt;
  -
  -/pre
  -
  -p class=textThis tells the manager to only load the title and artist fields.  In
  -addition to these two fields, the manager always loads the primary key
  -fields. If you would like to not eager-load any fields, just specify an
  -empty lt;eager-loadgt; element. In the future I plan on adding a similar section
  -to the query metadata./pbr
  -/li
  -lip class=text
  -Lazy load groups:  Lazy loading is the other half of eager loading.  If a
  -field is not eager loaded it must be lazy loaded. I have added the concept
  -of what I am calling lazy load groups (I'm considering changing it to sets).
  -When the bean code accesses an unloaded field, the manager loads the field
  -and any field in a group that the unloaded field is a member.  Think of the
  -groups as a set. The manager performs a set join and then removes any field
  -that is already loaded. The lazy-load-groups element should follow the
  -lt;eager-loadgt; element in the lt;entitygt;. An example follows:
  -/p
  -pre
  -
  -lt;lazy-load-groupsgt;
  - lt;lazy-load-groupgt;
  -  lt;field-namegt;typelt;/field-namegt;
  -  lt;field-namegt;noteslt;/field-namegt;
  - lt;/lazy-load-groupgt;
  - lt;lazy-load-groupgt;
  -  lt;field-namegt;noteslt;/field-namegt;
  -  lt;field-namegt;producerlt;/field-namegt;
  - lt;/lazy-load-groupgt;
  -lt;/lazy-load-groupsgt;
  -
  -/pre
  -
  -p class=textIf the bean code accesses type, the manager loads type and notes. 
If the
  -bean code accesses, notes the manager will load notes, type and producer.
  -/pbr
  -/li
  -
  -lip class=textRead-only columns: lt;cmp-fieldgt; element can now contain 
then lt;read-onlygt;
  -and lt;time-outgt; elements. These elements work the same way as they do in the
  -lt;entitygt; tag.  If a field is read-only, it will not be stored or inserted
  -into the database. If a pk field is read-only, bean create will throw a
  -CreateException. If a set accessor is called for a read-only field, it
  -throws an EJBException.  Read-only fields are important for fields that are
  -filled in by database triggers, such as last update.
  -/pbr
  -/li
  -lip class=textDependent value classes: DVCs are just cmp fields that have a 
java object
  -type, other then the automatically recognized types. This comes from section
  -10.3.3 of EJB2.0 pfd2. The specification specifically does not describe the
  -internal structure of the object.  I require that DVCs 

[JBoss-dev] Automated JBoss Testsuite Results

2001-09-21 Thread chris



JBoss daily test results

SUMMARY

Number of tests run:   21



Successful tests:  15

Errors:6

Failures:  0





[time of test: 21 September 2001 12:7 GMT]
[java.version: 1.3.1]
[java.vendor: Blackdown Java-Linux Team]
[java.vm.version: Blackdown-1.3.1-FCS]
[java.vm.name: Java HotSpot(TM) Client VM]
[java.vm.info: mixed mode]
[os.name: Linux]
[os.arch: i386]
[os.version: 2.4.3-12]

See http://lubega.com for full details

NOTE: If there are any errors shown above - this mail is only highlighting 
them - it is NOT indicating that they are being looked at by anyone.

It is assumed that whoever makes change(s) to jboss that 
break the test will be fixing the test or jboss, as appropriate!





DETAILS OF ERRORS

[details not shown - as this makes the mail too big to reach the sf mailing list]



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



RE: [JBoss-dev] RH, Jetty, Service Archives...

2001-09-21 Thread marc fleury

Yes this is the same issue with the application stuff, it is a known
problem.  It is also the main reason why we copy.

marcf


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Scott
|M Stark
|Sent: Friday, September 21, 2001 12:05 AM
|To: [EMAIL PROTECTED]
|Subject: Re: [JBoss-dev] RH, Jetty, Service Archives...
|
|
|The issue with win32 in general is that programs tend to acquire exclusive
|locks on files whereas *nix does not.
|
|- Original Message -
|From: David Maplesden [EMAIL PROTECTED]
|To: [EMAIL PROTECTED]
|Sent: Thursday, September 20, 2001 8:29 PM
|Subject: RE: [JBoss-dev] RH, Jetty, Service Archives...
|
|
| It definately happens my Windows 2000 system, I don't know if it happens
| under other OS's or not.  The basic solution (I believe) is as
|you say, to
| copy the original then open the copy.
|
| David
|
|  -Original Message-
|  From: David Jencks [mailto:[EMAIL PROTECTED]]
|  Sent: Friday, September 21, 2001 3:33 PM
|  To: [EMAIL PROTECTED]
|  Subject: Re: [JBoss-dev] RH, Jetty, Service Archives...
| 
| 
|  snip
|   All the jars in the sar are also copied to
|   ${jboss.system.deployed}\sarname
|   to avoid the file sharing violations that prevent the user
|  from simply
|   moving the original file to undeploy.  This is under the
|  assumption that
|   all
|   required classes are now in jars, I guess we can copy plain
|  class files
|   too,
|   but jars would be neater I reckon.
| 
| 
|  Is this (file sharing violations) some kind of windows-only problem? I
|  haven't had it yet or I would have fixed it ;-). Is the fix
|  to copy the
|  original, then open the copy?
| 
|  david jencks
|
|
|
|___
|Jboss-development mailing list
|[EMAIL PROTECTED]
|https://lists.sourceforge.net/lists/listinfo/jboss-development


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



[JBoss-dev] [ jboss-Bugs-463548 ] Bug in cache / setRollbackOnly bug

2001-09-21 Thread noreply

Bugs item #463548, was opened at 2001-09-21 05:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detailatid=376685aid=463548group_id=22866

Category: JBossServer
Group: v2.4 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Christian Riege (lqd)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug in cache / setRollbackOnly bug

Initial Comment:
explained in detail in the attached testcase.zip file,
here's the abstract:

the attached testcase shows 2 bugs in JBoss 2.4.x:

(using CMP and CMT)

1. During create(pk) of an entity bean a
CreateException is thrown and setRollbackOnly gets
invoked. The record is not commited to the database.
However, subsequent calls to findByPrimaryKey(pk)
actually succeed. Expected behaviour: container should
throw ObjectNotFoundException.

2. [this is from JBoss 2.4.1 onwards, 2.4.0 works ok]:
calling setRollbackOnly and throwing a CreateException
within the Entity Bean causes the container to throw a
TransactionRolledbackException to the client (also
shows up on server console). 2.4.0 works as expected
and just transmits the CreateException back to the client.

--

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detailatid=376685aid=463548group_id=22866

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



Re: [JBoss-dev] JMX and HotDeploy GC

2001-09-21 Thread Peter Fagerlund

on 1-09-20 22.33, marc fleury at [EMAIL PROTECTED] wrote:

 your mails are obscure,

good

 what is the problem? do you have a repro case? if so
 go to sourceforge put it in and let us know on the list

My fears of GC was right -or- actually it was about a lingering serverSocket
thread (ServerSocket.close()) - there seems to be a hack that solves it -
right now that part is kind of solved - I am just trying to stabilise it -
before ...

/peter_f


 
 |-Original Message-
 |From: [EMAIL PROTECTED]
 |[mailto:[EMAIL PROTECTED]]On Behalf Of Peter
 |Fagerlund
 |Sent: Sunday, September 16, 2001 7:34 PM
 |To: [EMAIL PROTECTED]
 |Subject: [JBoss-dev] JMX and HotDeploy GC
 |
 |
 |It looks like problem with GC (Garbage Collection) while playing with JMX
 |hotdeploy ? ... i am not sure ! but wanted to ask ? if it is seen somewhere
 |else ? ...
 |
 |That is -the state of a thread in a JMX MBean is stale -and when I try to
 |reimplement it ... the VM still has reference  to last -alltho unreferenced
 |? ...
 |
 |/peter_f
 |
 |
 |___
 |Jboss-development mailing list
 |[EMAIL PROTECTED]
 |https://lists.sourceforge.net/lists/listinfo/jboss-development
 
 
 ___
 Jboss-development mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-development


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



[JBoss-dev] hsql and ds deploy/undeploy

2001-09-21 Thread Peter Fagerlund

Right now hsql starts and then the datasource -when- undeploying hsql close
and then ds - h ... shouldent ds close before hsql ? ...

/peter_f


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



RE: [JBoss-dev] RequiresNew Locking Bug in JBoss 2.4.1

2001-09-21 Thread Bill Burke

RequiresNew should always work.  Remember, standardjboss.xml has changed so
you can't re-use old configurations between 2.4.0 and 2.4.1.

Bill

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of
 Ferguson, Doug
 Sent: Thursday, September 20, 2001 7:27 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: [JBoss-dev] RequiresNew Locking Bug in JBoss 2.4.1


 You mentioned to get the latest form Branch_2_4.
 Does this mean the 2.4.1 doesn't support concurrent access for
 RequiresNew?

 Thanks,
 d.

 -Original Message-
 From: marc fleury [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 20, 2001 5:06 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [JBoss-dev] RequiresNew Locking Bug in JBoss 2.4.1


 at least a changelog would help.

 Probably the default xml file as well

 marcf


 |-Original Message-
 |From: [EMAIL PROTECTED]
 |[mailto:[EMAIL PROTECTED]]On Behalf Of Bill
 |Burke
 |Sent: Wednesday, September 19, 2001 2:16 PM
 |To: [EMAIL PROTECTED]
 |Subject: RE: [JBoss-dev] RequiresNew Locking Bug in JBoss 2.4.1
 |
 |
 |Jim,
 |
 |I'm in total agreement here.  Serialized access is really only good for
 |synchronized caching.
 |
 |Yes, for commit option 'B' and 'C' there is a way to duplicate
 instances of
 |entity beans.  Unfortunately, this code has a major bug in it so
 you would
 |have to go to CVS and get latest from Branch_2_4.
 |
 |How to enable it?
 |
 |1. In standardjboss.xml(or your own container-configuration), change
 |commit-option to B or C.
 |2. Also change the locking-policy from QueuedPessimisticEJBLock to
 |MethodOnlyEJBLock.
 |3. Also change EntityInstanceInterceptor to
 EntityMultiInstanceInterceptor.
 |4. Also change EntitySynchronizationInterceptor to
 |EntityMultiInstanceSynchronizationInterceptor.
 |
 |I'm sorry that this is not documented.
 |
 |Also, unfortunately, this stuff will not work with commit-option
 'A' since
 |no caching is done.  This can be improved later.
 |
 |Regards,
 |
 |Bill
 |
 | -Original Message-
 | From: [EMAIL PROTECTED]
 | [mailto:[EMAIL PROTECTED]]On
 Behalf Of James
 | Cook
 | Sent: Wednesday, September 19, 2001 1:31 PM
 | To: [EMAIL PROTECTED]
 | Subject: RE: [JBoss-dev] RequiresNew Locking Bug in JBoss 2.4.1
 |
 |
 | Bill,
 |
 | Since there is little documentation regarding locking, can you
 clear up a
 | question?
 |
 | Don't take this as a slam. All of the major commercial vendors have
 | discovered that it is problematic to perform serialization of
 | client access
 | to EJB's in the container. [We can expound upon this, if you
 feel this is
 | not the case]. WebLogic was the last holdout and since 6.1, they
 |too, have
 | removed serialized access from their container.
 |
 | Does jBoss currently support (in 2.4.1) the opportunity to duplicate
 | instances of entity beans in the container? If so, how do I
 |enable it, and
 | do we run tests against the server in this mode? Also, if so,
 | shouldn't this
 | be enabled as the default...taking the queue from every other
 app server
 | vendor?
 |
 | thanks,
 | jim
 |
 |
 | ___
 | Jboss-development mailing list
 | [EMAIL PROTECTED]
 | https://lists.sourceforge.net/lists/listinfo/jboss-development
 |
 |
 |
 |
 |___
 |Jboss-development mailing list
 |[EMAIL PROTECTED]
 |https://lists.sourceforge.net/lists/listinfo/jboss-development


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

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




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



RE: [JBoss-dev] jboss 2.4.1 release source

2001-09-21 Thread Bill Burke

If you want to get the latest and greatest of 2.4  get Branch_2_4.  I have
one major bug fix in there for the new entity instance per transaction
interceptors.

Bill

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Scott
 M Stark
 Sent: Thursday, September 20, 2001 9:24 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-dev] jboss 2.4.1 release source


 JBoss_2_4_1

 - Original Message -
 From: Ferguson, Doug [EMAIL PROTECTED]
 To: jBoss Dev (E-mail) [EMAIL PROTECTED]
 Sent: Thursday, September 20, 2001 5:26 PM
 Subject: [JBoss-dev] jboss 2.4.1 release source


  What tag can I use to download the source code from the 2.4.1 release?
 
  Thanks,
  d.



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




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



[JBoss-dev] [ jboss-Bugs-463590 ] Entity bean reference is lost

2001-09-21 Thread noreply

Bugs item #463590, was opened at 2001-09-21 08:50
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detailatid=376685aid=463590group_id=22866

Category: None
Group: v2.4 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Entity bean reference is lost

Initial Comment:
I'm using a stateful session bean to lookup home interfaces for different entity 
beans, instantiate 
them and return the remote references to the client. This code worked properly with 
JBoss 2.2X 
but fails with 2.4.1.

Excerpt from sample session bean code:
public CustomerRemote getCustomer( Integer customerPK ) throws RemoteException {
try {
CustomerHome home = (CustomerHome) jndi.lookup( java:comp/env/ejb/Customer );

return clHome.create( customerPK );
}
catch(Exception e) {
e.printStackTrace();
throw new RemoteException(e.getMessage());
}
}

When client calls getCustomer() on the stateful session bean, a new Customer i created 
and the 
remote customer is returned. Now, when the client makes a call to this newly created 
Customer 
bean (entity), yet another instance is created, without all the inital data such as 
the primary key.
No exceptions thrown, but contents of Customer is of course invalid.

This is part of my ejb-jar.xml:
session
ejb-nameSession/ejb-name
homecom.posten.ejb.SessionHome/home
remotecom.posten.ejb.SessionRemote/remote
ejb-classcom.posten.ejb.Session/ejb-class
session-typeStateful/session-type
transaction-typeBean/transaction-type
ejb-ref
ejb-ref-nameejb/Customer/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homecom.posten.ejb.CustomerHome/home
remotecom.posten.ejb.CustomerRemote/remote
ejb-linkCustomer/ejb-link
/ejb-ref
/session

I'm using Sun JDK 1.3 on a Win NT 4.0 workstation with Oracle Thin Driver 8.1.6.

--

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detailatid=376685aid=463590group_id=22866

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



[JBoss-dev] Automated JBoss Testsuite Results

2001-09-21 Thread chris



JBoss daily test results

SUMMARY

Number of tests run:   21



Successful tests:  15

Errors:6

Failures:  0





[time of test: 21 September 2001 17:3 GMT]
[java.version: 1.3.1]
[java.vendor: Blackdown Java-Linux Team]
[java.vm.version: Blackdown-1.3.1-FCS]
[java.vm.name: Classic VM]
[java.vm.info: green threads, nojit]
[os.name: Linux]
[os.arch: i386]
[os.version: 2.4.3-12]

See http://lubega.com for full details

NOTE: If there are any errors shown above - this mail is only highlighting 
them - it is NOT indicating that they are being looked at by anyone.

It is assumed that whoever makes change(s) to jboss that 
break the test will be fixing the test or jboss, as appropriate!





DETAILS OF ERRORS

[details not shown - as this makes the mail too big to reach the sf mailing list]



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



Re: [JBoss-dev] hsql and ds deploy/undeploy

2001-09-21 Thread David Jencks

You're right, the ServiceDeployer stops the mbeans in the same order they
were started, not revers order... will fix later today.


david jencks

On 2001.09.21 10:52:34 -0400 Peter Fagerlund wrote:
 Right now hsql starts and then the datasource -when- undeploying hsql
 close
 and then ds - h ... shouldent ds close before hsql ? ...
 
 /peter_f
 
 
 ___
 Jboss-development mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-development
 
 

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



[JBoss-dev] [ jboss-Patches-463602 ] hsql 1.43 / Embedded patch

2001-09-21 Thread noreply

Patches item #463602, was opened at 2001-09-21 09:32
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detailatid=376687aid=463602group_id=22866

Category: JBossServer
Group: v2.5 Rabbit Hole (unstable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: hsql 1.43 / Embedded patch

Initial Comment:
hypersonic 1.43 / hsql.jar / Embedded Server patch /
21-09-2001

We can now hotdeploy hsql-default-service.xml without
hsql calling System.exit()

added embedded support to hsql by touching :
-org.hsql.Server
-org.hsql.ServerConnection
-org.jboss.jdbc.HypersonicDatabase

QUICKTEST INSTALL
Merge new hsql classes into
jboss-all/thirdparty/hsql/hsql/lib/hsql.jar compile in
the new HypesonicDatabase after a clobber -start RH

INSTALL 
As above but rename hsql.jar to jboss_hsql.jar and
search replace all referencesin jboss-all accordingly.

NOTE
There is a echo that comes from org.hsql.Log.close()
that uses a funky two bit round trip and therefore
gives us a doubble The database closed as Embedded
message.

Love
/peter_f
Peter Fagerlund
[EMAIL PROTECTED]

--

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detailatid=376687aid=463602group_id=22866

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



[JBoss-dev] Can I use tomcat 4.0 in JBoss Alfa 3.0.0

2001-09-21 Thread Philip Van Bogaert

Can I use tomcat 4.0 in JBoss Alfa 3.0.0 ?
Like embedded tomcat in JBoss 2.4

Can anybody give me some guidlines how to integrate another WebContainer in
JBoss

Greetz - Tbone


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



[JBoss-dev] EJB/QL - JBoss extentions

2001-09-21 Thread Dave Smith

Well after doing some paying work I'm back to looking at and testing the 
  new EJB 2.0 query methods. I have taken my current application (not 
written in EJB) and tried to convert some of it into EJB. I have come 
across the following problems/holes in the EJB/QL spec. Below is a 
summary of the key problems with examples. If I'm way off base please 
say so!

1. No order clause.
Well ... this is obvious and I have not tested the current stuff to see 
if Dain put it in.

2. No limit/offset or cursors.
In a word searches. If you are tring to search for something you display 
a list of current values based on a selection criteria. What happens 
when the list is 100,000 records. With current DB code you would declare 
a cursor or use offset and limits and only retreive a bit at a time.

3. Dynamic where clause
Prompting the user for a search criteria and returning a result set 
based on those criteria. Also would be handy to have cursors/limit.

4. database functions
If I am doing a query on a datestamp type field but I only care about 
the date part, in postgresql I need to use a postgresql function that 
only returns the date.


For 1,3,4 I would propose that we add a special jboss function into the 
QL, something like jboss_sql_inline() and what is between the brackets 
is just passed through to the sql engine. Arguments could be passed 
through to parts of the code with ??1 etc, sort of an escaped argument. 
So you could have

select object(o) from foo o where o.id=?1 and 
jboss_sql_inline(datefunc(datefield) = ??2)

For option 2 could we not extend the Collection type that we return to 
not only do dynamic object creation but also dynamic lookup, so you 
would do the query return an empty collection with a handle back to the 
query. Once the collection was accessed then the requested element would 
be retreived. I beleive this would have to be a read-only list because 
if the object is not loaded it can not be locked. This would not be much 
of a drawback becuase  for searches it is usally read only and then the 
users selects an object  he wishes to modify/or view the object is locked.


I'm willing to put some time into this. (ie coding)

Comments?


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



Re: [JBoss-dev] EJB/QL - JBoss extentions

2001-09-21 Thread Victor Langelo

Dave Smith wrote:

 3. Dynamic where clause
 Prompting the user for a search criteria and returning a result set
 based on those criteria. Also would be handy to have cursors/limit.

 [snip]

 For 1,3,4 I would propose that we add a special jboss function into the
 QL, something like jboss_sql_inline() and what is between the brackets
 is just passed through to the sql engine. Arguments could be passed
 through to parts of the code with ??1 etc, sort of an escaped argument.
 So you could have

 select object(o) from foo o where o.id=?1 and
 jboss_sql_inline(datefunc(datefield) = ??2)

 Comments?


Are you attempting to reuse parameterized statements here? If so, there's a
better technique which is spec compliant. Have the persistence engine parse
the query and generate a parameterized sql expression. Then compare this
expression with existing parsed queries in the cache. Simple hashtable lookup
will work here. If there's a match, use the existing statement. Otherwise
generate a new statement and add it to the cache.

--Victor Langelo



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



[JBoss-dev] Automated JBoss Testsuite Results

2001-09-21 Thread chris



JBoss daily test results

SUMMARY

Number of tests run:   21



Successful tests:  15

Errors:6

Failures:  0





[time of test: 21 September 2001 21:55 GMT]
[java.version: 1.3.1]
[java.vendor: Sun Microsystems Inc.]
[java.vm.version: 1.3.1-b24]
[java.vm.name: Java HotSpot(TM) Server VM]
[java.vm.info: mixed mode]
[os.name: Linux]
[os.arch: i386]
[os.version: 2.4.3-12]

See http://lubega.com for full details

NOTE: If there are any errors shown above - this mail is only highlighting 
them - it is NOT indicating that they are being looked at by anyone.

It is assumed that whoever makes change(s) to jboss that 
break the test will be fixing the test or jboss, as appropriate!





DETAILS OF ERRORS

[details not shown - as this makes the mail too big to reach the sf mailing list]



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



RE: [JBoss-dev] EJB/QL - JBoss extentions

2001-09-21 Thread marc fleury

Guys,

it seems you all agree on the features to be put in..

here is the deal, please submit patches to Dain for the relevant ones we
will be putting out a few RW password, but please go through Dain and he
will give them.

Let's make the CMP stuff as solid as possible it is critical.

marcf

|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of
|Victor Langelo
|Sent: Friday, September 21, 2001 4:35 PM
|To: [EMAIL PROTECTED]
|Subject: Re: [JBoss-dev] EJB/QL - JBoss extentions
|
|
|Dave Smith wrote:
|
| 3. Dynamic where clause
| Prompting the user for a search criteria and returning a result set
| based on those criteria. Also would be handy to have cursors/limit.
|
| [snip]
|
| For 1,3,4 I would propose that we add a special jboss function into the
| QL, something like jboss_sql_inline() and what is between the brackets
| is just passed through to the sql engine. Arguments could be passed
| through to parts of the code with ??1 etc, sort of an escaped argument.
| So you could have
|
| select object(o) from foo o where o.id=?1 and
| jboss_sql_inline(datefunc(datefield) = ??2)
|
| Comments?
|
|
|Are you attempting to reuse parameterized statements here? If so, there's a
|better technique which is spec compliant. Have the persistence engine parse
|the query and generate a parameterized sql expression. Then compare this
|expression with existing parsed queries in the cache. Simple
|hashtable lookup
|will work here. If there's a match, use the existing statement. Otherwise
|generate a new statement and add it to the cache.
|
|--Victor Langelo
|
|
|
|___
|Jboss-development mailing list
|[EMAIL PROTECTED]
|https://lists.sourceforge.net/lists/listinfo/jboss-development


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



[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/ha HARMIServerImpl.java

2001-09-21 Thread Bill Burke

  User: patriot1burke
  Date: 01/09/21 14:58:47

  Modified:src/main/org/jboss/ha HARMIServerImpl.java
  Log:
  added logging
  
  Revision  ChangesPath
  1.3   +5 -3  jbossmx/src/main/org/jboss/ha/HARMIServerImpl.java
  
  Index: HARMIServerImpl.java
  ===
  RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/HARMIServerImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HARMIServerImpl.java  2001/09/20 23:29:27 1.2
  +++ HARMIServerImpl.java  2001/09/21 21:58:47 1.3
  @@ -23,19 +23,20 @@
   
   {
  protected String replicantName;
  -   protected long lastSet = 0;
  +   protected long lastSet = System.currentTimeMillis();
  protected ArrayList replicants;
  protected Object handler;
  protected HashMap invokerMap = new HashMap ();
  protected HAPartition partition = null;
  protected RemoteStub myStub = null;
  +   protected Logger log;
  
  public HARMIServerImpl (HAPartition partition, String replicantName, Object 
handler) throws Exception
  {
 this.replicantName = replicantName;
 this.partition = partition;
 this.handler = handler;
  -  
  +  this.log = Logger.create(this.getClass());
 Method[] methods = handler.getClass ().getMethods ();
 
 for (int i = 0; i  methods.length; i++)
  @@ -71,6 +72,7 @@
  
  public void replicantsChanged (String key, ArrayList newReplicants)
  {
  +  log.info(replicantsChanged + key +  to  + newReplicants.size());
 replicants = newReplicants;
 lastSet = System.currentTimeMillis ();
  }
  @@ -106,4 +108,4 @@
throw (Exception)ite.getTargetException ();
 }
  }
  -}
  \ No newline at end of file
  +}
  
  
  

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



[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/ha/jndi HANamingService.java HAJNDI.java

2001-09-21 Thread Bill Burke

  User: patriot1burke
  Date: 01/09/21 14:59:12

  Modified:src/main/org/jboss/ha/jndi HANamingService.java HAJNDI.java
  Log:
  it works now
  
  Revision  ChangesPath
  1.6   +1 -77 jbossmx/src/main/org/jboss/ha/jndi/HANamingService.java
  
  Index: HANamingService.java
  ===
  RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/jndi/HANamingService.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HANamingService.java  2001/09/20 23:29:27 1.5
  +++ HANamingService.java  2001/09/21 21:59:12 1.6
  @@ -61,7 +61,7 @@

@author oberg
@author [EMAIL PROTECTED]
  - @version $Revision: 1.5 $
  + @version $Revision: 1.6 $
*/
   public class HANamingService extends ServiceMBeanSupport implements Runnable, 
HANamingServiceMBean, DistributedReplicantManager.ReplicantListener
   {
  @@ -198,82 +198,6 @@
 serverSocketFactory = (RMIServerSocketFactory) clazz.newInstance();
  }
   
  -   /*   
  -   public void replicantsChanged(String key, ArrayList newReplicants)
  -   {
  -  log.info(replicantsChanged);
  -  if (key.equals(HAJNDI))
  -  {
  - log.info(HAJNDI replicantChanged);
  - synchronized(this.hatarget)
  - {
  -hatarget.setTargets(newReplicants.toArray());
  - }
  -  }
  -  else if (key.equals(DistributedReplicantManager))
  -  {
  - log.info(DistributedReplicantManager replicantChanged);
  - synchronized(this.hatarget)
  - {
  -hatarget.setManagers(newReplicants);
  - }
  -  }
  -   }
  -
  -   public void initService() throws Exception
  -   {
  -  log.info(Initializing HAJNDI server);
  -  partition = (HAPartition)new InitialContext().lookup(/HAPartition/ + 
partitionName);
  -  replicantManager = partition.getDistributedReplicantManager();
  -  log.info(Create remote object);
  -  theServer = new HAJNDI(partition);
  -  log.info(Export RMI server);
  -  stub = UnicastRemoteObject.exportObject(theServer);
  -  log.info(initialize HAJNDI);
  -  theServer.init();
  -   }
  -   
  -   public void startService()
  -  throws Exception
  -   {
  -  log.info(Starting HAJNDI server);
  -
  -  log.info(Bind replicant to DistributedReplicantManager);
  -  replicantManager.add(HAJNDI, stub);
  -
  -  log.info(Get all replicants for DistributedReplicantManager and HAJNDI);
  -  ArrayList managers = 
this.replicantManager.lookupReplicants(DistributedReplicantManager);
  -  ArrayList replicants = this.replicantManager.lookupReplicants(HAJNDI);
  -  
  -  log.info(Create HAJNDI RMI Proxy with  + replicants.size() +  replicants);
  -  this.hatarget = new HARMITarget(HAJNDI, 10, 50, managers, 
replicants.toArray(), new RoundRobin());
  -  this.hastub = (Naming)Proxy.newProxyInstance(
  - Naming.class.getClassLoader(),
  - new Class[] { Naming.class },
  - this.hatarget);
  -
  -  log.info(Register with replicantManager as listener for HAJNDI replicants);
  -  replicantManager.registerListener(HAJNDI, this);
  -  replicantManager.registerListener(DistributedReplicantManager, this);
  -
  -  log.info(Start listener);
  -  try
  -  {
  - serverSocket = null;
  - serverSocket = new ServerSocket(port, backlog, bindAddress);
  - // If an anonymous port was specified get the actual port used
  - if( port == 0 )
  -port = serverSocket.getLocalPort();
  - String msg = Started hajndiPort= + port;
  - log.info(msg);
  - listen();
  -  } catch (IOException e)
  -  {
  - log.error(Could not start on port  + port, e);
  -  }
  -   }
  -   */
  -   
  public void replicantsChanged(String key, ArrayList newReplicants)
  {
 haclient.setTargets(newReplicants.toArray());
  
  
  
  1.4   +16 -4 jbossmx/src/main/org/jboss/ha/jndi/HAJNDI.java
  
  Index: HAJNDI.java
  ===
  RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/jndi/HAJNDI.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HAJNDI.java   2001/09/19 23:57:59 1.3
  +++ HAJNDI.java   2001/09/21 21:59:12 1.4
  @@ -47,7 +47,7 @@
*  
*   @see related
*   @author $Author: patriot1burke $
  - *   @version $Revision: 1.3 $
  + *   @version $Revision: 1.4 $
*/
   public class HAJNDI extends NamingServer
  implements Naming, java.io.Serializable, HAPartition.HAPartitionStateTransfer
  @@ -98,7 +98,7 @@
 throws NamingException
  {
 log.info(bind);
  -  _bind(name, obj, className);
  +  super.bind(name, obj, className);
 // if we get here, this means we can do it on every node.
 Object[] args 

Re: [JBoss-dev] java.naming.factory.initial in Tomcat 4.0

2001-09-21 Thread Ma Cheng

Thank you for the insides.

Somehow -Dcatalina.useNaming=false didn't work;-nonaming worked.

Ma Cheng

- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 9:55 PM
Subject: Re: [JBoss-dev] java.naming.factory.initial in Tomcat 4.0


  It seems java.naming.factory.initial in Tomcat 4.0 is set to
  org.apache.naming.java.javaURLContextFactory no matter what is the
value
  in jndi.properties or
  -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory.
 
  Does any one know how to handle this?

 There's a system property you can use to disable the support for JNDI in
 Tomcat 4.0. Just set 'catalina.useNaming' to 'false'. You can also use
 the -nonaming switch if you're running it from the command line.

 Remy


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


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



RE: [JBoss-dev] Anyone has tried to make a non-hypersonic connection pool?

2001-09-21 Thread Ignacio Coloma

I'm not sure, but ObjectTeering seem to be marked as Obsolete by the CERN.
At the same time, they have a download version for Win2K. I feel lost.

IMHO Argo and Poseidon are still buggy (but useful in any case, till they
fix them :)

http://sdt.cern.ch/Objecteering/
http://www.softeam.fr/us/pser_telechargement.htm

 -Mensaje original-
 De: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]En nombre de Jay
 Walters
 Enviado el: viernes, 21 de septiembre de 2001 1:05
 Para: '[EMAIL PROTECTED] '
 Asunto: RE: [JBoss-dev] Anyone has tried to make a non-hypersonic
 connection pool?


 Objecteering personal edition is another lowend UML modeller I've used for
 sometime.  It only runs on Windoze, and oddly enough 12 years after the
 WIndows look and feel guidelines it has a very unique UI.  It is stableand
 free however.

 Argo/UML and Poseidon (from same code base) are both good Java
 tools.  I am
 not sure if they've worked out the kinks, last summer Argo still had some
 stability issues.

 Cheers

 -Original Message-
 From: Michel Halde
 To: [EMAIL PROTECTED]
 Sent: 9/20/01 5:15 AM
 Subject: Re: [JBoss-dev] Anyone has tried to make a non-hypersonic
 connection  pool?

 About sequence diagrams, ArgoUML is a free tool available at
 www.argouml.org.

 The free solution with Together is only valid for 30 days!

 Michel Halde

 David Jencks wrote:
 
  Thank you!
 
  I will add this to the docs, I'll try to find a way to make the
  mysql-service.xml file available directly, maybe in the examples... I
  haven't looked into how this is organized recently.
 
  There are some uml diagrams in the jca spec, but I don't always find
 them
  clear.  I will look into finding a little time to make some for our
 manual.
   Do you know of a free tool that makes sequence diagrams?  I think
 there's
  a free Together-j that makes class diagrams... there used to be
 anyway.
 
  Looking forward to postgres!!
 
  Thanks again
  david jencks
 
  On 2001.09.20 13:01:22 -0400 Ignacio Coloma wrote:
   Thanks, David.
  
   I still feel more or less lost in the Resource Adapter docs (a
 little
   more
   of clarity in the dark, though). Could you please add any kind of
 UML
   diagram to help understanding the architecture?
  
   I enclose the service.xml file I have put together for mysql. Some
 of the
   params are (more or less) guessed, but it works. I'll start another
 one
   for
   postgres this afternoon (GMT), and post it As Soon As It Works(tm).
  
   I'm not sure, but sniffing the code it seems that XA Transactions
 are
   supported in JBoss but not yet implemented as XADataSources (if I'm
 wrong
   correct me). The file that I'm enclosing use Local Transactions.
  
   Regards,
  
   Ignacio Coloma.
   P.S.: Yes, I knew the diff between Enhydra and Hypersonic, but my
 post
   almost coincided with the Lutris crisis and made my mind a mess
 while
   writing it. Thanks for the point anyway :))
   P.S2.: How do I contribute these files to the docs?
  
-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]En nombre de
   David
Jencks
Enviado el: miƩrcoles, 19 de septiembre de 2001 19:44
Para: [EMAIL PROTECTED]
Asunto: Re: [JBoss-dev] Anyone has tried to make a non-hypersonic
connection pool?
   
   
The (new) manual chapter explains the config parameters pretty
 well I
think, please let me know if it is unclear.
   
http://www.jboss.org/documentation/HTML/ch03.html
   
Please show what you have so far and contribute it to the manual
 when
   it
works.
   
Thanks
david jencks
   
btw hypersonic  != enhydra
   
On 2001.09.19 13:28:37 -0400 Ignacio Coloma wrote:
 Anyone has the xxx-service.xml for a database that is not
 enhydra?

 I have coded one, but doesn't work. It could be a bug but since
 I'm
   not
 100%
 sure of the config parameters I don't dare to post it as a bug
 yet.

  
   ?xml version=1.0 encoding=UTF-8?
  
  
   !--
 =
   --
   !--
--
   !--  foo App DataSource
--
   !--
--
   !--
 =
   --
  
   !-- $Id: foo-mysql-service.xml,v 1.0 2001/09/19 02:48:05 icoloma
 Exp $
   --
  
  
   server
  
 dependsJBOSS-SYSTEM:service=Naming/depends
 dependsJBOSS-SYSTEM:service=TransactionManager/depends
  
 classpath archives=
  mm.mysql-2.0.4-bin.jar,
  jbosscx.sar/
  
 !--
 
   --
 !-- JDBC - Initialize the databases
 --
 !-- to ConnectionFactoryLoader
 --
 !--
 
   --
  
 mbean code=org.jboss.resource.ConnectionFactoryLoader
  
 name=DefaultDomain:service=ConnectionFactoryLoader,name=fooDS
   attribute
 name=ManagedConnectionFactoryPropertiesConnectionURL=jdbc:mysql://loc

RE: [JBoss-dev] Anyone has tried to make a non-hypersonic connection pool?

2001-09-21 Thread Jay Walters

Try and download objecteering from the softteam.fr site or else
www.objecteering.com.  It is very much alive, they have had several releases
in the last 8 months that I have been aware of.

Cheers

-Original Message-
From: Ignacio Coloma
To: [EMAIL PROTECTED]
Sent: 9/21/01 9:23 PM
Subject: RE: [JBoss-dev] Anyone has tried to make a non-hypersonic
connection  pool?

I'm not sure, but ObjectTeering seem to be marked as Obsolete by the
CERN.
At the same time, they have a download version for Win2K. I feel lost.

IMHO Argo and Poseidon are still buggy (but useful in any case, till
they
fix them :)

http://sdt.cern.ch/Objecteering/
http://www.softeam.fr/us/pser_telechargement.htm

 -Mensaje original-
 De: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]En nombre de Jay
 Walters
 Enviado el: viernes, 21 de septiembre de 2001 1:05
 Para: '[EMAIL PROTECTED] '
 Asunto: RE: [JBoss-dev] Anyone has tried to make a non-hypersonic
 connection pool?


 Objecteering personal edition is another lowend UML modeller I've used
for
 sometime.  It only runs on Windoze, and oddly enough 12 years after
the
 WIndows look and feel guidelines it has a very unique UI.  It is
stableand
 free however.

 Argo/UML and Poseidon (from same code base) are both good Java
 tools.  I am
 not sure if they've worked out the kinks, last summer Argo still had
some
 stability issues.

 Cheers

 -Original Message-
 From: Michel Halde
 To: [EMAIL PROTECTED]
 Sent: 9/20/01 5:15 AM
 Subject: Re: [JBoss-dev] Anyone has tried to make a non-hypersonic
 connection  pool?

 About sequence diagrams, ArgoUML is a free tool available at
 www.argouml.org.

 The free solution with Together is only valid for 30 days!

 Michel Halde

 David Jencks wrote:
 
  Thank you!
 
  I will add this to the docs, I'll try to find a way to make the
  mysql-service.xml file available directly, maybe in the examples...
I
  haven't looked into how this is organized recently.
 
  There are some uml diagrams in the jca spec, but I don't always find
 them
  clear.  I will look into finding a little time to make some for our
 manual.
   Do you know of a free tool that makes sequence diagrams?  I think
 there's
  a free Together-j that makes class diagrams... there used to be
 anyway.
 
  Looking forward to postgres!!
 
  Thanks again
  david jencks
 
  On 2001.09.20 13:01:22 -0400 Ignacio Coloma wrote:
   Thanks, David.
  
   I still feel more or less lost in the Resource Adapter docs (a
 little
   more
   of clarity in the dark, though). Could you please add any kind of
 UML
   diagram to help understanding the architecture?
  
   I enclose the service.xml file I have put together for mysql. Some
 of the
   params are (more or less) guessed, but it works. I'll start
another
 one
   for
   postgres this afternoon (GMT), and post it As Soon As It
Works(tm).
  
   I'm not sure, but sniffing the code it seems that XA Transactions
 are
   supported in JBoss but not yet implemented as XADataSources (if
I'm
 wrong
   correct me). The file that I'm enclosing use Local Transactions.
  
   Regards,
  
   Ignacio Coloma.
   P.S.: Yes, I knew the diff between Enhydra and Hypersonic, but my
 post
   almost coincided with the Lutris crisis and made my mind a mess
 while
   writing it. Thanks for the point anyway :))
   P.S2.: How do I contribute these files to the docs?
  
-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]En nombre
de
   David
Jencks
Enviado el: miƩrcoles, 19 de septiembre de 2001 19:44
Para: [EMAIL PROTECTED]
Asunto: Re: [JBoss-dev] Anyone has tried to make a
non-hypersonic
connection pool?
   
   
The (new) manual chapter explains the config parameters pretty
 well I
think, please let me know if it is unclear.
   
http://www.jboss.org/documentation/HTML/ch03.html
   
Please show what you have so far and contribute it to the manual
 when
   it
works.
   
Thanks
david jencks
   
btw hypersonic  != enhydra
   
On 2001.09.19 13:28:37 -0400 Ignacio Coloma wrote:
 Anyone has the xxx-service.xml for a database that is not
 enhydra?

 I have coded one, but doesn't work. It could be a bug but
since
 I'm
   not
 100%
 sure of the config parameters I don't dare to post it as a bug
 yet.

  
   ?xml version=1.0 encoding=UTF-8?
  
  
   !--
 =
   --
   !--
--
   !--  foo App DataSource
--
   !--
--
   !--
 =
   --
  
   !-- $Id: foo-mysql-service.xml,v 1.0 2001/09/19 02:48:05 icoloma
 Exp $
   --
  
  
   server
  
 dependsJBOSS-SYSTEM:service=Naming/depends
 dependsJBOSS-SYSTEM:service=TransactionManager/depends
  
 classpath archives=
  mm.mysql-2.0.4-bin.jar,
  jbosscx.sar/
  
 !--
 
   --
 !-- JDBC - 

[JBoss-dev] Tests and new build suite

2001-09-21 Thread Jay Walters

Sorry to post this on the list but I can't get to the site to read
instructions...  First let me say the new build process is very nice (I've
avoided it during it's teething pains!)  How does one run the test suite?  I
tried build test in the test directory but they all keep failing with what
looks like more of a JUnit/Ant (Or my configuration) problem than anything
else - (Or are they all just broken?)

[junit] Exception in thread main
[junit] TEST org.jboss.test.bmp.test.BmpUnitTestCase FAILED
[junit] Running org.jboss.test.cts.test.BmpUnitTestCase
[junit] java.lang.NullPointerException
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter.endTest(XMLJUnitResultFormatter.java:196)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter.formatError(XMLJUnitResultFormatter.java:230)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter.addError(XMLJUnitResultFormatter.java:225)
[junit] at junit.framework.TestResult.addError(TestResult.java:36)
[junit] at
junit.framework.TestResult.runProtected(TestResult.java:133)
[junit] at junit.extensions.TestSetup.run(TestSetup.java:23)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:231)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:409)

I'm running Windows 2K pro with Cygwin, Sun JDK 1.3.0-C, classpath= before
running the test.  Exact same environment as the compile/build which worked.

Cheers

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



RE: [JBoss-dev] Tests and new build suite

2001-09-21 Thread Jay Walters

It was me.  It sure helped to start the server up before I ran the tests the
second time!  Sorry to post first and troubleshoot second...

Cheers

-Original Message-
From: Jay Walters
To: '[EMAIL PROTECTED]'
Sent: 9/21/01 10:17 PM
Subject: [JBoss-dev] Tests and new build suite

Sorry to post this on the list but I can't get to the site to read
instructions...  First let me say the new build process is very nice
(I've
avoided it during it's teething pains!)  How does one run the test
suite?  I
tried build test in the test directory but they all keep failing with
what
looks like more of a JUnit/Ant (Or my configuration) problem than
anything
else - (Or are they all just broken?)

[junit] Exception in thread main
[junit] TEST org.jboss.test.bmp.test.BmpUnitTestCase FAILED
[junit] Running org.jboss.test.cts.test.BmpUnitTestCase
[junit] java.lang.NullPointerException
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter.endTest(XMLJUnitResultFormatter.java:196)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter.formatError(XMLJUnitResultFormatter.java:230)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter.addError(XMLJUnitResultFormatter.java:225)
[junit] at
junit.framework.TestResult.addError(TestResult.java:36)
[junit] at
junit.framework.TestResult.runProtected(TestResult.java:133)
[junit] at junit.extensions.TestSetup.run(TestSetup.java:23)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:231)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:409)

I'm running Windows 2K pro with Cygwin, Sun JDK 1.3.0-C, classpath=
before
running the test.  Exact same environment as the compile/build which
worked.

Cheers

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

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



Re: [JBoss-dev] Tests and new build suite

2001-09-21 Thread David Jencks

I've done that a couple of times myself...;-)

Note the targets tests-unit and tests-stress... the first is reasonably
quick.  Also you can put a local.properties file in with
testsuite/build.xml with counts for the stress tests so if you just want to
see if something works... you don't wait all night.

These are my favorites ;-)
### Test properties

junit.timeout=12
jbosstest.threadcount=2
jbosstest.iterationcount=2
jbosstest.beancount=2

I see Chris Kimpton has been having lots of trouble with his nightly run,
whereas I get much farther.  How far do you get?

david jencks

On 2001.09.21 22:22:32 -0400 Jay Walters wrote:
 It was me.  It sure helped to start the server up before I ran the tests
 the
 second time!  Sorry to post first and troubleshoot second...
 
 Cheers
 
 -Original Message-
 From: Jay Walters
 To: '[EMAIL PROTECTED]'
 Sent: 9/21/01 10:17 PM
 Subject: [JBoss-dev] Tests and new build suite
 
 Sorry to post this on the list but I can't get to the site to read
 instructions...  First let me say the new build process is very nice
 (I've
 avoided it during it's teething pains!)  How does one run the test
 suite?  I
 tried build test in the test directory but they all keep failing with
 what
 looks like more of a JUnit/Ant (Or my configuration) problem than
 anything
 else - (Or are they all just broken?)
 
 [junit] Exception in thread main
 [junit] TEST org.jboss.test.bmp.test.BmpUnitTestCase FAILED
 [junit] Running org.jboss.test.cts.test.BmpUnitTestCase
 [junit] java.lang.NullPointerException
 [junit] at
 org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
 rmatter.endTest(XMLJUnitResultFormatter.java:196)
 [junit] at
 org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
 rmatter.formatError(XMLJUnitResultFormatter.java:230)
 [junit] at
 org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
 rmatter.addError(XMLJUnitResultFormatter.java:225)
 [junit] at
 junit.framework.TestResult.addError(TestResult.java:36)
 [junit] at
 junit.framework.TestResult.runProtected(TestResult.java:133)
 [junit] at junit.extensions.TestSetup.run(TestSetup.java:23)
 [junit] at
 org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
 run(JUnitTestRunner.java:231)
 [junit] at
 org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
 main(JUnitTestRunner.java:409)
 
 I'm running Windows 2K pro with Cygwin, Sun JDK 1.3.0-C, classpath=
 before
 running the test.  Exact same environment as the compile/build which
 worked.
 
 Cheers
 
 ___
 Jboss-development mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-development
 
 ___
 Jboss-development mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-development
 
 

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



Re: [JBoss-dev] java.naming.factory.initial in Tomcat 4.0

2001-09-21 Thread Remy Maucherat

 Thank you for the insides.

 Somehow -Dcatalina.useNaming=false didn't work;-nonaming worked.

Just checked the code ...
My mistake, sorry for the trouble. The main class will only look at the
flag, and set the JNDI sys properties and catalina.useNaming accordingly.

Remy


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



[JBoss-dev] CVS update: newsite/src/docs/doco_files jps112-01.zip

2001-09-21 Thread Tom Coleman

  User: tmcsys  
  Date: 01/09/21 21:18:43

  Modified:src/docs/doco_files jps112-01.zip
  Log:
  Update directory structure
  
  Add commit to PopulateServlet.java per Jim Utter
  
  Revision  ChangesPath
  1.3   +97 -84newsite/src/docs/doco_files/jps112-01.zip
  
Binary file
  
  

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



[JBoss-dev] CVS update: manual/src/xdocs/howto howtopetstore.xml

2001-09-21 Thread Tom Coleman

  User: tmcsys  
  Date: 01/09/21 21:24:17

  Modified:src/xdocs/howto howtopetstore.xml
  Log:
  Credit Jim Utter
  
  Revision  ChangesPath
  1.6   +3 -2  manual/src/xdocs/howto/howtopetstore.xml
  
  Index: howtopetstore.xml
  ===
  RCS file: /cvsroot/jboss/manual/src/xdocs/howto/howtopetstore.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- howtopetstore.xml 2001/09/18 21:39:09 1.5
  +++ howtopetstore.xml 2001/09/22 04:24:17 1.6
  @@ -1,5 +1,5 @@
   ?xml version = 1.0 encoding = UTF-8?
  -!-- $Id: howtopetstore.xml,v 1.5 2001/09/18 21:39:09 tmcsys Exp $ --
  +!-- $Id: howtopetstore.xml,v 1.6 2001/09/22 04:24:17 tmcsys Exp $ --
   !--DOCTYPE section PUBLIC -//OASIS//DTD DocBook XML V4.1.2//EN 
docbookx/docbookx.dtd--
   section id=howtopetstore
titleDeploying the Pet Store 1.1.2 Demo in JBoss/title
  @@ -22,7 +22,7 @@
paraPlease post your experiences with deploying the Pet Store in 
JBoss to the jboss-user mailing list./para
   formalpara
titleInitializing the Database/title
  - paraThe current Pet Store application should automatically 
build required database tables the first time the Pet Store application is started.  
Apparently the latest database schema is slightly different from the earlier release, 
so you may encounter problems if you have an existing Pet Store database from a 
previous installation.  When tring to determine the initial status of the database, 
this conflict may cause one of the drop commands to fail, and the application will not 
create the required tables.  If this is the case, you may need to manually drop all 
existing tables before deploying the Pet Store for the first time./para
  + paraThe Pet Store application should automatically build 
required database tables the first time the Pet Store application is started.  The 
latest database schema is slightly different from the earlier release, so you may 
encounter problems if you have an existing Pet Store database from a previous 
installation.  When tring to determine the initial status of the database, this 
conflict may cause one of the drop commands to fail, and the application will not 
create the required tables.  If this is the case, you may need to manually drop all 
existing tables before deploying the Pet Store for the first time.  It may help to 
turn off your browser cache while building the tables./para
   /formalpara
   formalpara
titleThe Admin Client/title
  @@ -44,6 +44,7 @@
listitemparaAaron Mulder/para/listitem
listitemparaCuong Tran/para/listitem
listitemparaJoseph King/para/listitem
  + listitemparaJim Utter/para/listitem
/itemizedlist
/section
section
  
  
  

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