[JBoss-user] org.jboss.mq.SpyJMSException: Cannot process a transaction

2004-04-14 Thread Phil Shrimpton
Hi,

Any body got any clues on 'org.jboss.mq.SpyJMSException: Cannot process a 
transaction' errors?

I am using Jboss 3.2.3 with 'out the box' JMS configurtion.

Stack trace...

004-04-14 01:06:19,650 ERROR [STDERR] java.lang.ClassCastException
2004-04-14 01:06:19,650 ERROR [STDERR]   at org.hsqldb.Column.compare(Unknown
Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.hsqldb.Index.compareRow(Unknown Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at org.hsqldb.Index.insert(Unknown
Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at org.hsqldb.Table.indexRow(Unknown
Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.hsqldb.Table.insertNoCheck(Unknown Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at org.hsqldb.Table.insert(Unknown
Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.hsqldb.Parser.processInsert(Unknown Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.hsqldb.Database.execute(Unknown Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.hsqldb.jdbcConnection.execute(Unknown Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.hsqldb.jdbcStatement.executeUpdate(Unknown Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.hsqldb.jdbcPreparedStatement.executeUpdate(Unknown Source)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(Wrapp
edPreparedStatement.java:324)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.jboss.mq.pm.jdbc2.PersistenceManager.createPersistentTx(PersistenceManag
er.java:660)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.jboss.mq.pm.TxManager.createTx(TxManager.java:79)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.jboss.mq.server.JMSDestinationManager.transact(JMSDestinationManager.jav
a:424)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.jboss.mq.server.JMSServerInterceptorSupport.transact(JMSServerIntercepto
rSupport.java:186)
2004-04-14 01:06:19,650 ERROR [STDERR]   at
org.jboss.mq.server.TracingInterceptor.transact(TracingInterceptor.java:438)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.mq.server.JMSServerInvoker.transact(JMSServerInvoker.java:186)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.mq.il.jvm.JVMServerIL.transact(JVMServerIL.java:328)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.mq.Connection.send(Connection.java:928)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.mq.SpyXAResourceManager.commit(SpyXAResourceManager.java:127)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.mq.SpyXAResource.commit(SpyXAResource.java:103)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:307)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageCons
umer.java:633)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:433)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.mq.SpySession.run(SpySession.java:298)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja
va:727)
2004-04-14 01:06:19,665 ERROR [STDERR]   at
java.lang.Thread.run(Thread.java:534)
2004-04-14 01:06:19,681 WARN  [org.jboss.util.NestedThrowable] Duplicate
throwable nesting of same base type: class org.jboss.mq.SpyJMSException is
assignable from: class org.jboss.mq.SpyJMSException
2004-04-14 01:06:19,681 ERROR [org.jboss.jms.asf.StdServerSession] failed to
commit/rollback
org.jboss.mq.SpyXAException: - nested throwable:
(org.jboss.mq.SpyJMSException: Cannot process a transaction; - nested
throwable: (org.jboss.mq.SpyJMSException: Could not crate tx: 77; - nested
throwable: (java.sql.SQLException: S1000 General error
java.lang.ClassCastException in statement [INSERT INTO JMS_TRANSACTIONS
(TXID) values(77)])))
 at org.jboss.mq.SpyXAResource.commit(SpyXAResource.java:105)
 at
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:307)
 at
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageCons
umer.java:633)
 at
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:433)
 at org.jboss.mq.SpySession.run(SpySession.java:298)
 at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
 at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja
va:727)
 at java.lang.Thread.run(Thread.java:534)
Caused by: org.jboss.mq.SpyJMSException: Cannot process a transaction; -
nested throwable: (org.jboss.mq.SpyJMSException: Could not crate tx: 77; -
nested throwable: (java.sql.SQLException: S1000 Gen

[JBoss-user] Handling Database failures

2004-02-12 Thread Phil Shrimpton
Hi,

I have recently deployed a system in production (Jboss 3.2.3), and the 
Database (server) that is being used is less than reliable, and often goes 
offline without warning.

When the DB goes offline, a couple of things happen to my system.

Firstly, I get MB of stack traces in the log which consist of lots of

2004-02-11 12:12:08,236 ERROR
[org.jboss.resource.adapter.jdbc.PreparedStatementCache] Failed closing
cached statement
..stack trace...

..is there anyway to prevent these, apart from not using the 
PreparedStatementCache.

The second issue is a bit more of an issue.

I use COMMIT OPTION A, and once the DB is back up and running, I get various 
problems when I think Jboss is trying to get an Object from the cache

-
javax.ejb.ObjectNotFoundException: No such entity!
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityC
ommand.java:52)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.
java:571)
 at
org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager
.java:299)
 at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(
CachedConnectionInterceptor.java:300)
 at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:637)
 at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine
r.java:1043)
 at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.jav
a:88)
 at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync
hronizationInterceptor.java:197)
 at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(
CachedConnectionInterceptor.java:214)
 at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.jav
a:88)
 at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:89)
 at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor
.java:61)
 at
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInt
erceptor.java:28)
 at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:88)
 at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:267)
 at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:98)
 at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:92)
 at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
 at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryF
inderInterceptor.java:93)
 at
org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:483)
 at org.jboss.ejb.Container.invoke(Container.java:720)
 at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyF
actory.java:293)
 at
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
 at $Proxy69.findByPrimaryKey(Unknown Source)
--

...the object does exist in the DB, but looking through the logs Jboss does 
not seem to be getting as far as issuing any SQL.  I guess that when the DB 
went down the cache for some reason became invalid, but it is only guess.

How can I avoid this problem?  Is there someway of detecting the 'DB has come 
back up' and automatically flushing all the caches?

Phil


-- 
 Discover a lost art - play Marbles
 April 2004
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Does any JBuilder plug-in generate correct CMP/CMR code for JBoss ? Please help

2003-11-27 Thread Phil Shrimpton
On Friday 28 November 2003 00:25, Sasidharan, Manoj wrote:

Hi,

> Has anyone used JBuilder to generate CMP/CMR relationships using JBoss
> plug-in?

Yes.

> Could you please let me know which plug-in was used.

I use the Voyager open tool (on sourceforge)

> We have an urgent requirement to port our J2EE application from Weblogic to
> JBoss 3.2.x.

You also might want to look at JbuilderX, which has just been released by 
Borland that has full, native support for Jboss, and from what I have seen so 
far looks very complete

Phil

-- 
 12:18am  up 13 days,  9:44,  2 users,  load average: 0.40, 0.25, 0.26
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Caching issue?

2003-11-19 Thread Phil Shrimpton
On Tuesday 18 November 2003 15:57, Alexey Loubyansky wrote:

Hi,

> >>Then the problem might occur when clients access *different* orders
> >>which share items. The call order.getItems() can be performed at the
> >>same time for both clients (w/o locking) as orders are different. But
> >>when a shared item is removed by one of the clients, it is still in the
> >>other's client collection.
> >
> > This sounds like my problem.  Whats the best way to
> > prevent/detect/workaround the issue
>
> row-locking would help. But it might not be the best option in your case.

It wouldn't.

As Commit option A is giving me a massive performance boost in this part of 
the system, I am am trying to think of workarounds.

What if, instead of deleting the 'item', I set a 'deleted flag' to true in 
the ItemEJB, and change the Order.getItems() to Order.getUnDeletedItems(), 
would that work, or would I just get items in the second 'collection' that 
have had their deleted flag set by the first client?

Phil

-- 
  8:57am  up 4 days, 18:23,  1 user,  load average: 0.56, 0.34, 0.20
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Caching issue?

2003-11-18 Thread Phil Shrimpton
On Tuesday 18 November 2003 14:58, Alexey Loubyansky wrote:

Hi,

> >>Are the clients accessing different orders which have common items? And
> >>then one of the common items is removed?
> >
> > Yes,  they could also be accessing the same 'order' and (with the same
> > the same items)
>
> Then the problem might occur when clients access *different* orders
> which share items. The call order.getItems() can be performed at the
> same time for both clients (w/o locking) as orders are different. But
> when a shared item is removed by one of the clients, it is still in the
> other's client collection.

This sounds like my problem.  Whats the best way to prevent/detect/workaround 
the issue

Phil
-- 
  3:08pm  up 4 days, 34 min,  1 user,  load average: 0.14, 0.15, 0.10
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Caching issue?

2003-11-18 Thread Phil Shrimpton
On Tuesday 18 November 2003 14:30, Alexey Loubyansky wrote:

Hi,

> >>Under option A, it does the getItems() against the db.
> >>But the actual iteration/load is done against the cache.
> >
> > Just to make sure I understand, with Commit A the finder is querying the
> > DB, which contains a 'record' that has been deleted from the cache, but
> > not from the DB,
>
> No. When remove is called on an instance, the synchronization occurs.
> The case you described should not be possible.

  I also find those.

> Are the clients accessing different orders which have common items? And
> then one of the common items is removed?

Yes,  they could also be accessing the same 'order' and (with the same the 
same items)

Phil


-- 
  2:07pm  up 3 days, 23:33,  1 user,  load average: 0.19, 0.18, 0.12
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Caching issue?

2003-11-17 Thread Phil Shrimpton
On Friday 14 November 2003 09:15, Adrian Brock wrote:

Hi,

> > JBoss 3.2.2, Commit Option A...
> >
> > I have a SLSB method something like...
> >
> > public void doSomething(){
> > Collection c = OrdersEJB.getItems();
> > 
> > 
> > }
> >
> > If these method is called at the same time by two different clients, the
> > first one works the second gives me an error 
> >
> > 2003-11-13 16:38:49,707 ERROR [org.jboss.ejb.plugins.LogInterceptor]
> > TransactionRolledbackLocalException in method: public abstract
> > java.sql.Date
> > com.prometricssoftware.CHaS2.ejb.core.diaryqueue.QueueLocal.getActionDate
> >(), causedBy:
> > javax.ejb.NoSuchObjectLocalException: Entity not found: primaryKey=102
> >
> > ..now if I switch to Commit Option B for the 'item' EJB, I don't get this
> > error, and all seems to work as I expect it to.
>
> Under option A, it does the getItems() against the db.
> But the actual iteration/load is done against the cache.

Just to make sure I understand, with Commit A the finder is querying the DB, 
which contains a 'record' that has been deleted from the cache, but not from 
the DB, and when I am doing the iteration the entity has already been deleted 
from the cache and I get the (uncatchable) NoSuchObjectLocalException?

If so, is not Commit option A dangerous, ith something beaing read from the 
(up to date) cache, and others being read from the (out of date) DB?

> Under option B, it will recheck the db (a load) before the delete
> because B cannot assume the db is in synch across transactions.

I understand how this works, because everything is read from the same place 

> To avoid the problem in general, you need "repeatable read" isolation
> which wouldn't work with commit option A/JBoss's Queued pessimistic
> lock anyway. 

So basically, from what I understand, is Commit Option A has problems if you 
are deleting 'records'?  I am not sure that is right?

Phil
-- 
  9:33pm  up 3 days,  6:59,  1 user,  load average: 0.36, 0.20, 0.15
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Caching issue?

2003-11-13 Thread Phil Shrimpton
Hi,

I have an issue that I want to understand before I try and fix it...

JBoss 3.2.2, Commit Option A...

I have a SLSB method something like...

public void doSomething(){
Collection c = OrdersEJB.getItems();


}

If these method is called at the same time by two different clients, the 
first one works the second gives me an error because the OrdersEJB.getItems() 
returns a collection that includes the 'item' that has already been deleted 
by the first client, and I try to use it.  Part of the stack trace


2003-11-13 16:38:49,707 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackLocalException in method: public abstract java.sql.Date
com.prometricssoftware.CHaS2.ejb.core.diaryqueue.QueueLocal.getActionDate(),
causedBy:
javax.ejb.NoSuchObjectLocalException: Entity not found: primaryKey=102
 at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:158)
 at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:267)
 at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
 at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11
8)
 at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
 at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
rInterceptor.java:122)
 at
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:490)
 at org.jboss.ejb.Container.invoke(Container.java:700)
 at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFacto
ry.java:375)
 at
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
 at $Proxy468.getActionDate(Unknown Source)
 at


..now if I switch to Commit Option B for the 'item' EJB, I don't get this 
error, and all seems to work as I expect it to.

Phil

-- 
  5:05pm  up 65 days, 19:15,  1 user,  load average: 0.94, 0.36, 0.23
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.3RC1 available

2003-11-12 Thread Phil Shrimpton
On Wednesday 12 November 2003 04:15, Scott M Stark wrote:

Hi,

> Dec 1 is the target date.

Super, thanks

Phil

-- 
  9:13am  up 64 days, 11:23,  1 user,  load average: 0.43, 0.28, 0.19
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.3RC1 available

2003-11-11 Thread Phil Shrimpton
On Tuesday 11 November 2003 17:29, Scott M Stark wrote:

Hi,

> The 3.2.3RC1 release is available from sourceforge here:

Thnaks.  This fixes both my issues with 3.2.2.

Anyone want to make a finger in the air guess as to the final 3.2.3 release?

Phil
-- 
 11:57pm  up 64 days,  2:07,  1 user,  load average: 0.63, 0.25, 0.21
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Commit Option Confusion

2003-11-07 Thread Phil Shrimpton
On Thursday 06 November 2003 22:51, Bill Burke wrote:

Hi,

> > As this app 'owns' its own database and the DB is not that quick, I
> > though that changing from the default commit option B to A should give me
> > some improvements, but seems to make no difference.
>
> Are you doing a lot of finder queries?  Finder queries still go to DB
> except for findByPrimaryKey. 

I do have some, but the realmproblem was I was using the 'Instance per 
Transaction' container config, whch does not seem to support commit option A.

The only reason I was using the Instance per Transaction' container config, 
was that I was getting a lot of deadlocks when two transactions were 
'reading' the same instance of an entity bean.  I guess that making all the 
get*.* methods readonly is a better way of preventing these deadlocks?

Phil


-- 
  9:59am  up 59 days, 12:09,  1 user,  load average: 0.60, 0.24, 0.14
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Commit Option Confusion

2003-11-06 Thread Phil Shrimpton
Hi,

I am tuning an app before deployment on 3.2.2.

As this app 'owns' its own database and the DB is not that quick, I though 
that changing from the default commit option B to A should give me some 
improvements, but seems to make no difference.

My tests complete in the same time with both option A and B, the SQL 
generated is identical with both options, and the CacheSize settings for the 
EJB's in the jmx-console are always Zero.

I am missing something or is my understanding of Commit options flawed?

Phil
-- 
  2:20pm  up 58 days, 16:30,  1 user,  load average: 0.46, 0.23, 0.15
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.2 : Incorrect SQL generation

2003-10-28 Thread Phil Shrimpton
On Tuesday 28 October 2003 18:40, Alexey Loubyansky wrote:

Alex

> > Beacuse the detail tables are listed in the FROM clause of the SQL,
> > the Joins should always be done or all records from the detail tables
> > will be returned regardless of if they have a 'match' in the master table
> > or not.
>
> Do you agree that some results will be missed when joining all the tables?

Using that form of SQL join, yes I agree. 

> >>>SELECT OBJECT(O) from Customer WHERE (o.id = ?1 OR o.contact.surname =
> >>>?2)
> >>>
> > But there is a FK/releationship between Customer.ContactID Contact.ID, so
> > records where those two fields don't match should not be returned
> >
> >>You can specify also DISTINCT in EJBQL.
> >
> > You can, and it does work,  but in my case it makes the difference
> > between returning the resultset from a few hundred milliseconds in 3.0.2
> > to about 12 minutes in 3.2.2
>
> It is the real problem.

This is because in my case I have over 25 records in each of the three 
detail tables, and althougth only one record in each table matches the 
'master record', I get a resultset of over 80 records.

> >>Now, suppose, I add a customer w/o a contact.
> >>Insert into customer (id, contactid) values (2, NULL)
> >>
> >>The EJBQL query is the same but customer id parameter is 2.
> >>3.0.8 will return empty collection. Is it correct?
> >
> > I would say yes as Jboss is generating old style SQL-89 joins.
>
> Then, I would say, no. Because, the result is incorrect. 

The result is correct for the SQL-89 style joins 3.0.x generated (and what I 
expect), but maybe not correct for what that EJB-QL should return according 
to the spec (if there is a spec?)

> You did convince me that it is implemented not the right way. 

Don't just take my word on it.  The fact that only I have rasied this issue, 
and nobody else should rasie a few warning flags, it does for me

> But at least it
> produces correct results. (And you agreed, right?)

Yes.

> >  I generally
> > use, when coding direcly, SQL92 joins (which perform a lot better in most
> > RDBMS's BTW), and can handle the situation of a null detail table id by
> > using left outer joins.
>
> I will work on it.

Implementing joins SQL-92 style would make things a lot easier (and perform 
better) IMO, but not all DB's handle them, although the majority of the do.

Phil

-- 
 10:07pm  up 50 days, 17 min,  1 user,  load average: 0.60, 0.24, 0.14
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.2 : Incorrect SQL generation

2003-10-28 Thread Phil Shrimpton
On Tuesday 28 October 2003 15:16, Alexey Loubyansky wrote:

Alex

> >> >> > o.contact.surnameUpper = ?2 OR o.vehicle.registrationNumber = ?3
> >>
> >>in English.
> >>
> >>My interpretation is "select all o that have contact with surname ?2 OR
> >>have vehicle with registration number ?3"
> >>Note, o is allowed to have either contact OR vehicle OR both of them.
> >
> > Your interpretation is correct, the problem is is that the SQL
> > generated only does the 'join' with the detail tables if, say
> > contact.surnameUpper equals the parameter supplied, if not it returns all
> > records from the contact table, even though only one has a releationship
> > with 'o'.
>
> Yes, but joining three tables alltogether means my interpretation is
> wrong. Don't you think so? 

No.  Beacuse the detail tables are listed in the FROM clause of the SQL, the 
Joins should always be done or all records from the detail tables will be 
returned regardless of if they have a 'match' in the master table or not.

> > SELECT OBJECT(O) from Customer WHERE (o.id = ?1 OR o.contact.surname =
> > ?2)
> >
> > Customer ID  Customer.ContactID Contact.ID  Surname
> > 1  2   1  smith
> > 1  2   2  blogs
> > 1  2   3  dow
> >
> > ..becase there is no surname match for "fleury", it returns all contacts
>
> Yes. Remember, we select Customer.ID only. So, we still get the correct
> result, i.e. Customer with id=1. 

But there is a FK/releationship between Customer.ContactID Contact.ID, so 
records where those two fields don't match should not be returned

> You can specify also DISTINCT in EJBQL.

You can, and it does work, but in my case it makes the difference between 
returning the resultset from a few hundred milliseconds in 3.0.2 to about 12 
minutes in 3.2.2

> Now, suppose, I add a customer w/o a contact.
> Insert into customer (id, contactid) values (2, NULL)
>
> The EJBQL query is the same but customer id parameter is 2.
> 3.0.8 will return empty collection. Is it correct?

I would say yes as Jboss is generating old style SQL-89 joins.  I generally 
use, when coding direcly, SQL92 joins (which perform a lot better in most 
RDBMS's BTW), and can handle the situation of a null detail table id by using 
left outer joins.

> > I hope I am missing something simple, but I have a number of these type
> > of queries, all work fine under JBoss 3.2.2 and another app server,  none
> > work correctly under 3.2.2
>
> Therefore, please, don't give up. I'll fix it if I am wrong.

I could well be my misunderstanding of something.  And the fact that nobody 
else seems to have reported it does worry me a bit 

Phil
-- 
  4:12pm  up 49 days, 18:22,  1 user,  load average: 0.48, 0.20, 0.12
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.2 : Incorrect SQL generation

2003-10-28 Thread Phil Shrimpton
On Tuesday 28 October 2003 10:13, Alexey Loubyansky wrote:

Hi,

> >>I think, the join should be done per the term, i.e. this way:
> >>
> >>(contact.SURNAME_UPPER = ? AND o.CONTACT_ID=contact.ID)
> >>OR (vehicle.REGNUMBER = ? AND  o.VEHICLE_ID=vehicle.ID)
> >
> > The problem with this, is the join is only done if the parameter matched,
> > if
>
> yes
>
> > note it would return all all records from the detail table due to short
> > circuit evaluation.
>
> Could you, please, elaborate on this? What is the detail table?

In this case the detail tables are vehicle and contact, each contain many 
records, but only one is 'linked' to the master record 

> Let's describe the condition
>
>  >> > o.contact.surnameUpper = ?2 OR o.vehicle.registrationNumber = ?3
>
> in English.
>
> My interpretation is "select all o that have contact with surname ?2 OR
> have vehicle with registration number ?3"
> Note, o is allowed to have either contact OR vehicle OR both of them.

Correct

> I think, your interpretation is "select all o that have contact AND have
> vehicle AND (contact's surname is ?2 OR vehicle's registration number is
> ?3)"
> Do I understand you right? 

No.  Your interpretation is correct, the problem is is that the SQL generated 
only does the 'join' with the detail tables if, say contact.surnameUpper 
equals the parameter supplied, if not it returns all records from the contact 
table, even though only one has a releationship with 'o'.

OK, here is a simple example, imagine these two DB tables

create table Customer (
  ID Integer,
  Contact_ID Integer
)

create table Contact (
  ID Integer,
  Surname Varchar(50)
)

..which results in two ejb's..

Contact {
  public Integer getID();
  public void setID(Integer id);
  public String getSurname();
  public void setSurname(String surname);
}

..Customer {
  public Integer getID();
  public void setID(Integer id);
  public Contact getContact();
  public void setContact(Contact contact);
}

If I want to write a finder for Customer that returns all Customers that 
match a given ID or given Surname, I would write something like..

SELECT OBJECT(O) from Customer WHERE (o.id = ?1 OR o.contact.surname = ?2)

Jboss 3.0.8 will generate SQL something like...

SELECT cus.ID 
FROM Customer cus, Contact con
WHERE
   (cus.ID = ? OR con.surname = ?)
   AND
   (cus.ContactID=con.ID)

Which will return all records where Customer.ID = parameter supplied or 
Contact.Surname = parameter supplied AND Contact.ID = Customer.ContactID.

Jboss 3.2.2 will generate SQL something like...

SELECT cus.ID 
FROM Customer cus, Contact con
WHERE
   cus.ID = ? OR (con.surname = ? AND cus.ContactID=con.ID)

Which will return all records where Customer.ID = parameter supplied or 
Contact.Surname = parameter supplied AND Contact.ID = Customer.ContactID OR 
all contacts where Contact.Surname != parameter supplied.

To make it clear, if the data in the tables was

Insert into customer (id, contactid) values (1, 2)

Insert into contacts (id, surname) values (1, "smith")
Insert into contacts (id, surname) values (2, "blogs")
Insert into contacts (id, surname) values (3, "dow")

If I passed customer.id = 1 and surname="fleury" to the finder above..

Jboss 3.0.8 will return

Customer ID  Customer.ContactID Contact.ID  Surname
1  2   2  blogs

Jboss 3.2.2 will return

Customer ID  Customer.ContactID Contact.ID  Surname
1  2   1  smith
1  2   2  blogs
1  2   3  dow

..becase there is no surname match for "fleury", it returns all contacts

I hope I am missing something simple, but I have a number of these type of 
queries, all work fine under JBoss 3.2.2 and another app server, none work 
correctly under 3.2.2

Phil

  
-- 
 10:42am  up 49 days, 12:52,  1 user,  load average: 0.25, 0.16, 0.10
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.2 : Incorrect SQL generation

2003-10-27 Thread Phil Shrimpton
On Friday 24 October 2003 10:50, Alexey Loubyansky wrote:

Hi,

> as for me, 3.0.8 is wrong and 3.2.2 is correct.

Interesting, especially as another app server (Borland's) generates the same 
SQL as 3.0.8

> Since you use OR between the terms
>
>  > o.contact.surnameUpper = ?2 OR o.vehicle.registrationNumber = ?3
>
> I think, the join should be done per the term, i.e. this way:
>
> (contact.SURNAME_UPPER = ? AND o.CONTACT_ID=contact.ID)
> OR (vehicle.REGNUMBER = ? AND  o.VEHICLE_ID=vehicle.ID)

The problem with this, is the join is only done if the parameter matched, if 
not it would return all all records from the detail table due to short 
circuit evaluation.

>
> and not
>
> (contact.SURNAME_UPPER = ? OR vehicle.REGNUMBER = ?)
> AND (o.VEHICLE_ID=vehicle.ID AND o.CONTACT_ID=contact.ID)

This is correct, IMO,  as the join is always done, regardless of whether the 
parameter matches or not.

> If you want the SQL that was generated in 3.0.8, you should use the
> following EJB-QL query:
>
> SELECT OBJECT(o)
> FROM BaseTask AS o
> WHERE
> o.callID = ?1 OR
> o.orderNumber = ?4 OR
>(o.contact.surnameUpper = ?2 OR
> o.vehicle.registrationNumber = ?3 OR
> o.address.postCode = ?5)
>AND o.contact IS NOT NULL
>AND o.vehicle IS NOT NULL
>AND o.address IS NOT NULL
>
> SELECT
> o.CALL_ID
> FROM
> TASK_BASE o,
> TASKS_PART_VEHICLE vehicle,
> TASKS_PART_CONTACT contact,
> TASKS_PART_ADDRESS address
>
> WHERE
> (o.CALL_ID=?) OR
> (o.ORDER_NUM=?) OR
> (
>(contact.SURNAME_UPPER = ? OR
> vehicle.REGNUMBER = ? OR
> address.POSTCODE = ?)
>  AND
> o.VEHICLE_ID=vehicle.ID
>  AND
> o.CONTACT_ID=contact.ID
>  AND
> o.ADDRESS_ID=address.ID
>  AND
> o.VEHICLE_ID IS NOT NULL
>  AND
> o.CONTACT_ID IS NOT NULL
>  AND
> o.ADDRESS_ID IS NOT NULL)

Which is still wrong as it brings back all the records from the detail tables 
that don't match the 'id' in the master.

Phil

-- 
  5:19pm  up 48 days, 19:29,  1 user,  load average: 0.20, 0.13, 0.10
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] 3.2.2 : Incorrect SQL generation

2003-10-24 Thread Phil Shrimpton
Hi,

Consider this EJB-QL..

SELECT OBJECT(o) FROM BaseTask AS o WHERE o.callID = ?1 OR
o.contact.surnameUpper = ?2 OR o.vehicle.registrationNumber = ?3 OR
o.orderNumber = ?4 OR o.address.postCode = ?5

In Jboss 3.0.8, the following SQL is generated...

SELECT t0_o.CALL_ID
FROM TASKS_BASE t0_o, TASKS_PART_VEHICLE t2_o_vehicle, TASKS_PART_CONTACT
t1_o_contact, TASKS_PART_ADDRESS t3_o_address
WHERE
 (t0_o.CALL_ID = ? OR t1_o_contact.SURNAME_UPPER = ? OR
t2_o_vehicle.REGNUMBER = ? OR t0_o.ORDER_NUM = ? OR t3_o_address.POSTCODE =
?)
 AND (t0_o.VEHICLE_ID=t2_o_vehicle.ID AND t0_o.CONTACT_ID=t1_o_contact.ID
AND t0_o.ADDRESS_ID=t3_o_address.ID)

..which is correct, but Jboss 3.2.2 generates the following SQL...

SELECT t0_o.CALL_ID
FROM TASKS_BASE t0_o, TASKS_PART_VEHICLE t4_o_vehicle, TASKS_PART_CONTACT
t2_o_contact, TASKS_PART_ADDRESS t7_o_address
WHERE (t0_o.CALL_ID = ?)
OR (t2_o_contact.SURNAME_UPPER = ? AND t0_o.CONTACT_ID=t2_o_contact.ID)
OR (t4_o_vehicle.REGNUMBER = ? AND  t0_o.VEHICLE_ID=t4_o_vehicle.ID)
OR (t0_o.ORDER_NUM = ?)
OR (t7_o_address.POSTCODE = ? AND  t0_o.ADDRESS_ID=t7_o_address.ID)

..which is incorrect, and returns incorrect results, due to not 'joining'
the tables correctly.

I can't get on to SF to see if this has been reported.

Phil


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.2 : Null primary key on create

2003-10-22 Thread Phil Shrimpton
On Tuesday 21 October 2003 11:11, Alexey Loubyansky wrote:

Hi,

> The latest 3.2.2?

Yes, the released version.

> How could I reproduce it?

With my code   Seriously,  I am not sure how to get a small test case 
together, because the same code works on 30 or so entity beans, its just the 
one that is causing the problem.

I can certainly give you any logs etc. you need and even SSH access if 
required

Phil

-- 
  9:10pm  up 42 days, 23:20,  1 user,  load average: 0.29, 0.19, 0.12
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.2 : Null primary key on create

2003-10-21 Thread Phil Shrimpton
On Tuesday 21 October 2003 14:15, Jason Essington wrote:

Hi,

> Just out of curiosity, how many fields are in your entity bean?

87

> Alexey indicated (on October 10) that the CMP engine currently had a
> limit of 64 columns, but that he was working on a fix.

If that has not been fixed, that could be the problem.

> I have not filed a bug on this, but perhaps that would be in order?

I will try an bring the entity bean in question down <64 fields to see if it 
works, if it does it would seem to be in order

> Recap:
>  In my case, an application that functions just fine under 3.2.1
> fails with SQLExceptions (on removal) and CreateExceptions (on
> creation) when trying to manipulate a very complicated entity ( > 64
> fields ) in 3.2.2. However all of the other entities ( < 64 fields ) in
> the application work perfectly.

This seems very simlar to my situation

Phil

-- 
  9:14pm  up 42 days, 23:24,  1 user,  load average: 0.32, 0.21, 0.13
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] 3.2.2 : Null primary key on create

2003-10-20 Thread Phil Shrimpton
Hi,

I have an application that works fine on 3.0.8 and 3.2.1, but on 3.2.2 I get 
the following error with one of my entity beans, any ideas?


2003-10-20 14:34:36,972 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackLocalException in method: public abstract
com.mycompany.ejb.tasks.common.BaseTaskLocal
com.mycompany.ejb.tasks.common.BaseTaskLocalHome.create(j
ava.lang.String,java.lang.String) throws javax.ejb.CreateException,
causedBy:
java.lang.IllegalArgumentException: Entity primary key is null
 at
org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache$PreloadKey.(ReadAhea
dCache.java:691)
 at
org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.getPreloadDataMap(ReadAhea
dCache.java:523)
 at
org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.load(ReadAheadCache.java:3
08)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEnt
ityCommand.java:112)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEnt
ityCommand.java:86)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadField(JDBCStoreManag
er.java:582)
 at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.getInstanceVa
lue(JDBCCMP2xFieldBridge.java:129)
 at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setInst
anceParameters(JDBCAbstractCMPFieldBridge.java:319)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(J
DBCAbstractCreateCommand.java:291)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbs
tractCreateCommand.java:144)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreMa
nager.java:518)

The primary key is not null as I have 'hardwired it' in the home.create 
method just to be 100%

Phil
-- 
  9:30pm  up 41 days, 23:40,  1 user,  load average: 0.44, 0.17, 0.08
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.0.x -> 3.2.x : Couldn't create entity command

2003-10-17 Thread Phil Shrimpton
On Friday 17 October 2003 11:56, Alexey Loubyansky wrote:

Hi,

> How do you specify what entity-command to use? Do you use
> standardjbosscmp-jdbc.xml file from 3.0.x with 3.2.2?

Thanks, that was the clue I needed.  I had accidently deleted the 
create-entity command when I removed the (unwanted) UKPK in the defaults bit 
of standardjbosscmp-jdbc.xml

Cheers

Phil
-- 
  3:30pm  up 38 days, 17:40,  1 user,  load average: 0.38, 0.32, 0.18
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.0.x -> 3.2.x : Couldn't create entity command

2003-10-17 Thread Phil Shrimpton
On Friday 17 October 2003 10:31, Alexey Loubyansky wrote:

Hi,

> What are the DDs for the failing beans?

Any bits in particular, as they total about 200Kb, so don't want to post them 
to the list

Phil
-- 
 10:45am  up 38 days, 12:55,  1 user,  load average: 0.60, 0.19, 0.12
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.0.x -> 3.2.x : Couldn't create entity command

2003-10-16 Thread Phil Shrimpton
On Thursday 16 October 2003 22:00, Bill Burke wrote:

Hi,

> What version of 3.2.x.

Both 3.2.1 and 3.2.2RC4

Phil
-- 
 10:15pm  up 38 days, 25 min,  1 user,  load average: 0.12, 0.09, 0.09
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] 3.0.x -> 3.2.x : Couldn't create entity command

2003-10-16 Thread Phil Shrimpton
Hi,

I have an existing system that works fin on JBoss 3.0.x, and am in the 
process of moving it to the 3.2.x version.  The system consists of about 40 
EJB's (mainly entity), and all but three of them deploy fine, with the error 
being 'Couldn't create entity command'.

Anyone have any ideas?  log/stacktace follows...

Cheers

Phil

2003-10-16 22:44:53,889 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.WorkflowAudit] Initializing
CMP plugin for WorkflowAudit
2003-10-16 22:44:53,899 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.Diary.user]
foreign key name: userID
2003-10-16 22:44:53,909 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.Diary.queryType]
foreign key name: queryTypeID
2003-10-16 22:44:53,909 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.Queue.role]
foreign key name: roleID
2003-10-16 22:44:53,909 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.Queue.queryType]
foreign key name: queryTypeID
2003-10-16 22:44:53,909 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.TaskType.taskTypeC
ategory] foreign key name: categoryID
2003-10-16 22:44:53,909 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.QueryType.taskType
] foreign key name: taskTypeID
2003-10-16 22:44:53,919 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.WorkflowStep.query
Type] foreign key name: queryTypeID
2003-10-16 22:44:53,919 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.Role.roleType]
foreign key name: roleTypeID
2003-10-16 22:44:54,790 DEBUG [org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.parentTraceEnabled=true
2003-10-16 22:44:54,800 DEBUG [org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2003-10-16 22:44:54,800 DEBUG [org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2003-10-16 22:44:54,800 ERROR [org.jboss.ejb.EntityContainer] Starting
failed
org.jboss.deployment.DeploymentException: Couldn't create entity command: ;
- nested throwable: (java.lang.NullPointerException)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(
JDBCCommandFactory.java:136)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreM
anager.java:487)
 at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:
411)
 at
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java
:152)
 at
org.jboss.ejb.EntityContainer.startService(EntityContainer.java:343)
-- 
  9:16pm  up 37 days, 23:26,  1 user,  load average: 0.42, 0.17, 0.11
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Handling Deadlocks

2003-09-12 Thread Phil Shrimpton
Hi,

I have a method in a stateless session bean that basically gets a list of 
entity beans, and does something with the first one in the list.

If two clients call this method at the same time, the one that calls the 
method 'last', gets an Application deadlock as they have both got the same 
entiy bean from the top of the list, which is fine, and something I expect to 
happen.  What I then want to do is to (in the second transaction) is to then 
get the next bean from the list instead.

Unfortunatly,  although I capture the deadlock exception, and get the next 
bean, the transaction has been 'marked for rollback', so my code always fails.

What is the best way to handle this situation?

Cheers

Phil
-- 
  9:52pm  up 3 days, 2 min,  1 user,  load average: 0.38, 0.30, 0.19
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


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


[JBoss-user] Synchronize method in SLSB

2003-09-05 Thread Phil Shrimpton
Hi,

I need to Synchronize access to a couple of methods in a stateless session 
bean so that method can only be called by a single 'client' at once.  I have 
read a 101 ways of doing it from setting the 'pool' size for that bean to 1 
so all clients use the same instance, to using a stateful session bean and 
passing the handle around all the clients.

Does anyone have a definitive answer, Ideally something that is "JBoss 
Cluster proof"

Cheers

Phil
-- 
  9:04am  up 1 day, 17:04,  1 user,  load average: 0.24, 0.08, 0.02
ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]


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


Re: [JBoss-user] Re: Jetty vs Tomcat

2003-08-14 Thread Phil Shrimpton
On Thursday 07 August 2003 18:08, Rod Macpherson wrote:

Hi,

> That's two (count 'em) votes for precompiled JSPs being integrated!

You can add another 1 to that.  An MBean would be good.

> Definitely a big bonus in terms of speeding up the development cycle
> because we have hundreds of pages. I do not want to have to precompile
> servlets and map URLs when we really should be able to tell the server
> to spider through our site compiling every file with a JSP extension
> using the "live" classpath. 

This is they way I think it should happen

Phil


---
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/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Recent CVS removals

2003-08-09 Thread Phil Shrimpton
On Wednesday 06 August 2003 23:53, Brian Wallis wrote:

Hi,

> > http://sourceforge.net/projects/elba
>
> I had a look (at one randomly selected file) and it is a direct copy with
> the line "JBoss, the OpenSource EJB server" removed from the top.

I had a look at a (random) file, and the author was noted, and copyrighted by 
a Mr M Fleury

Phil


---
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/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Scheduler MBean

2003-07-19 Thread Phil Shrimpton
On Friday 18 July 2003 21:56, Phil Shrimpton wrote:

Hi,

> What I am trying at the moment is milliseconds past 1st July 1am, which
> should exclude the date format altogether

This worked.

Phil

-- 
 11:33am  up 94 days, 25 min,  1 user,  load average: 1.20, 1.11, 1.08
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 17:36, Scott M Stark wrote:

Hi,

> This will work, but you do get drift, there is no correction for daylight
> savings, leap year, support for holidays, etc. 

Not worried about slippage, unless it is hours   I just need something to 
run, after midnight, and before people get into work.  As this will be 
deployed on a Windows box, it will get a reboot at least once a month, so as 
long as it does not dirft more that a couple of hours a week, I will be fine.

>Our scheduler is a trivial
> interval based service that is not approriate for cron like or more
> sophisticated requirements. You might look at quartz and improving its
> integration with JBoss. See http://sourceforge.net/projects/quartz

I am going to take a look at Quartz, looks interesting.

Phil

-- 
  9:56pm  up 93 days, 10:49,  1 user,  load average: 0.37, 0.16, 0.09
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 14:23, Brian Wallis wrote:

Hi,

> > Does not seem to.  'NOW' + 8640 works every 24 hours from when I
> > start it, but I can't seem to get it to work if I enter a date/time value
>
> And you don't get any errors in the log? 

No, but I do if I enter an incorrect date format, so I guess I am entering it 
correctly

What I am trying at the moment is milliseconds past 1st July 1am, which 
should exclude the date format altogether

Phil

-- 
  9:50pm  up 93 days, 10:43,  1 user,  load average: 0.23, 0.15, 0.06
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Re: Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 14:29, Eric Jain wrote:

Hi,

> I ran into the same problem recently. While scheduling within 24 h
> cycles seems to be possible, more complex constraints such as 'every
> Friday evening' don't seem to be possible. 

I only need the every 24hr at the moment.

> There is an open source tool
> called Quartz [http://www.part.net/quartz.html] that even provides an
> MBean for flexible scheduling,

Looks interesting. Thanks

Phil
-- 
  9:47pm  up 93 days, 10:40,  1 user,  load average: 0.14, 0.10, 0.04
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 12:52, [EMAIL PROTECTED] wrote:

Hi,

> I don't know the answer to your question! But if there is no answer,
> you could use an algorithm such as the following..

[snip]

Thanks, thats my backup plan, but I am sure there must be a 'proper' way to 
do it.

Phil

-- 
  1:22pm  up 93 days,  2:15,  1 user,  load average: 0.13, 0.09, 0.02
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 13:09, Brian Wallis wrote:

Hi,

> > I have implemented a schedualed MBean, and all works fine, I can get it
> > 'triggering' every minute, every 10 etc., but I need it to 'trigger' at
> > 1am every day, and can't find the correct combination of attributes.
>
> Doesn't something like
>   "Mon, 1 Jul 2003 01:00:00"
> and
>   8640
>
> work? It should.

Does not seem to.  'NOW' + 8640 works every 24 hours from when I start 
it, but I can't seem to get it to work if I enter a date/time value

Phil
-- 
  1:14pm  up 93 days,  2:07,  1 user,  load average: 0.02, 0.02, 0.00
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
Hi,

I have implemented a schedualed MBean, and all works fine, I can get it 
'triggering' every minute, every 10 etc., but I need it to 'trigger' at 1am 
every day, and can't find the correct combination of attributes.

Has anyone got any ideas on the best values for..

InitialStartDate
SchedulePeriod

..to achieve this.

Many Thanks

Phil
-- 
 12:17pm  up 93 days,  1:10,  1 user,  load average: 0.10, 0.05, 0.01
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] MBean : Persiting attributes

2003-06-14 Thread Phil Shrimpton
On Friday 13 June 2003 15:35, Scott M Stark wrote:

Scott,

> > Is there anyway to automatically update attribute values in the
> > xxx-service.xml file for an MBean when changes are made via jmx-console
> > and other tools, so there are preserved after a restart,
>
> You have to use an xmbean, the JBoss implementation of the JMX ModelMBean,
> if you want persistence. 

Thanks for the pointer, looks like what I am after

Cheers

Phil

-- 
  7:29pm  up 59 days,  8:22,  1 user,  load average: 0.31, 0.16, 0.10
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] MBean : Persiting attributes

2003-06-12 Thread Phil Shrimpton
Hi,

Is there anyway to automatically update attribute values in the 
xxx-service.xml file for an MBean when changes are made via jmx-console and 
other tools, so there are preserved after a restart, or is this something I 
have to do myself?

Cheers

Phil
-- 
  6:44pm  up 57 days,  7:37,  1 user,  load average: 0.13, 0.06, 0.01
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] MBeans and EJB's

2003-06-12 Thread Phil Shrimpton
On Wednesday 11 June 2003 23:57, Bob Cotton wrote:

Hi,

> Phil> Hi, I have a problem, and the solution seems to be an MBean,
> Phil> but I need to call/use both remote and local EJB's (SLS).
>
> Phil> It works, as I have tried it, but should I be doing it?
>
> Sure, why not?

Did not think so, but as the books I have, did not even have a trival 
example, I just needed to make sure.

> We do it all the time.

I think I will as well, now I have found out how easy it all is 

Phil
-- 
  8:58am  up 56 days, 21:50,  1 user,  load average: 0.12, 0.05, 0.01
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] MBeans and EJB's

2003-06-11 Thread Phil Shrimpton
Hi,

I have a problem, and the solution seems to be an MBean, but I need to 
call/use both remote and local EJB's (SLS).

Now I have a couple of JMX books, a number of  JMX articles, but none of them 
contain an example of using/calling EJB's within an MBean.

It works, as I have tried it, but should I be doing it?

Phil
-- 
  9:07pm  up 56 days, 10:00,  1 user,  load average: 0.15, 0.06, 0.01
   ICQ: 760757   AIM: pjshrimpton   Y!: pjshrimpton


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jboss handbooks

2003-01-21 Thread Phil Shrimpton
On Tuesday 21 January 2003 14:03, Bill Burke wrote:

Hi,

> The Official JBoss documentation goes definately in large detail into the
> JBoss internals, sure...  
>  If you want a beginners guide, we offer a Getting Started
> guide for free available for download at SourceForge.  
>
> Your comments are most helpful though.  

Just to add another comment to the list...

I am a user of Jboss, it is one tool in my toolbox of many.  I have read the 
getting started stuff, and have bought the pay-for docs, but IMO, there is a 
big gap in the middle.The getting started stuff from JBoss and 
third-parties, by its nature is 'simple', but does tend to spend too much 
time on 'EJB' development and third party tools (xDoclet, ANT etc.), neither 
of which I am really interested in as there are plenty of docs/books/howtos 
on that sort of stuff available elsewhere.  The advanced pay-for docs, are 
arguably the best docs going for any appserver, but as a user of the 
'product', I am not interested in how the product was developed, and how 
great the arcitecture is, I just want to use the thing.  What is missing is a 
good old fasioned user manual, you know, the book that tells you what buttons 
to press and what knobs to tweek.

To put it another way, when I buy a word processor, I don't need the getting 
started document that teaches me how to type, nor do I need the advanced 
documentation that explains the word precessors internals and source code, I 
just need a user manual that tells me what it does and how to do it.

Don't get me wrong, I am not knocking what has and is being produced, its 
more than enougth to put 'commercial' products to shame, let alone open 
source ones.  Its just food for thought.

Phil


-- 
Linux 2.4.4-4GB
  8:41pm  up 8 days,  2:31,  1 user,  load average: 0.76, 0.34, 0.22


---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Jbuilder integration question...

2003-01-14 Thread Phil Shrimpton
On Tuesday 14 January 2003 06:03, you wrote:

Hi,

> Well, I installed the JBoss OpenTool, and it seems that the contents of
> my ejb jar are now gone (not the source code, thankfully - just the IDE
> representation and the descriptors.)

The Open tool generates all the those files for you, you never need to (and 
should) touch them.

> I am also unclear as to how to run JBoss in the IDE

As long as JBoss is set up as the sever for the project, right click on your 
EJB module and click 'run', when JBoss is running, right click and click 
'deploy', and you app is deployed and running.

Phil


---
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jbuilder 7 and jboss3.0.4

2002-12-02 Thread Phil Shrimpton
On Monday 02 December 2002 18:02, you wrote:

Hi,

> We are using JBuilder 7 and jboss 3.0.2 together.  Someone else mentioned
> the protegra plugin, which we tried at one time, but we settled on the
> JBoss Opentool, which is an open source equivalent.  Here is a link to it:
> http://sourceforge.net/projects/jboss-opentool/


Have you worked out how to add the Unknown Primary Key info yet?  We have to 
manually add it after each make/build.

Phil
-- 
Linux 2.4.4-4GB
  5:51pm  up  8:14,  1 user,  load average: 0.16, 0.14, 0.12


---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Firebird XML fails to deploy

2002-11-22 Thread Phil Shrimpton
On Friday 22 November 2002 21:10, you wrote:

Hi,

> I am trying to get JBoss 3.0.4 to talk to Firebird 1.0. 
>
> 14:39:34,381 INFO  [MainDeployer] Starting deployment of package:
> file:/home/steve/projects/mawkercoffee/jboss-3.0.4/server/default/deploy/fi
>rebird-service.xml 14:39:34,404 WARN  [ServiceConfigurator] Failed to
> complete install java.lang.ClassNotFoundException: No ClassLoaders found
> for: org.firebirdsql.management.FBManager 

The is something broken in JBoss which means the rar is loaded after the 
services.xml.

There are a number of ways round it.  

- Make a dummy edit to firebird-services.xml when JBoss has started so it is 
redeployed

- Rename the files

10firebirdsql.rar
20firebird-services.xml

There are some others is you search the web forums

Personally, I have just commented out the FBManager bit in the 
firebird-service.xml as I am not currently using it.  

Phil


-- 
Linux 2.4.4-4GB
  8:36pm  up  6:12,  1 user,  load average: 0.29, 0.07, 0.02


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



Re: [JBoss-user] CD Subscription Update

2002-06-05 Thread Phil Shrimpton

On Friday 31 May 2002 03:23, Guy Rouillier wrote:

Hi,

> $500 is still a bit pricey at this point in JBoss's existence.  I'm on
> Microsoft's MSDN.  I've had the Professional level subscription for $500/yr

Remember that MSDN and all of MS's development tools are are loss leader, and 
MS make no money directly from them (They lose quite a lot).  Where they do 
make the money is that the more developers using MS tools, the more Windows 
products are produced, so the more Windows and 'other MS tools' licenses they 
sell. 

The price of MSDN cannot be directly be compared to JBoss Subscription prices

Phil
-- 
Linux 2.4.4-4GB
  9:39pm  up 13 days,  6:38,  3 users,  load average: 0.83, 0.30, 0.10

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] CD SUBSCRIPTION

2002-05-22 Thread Phil Shrimpton

On Wednesday 22 May 2002 20:21, you wrote:

Hi,

> By public demand we will now distribute a subscription CD.

Any plans of offering this without the 'support' option and training 
discount,  for a cheaper price, so those of us with smaller pockets can still 
contribute to the cause?

Phil

-- 
Linux 2.4.4-4GB
  9:52pm  up 1 day,  4:22,  2 users,  load average: 0.65, 0.38, 0.20

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Class path issue?

2002-05-22 Thread Phil Shrimpton

On Wednesday 22 May 2002 18:59, you wrote:

Hi,

> > I have a web app that works fine under standalone Tomcat, and I have
> > tried moving it to Jboss 2.4.6/Tomcat 4.03, but putting it in an *.ear
> > file, it can't find the javax.sql.datasource class.
> >
> > Looked around the JBoss Libraries, and found the class in
> > jboss-jdbc_ext.jar,
>
> Stacktrace is required to proceed.

I have just managed to fix it (nothing like posting to a mailing list to make 
your brain kick into gear )

I put  jboss-jdbc_ext.jar into $CATALINA_HOME/lib, and restarted JBoss, and 
all is well.  

My next question is what else should I put in there, considering I am about 
to replace my servlet stuff with EJBs?

Phil

-- 
Linux 2.4.4-4GB
  8:10pm  up 1 day,  2:40,  2 users,  load average: 0.53, 0.30, 0.20

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] Class path issue?

2002-05-22 Thread Phil Shrimpton

Hi,

I have a web app that works fine under standalone Tomcat, and I have tried 
moving it to Jboss 2.4.6/Tomcat 4.03, but putting it in an *.ear file, it 
can't find the javax.sql.datasource class.

Looked around the JBoss Libraries, and found the class in jboss-jdbc_ext.jar, 
but even though I must have put this jar in every directory under JBoss, 
still no joy.  Any pointers?

Phil
-- 
Linux 2.4.4-4GB
  7:04pm  up 1 day,  1:33,  2 users,  load average: 0.08, 0.04, 0.03

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



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

2002-04-22 Thread Phil Shrimpton

On Thursday 18 April 2002 21:23, Dmitri Colebatch wrote:

Hi,

> Granted JBuilder has come
> a long way, 

It has, but so has its price  

Phil

-- 
Linux 2.4.4-4GB
  5:47pm  up 3 days,  4:45,  1 user,  load average: 0.42, 0.31, 0.21

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



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

2002-04-22 Thread Phil Shrimpton

On Thursday 18 April 2002 21:49, JD Brennan wrote:

Hi,

> If you are going to be using Entity beans (persistence)
> then you'll be much better off with JBoss 3.0 because
> it supports CMP 2.0 - which will make it a lot easier
> to implement persistence with Entity beans.  We switched
> from JBoss 2.4 to 3.0 Beta a few months ago for CMP 2.0
> and it has saved us a lot of time.

Well, I have installed 3, and ordered the 2.4 book, so don't blame me when I 
come back here confused 

Phil

-- 
Linux 2.4.4-4GB
  5:46pm  up 3 days,  4:43,  1 user,  load average: 0.30, 0.26, 0.19

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



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

2002-04-16 Thread Phil Shrimpton

On Tuesday 16 April 2002 23:35, Dmitri Colebatch wrote:

Hi,

> Are you entering the world of JBoss from another EJB server, or fresh?

Fresh.

>  If
> you're entering fresh, and learning EJB, then I dont imagine the
> differences between 2.4 and 3.0 would bother you too much at first

I am more concernern with documentation etc., which is very important when 
you are getting into something new.  The 'book'  is for 2.4, yet a lot of the 
discussion on the lists/forums is about about 3.  I don't want to order the 
'book' and post questions about 2.4,. only to be told to move to 3 because it 
is X, Y and Z

> As I understand it, everything in 2.4 is also in 3.0, but there've
> been several significant architecture changes.

Are these on the 'inside' or 'outside'?

> also - the book covers 2.4, which would be a good argument for starting
> there.

This is what I currently favour, but it would be good to know the differences 
between 2 and 3.  I can't belive they are two great, especially as the 2.4 
'book' is not published here in the UK for another few weeks, and it would be 
a bad marketing effort to release a new, incompatible version before the book 
for the previous version is out.

Phil

-- 
Linux 2.4.4-4GB
  1:04am  up 109 day, 13:15,  1 user,  load average: 1.49, 1.27, 1.24

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



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

2002-04-16 Thread Phil Shrimpton

Hi,

Just entering the merry world of JBoss, mainly for learning and enjoyment.  I 
have Jboss 2.4 installed and running and I have ordered the Jboss 'Book'.  
With Jboss 3 going into RC stage, I was wondering if I should start with 
that?  If I do is the 'book' relevent?  What is the differences between 2.x 
and 3.x?  is 3.x, 2.x plus some extras, or is it a new product?  Would I be 
better starting with 2.x and the 'book' and moving to 3.x when I know what 
the hell I am doing?

questions, questions, questions..

Phil
-- 
Linux 2.4.4-4GB
 12:15am  up 109 days, 12:27,  1 user,  load average: 2.50, 2.20, 1.87

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



Re: [JBoss-user] JBoss and Tomcat : together or separate?

2001-12-07 Thread Phil Shrimpton

On Friday 07 December 2001 07:17, Guy Rouillier wrote:

Hi,

> > What is confusing me, is does JBoss need to know about Tomcat or visa
> > versa?
>
> Our EJBs provide
> "services" that are used on the JSP pages, so Tomcat needs to know where
> JBoss is running (so it can do lookups on the EJBs) but JBoss doesn't need
> to know anything about Tomcat.

Thanks for that.  A you can guess I am pretty new to all the set-up admin 
side side of things, so fitting the jigsaw together is taking a bit of time 
to understand.

What confused me was the "JBoss with imbedded Tomcat" download, and wasn't 
sure who had to know about who.

Phil

-- 
Linux 2.4.4-4GB
  6:17pm  up 2 days,  8:25,  1 user,  load average: 0.24, 0.08, 0.02

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



Re: [JBoss-user] JBoss and Tomcat : together or separate?

2001-12-04 Thread Phil Shrimpton

On Tuesday 04 December 2001 17:24, Guy Rouillier wrote:

Hi,

> We use completely independent installations of all three: Apache, Tomcat
> and JBoss.  Provides location independence, and problem isolation.  So
> personally I would suggest keeping JBoss separate, especially since you are
> just trying it out.  There is no trickery involved in running it
> separately - just run the run script.  Clients still do lookup's like
> always.

Thanks for your reply.

I have succesfully set up JBoss independantly of TomCat/Apache, and all seams 
to work fine (at least upto the "interest" example in the docs)

What is confusing me, is does JBoss need to know about Tomcat or visa versa?

Phil

-- 
Linux 2.4.4-4GB
 12:41am  up 10:03,  2 users,  load average: 0.62, 0.26, 0.20

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



[JBoss-user] JBoss and Tomcat : together or separate?

2001-12-04 Thread Phil Shrimpton

Hi,

I have a working Tomcat/Apache setup, and I now want to try JBoss.

Should I replace my current Tomcat installtion with the integrated 
JBoss/Tomcat distro, or should I attempt to just 'bolt-on' JBoss to my 
existing setup?

If the latter, are there any how-tos?

Phil
-- 
Linux 2.4.4-4GB
  3:44pm  up  1:06,  1 user,  load average: 0.20, 0.05, 0.01

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