[JBoss-user] Unable to persist JMS Message after Hypersonic db reaches 2.0 gigs

2004-04-01 Thread Dennis Muhlestein
I have an application that queues a large number of message driven beans 
that can then be processed asyncronously.  The messages are persisted in 
the hsql database.  Most of the time things work as planned.  Sometimes, 
so many messages are being persisted that the localDB.data in 
{SERVER_HOME}/data/hypersonic/ reaches 2.0 gigs.  When this happens, 
everything breaks and comes crashing to a halt.

Is there a way to increase the default size that hypersonic can grow 
too?  I've checked the xml files (deploy/hsql-ds.xml and 
deploy/jms/hsqldb-jdbc2-service.xml) for any hint of a size constriant 
with no luck.  Is there a limit on the hypersonic database size?

The os is running 2.4.19 linux kernel with reiserfs file system. 

Thanks in advance for any input.

-Dennis

Note: sample of one of the many stack traces occurring when this problem 
happens:

Could not store message: 11175 msg=11166 hard NOT_STORED
PERSISTENT queue=QUEUE.EmailQueue priority=4 hashCode=20379376; - nested 
throwable: (java.sql.SQLException: S1000 General error 
java.lang.NullPointerException in statement [INSERT INTO JMS_MESSAGES 
(MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(11166,
  ...



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: Unable to persist JMS Message after Hypersonic db reaches 2.0 gigs

2004-04-01 Thread Dennis Muhlestein
A couple more items of information I forgot.
We're using jboss 3.2.3
I reconfigured hsql-ds.xml to use tcp connections instead of the
default.  I can then connect to the database while jboss is running and
see what is happening.  The first thing I noticed is that all the
messages appear to still be in the JMS_MESSAGES table.  Anyone know of
any change between that 3.0.x and 3.2.x that would cause messages not to
be deleted after they are processed?  We used 3.0.x for quite some time
without problems.
Again, thanks for any input.

-Dennis

Dennis Muhlestein wrote:

I have an application that queues a large number of message driven 
beans that can then be processed asyncronously.  The messages are 
persisted in the hsql database.  Most of the time things work as 
planned.  Sometimes, so many messages are being persisted that the 
localDB.data in {SERVER_HOME}/data/hypersonic/ reaches 2.0 gigs.  When 
this happens, everything breaks and comes crashing to a halt.

Is there a way to increase the default size that hypersonic can grow 
too?  I've checked the xml files (deploy/hsql-ds.xml and 
deploy/jms/hsqldb-jdbc2-service.xml) for any hint of a size constriant 
with no luck.  Is there a limit on the hypersonic database size?

The os is running 2.4.19 linux kernel with reiserfs file system.
Thanks in advance for any input.
-Dennis

Note: sample of one of the many stack traces occurring when this 
problem happens:

Could not store message: 11175 msg=11166 hard NOT_STORED
PERSISTENT queue=QUEUE.EmailQueue priority=4 hashCode=20379376; - 
nested throwable: (java.sql.SQLException: S1000 General error 
java.lang.NullPointerException in statement [INSERT INTO JMS_MESSAGES 
(MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(11166,
  ...






---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Help with Clustering

2003-02-21 Thread Dennis Muhlestein
Tried that. I made a note at the bottom of that post, but it was pretty
small. 

I placed the class in a jar file in the lib folder.  Still got the same
exception though.  It's like the ClusteredHttpSessionBean can't find
anything except system classes.  Does this have anything to do with it
being started from an sar file?

-Dennis

On Fri, 2003-02-21 at 11:51, Bill Burke wrote:
 *This message was transferred with a trial version of CommuniGate(tm) Pro*
 The only workaround I can think of is to place your classes in a JAR that is
 outside the scope of the WAR.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Dennis
  Muhlestein
  Sent: Friday, February 21, 2003 12:41 PM
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] Help with Clustering
 
 
  Having still had no luck in getting Http Session Clustering to cluster
  objects, I thought I'd simplify the test.
 
  Using tomcat4.1.18 embedded
  Tried jboss 3.0.6 and 3.2.0rc2.
  jdk 1.4.1.01
  linux.
 
  clustering with two identical linux boxes/ idenitical cluster configs in
  jboss.  I used the default config files provided with jboss so I didn't
  attach them.  If anyone is interested in them let me know.
 
  TEST 1:
 
  * simple servlet sets a String session attribute for login management.
  ie: request.getSession().setAttribute ( username, username );
 
  * take one of the boxes down. - attribute is in clusted session -
  continued browsing works.
 
  * bring box back up. - attribute is distributed to new box - browsing
  works.
 
  * bring other box down - attribute is still clustered - browsing works.
 
  TEST 1 result: clustering works ok.
 
  TEST 2:
 
  * simple servlet uses simple Data Object instead of string:
  ie:
  --- Login class
  public class LoginData implements java.io.Serializable {
  public String username = null;
  public LoginData ( String username ) { this.username = username; }
  }
  --- Session usage
  LoginData ld = New LoginData( username );
  request.getSession().setAttribute ( logindata, ld );
 
  * login works but exception is thrown:
 
  EJBException:
  javax.ejb.EJBException: java.lang.ClassNotFoundException: LoginData (no
  security manager: RMI class loader disabled)
  at
  org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl
  .unserializeSession(ClusteredHTTPSessionBeanImpl.java:139)
  at
  org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl
  .getSession(ClusteredHTTPSessionBeanImpl.java:79)
  at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
  cessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
  org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityCo
  ntainer.java:1194)at
  org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(Enti
 tySynchronizationInterceptor.java:330)
  at
  org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInsta
  nceInterceptor.java:174)
  at
  org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInter
  ceptor.java:107)
  at
  org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
  at
  org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
  at org.jboss.ejb.Container.invoke(Container.java:712)
  at
  org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
  at
  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
  at
  org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:99)
  at
  org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.
  java:102)
  at
  org.jboss.proxy.TransactionInterceptor.invoke(TransactionIntercept
  or.java:77)
  at
  org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:116)
  at
  org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
  at $Proxy27.getSession(Unknown Source)
  at
  org.jboss.ha.httpsession.server.ClusteredHTTPSessionService.getHtt
  pSession(ClusteredHTTPSessionService.java:132)
  .. more
 
  * if next request goes to same box, the LoginData is in the session and
  the username can be retrieved.  The LoginData attribute is NOT clustered
  though.
 
  * if I take the first box down, the request now fails to grab the
  session on the second box.  The exception on the 2nd box is the exact
  same as the one above.
 
 
  I tried putting the data class in a jar by itself in the lib directory
  just for kicks but I still got the exact same issue.
 
  Any help would be appriciated.  At this point, I'm going to consider
  alternate technology for clustering.  Am I doing something drastically
  wrong?  I couldn't find any bugs related to this issue on sourceforge so
  I'm assuming it hasn't been addressed very well.
 
  Does anyone have anything like this implemented

[JBoss-user] Help with Clustering

2003-02-21 Thread Dennis Muhlestein
Having still had no luck in getting Http Session Clustering to cluster
objects, I thought I'd simplify the test.  

Using tomcat4.1.18 embedded
Tried jboss 3.0.6 and 3.2.0rc2.
jdk 1.4.1.01
linux.

clustering with two identical linux boxes/ idenitical cluster configs in
jboss.  I used the default config files provided with jboss so I didn't
attach them.  If anyone is interested in them let me know.

TEST 1:

* simple servlet sets a String session attribute for login management.
ie: request.getSession().setAttribute ( username, username );

* take one of the boxes down. - attribute is in clusted session -
continued browsing works.

* bring box back up. - attribute is distributed to new box - browsing
works.

* bring other box down - attribute is still clustered - browsing works.

TEST 1 result: clustering works ok.

TEST 2:

* simple servlet uses simple Data Object instead of string:
ie:
--- Login class
public class LoginData implements java.io.Serializable {
public String username = null;
public LoginData ( String username ) { this.username = username; }
}
--- Session usage
LoginData ld = New LoginData( username );
request.getSession().setAttribute ( logindata, ld );

* login works but exception is thrown:

EJBException:
javax.ejb.EJBException: java.lang.ClassNotFoundException: LoginData (no
security manager: RMI class loader disabled)
at
org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl.unserializeSession(ClusteredHTTPSessionBeanImpl.java:139)
at
org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl.getSession(ClusteredHTTPSessionBeanImpl.java:79)
at sun.reflect.GeneratedMethodAccessor114.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.invoke(EntityContainer.java:1194)   
 at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:330)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:174)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
at org.jboss.ejb.Container.invoke(Container.java:712)
at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:99)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at
org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:116)
at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy27.getSession(Unknown Source)
at
org.jboss.ha.httpsession.server.ClusteredHTTPSessionService.getHttpSession(ClusteredHTTPSessionService.java:132)
.. more

* if next request goes to same box, the LoginData is in the session and
the username can be retrieved.  The LoginData attribute is NOT clustered
though.

* if I take the first box down, the request now fails to grab the
session on the second box.  The exception on the 2nd box is the exact
same as the one above.


I tried putting the data class in a jar by itself in the lib directory
just for kicks but I still got the exact same issue.

Any help would be appriciated.  At this point, I'm going to consider
alternate technology for clustering.  Am I doing something drastically
wrong?  I couldn't find any bugs related to this issue on sourceforge so
I'm assuming it hasn't been addressed very well.

Does anyone have anything like this implemented yet?  

Any thoughts appreciated.

-Dennis






---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] HttpSessionClustering Problem: ClassNotFound nosecurity manager: RMI class loader disabled

2003-02-20 Thread Dennis Muhlestein
I tried for the heck of it, putting that one class in a jar file in the
default/lib folder.  Still got the same exception.

On Thu, 2003-02-20 at 13:39, Dennis Muhlestein wrote:
 *This message was transferred with a trial version of CommuniGate(tm) Pro*
 It may be interesting to note that the class it is trying to find is
 located in the war file that my application is located in.  Therefore,
 to load this class, the ClusteredHttpSessionBean is going to need access
 to that war file.
 
 Do I need to do something to enable this?  
 
 Thanks
 Dennis
 
 On Thu, 2003-02-20 at 12:41, Dennis Muhlestein wrote:
  *This message was transferred with a trial version of CommuniGate(tm) Pro*
  I am using tomcat embedded in jboss.  I've enabled http session
  clustering in the default configuration by copying cluster-service.xml,
  and jbossha-httpsession.sar to default/deploy and javagroups.jar to
  default/lib.
  
  When I set an attribute like a String into the session, things are
  working correctly.  Boxes can join the cluster and others can leave and
  things seem to cluster correctly.  However, I have one bean that will
  not cluster.  When I create this bean and add it to the session I get
  the error below.
  
  I'm using
  jboss 3.2RC2/tomcat 4.1.18 
  sun-jdk 1.4.1_01 on linux.
  
  Any thoughts on the below error?
  
  TIA
  -Dennis
  
  javax.ejb.EJBException: java.lang.ClassNotFoundException:
  registration.RegisterForm (no security manager: RMI class loader
  disabled)
  at
  org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl.unserializeSession(ClusteredHTTPSessionBeanImpl.java:139)
  at
  org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl.getSession(ClusteredHTTPSessionBeanImpl.java:79)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
  org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1044)
  at 
  org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:330)
  at
  org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:174)
  at
  org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
  at
  org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
  at
  org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:154)
  at
  org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
  at org.jboss.ejb.Container.invoke(Container.java:652)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
  org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  at
  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
  at
  org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
  at
  org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:88)
  at
  org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
  at
  org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
  at
  org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:112)
  at
  org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:82)
  at $Proxy38.getSession(Unknown Source)
  at
  org.jboss.ha.httpsession.server.ClusteredHTTPSessionService.getHttpSession(ClusteredHTTPSessionService.java:132)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
  org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  at
  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
  at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
  at $Proxy37.getHttpSession(Unknown Source)
  
  
  
  
  ---
  This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
  The most comprehensive and flexible code editor you can use.
  Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day

Re: [JBoss-user] HttpSessionClustering Problem: ClassNotFound nosecurity manager: RMI class loader disabled

2003-02-20 Thread Dennis Muhlestein
It may be interesting to note that the class it is trying to find is
located in the war file that my application is located in.  Therefore,
to load this class, the ClusteredHttpSessionBean is going to need access
to that war file.

Do I need to do something to enable this?  

Thanks
Dennis

On Thu, 2003-02-20 at 12:41, Dennis Muhlestein wrote:
 *This message was transferred with a trial version of CommuniGate(tm) Pro*
 I am using tomcat embedded in jboss.  I've enabled http session
 clustering in the default configuration by copying cluster-service.xml,
 and jbossha-httpsession.sar to default/deploy and javagroups.jar to
 default/lib.
 
 When I set an attribute like a String into the session, things are
 working correctly.  Boxes can join the cluster and others can leave and
 things seem to cluster correctly.  However, I have one bean that will
 not cluster.  When I create this bean and add it to the session I get
 the error below.
 
 I'm using
 jboss 3.2RC2/tomcat 4.1.18 
 sun-jdk 1.4.1_01 on linux.
 
 Any thoughts on the below error?
 
 TIA
 -Dennis
 
 javax.ejb.EJBException: java.lang.ClassNotFoundException:
 registration.RegisterForm (no security manager: RMI class loader
 disabled)
 at
 org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl.unserializeSession(ClusteredHTTPSessionBeanImpl.java:139)
 at
 org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl.getSession(ClusteredHTTPSessionBeanImpl.java:79)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1044) 
at 
 org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:330)
 at
 org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:174)
 at
 org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
 at
 org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
 at
 org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:154)
 at
 org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
 at org.jboss.ejb.Container.invoke(Container.java:652)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
 at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
 at
 org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
 at
 org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:88)
 at
 org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
 at
 org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
 at
 org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:112)
 at
 org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:82)
 at $Proxy38.getSession(Unknown Source)
 at
 org.jboss.ha.httpsession.server.ClusteredHTTPSessionService.getHttpSession(ClusteredHTTPSessionService.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
 at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
 at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
 at $Proxy37.getHttpSession(Unknown Source)
 
 
 
 
 ---
 This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
 The most comprehensive and flexible code editor you can use.
 Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
 www.slickedit.com/sourceforge
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code

[JBoss-user] HttpSessionClustering with EconomicSnapshotting on Jboss 3.2

2003-02-20 Thread Dennis Muhlestein
According the the clustering documents, I can use EconomicSnapshotting
with the HttpSessionCluster.  I get the following error when I enable
that attribute:

MBeans waiting for other MBeans:
[ObjectName: jboss.web:service=WebServer
 state: FAILED
 I Depend On:
 Depends On Me: org.jboss.deployment.DeploymentException: No Attribute
found with name: EconomicSnapshotting]

relevent section of tomcat41-service.xml:

attribute name=CatalinaHomecatalina.home;/attribute
   

!-- Uncomment this if you want interval snapshot for the
 session clustering.
attribute name=SnapshotModeinterval/attribute
attribute name=SnapshotInterval2000/attribute
--
attribute name=EconomicSnapshottingtrue/attribute
attribute name=Config

TIA
-Dennis

You guys are great.





---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jbossha-httpsession.sar

2003-02-19 Thread Dennis Muhlestein
Is it possible for a node to be part of more than one partition?
What if I introduced partitionC that contains node A,B,C,D.  And
deployed the ClusteredHttpSession to that partition?  ie: node A is part
of partition A  C.

Any Thoughts?  Is there a better approach to this?  
Thanks for your input
-Dennis

On Wed, 2003-02-19 at 07:31, Jules Gosnell wrote:
 Dennis Muhlestein wrote:
  Could I have http sessions clusters accross two cluster partitions?
  
  ie: Clustered jboss servers A  B are on partitionA
  Clustered jboss servers C  D are on partitionB
  Apache aA Load Balances between A  B.
  Apache aB Load balances between C  D.
  
  Hardware loadbalancer manages apache aA  aB.
  
  I want to take aB out of the pool and still have all the clients http
  sessions be valid for partitionA.  Then I can deploy partitionB - test -
  whatever.. then switch hardware balancer to aB from aA and have all
  clients now using partitionB with their still valid sessions.  If no,
  has anyone solved this situation?
 
 Jetty
 
 NO.
 
 Session replication is scoped precisely by partition extent - they are 
 one and the same.
 
 To share sessions two nodes MUST be in the same partition/subCluster.
 
 In fact, if your h/w lb is not session-aware the config you have 
 detailed will not work because requests pertaining to sessions stored in 
 partitionA may be routed to nodes that are not on that partition.
 
 Jules
 
  
  Thoughts, comments?
  
  TIA
  -Dennis
  
  
  
  ---
  This sf.net email is sponsored by:ThinkGeek
  Welcome to geek heaven.
  http://thinkgeek.com/sf
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 
 ---
 This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
 The most comprehensive and flexible code editor you can use.
 Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
 www.slickedit.com/sourceforge
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.0RC2 is now available

2003-02-19 Thread Dennis Muhlestein
Actually, it is the same bug that someone has already listed on
sourceforge.  I didn't start run.sh from the bin directory.

Thanks for the response though.

-Dennis

On Wed, 2003-02-19 at 13:32, Scott M Stark wrote:
 Provide more details as it works fine for me:
 
 12:25:42,859 INFO  [MainDeployer] Starting deployment of package:
 file:/C:/tmp/JBoss/jboss-3.2.0RC2_tomcat.4.1.18/server/default/deploy/jmx-console.war/
 12:25:43,015 INFO  [EmbeddedCatalinaService41] deploy, ctxPath=/jmx-console,
 warUrl=file:/C:/tmp/JBoss/jboss-3.2.0RC2_tomcat.4.1.18/server/default/deploy/jmx-console.war/
 12:25:43,031 INFO  [Engine] WebappLoader[/jmx-console]: Deploying class repositories 
 to work directory
 C:\tmp\JBoss\jboss-3.2.0RC2_tomcat.4.1.18\tomcat-4.1.x\work\MainEngine\localhost\jmx-console
 12:25:43,031 INFO  [Engine] WebappLoader[/jmx-console]: Deploy class files 
 /WEB-INF/classes to
 C:\tmp\JBoss\jboss-3.2.0RC2_tomcat.4.1.18\server\default\deploy\jmx-console.war\WEB-INF\classes
 12:25:43,046 INFO  [Engine] WebappLoader[/jmx-console]: Deploy JAR 
 /WEB-INF/lib/jboss-jmx.jar to
 C:\tmp\JBoss\jboss-3.2.0RC2_tomcat.4.1.18\server\default\deploy\jmx-console.war\WEB-INF\lib\jboss-jmx.jar
 12:25:43,875 INFO  [Engine] ContextConfig[/jmx-console]: Added certificates - 
 request attribute Valve
 12:25:44,234 INFO  [EmbeddedCatalinaService41] Using Java2 parent classloader 
 delegation: true
 12:25:44,234 INFO  [Engine] StandardManager[/jmx-console]: Seeding random number 
 generator class java.security.SecureRandom
 12:25:44,234 INFO  [Engine] StandardManager[/jmx-console]: Seeding of random number 
 generator has been completed
 12:25:44,234 INFO  [Engine] StandardWrapper[/jmx-console:default]: Loading container 
 servlet default
 12:25:44,234 INFO  [Engine] StandardWrapper[/jmx-console:invoker]: Loading container 
 servlet invoker
 12:25:44,265 INFO  [MainDeployer] Deployed package:
 file:/C:/tmp/JBoss/jboss-3.2.0RC2_tomcat.4.1.18/server/default/deploy/jmx-console.war/
 12:25:44,265 INFO  [URLDeploymentScanner] Started
 12:25:44,312 INFO  [MainDeployer] Deployed package:
 file:/C:/tmp/JBoss/jboss-3.2.0RC2_tomcat.4.1.18/server/default/conf/jboss-service.xml
 12:25:44,312 INFO  [Server] JBoss (MX MicroKernel) [3.2.0RC2 (build: 
 CVSTag=JBoss_3_2_0_RC2 date=200302171630)] Started in
 20s:250ms
 
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 - Original Message -
 From: Dennis Muhlestein [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, February 19, 2003 11:26 AM
 Subject: Re: [JBoss-user] 3.2.0RC2 is now available
 
 
  Using the tomcat41 bundle I with 3.2, I can't start the jmx-console.
  Get the following error:
 
  (jdk1.4.1
   jboss 3.2
   tomcat 4.1.18 ) default config
 
  I also tried with another war file and got the same thing but on a
  different jar file
 
  Exception below:
  Thanks
  Dennis
 
 
 
 ---
 This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
 The most comprehensive and flexible code editor you can use.
 Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
 www.slickedit.com/sourceforge
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jboss 3.2 http session clustering

2003-02-18 Thread Dennis Muhlestein
I've seen a lot of talk about http session clustering in branch
JBoss_3_0.

How about the 3.2 branch? Anyone tried it.  Is 3.2 covered well in the
jboss clustering docs?

TIA
-Dennis



---
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] jbossha-httpsession.sar

2003-02-18 Thread Dennis Muhlestein
Could I have http sessions clusters accross two cluster partitions?

ie: Clustered jboss servers A  B are on partitionA
Clustered jboss servers C  D are on partitionB
Apache aA Load Balances between A  B.
Apache aB Load balances between C  D.

Hardware loadbalancer manages apache aA  aB.

I want to take aB out of the pool and still have all the clients http
sessions be valid for partitionA.  Then I can deploy partitionB - test -
whatever.. then switch hardware balancer to aB from aA and have all
clients now using partitionB with their still valid sessions.  If no,
has anyone solved this situation?

Thoughts, comments?

TIA
-Dennis



---
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] OutOfMemoryError: unable to create new native thread

2002-12-23 Thread Dennis Muhlestein
Hi All,

We've launched!  And we're using version 3.0.4  in Production.  During
Development, we never had any problems, but now on the live servers, we
get the following exception.  It's occurred 4 or 5 different times and
always has the same stack trace.  There isn't any other output to help
figure out what's going on besides this though.


2002-12-18 18:04:26,649 ERROR [STDERR] java.lang.OutOfMemoryError:
unable to create new native thread
2002-12-18 18:04:26,649 ERROR [STDERR]  at java.lang.Thread.start(Native
Method)
2002-12-18 18:04:26,650 ERROR [STDERR]  at
org.jnp.server.Main.listen(Main.java:311)
2002-12-18 18:04:26,650 ERROR [STDERR]  at
org.jnp.server.Main.run(Main.java:279)
2002-12-18 18:04:26,650 ERROR [STDERR]  at
java.lang.Thread.run(Thread.java:536)


We have to stop jboss and start it again when this happends.

I'd like to find out more reliably how many threads are being used by
jboss.  We don't have much load yet.  ps -u jboss | wc -l is 52 right
now.  It hasn't fluctuated much from that, but is that an accurate
number of threads being used?  I saw some discussion on the development
list about number of threads being more than that but am not quite sure
the best way to tell.  Any advise appreciated!

Anyway, if anyone has experienced something similar and found a way
around it, I'd be very greatfull to hear.

We're Using:

sun-jdk 1.4.1.01
gentoo linux
dual processor 
4 gigs memory
Here is the command line used when starting jboss:

/opt/sun-jdk-1.4.1.01/bin/java-Xmx3072M-Dprogram.name=run.sh-classpath/opt/jboss-3.0.4/bin/run.jar:/opt/sun-jdk-1.4.1.01/lib/tools.jarorg.jboss.Main


Thanks
Dennis



---
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] OutOfMemoryError: unable to create new nativethread

2002-12-23 Thread Dennis Muhlestein
Actually, We are using Postgresql and SQLServer.  Interesting combo
isn't it.

Here is some more pertinent information though.  We are able to
reproduce the problem by hammering (jmeter) a certain page that queries
out some entities.

We have a box with 4 gigs of ram, and we started jboss with -Xmx3072M.
Why not have an app server that can use lots of memory right?  Well,
just Barely, we thought that we'll try 512M and 1024M instead to see
what happens and wallahh, no MemoryError when we hammer the page.  

I don't know if the problem is fixed, but it does seem kind of weird
that it occurred when allowing java to run with the bigger heap size.  

I'm thinking that some more tests looking into the java/JAVA_OPTS side
of things instead of the jboss side of things will shed more light on
why this occurred in the first place anyway.  I guess is what I'm saying
is I don't think it's specific to JBoss.  Rather, it has to do with java
and the configuration of the hardware/memory.

-Dennis


On Mon, 2002-12-23 at 14:56, Schnitzer, Jeff wrote:
 Are you using Oracle?
 
 We had the same problem.  OutOfMemoryError: unable to create new native
 thread with no obvious explanation; we weren't anywhere near the OS
 thread limit or any other limit we could determine.
 
 After a lot of experimentation, we finally traced the problem down to
 the Oracle OCI driver.  Switching to the thin driver made the problem go
 away.  It also cured a serious memory leak (about 1 GB every 36 hours)
 in the native code (Java heap was normal).
 
 We are using Oracle 9i RAC with the 9.2.0.1 jdbc driver for jdk 1.4.  We
 didn't see the problem on Solaris - only Linux.  We wanted to use the
 OCI driver to support Transparent Application Failover, but instead it
 seems to have provided only Chronic Application Failure :-(
 
 Jeff Schnitzer
 [EMAIL PROTECTED]
 The Sims Online
 
  -Original Message-
  From: Dennis Muhlestein [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 23, 2002 10:16 AM
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] OutOfMemoryError: unable to create new native
 thread
  
  Hi All,
  
  We've launched!  And we're using version 3.0.4  in Production.  During
  Development, we never had any problems, but now on the live servers,
 we
  get the following exception.  It's occurred 4 or 5 different times and
  always has the same stack trace.  There isn't any other output to help
  figure out what's going on besides this though.
  
  
  2002-12-18 18:04:26,649 ERROR [STDERR] java.lang.OutOfMemoryError:
  unable to create new native thread
  2002-12-18 18:04:26,649 ERROR [STDERR]  at
 java.lang.Thread.start(Native
  Method)
  2002-12-18 18:04:26,650 ERROR [STDERR]  at
  org.jnp.server.Main.listen(Main.java:311)
  2002-12-18 18:04:26,650 ERROR [STDERR]  at
  org.jnp.server.Main.run(Main.java:279)
  2002-12-18 18:04:26,650 ERROR [STDERR]  at
  java.lang.Thread.run(Thread.java:536)
  
  
  We have to stop jboss and start it again when this happends.
  
  I'd like to find out more reliably how many threads are being used by
  jboss.  We don't have much load yet.  ps -u jboss | wc -l is 52
 right
  now.  It hasn't fluctuated much from that, but is that an accurate
  number of threads being used?  I saw some discussion on the
 development
  list about number of threads being more than that but am not quite
 sure
  the best way to tell.  Any advise appreciated!
  
  Anyway, if anyone has experienced something similar and found a way
  around it, I'd be very greatfull to hear.
  
  We're Using:
  
  sun-jdk 1.4.1.01
  gentoo linux
  dual processor
  4 gigs memory
  Here is the command line used when starting jboss:
  
  /opt/sun-jdk-1.4.1.01/bin/java-Xmx3072M-Dprogram.name=run.sh-
  classpath/opt/jboss-3.0.4/bin/run.jar:/opt/sun-jdk-
  1.4.1.01/lib/tools.jarorg.jboss.Main
  
  
  Thanks
  Dennis
  
  
  
  ---
  This sf.net email is sponsored by:ThinkGeek
  Welcome to geek heaven.
  http://thinkgeek.com/sf
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




---
This sf.net email is sponsored by: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] lazy-load-groups not honored in 3.0 final

2002-06-13 Thread Dennis Muhlestein

You were correct.  When I placed a read-ahead tag at the query level,
my finder stopped loading all fields.  

I tried placing read-ahead at the entity level and nothing changed
though.  Is that correct behavior?  I tried both on-load and on-find for
the strategy.

Also, I still have another bean with 60+ fields and when I load it.
(Only one found with the findByPrimaryKey method) the eager-load-group
does not seem to be acknowleged.  I tried putting a read-ahead at the
entity level with strategy = on-load and specifying the eager-load-group
but the whole bean is still being loaded.  Before 3.0 final this
worked.  I didn't change this bean at all.  I just noticed the problem
when I added my new bean.

Any suggestions appreciated.
-Dennis


On Wed, 2002-06-12 at 14:32, Dain Sundstrom wrote:
 The query you have posted here is using read ahead on-load.  This means 
 that the entity you are loading was located using a finder, ejbSelect or 
 cmr-field. When you locate an object using one of these methods, the 
 default eager loading specification is overridden.  By default a finder 
 will eager load on-load all of the fields in an entity.  You can specify 
 the read-ahead loadgroup in the query specification, or at the entity level.
 
 -dain
 
 Dennis Muhlestein wrote:
 
 Did you specify the default eager-load-group for the entity 
 you are having a problem?
 
  
  It's right in there. (See xml below)
  eager-load-groupHeader/
  
  JBoss, before 3.0 final, didn't load it until I viewed a message.  Now,
  on this EJB (with 3.0 final), (And my other really big EJB) all fields
  are loaded instead of in their respective load groups.
  
  JBoss prints this when loading messages.
  
  Executing SQL: SELECT Id,Owner, ToUser, FromUser, Created, Subject,
  Message, FolderId FROM Messages WHERE (Id=?) OR (Id=?)..
  
  The Message Field is not in the eager load group as far as I can tell.
  
  Does the Xml Look correct?  My validator doesn't find any problems.
  
  Thanks for your time..
  Dennis
  
  
  On Wed, 2002-06-12 at 12:57, Dain Sundstrom wrote:
  
 That is an eager load problem.  Lazy loading only happens when faulting 
 in data.  Did you specify the default eager-load-group for the entity 
 you are having a problem?
 
 -dain
 
 Dennis Muhlestein wrote:
 
 
 Here is my dtd:
 !DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 3.0//EN
 http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd;
 
 Here is my load section:
 
 load-groups
 load-group

load-group-nameHeader/load-group-name  
  
 field-nameowner/field-name
 field-nametoUser/field-name
 field-namefromUser/field-name
 field-namecreated/field-name
 field-namesubject/field-name
 field-namefolderId/field-name
 /load-group
 load-group
 load-group-nameBody/load-group-name
 field-namemessage/field-name
 /load-group
 /load-groups
 eager-load-groupHeader/eager-load-group
 lazy-load-groups
 load-group-nameBody/load-group-name
 /lazy-load-groups
 
 
 I don't get any warnings and When My MessageEJB loads, the message field
 is loaded as well.
 
 JBoss 3.0 final / SuSE Linux 7.3 / sun jdk1.4.0 
 
 I don't get any jboss messages when I deploy.  Not quite as big a deal
 on this ejb, but I have another one with many fields.  It has about 6
 load groups bit it is also being loaded all at once.
 
 Thanks Dennis
 
 
 On Wed, 2002-06-12 at 11:08, Dain Sundstrom wrote:
 
 
 The declaration of lazy load groups did change.  Does your 
 jbosscmp-jdbc.xml file declare a DOCTYPE?  If not, add it and you will 
 see messages telling you where the problem are.  The JBossCMP 
 documentation contains a complete read-ahead example, and it does lazy 
 loading correctly.
 
 -dain
 
 Dennis Muhlestein wrote:
 
 
 
 I have a couple ejbs that have an eager and multiple lazy load groups.
 
 I set them on on 3.0 rc23 and everything worked fine.  Now, on 3.0
 final.  I noticed that in my debug output of sql, the entire ejb is
 being loaded again.
 
 Has anything changed?  Maybe someone can verify this before I post a bug
 or something.
 
 Thanks
 Dennis
 
 
 
 
 ___
 
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 ___
 
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user

Re: [JBoss-user] lazy-load-groups not honored in 3.0 final

2002-06-13 Thread Dennis Muhlestein

 
  
  Also, I still have another bean with 60+ fields and when I load it.
  (Only one found with the findByPrimaryKey method) the eager-load-group
  does not seem to be acknowleged.  I tried putting a read-ahead at the
  entity level with strategy = on-load and specifying the eager-load-group
  but the whole bean is still being loaded.  Before 3.0 final this
  worked.  I didn't change this bean at all.  I just noticed the problem
  when I added my new bean.
 
 
 Because you are using a finder you will get the default on-load 
 configuration from the defaults section.  Can you specify a read-ahead 
 for the findByPrimaryKey query?  I don't think you can.
 
 How do you think this should work for findByPrimaryKey?
 
 -dain


Seems to me that findByPrimaryKey should honor the eager-load-group with
no read-ahead strategy specified.  Otherwise, why is there an
eager-load-group tag at all (except for nested in the read-ahead tag)?

Right now my jbosscmp-jdbc.xml has the following:

load-groups
group/names/fields
/...
eager-load-groupOneGroupName/eager-load-group
lazy-load-groups
more groups
/...


I can't get the eager-load-group under any finders or other methods of
finding the bean unless I add in a read-ahead section inside a query.  I
was hoping someone could verify this.

Thanks for your input.
Dennis


 
 
 
 ___
 
 Don't miss the 2002 Sprint PCS Application Developer's Conference
 August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



___

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

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



Re: [JBoss-user] lazy-load-groups not honored in 3.0 final

2002-06-13 Thread Dennis Muhlestein

 The eager-load-group tag does not make any since (and is not allowed) at 
 the base query level.   In the query you are reading ahead a group.
 
 -dain


Guess that makes sense.  So basically if I want to perform
a findByPrimaryKey(...) it is going to load the entire entity no matter
what the default eager-load-group says.

But... I could specify a read-ahead strategy at the entity level and
override the entire bean being loaded.  

But... that is being ignored in JBoss 3.0 final now so when it is fixed
This will all work as expected.

Did I restat this issue correctly?  We lookup an account ejb quite often
but we only need a few fields.  It will slow our application down quite
a bit if that bean loads more then the eager load group when if look it
up I believe.

Thanks
Dennis


On Thu, 2002-06-13 at 14:25, Dain Sundstrom wrote:
 Dennis Muhlestein wrote:
 
  Seems to me that findByPrimaryKey should honor the eager-load-group with
  no read-ahead strategy specified.  Otherwise, why is there an
  eager-load-group tag at all (except for nested in the read-ahead tag)?
 
 
 The eager-load-group element is for entities that do not have an 
 associated result information.  For example it the list cache is very 
 small there will be no info stored for the entity, then it will fall 
 back to the default eager load code.
 
  
  Right now my jbosscmp-jdbc.xml has the following:
  
  load-groups
  group/names/fields
  /...
  eager-load-groupOneGroupName/eager-load-group
  lazy-load-groups
  more groups
  /...
  
  
  I can't get the eager-load-group under any finders or other methods of
  finding the bean unless I add in a read-ahead section inside a query.  I
  was hoping someone could verify this.
 
 
 The eager-load-group tag does not make any since (and is not allowed) at 
 the base query level.   In the query you are reading ahead a group.
 
 -dain
 
 
 
 ___
 
 Don't miss the 2002 Sprint PCS Application Developer's Conference
 August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



___

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

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



[JBoss-user] lazy-load-groups not honored in 3.0 final

2002-06-12 Thread Dennis Muhlestein

I have a couple ejbs that have an eager and multiple lazy load groups.

I set them on on 3.0 rc23 and everything worked fine.  Now, on 3.0
final.  I noticed that in my debug output of sql, the entire ejb is
being loaded again.

Has anything changed?  Maybe someone can verify this before I post a bug
or something.

Thanks
Dennis




___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] lazy-load-groups not honored in 3.0 final

2002-06-12 Thread Dennis Muhlestein

Here is my dtd:
!DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 3.0//EN
http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd;

Here is my load section:

load-groups
load-group
   
load-group-nameHeader/load-group-name  
  
field-nameowner/field-name
field-nametoUser/field-name
field-namefromUser/field-name
field-namecreated/field-name
field-namesubject/field-name
field-namefolderId/field-name
/load-group
load-group
load-group-nameBody/load-group-name
field-namemessage/field-name
/load-group
/load-groups
eager-load-groupHeader/eager-load-group
lazy-load-groups
load-group-nameBody/load-group-name
/lazy-load-groups


I don't get any warnings and When My MessageEJB loads, the message field
is loaded as well.

JBoss 3.0 final / SuSE Linux 7.3 / sun jdk1.4.0 

I don't get any jboss messages when I deploy.  Not quite as big a deal
on this ejb, but I have another one with many fields.  It has about 6
load groups bit it is also being loaded all at once.

Thanks Dennis


On Wed, 2002-06-12 at 11:08, Dain Sundstrom wrote:
 The declaration of lazy load groups did change.  Does your 
 jbosscmp-jdbc.xml file declare a DOCTYPE?  If not, add it and you will 
 see messages telling you where the problem are.  The JBossCMP 
 documentation contains a complete read-ahead example, and it does lazy 
 loading correctly.
 
 -dain
 
 Dennis Muhlestein wrote:
 
  I have a couple ejbs that have an eager and multiple lazy load groups.
  
  I set them on on 3.0 rc23 and everything worked fine.  Now, on 3.0
  final.  I noticed that in my debug output of sql, the entire ejb is
  being loaded again.
  
  Has anything changed?  Maybe someone can verify this before I post a bug
  or something.
  
  Thanks
  Dennis
  
  
  
  
  ___
  
  Sponsored by:
  ThinkGeek at http://www.ThinkGeek.com/
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 
 ___
 
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] lazy-load-groups not honored in 3.0 final

2002-06-12 Thread Dennis Muhlestein

Did you specify the default eager-load-group for the entity 
 you are having a problem?

It's right in there. (See xml below)
eager-load-groupHeader/

JBoss, before 3.0 final, didn't load it until I viewed a message.  Now,
on this EJB (with 3.0 final), (And my other really big EJB) all fields
are loaded instead of in their respective load groups.

JBoss prints this when loading messages.

Executing SQL: SELECT Id,Owner, ToUser, FromUser, Created, Subject,
Message, FolderId FROM Messages WHERE (Id=?) OR (Id=?)..

The Message Field is not in the eager load group as far as I can tell.

Does the Xml Look correct?  My validator doesn't find any problems.

Thanks for your time..
Dennis


On Wed, 2002-06-12 at 12:57, Dain Sundstrom wrote:
 That is an eager load problem.  Lazy loading only happens when faulting 
 in data.  Did you specify the default eager-load-group for the entity 
 you are having a problem?
 
 -dain
 
 Dennis Muhlestein wrote:
 
  Here is my dtd:
  !DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 3.0//EN
  http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd;
  
  Here is my load section:
  
  load-groups
  load-group
 
  load-group-nameHeader/load-group-name  
  
  field-nameowner/field-name
  field-nametoUser/field-name
  field-namefromUser/field-name
  field-namecreated/field-name
  field-namesubject/field-name
  field-namefolderId/field-name
  /load-group
  load-group
  load-group-nameBody/load-group-name
  field-namemessage/field-name
  /load-group
  /load-groups
  eager-load-groupHeader/eager-load-group
  lazy-load-groups
  load-group-nameBody/load-group-name
  /lazy-load-groups
  
  
  I don't get any warnings and When My MessageEJB loads, the message field
  is loaded as well.
  
  JBoss 3.0 final / SuSE Linux 7.3 / sun jdk1.4.0 
  
  I don't get any jboss messages when I deploy.  Not quite as big a deal
  on this ejb, but I have another one with many fields.  It has about 6
  load groups bit it is also being loaded all at once.
  
  Thanks Dennis
  
  
  On Wed, 2002-06-12 at 11:08, Dain Sundstrom wrote:
  
 The declaration of lazy load groups did change.  Does your 
 jbosscmp-jdbc.xml file declare a DOCTYPE?  If not, add it and you will 
 see messages telling you where the problem are.  The JBossCMP 
 documentation contains a complete read-ahead example, and it does lazy 
 loading correctly.
 
 -dain
 
 Dennis Muhlestein wrote:
 
 
 I have a couple ejbs that have an eager and multiple lazy load groups.
 
 I set them on on 3.0 rc23 and everything worked fine.  Now, on 3.0
 final.  I noticed that in my debug output of sql, the entire ejb is
 being loaded again.
 
 Has anything changed?  Maybe someone can verify this before I post a bug
 or something.
 
 Thanks
 Dennis
 
 
 
 
 ___
 
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 ___
 
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
  
  
  
  ___
  
  Sponsored by:
  ThinkGeek at http://www.ThinkGeek.com/
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 
 ___
 
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Interesting Remove Exception

2002-06-10 Thread Dennis Muhlestein


I'm getting a remove Exception but I'm not sure why.  I have a sfsb that
issues the remove command within a transaction context.  The sql debug 
prints that jboss is issuing the command delete from ... where id =?
The data is actually deleted from the database. (This is because the
myEJB.remove() is within a try catch block.  if I let the
RemoveException be thrown, the data is rolled back.)  Regardless, the
removeexception is thrown.  If I catch it, the data stayes removed.  

I'm not sure why the RemoveException is being thrown in the first place.
Maybe someone can tell from the stack trace.

Thanks
Dennis




09:40:08,462 ERROR [STDERR] javax.ejb.RemoveException: Could not remove
entity
09:40:08,464 ERROR [STDERR] at
org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.execute(JDBCRemoveEntityCommand.java:107)
09:40:08,464 ERROR [STDERR] at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.removeEntity(JDBCStoreManager.java:559)
 09:40:08,464 ERROR [STDERR] at 
org.jboss.ejb.plugins.CMPPersistenceManager.removeEntity(CMPPersistenceManager.java:542)09:40:08,464
 ERROR [STDERR] at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.removeEntity(CachedConnectionInterceptor.java:431)
09:40:08,464 ERROR [STDERR] at
org.jboss.ejb.EntityContainer.remove(EntityContainer.java:506)
09:40:08,464 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:40:08,465 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09:40:08,465 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09:40:08,465 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:324)
09:40:08,465 ERROR [STDERR] at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1174)
09:40:08,465 ERROR [STDERR] at
org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:190)
09:40:08,465 ERROR [STDERR] at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:340)
09:40:08,465 ERROR [STDERR] at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
09:40:08,466 ERROR [STDERR] at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:193)
09:40:08,466 ERROR [STDERR] at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
09:40:08,466 ERROR [STDERR] at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
09:40:08,466 ERROR [STDERR] at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96)
09:40:08,466 ERROR [STDERR] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
09:40:08,466 ERROR [STDERR] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)
09:40:08,466 ERROR [STDERR] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129)
09:40:08,466 ERROR [STDERR] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
09:40:08,467 ERROR [STDERR] at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
09:40:08,467 ERROR [STDERR] at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:296)
09:40:08,467 ERROR [STDERR] at
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
09:40:08,467 ERROR [STDERR] at $Proxy2068.remove(Unknown Source)
09:40:08,467 ERROR [STDERR] at
com.datemate.ejb.messaging.MessageCenterBean.deleteFolder(MessageCenterBean.java:90)
09:40:08,467 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:40:08,467 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09:40:08,467 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09:40:08,468 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:324)
09:40:08,468 ERROR [STDERR] at
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:823)
09:40:08,468 ERROR [STDERR] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129)
09:40:08,468 ERROR [STDERR] at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
09:40:08,468 ERROR [STDERR] at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:266)
09:40:08,468 ERROR [STDERR] at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96)
09:40:08,468 ERROR [STDERR] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
09:40:08,468 ERROR [STDERR] at

Re: AW: [JBoss-user] HELP : Stable JVM for running JBoss on Redhat7.2(smp) ??

2002-05-24 Thread Dennis Muhlestein

First of all, I agree there may be better JVMs than sun's rpm for
redhat, like BlackDown or whatever.  I haven't spent a lot of time on
that subject.

In reguards to SuSE vs RedHat though, Our company switch to SuSE when
RedHat started compiling itself with beta gcc compilers like  2.95 gcc.

We had difficulty with a number of programs because of the bugs in
RedHats software.  RedHat claimed to have fixed these things but it
didn't make sense why everything always broke!  We made this switch
before using JBoss, so I don't know if there are any specific advantages
in reguards to JBoss.

SuSE in general though, IMHO is easier to configure, and more suited to
the end user as far as linux distributions are concerned.  They give you
a great rd.config file that controls all the nitty details in an easy
manner, and they have an easy to install/update interface.  Heck, their
installer even boots the box up without rebooting when you install the
first time.

SuSE should pay me advertising fees for this.

:-)
-Dennis


On Thu, 2002-05-23 at 09:32, Stefan Groschupf wrote:
 ps. SuSE is way better than RedHat :-)
 
 Really? Why? (in context to using jboss with it? )
 I'm using Suse, but want to switch to red hat, because we had some trouble
 to get the newest rpm versions for suse. Eg. Postgres.
 
 bye
 Stefan
 
 
 
 
 
 ___
 
 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
 



___

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] HELP : Stable JVM for running JBoss on Redhat 7.2(smp) ??

2002-05-23 Thread Dennis Muhlestein

We're using SuSE linux now but before, when we had red-hat, I remember
it was extermely important to install the jvm via rpm from sun.  You can
download a tar.gz jvm or you can get the red-hat rpm.  If we used the
tar.gz version it failed miserably all the time.  When we installed
their rpm things worked.

Hope this helps.

ps. SuSE is way better than RedHat :-)
-Dennis


On Thu, 2002-05-23 at 02:29, Craig O'Shannessy wrote:
 Hi,
 
 I am desperately trying to keep JBoss running without the JVM crashing on
 Redhat 7.2.  I have spent days trying to track down the problems, but to
 no avail.  I cannot find a stable JVM to run with JBoss (both 2.4.5 or
 3.0.0_RC2).  We need to import large amounts of legacy data, and I can't
 get more than 10% of the way through before the JVM crashes.
 
 Does anyone have a stable PRODUCTION JBoss environment running on Redhat
 7.2 SMP??, if so, please let me know what JDK you are using, and any
 patches you have had to apply.
 
 I have tried the following JDK's
 
 Sun JDK 1.4.0
 Sun JDK 1.3.1
 Sun JDK 1.3.1_03
 IBM JDK 1.3.1_01  (had to use LD_ASSUME_KERNEL=2.2.5 for smp machine)
 Blackdown JDK 1.3.1_01 (both native and green threads, both give sig 11)
 
 ALL of them crash (with Signal 11, SEGV) (both the smp (dual athlon)
 machine and uni processor machines).  I have been researching this with a
 colleague for days, and no one seems to have a solution to this issue.  If
 you have faced this issue and solved it, PLEASE let me know!
 
 I upgraded glibc*rpm which helped with a SMP specific (pthreads) sig. 11
 crash, but I am still don't have a production qualitiy environment.
 
 HELP!!  I *REALLY* don't want to have to run this server on windoze, and
 we have to deploy soon.
 
 Please CC me in any reply.
 
 Thanks,
 
 Craig O'Shannessy
 
 
 
 
 ___
 
 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
 



___

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] schedulables

2002-05-20 Thread Dennis Muhlestein

Today, when I did a cvs update my schedulables stopped running.

I implement org.jboss.varia.scheduler.Schedulable

I use a jboss-service.xml and wrap the code into an sar file.

I haven't changed anything with my code.  Friday it worked, and ran on
the schedule I specified.  Today it doesn't work.

Anyone else having this type of problem?

Thanks
Dennis


___
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

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



Re: [JBoss-user] schedulables

2002-05-20 Thread Dennis Muhlestein

Also: The scheduler-service.xml doesn't work either.

I do get the following output but then I never get the scheduled event.

-Dennis

2002-05-20 10:34:46,074 DEBUG [org.jboss.system.ServiceConfigurator]
InitialStartDate set to 0 in jboss:service=Scheduler
2002-05-20 10:34:46,074 DEBUG [org.jboss.varia.scheduler.Scheduler]
Initial Start Date is set to: Wed Dec 31 16:00:00 PST 1969
2002-05-20 10:34:46,074 DEBUG [org.jboss.system.ServiceConfigurator]
SchedulePeriod set to 1 in jboss:service=Scheduler
2002-05-20 10:34:46,075 DEBUG [org.jboss.system.ServiceConfigurator]
InitialRepetitions set to -1 in jboss:service=Scheduler
2002-05-20 10:34:46,075 INFO  [org.jboss.varia.scheduler.Scheduler]
Creating
2002-05-20 10:34:46,075 INFO  [org.jboss.varia.scheduler.Scheduler]
Created
2002-05-20 10:34:46,075 DEBUG [org.jboss.deployment.MainDeployer] Done
with create step of deploying scheduler-service.xml
2002-05-20 10:34:46,076 DEBUG [org.jboss.deployment.MainDeployer] start
step for deployment
file:/home/dennis/usr/jboss-all/build/output/jboss-3.0.0RC3/server/default/deploy/scheduler-service.xml
2002-05-20 10:34:46,076 DEBUG [org.jboss.deployment.SARDeployer]
Deploying SAR, start step: url
file:/home/dennis/usr/jboss-all/build/output/jboss-3.0.0RC3/server/default/deploy/scheduler-service.xml
2002-05-20 10:34:46,076 INFO  [org.jboss.varia.scheduler.Scheduler]
Starting
2002-05-20 10:34:46,076 DEBUG [org.jboss.varia.scheduler.Scheduler]
Start Scheduler on start up time
2002-05-20 10:34:46,077 DEBUG [org.jboss.varia.scheduler.Scheduler] Old
start date: Wed Dec 31 16:00:00 PST 1969, now: Mon May
20 10:34:46 PDT 2002, Skip repeats: 102191609
2002-05-20 10:34:46,077 DEBUG [org.jboss.varia.scheduler.Scheduler]
Schedule initial call to: Mon May 20 10:34:50 PDT 2002, remaining
repetitions: -1
2002-05-20 10:34:46,077 INFO  [org.jboss.varia.scheduler.Scheduler]
Started
2002-05-20 10:34:46,078 DEBUG [org.jboss.deployment.MainDeployer] Final
(start) deployment step successfully completed on package:
scheduler-service.xml
2002-05-20 10:34:46,078 INFO  [org.jboss.deployment.MainDeployer]
Successfully completed deployment of package:
file:/home/dennis/usr/jboss-all/build/output/jboss-3.0.0RC3/server/default/deploy/scheduler-service.xml


On Mon, 2002-05-20 at 10:33, Dennis Muhlestein wrote:
 Today, when I did a cvs update my schedulables stopped running.
 
 I implement org.jboss.varia.scheduler.Schedulable
 
 I use a jboss-service.xml and wrap the code into an sar file.
 
 I haven't changed anything with my code.  Friday it worked, and ran on
 the schedule I specified.  Today it doesn't work.
 
 Anyone else having this type of problem?
 
 Thanks
 Dennis
 
 
 ___
 Hundreds of nodes, one monster rendering program.
 Now that's a super model! Visit http://clustering.foundries.sf.net/
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



___
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

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



Re: [JBoss-user] schedulables

2002-05-20 Thread Dennis Muhlestein

Nevermind, I rebuilt everything and it works again.
Funny, oh well.

-Dennis

On Mon, 2002-05-20 at 10:49, Dennis Muhlestein wrote:
 Also: The scheduler-service.xml doesn't work either.
 
 I do get the following output but then I never get the scheduled event.
 
 -Dennis
 
 2002-05-20 10:34:46,074 DEBUG [org.jboss.system.ServiceConfigurator]
 InitialStartDate set to 0 in jboss:service=Scheduler
 2002-05-20 10:34:46,074 DEBUG [org.jboss.varia.scheduler.Scheduler]
 Initial Start Date is set to: Wed Dec 31 16:00:00 PST 1969
 2002-05-20 10:34:46,074 DEBUG [org.jboss.system.ServiceConfigurator]
 SchedulePeriod set to 1 in jboss:service=Scheduler
 2002-05-20 10:34:46,075 DEBUG [org.jboss.system.ServiceConfigurator]
 InitialRepetitions set to -1 in jboss:service=Scheduler
 2002-05-20 10:34:46,075 INFO  [org.jboss.varia.scheduler.Scheduler]
 Creating
 2002-05-20 10:34:46,075 INFO  [org.jboss.varia.scheduler.Scheduler]
 Created
 2002-05-20 10:34:46,075 DEBUG [org.jboss.deployment.MainDeployer] Done
 with create step of deploying scheduler-service.xml
 2002-05-20 10:34:46,076 DEBUG [org.jboss.deployment.MainDeployer] start
 step for deployment
 
file:/home/dennis/usr/jboss-all/build/output/jboss-3.0.0RC3/server/default/deploy/scheduler-service.xml
 2002-05-20 10:34:46,076 DEBUG [org.jboss.deployment.SARDeployer]
 Deploying SAR, start step: url
 
file:/home/dennis/usr/jboss-all/build/output/jboss-3.0.0RC3/server/default/deploy/scheduler-service.xml
 2002-05-20 10:34:46,076 INFO  [org.jboss.varia.scheduler.Scheduler]
 Starting
 2002-05-20 10:34:46,076 DEBUG [org.jboss.varia.scheduler.Scheduler]
 Start Scheduler on start up time
 2002-05-20 10:34:46,077 DEBUG [org.jboss.varia.scheduler.Scheduler] Old
 start date: Wed Dec 31 16:00:00 PST 1969, now: Mon May
 20 10:34:46 PDT 2002, Skip repeats: 102191609
 2002-05-20 10:34:46,077 DEBUG [org.jboss.varia.scheduler.Scheduler]
 Schedule initial call to: Mon May 20 10:34:50 PDT 2002, remaining
 repetitions: -1
 2002-05-20 10:34:46,077 INFO  [org.jboss.varia.scheduler.Scheduler]
 Started
 2002-05-20 10:34:46,078 DEBUG [org.jboss.deployment.MainDeployer] Final
 (start) deployment step successfully completed on package:
 scheduler-service.xml
 2002-05-20 10:34:46,078 INFO  [org.jboss.deployment.MainDeployer]
 Successfully completed deployment of package:
 
file:/home/dennis/usr/jboss-all/build/output/jboss-3.0.0RC3/server/default/deploy/scheduler-service.xml
 
 
 On Mon, 2002-05-20 at 10:33, Dennis Muhlestein wrote:
  Today, when I did a cvs update my schedulables stopped running.
  
  I implement org.jboss.varia.scheduler.Schedulable
  
  I use a jboss-service.xml and wrap the code into an sar file.
  
  I haven't changed anything with my code.  Friday it worked, and ran on
  the schedule I specified.  Today it doesn't work.
  
  Anyone else having this type of problem?
  
  Thanks
  Dennis
  
  
  ___
  Hundreds of nodes, one monster rendering program.
  Now that's a super model! Visit http://clustering.foundries.sf.net/
  
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 
 ___
 Hundreds of nodes, one monster rendering program.
 Now that's a super model! Visit http://clustering.foundries.sf.net/
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



___
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

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



Re: [JBoss-user] error when redeploying ear file

2002-05-20 Thread Dennis Muhlestein

The online docs 

http://www.jboss.org/online-manual/HTML/index.html

explain all about changing pool parameters. Check chapter 7

Basically, your pool went below the number of beans you instantiated. 
JBoss had to make the pool bigger so it warned you.  You could make the
min pool size bigger so you won't get that, but if your going to use the
pool a lot, and you have those beans loaded often, jboss will keep the
pool at a reasonable size with the default configuration.

Maybe someone can point out if I explained this incorrectly. 

As for your EAR problem Someone else'll have to check that out.  

-Dennis



On Mon, 2002-05-20 at 15:49, Michael Delamere wrote:
 Hi,
 
 I´m going to get at least one answer from you today :-). Please!
 
 Can someone tell me why I get this error when redeploying (copying over) an
 ear file?
 
  ERROR ===
 ClassException: org.apache.struts.action.ActionForm; local class
 incompatible: stream classdesc serialVersionUID = 868866204196005189, local
 class serialVersionUID = 4799035742323645273
 java.io.InvalidClassException: org.apache.struts.action.ActionForm; local
 class incompatible: stream classdesc serialVersionUID = 868866204196005189,
 local class serialVersionUID = 4799035742323645273
 at
 java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:454)
 at
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511)
 at
 java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
 at
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511)
 at
 java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616)
 at
 java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
 at
 org.apache.catalina.session.StandardSession.readObject(StandardSession.java:
 1268)
 at
 org.apache.catalina.session.StandardSession.readObjectData(StandardSession.j
 ava:810)
 at
 org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
 at
 org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
 ==
 
 Thanks in advance.
 
 Regards,
 
  Michael
 
 p.s.  I posted a message about getting this error The Pool for
 com.morelogs.guestbook.beans.gbEntryCMP has been overloaded.  You should
 change pool parameters..  No answer?
 
 
 
 ___
 
 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
 



___

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] Internet Ethics (and please UNSUBSCRIBE ME)

2002-05-16 Thread Dennis Muhlestein

I agree, I set up a filter to send those right to the trash but I think
they greatly detract from the quality of the list.  Someone nuke that
account.

-Dennis

On Thu, 2002-05-16 at 04:17, Mantzios Achilleus wrote:
 
 Dont you hate this make love tonite message from sexygirl,
 that comes everyday, when your wife is standing  over
 your screen as you read your beloved jboss messages??
 
 Would not you like the jboss-user list to be removed
 from sexygirl's sneaky addressbook??
 
 Right.
 
 Now what if sexygirl indeed had a sourceforge managed list,
 that required you only to supply your email in order to
 get the info you want, (passwd) and then unsubscribe,
 but you cannot find ANY possible email address that
 make-lover-admin recognizes...
 
 Whould'n it be bad??
 
 Thanx for the understanding (and possible unsubscription).
 
 Now, really if its done, THANX
 
 My wife is geek-o-phobic and wont allow me see geek messages
 at home, thats all.
 
 P.S. i have an active jboss-user account which i love to read,
 but my quota on softlab.ece.ntua.gr are LIMITED.
 
 PLEASE UNSUBSCRIBE!!
 
 
 ___
 
 Have big pipes? SourceForge.net is looking for download mirrors. We supply
 the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] MDBs

2002-05-09 Thread Dennis Muhlestein

To answer my own question, I can redeploy my application and the
messages are persisted ok.  Cool.

On the other hand if I turn jboss off, and start it the messages are not
there.

If I change the Delivery Mode to PERSISTANT for my QueueSender, then
messages to persist accross a jboss shutdown/restart.

That's cool too.

Anyone have experience persisting messages in a cluster?  What if I fire
off a thousand messages and portions of that thousand go to different
servers in the cluster.  Then, let's say one node leaves the cluster. 
Do those messages get handled by other nodes, or do I have to restart
that node in order to handle those messages.

-Dennis
JBoss 3.0/SuSE linux

On Wed, 2002-05-08 at 16:01, Dennis Muhlestein wrote:
 Has anyone experimented around with message driven beans in the following
 sense:
 
 What happends if I try to re-deploy my application and there is an mdb
 with a big queue not yet emptied.
 
 Does jboss wait?  What if the beans are in a cluster.  I'll be
 experimenting around with this in the next while--just wondering if
 anyone has already tried it.
 
 Thanks
 Dennis
 
 
 ___
 
 Have big pipes? SourceForge.net is looking for download mirrors. We supply
 the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: Re[2]: [JBoss-user] one to one/none relationship

2002-05-07 Thread Dennis Muhlestein

Thanks for the reply Alex,

That's what I thought.  I found a bug on sourceforge where someone else
reported this behaviour but under the comments it said it had been
fixed.

When I call MyObject.getItem(..) I don't get null back, I get an object
and then the NoSuchEntityException is thrown.

Has anyone experienced this same thing?  Is there a fix/patch for it?

-Dennis


On Tue, 2002-05-07 at 00:28, Alex Loubyansky wrote:
 Hello Dennis,
 
 Monday, May 06, 2002, 11:34:07 PM, you wrote:
 
 If the cmr field isn't set, you should get null as a result of get
 method invocation.
 
 DM This is concerning JBoss-3.0 on Branch_3_0 latest CVS
 DM linux/jdk1.3.1
 
 DM On Mon, 2002-05-06 at 14:10, Dennis Muhlestein wrote:
  I have a situation where an account can have one or none of an another
  entity bean in a relationship.
  
  I've defined it below as a one-one relationship.  This works fine if the
  billingInfo exists, but if it doesn't and I call getBillingInfo from the
  account, I still get an EntityBean Interface back.  (No Exception
  occurs)  Then, when I try to access or set something on the billingInfo
  interface, I get NoSuchEntityException from jboss.
  
  Should I use one-many instead??  Shouldn't I get null back or something
  instead of an interface to the ejb when the billingInfo doesn't yet
  exists?  If this is the correct functionality, then how to I know if a
  billing info record exists or not yet?  Is it possible to remove the
  billingInfo record in this case or is that against the law in a one-one
  relationship?
  
  Thanks for any comments.
  Dennis
  
  ejb-relation
  descriptionOne Account has One/None
  BillingInfo/description
  ejb-relation-nameAccount-BillingInfo/ejb-relation-name
  ejb-relationship-role
 
  ejb-relationship-role-nameAccountToBillingRole/ejb-relationship-role-name
  multiplicityOne/multiplicity
 
  
relationship-role-sourceejb-nameAccountEJB/ejb-name/relationship-role-source  
  
  cmr-field
  cmr-field-namebillingInfo/cmr-field-name
  /cmr-field
  /ejb-relationship-role
  ejb-relationship-role
 
  ejb-relationship-role-nameBillingToAccountRole/ejb-relationship-role-name
  multiplicityOne/multiplicity
  relationship-role-source
  ejb-nameBillingInfoEJB/ejb-name
  /relationship-role-source
  /ejb-relationship-role
  /ejb-relation
 
 -- 
 Best regards,
  Alexmailto:[EMAIL PROTECTED]
 
 
 
 ___
 
 Have big pipes? SourceForge.net is looking for download mirrors. We supply
 the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




signature.asc
Description: This is a digitally signed message part


[JBoss-user] one to one/none relationship

2002-05-06 Thread Dennis Muhlestein

I have a situation where an account can have one or none of an another
entity bean in a relationship.

I've defined it below as a one-one relationship.  This works fine if the
billingInfo exists, but if it doesn't and I call getBillingInfo from the
account, I still get an EntityBean Interface back.  (No Exception
occurs)  Then, when I try to access or set something on the billingInfo
interface, I get NoSuchEntityException from jboss.

Should I use one-many instead??  Shouldn't I get null back or something
instead of an interface to the ejb when the billingInfo doesn't yet
exists?  If this is the correct functionality, then how to I know if a
billing info record exists or not yet?  Is it possible to remove the
billingInfo record in this case or is that against the law in a one-one
relationship?

Thanks for any comments.
Dennis

ejb-relation
descriptionOne Account has One/None
BillingInfo/description
ejb-relation-nameAccount-BillingInfo/ejb-relation-name
ejb-relationship-role
   
ejb-relationship-role-nameAccountToBillingRole/ejb-relationship-role-name
multiplicityOne/multiplicity
   
relationship-role-sourceejb-nameAccountEJB/ejb-name/relationship-role-source   
 
cmr-field
cmr-field-namebillingInfo/cmr-field-name
/cmr-field
/ejb-relationship-role
ejb-relationship-role
   
ejb-relationship-role-nameBillingToAccountRole/ejb-relationship-role-name
multiplicityOne/multiplicity
relationship-role-source
ejb-nameBillingInfoEJB/ejb-name
/relationship-role-source
/ejb-relationship-role
/ejb-relation







signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] one to one/none relationship

2002-05-06 Thread Dennis Muhlestein

This is concerning JBoss-3.0 on Branch_3_0 latest CVS
linux/jdk1.3.1

On Mon, 2002-05-06 at 14:10, Dennis Muhlestein wrote:
 I have a situation where an account can have one or none of an another
 entity bean in a relationship.
 
 I've defined it below as a one-one relationship.  This works fine if the
 billingInfo exists, but if it doesn't and I call getBillingInfo from the
 account, I still get an EntityBean Interface back.  (No Exception
 occurs)  Then, when I try to access or set something on the billingInfo
 interface, I get NoSuchEntityException from jboss.
 
 Should I use one-many instead??  Shouldn't I get null back or something
 instead of an interface to the ejb when the billingInfo doesn't yet
 exists?  If this is the correct functionality, then how to I know if a
 billing info record exists or not yet?  Is it possible to remove the
 billingInfo record in this case or is that against the law in a one-one
 relationship?
 
 Thanks for any comments.
 Dennis
 
 ejb-relation
 descriptionOne Account has One/None
 BillingInfo/description
 ejb-relation-nameAccount-BillingInfo/ejb-relation-name
 ejb-relationship-role

 ejb-relationship-role-nameAccountToBillingRole/ejb-relationship-role-name
 multiplicityOne/multiplicity

 relationship-role-sourceejb-nameAccountEJB/ejb-name/relationship-role-source 
   
 cmr-field
 cmr-field-namebillingInfo/cmr-field-name
 /cmr-field
 /ejb-relationship-role
 ejb-relationship-role

 ejb-relationship-role-nameBillingToAccountRole/ejb-relationship-role-name
 multiplicityOne/multiplicity
 relationship-role-source
 ejb-nameBillingInfoEJB/ejb-name
 /relationship-role-source
 /ejb-relationship-role
 /ejb-relation
 
 
 
 




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] stopping jboss 3.0

2002-05-03 Thread Dennis Muhlestein

I guess there isn't such a concept as a process id like there is with
apache and some other programs.

You could submit a bug or feature request on sourceforge so that
shutdown can be smart to handle multiple instances of jboss.

I'd stick with the cntl-c method if you have multiple instances of jboss
on the same machine.  If you don't have the process in the console (so
you can't press cntl-c) you can always (with linux anyway) look up the
main process and kill it.  That will do the same thing as cntl-c but
you'd have to note the process when you start jboss as to not get it
confused with other jboss or java programs.

-Dennis


On Fri, 2002-05-03 at 04:29, Marius Kotsbak wrote:
 On fre, 2002-05-03 at 00:18, Dennis Muhlestein wrote:
  If you run jboss on a remote machine, and you don't have it running
  in the forground and can't do a cntl-c,
  you can use the jboss_dir/bin/shutdown.sh (or bat) file as well.
 But this script seems to kill all jboss instances running on the host,
 including different versions.
 
 
 
  
  
  
  
  On Thu, 2002-05-02 at 15:58, Prabhakar Chaganti wrote:
   Do a ctrl-c on the terminal/console. That should properly shutdown the server.
   
   prabhakar chaganti
   
   On Thursday 02 May 2002 05:17 pm, Kaveh wrote:
What is the proper way of stopping the Server?
   
   
   ___
   
   Have big pipes? SourceForge.net is looking for download mirrors. We supply
   the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
   ___
   JBoss-user mailing list
   [EMAIL PROTECTED]
   https://lists.sourceforge.net/lists/listinfo/jboss-user
   
  
 
 




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] stopping jboss 3.0

2002-05-02 Thread Dennis Muhlestein

If you run jboss on a remote machine, and you don't have it running
in the forground and can't do a cntl-c,
you can use the jboss_dir/bin/shutdown.sh (or bat) file as well.




On Thu, 2002-05-02 at 15:58, Prabhakar Chaganti wrote:
 Do a ctrl-c on the terminal/console. That should properly shutdown the server.
 
 prabhakar chaganti
 
 On Thursday 02 May 2002 05:17 pm, Kaveh wrote:
  What is the proper way of stopping the Server?
 
 
 ___
 
 Have big pipes? SourceForge.net is looking for download mirrors. We supply
 the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




signature.asc
Description: This is a digitally signed message part


RE: [JBoss-user] Custom Container Configuration in jboss.xml

2002-04-30 Thread Dennis Muhlestein

Ah ha, that makes more sense now.  Does this mean that if I want to
create an all new implementation, I DO have to specify all the other
internals of container-configuration?  I was under the impression from
the docs that these would be defaulted.

My problem is that I have some beans I want to be commit option A and
some that are commit option B.  I'd like to not have to create such a
huge jboss.xml file in order to modify those certain beans but as far as
I can tell there isn't another way.

Thanks for the input.

-Dennis

On Tue, 2002-04-30 at 11:12, Sacha Labourey wrote:
 In container-name, you have to write of the *actual* definition that you want to 
override. Otherwise, JBoss won't be able to know which definition to override.
 
 Cheers,
 
 
   Sacha
 
  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de Dennis
  Muhlestein
  Envoyé : mardi, 30 avril 2002 19:02
  À : [EMAIL PROTECTED]
  Objet : Re: [JBoss-user] Custom Container Configuration in jboss.xml
  
  
  Let me rephrase the question.
  
  If I only want to create a new container-configuration with commit
  option A instead of B, do I have to include all the internals?  The dtd
  refers to defaults on most of the options and specifies them as optional
  tags.
  
  I copied and pasted from standardjboss.xml to my jboss.xml and changed
  the one line but that seams kind of klutzy.  I would like to specify
  only the one line to differ.  Most likely I'll have lots of beans and
  each one will need some customization to achieve optimum performance. I
  don't want to have to have a massive jboss.xml to accomplish this though
  if I don't have to.
  
  Right now, if I try with the configuration below, jboss
  croaks/groans/whines and the app is not deployed (I posted this as a bug
  too by the way)
  
   container-configuration
   container-nameCommit A/container-name
   commit-optionA/commit-option
   /container-configuration
  
  Any comments?  Someone with experience in this area?
 




signature.asc
Description: This is a digitally signed message part


Re: STILL TRYING: [JBoss-user] CMP: Iterate Collection PerformanceKiller

2002-04-29 Thread Dennis Muhlestein

It makes sense to change the commit option for transactions for
performance tuning.  I have one Entity Bean that I think would fit
option A better, and others that fit option B better.

Can I customize each entity bean?  I tried putting read-only to true on
the one bean, but the container still loaded it before each transaction.
(Option B).  I don't want to change everything to option A.

Thanks
-Dennis


On Fri, 2002-04-26 at 10:29, Dan Christopherson wrote:
 First, the re-fetch you see between your two tests is because of the 
 commit option. Option B (default in 3.0) doesn't cache data between 
 transactions, although the bean instances will be cached. If you aren't 
 clustering and your data can't be modified from anywhere else, you can 
 change standardjboss.xml to use Option A instead.
 
 As to why you need the user transaction, what kind of object are you 
 calling from? If it's a client, well then you need a UserTransaction. If 
 it's a session bean, then make sure your session bean's method is in a 
 transaction with type of Required or RequiresNew.
 
 hth,
 danch
 
 Frank Morton wrote:
  
  If I wrap it with a UserTransaction, things look good, but I don't
  see why I would have to do so. And, if I do, I have many places
  where I will have to do the same thing, which I would like to avoid.
  
  Without wrapping in my own transaction, when trying to get a single
  property from a single element in the Collection, it loads the whole
  Collection. I don't understand why it would do it twice, let alone
  for each element in the Collection. I also don't understand if it
  is a function of the commit options, config or it is not working
  as expected.
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




signature.asc
Description: This is a digitally signed message part


[JBoss-user] Custom Container Configuration in jboss.xml

2002-04-29 Thread Dennis Muhlestein

Thanks Much, 

In trying to deploy with a new configuration, I started getting a lot of
errors like missing container-invoker, invalid instance-cache, etc etc.

According to the DTD, those elements are all optional.  I thought I
could provide a simple configuration with only the change I wanted and
the rest would be defaulted.

Like this...

container-configuration
container-nameCommit A/container-name
commit-optionA/commit-option
/container-configuration


Do I have to provide each element or is there something else I'm
missing?

Thanks
Dennis


On Mon, 2002-04-29 at 10:26, Alex Loubyansky wrote:
   Yes, you can. Look at this
 http://www.jboss.org/online-manual/HTML/ch07s16.html
 
 alex
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Dennis
  Muhlestein
  Sent: Monday, April 29, 2002 5:26 PM
  To: [EMAIL PROTECTED]
  Subject: Re: STILL TRYING: [JBoss-user] CMP: Iterate Collection
  PerformanceKiller
 
 
  It makes sense to change the commit option for transactions for
  performance tuning.  I have one Entity Bean that I think would fit
  option A better, and others that fit option B better.
 
  Can I customize each entity bean?  I tried putting read-only
  to true on
  the one bean, but the container still loaded it before each
  transaction.
  (Option B).  I don't want to change everything to option A.
 
  Thanks
  -Dennis
 
 
  On Fri, 2002-04-26 at 10:29, Dan Christopherson wrote:
   First, the re-fetch you see between your two tests is
  because of the
   commit option. Option B (default in 3.0) doesn't cache data between
   transactions, although the bean instances will be cached.
  If you aren't
   clustering and your data can't be modified from anywhere
  else, you can
   change standardjboss.xml to use Option A instead.
  
   As to why you need the user transaction, what kind of
  object are you
   calling from? If it's a client, well then you need a
  UserTransaction. If
   it's a session bean, then make sure your session bean's
  method is in a
   transaction with type of Required or RequiresNew.
  
   hth,
   danch
  
   Frank Morton wrote:
   
If I wrap it with a UserTransaction, things look good, but I don't
see why I would have to do so. And, if I do, I have many places
where I will have to do the same thing, which I would
  like to avoid.
   
Without wrapping in my own transaction, when trying to
  get a single
property from a single element in the Collection, it
  loads the whole
Collection. I don't understand why it would do it twice, let alone
for each element in the Collection. I also don't understand if it
is a function of the commit options, config or it is not working
as expected.
  
  
  
   ___
   JBoss-user mailing list
   [EMAIL PROTECTED]
   https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




signature.asc
Description: This is a digitally signed message part


[JBoss-user] clustering question

2002-04-29 Thread Dennis Muhlestein

Let's say I cluster two jboss servers and I have an Entity Bean with
commit option A.

Are the attributes of the Entity Bean clustered?  ie: user on server 1
calls a set Method, then user on server 2 calls the get method for that
attribute.  Can I expect the attribute to be current on server 2?

If the data wasn't clustered I would say no because server 2 would think
it has exclusive access to the data (commit option A) so it wouldn't
load it.  I want to know if the clustering broadcasts the attribute
changes??

Thanks
Dennis





signature.asc
Description: This is a digitally signed message part


[JBoss-user] jetty compile error

2002-04-18 Thread Dennis Muhlestein

I searched forums and the lists but didn't see anything that talked
about this.  It seems to me like maybe the wrong servlet.jar is being
used or something.  
this is with 3.0 RC1. 


HTTP ERROR: 500 Unable to compile class for JSP
/tmp/Jetty__8080___/ index$jsp.java:371: Incompatible type for method.
Explicit cast needed to convert java.lang.Throwable to
java.lang.Exception.
  if (pageContext != null) pageContext.handlePageException(t);
   ^
1 error

Any suggestions?




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] embedded tomcat 4 issue

2002-04-17 Thread Dennis Muhlestein

Thank you for your input.  I'm making much progress in this area and
most of my application works with tomcat locally now.

I have got everything to work at this point except for one Entity Bean
(CMP 2.0).  I have other Entity Beans that work fine.  So this is really
tricky.

I can lookup the bean and get the Home Interface from my servlet/jsp. 
Then, when I try to call findByPrimaryKey, I get a NullPointerException:

java.rmi.ServerException: null; nested exception is:
java.lang.NullPointerException
2002-04-17 11:03:33,118 ERROR [STDERR] java.lang.NullPointerException
2002-04-17 11:03:33,118 ERROR [STDERR]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer
.java:1107)
2002-04-17 11:03:33,119 ERROR [STDERR]  at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java
:73)
2002-04-17 11:03:33,119 ERROR [STDERR]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynch
ronizationInterceptor.java:230)
2002-04-17 11:03:33,119 ERROR [STDERR]  at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome
etc...


This is funny because it only happens on this one bean.  Other beans are
configured the same way and work fine.  Also this works when I use
tomcat on a remote box (I just checked again to make sure) or in a
separate JVM.

I added some debug statements to org.jboss.ejb.EntityContainer.java  I
found that The map does contain an entry for the findByPrimaryKey method
but when the homeMapping.get(mi.getMethod()) is called, it returns null.

Is this a class Loading issue like there used to be?  I wish I could
submit a test cast but when I try a simple example it works fine.  I
have 10-15 beans deployed/a mix of Session/SLS/Entity.  The problem
occurs on this one bean every time without fail and independent of which
jsp/servlet tries to use it.  Everything works great when I run tomcat
on a separate box.

In the mean time, I'll keep playing and seeing if I can find something
unique about this bean?

Again, Thanks for any input.
-Dennis


On Wed, 2002-04-17 at 02:51, Scott M Stark wrote:
  I haven't found any Entity Bean tests in the test suite so I couldn't
  compare.  This problem may not have anything to do with Session/Entity
  and may just be a configuration issue with the beans - I don't know.
 There are now and accessing them from a servlet works fine.
 
  1. Is there any big difference between:
   a. ctx.lookup (MyEJB )=20
without adding anything to the web.xml (like ejb-ref)
  
   b. ctx.lookup ( java:comp/env/ejb/MyEJB );
after adding ejb-ref...nameejb/MyEJB/name.
to the web.xml
 a. requires that you embed the deployed name of the ejb home in
 your code while b. is independent of this.
 
  2. Because I am trying to get the app to run on both embedded and=20
   remote tomcat configs, I pass in a properties file to  InitialContext
  when I create it. =20
   ie ctx =3D new InitialContext(props);
   That way I don't have to modify any tomcat scripts to get the  right
  jnp properties and all.
  
   Does this make any difference to the embedded tomcat on jboss? =20
 
 It should not make a difference.
 
 Look at the jbosstest-web.ear again and submit a bug report with an example
 ear that demonstrates the problem.
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 
 




signature.asc
Description: This is a digitally signed message part


[JBoss-user] embedded tomcat

2002-04-17 Thread Dennis Muhlestein


OK, My bad everyone.   I hope this helps someone out there!

The reason only one bean didn't work is that the WEB-INF/lib/ had on old
copy of that one Bean's interface(Ant build issue I thought was fixed). 
Therefore, it was a classloading issue.  Bottom line is, to deploy an
ear, the war files WEB-INF/lib cannot contain any interfaces to the
ejbs.  Didn't really matter how I configured the web.xml/jboss-web.xml
or how I lookup the beans.

I'm proud to report I've finally got my application running on the
embedded tomcat4/jboss3 solution.

Thanks



signature.asc
Description: This is a digitally signed message part


[JBoss-user] tomcat 4 issue

2002-04-16 Thread Dennis Muhlestein

I've compiled the lated CVS on Branch_3_0.  When I deploy the
tomcat-test.ear that is built in the catalina directory, I can access
the index page ok.  Tomcat seems to be working fine but the executing
servlet still can't talk to an ejb.  I get:

java.lang.NullPointerException
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
at $Proxy23.create(Unknown Source)
at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:71)
at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:40)
(followd by the rest of tomcat's stack trace...)


This is the exact same problem I had with beta 2 before RC1 came out. 
Is the test app configured wrong??  Has anyone got it to work?

Thanks Dennis




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] tomcat 4 issue

2002-04-16 Thread Dennis Muhlestein

That makes sense, thanks.

When I deploy my own app, I get the same error that I used to get before
this whole think came about.  

CONTAINER EXCEPTION:
java.lang.NullPointerException
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:598)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:167)
at
org.jboss.ejb.plugins.TxInterceptorBMT.invokeHome(TxInterceptorBMT.java:54)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:57)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:104)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300)
at org.jboss.ejb.Container.invoke(Container.java:727)

Still a ClassLoading problem??  A configuration problem?  I wish someone
could point me in the write path.  MyApp is configured according to the
contents listed below.  Tomcat works fine, EJB works fine, I just can't
talk from a servlet to an EJB else the error above.

Thanks
Dennis

Contents of My Ear:
META-INF/
META-INF/MANIFEST.MF
MyApp.jar
ROOT.war
META-INF/application.xml

Contents of Application.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE
Application 1.3//EN
http://java.sun.com/dtd/application_1_3.dtd; 

application
display-nameMyApp/display-name

module
web
web-uriROOT.war/web-uri
context-root//context-root
/web
/module

module
ejbMyApp.jar/ejb
/module

/application





On Tue, 2002-04-16 at 12:50, Scott M Stark wrote:
 It is not configured correctly as it is using out of date custom
 ejb container interceptors. This is why the example is not included
 with the JBoss/Tomcat bundle.
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 - Original Message - 
 From: Dennis Muhlestein [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 16, 2002 9:53 AM
 Subject: [JBoss-user] tomcat 4 issue
 
  I've compiled the lated CVS on Branch_3_0.  When I deploy the
  tomcat-test.ear that is built in the catalina directory, I can access
  the index page ok.  Tomcat seems to be working fine but the executing
  servlet still can't talk to an ejb.  I get:
  
  java.lang.NullPointerException
  at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
  at $Proxy23.create(Unknown Source)
  at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:71)
  at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:40)
  (followd by the rest of tomcat's stack trace...)
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




signature.asc
Description: This is a digitally signed message part


RE: [JBoss-user] embedded tomcat 4 issue

2002-04-16 Thread Dennis Muhlestein
 at 15:51, James Higginbotham wrote:
 This is absolutely essential for my project, since I've been seeing the
 NPE as well but have to produce a product that can deploy under WL 6.1
 and JB 3.0. I'm in the midst of porting to JB 3.0 with an application
 from WL 6.1 and its been quite painful with the various snafus in the
 beta 1, beta 2, and (presumably) RC1. 
 
 Is there any way around this coming up, without having to construct
 multiple EAR files for various vendors (yuck!)? Or, is this the intended
 functionality for JB 3.0 now?
 
 James
 
  -Original Message-
  From: David Ward [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, April 16, 2002 6:38 PM
  To: Dennis Muhlestein
  Cc: Scott M Stark; [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] tomcat 4 issue
  
  
  I had a similar problem when I went from JBoss-2.4.x_Tomcat-3.2.x to 
  jboss-3.0.0RC1_tomcat-4.0.3.  I got in the habit of including my ejb 
  home and remote interfaces in my war file, which works fine 
  in the older 
  version.  However, in this latest version, I needed to *not* 
  include any 
  ejb interfaces in my war file.  Once I took them out, JBoss was happy 
  (my null pointer like yours went away).  I attributed it to the new 
  UnifiedClassLoader.  I'm not sure if other app servers will 
  be happy 
  with this, though.  I always try to make my ear's app-server 
  agnostic. 
  I have no problem including multiple extra xml descriptors as 
  they are 
  just ignored in other servers (ie: jboss-web.xml vs. weblogic.xml), 
  however which classes have to get included in the ejb-jars or 
  wars have 
  to be the same...
  
  David
  
  --
  
  Dennis Muhlestein wrote:
  
   That makes sense, thanks.
   
   When I deploy my own app, I get the same error that I used to get 
   before this whole think came about.
   
   CONTAINER EXCEPTION:
   java.lang.NullPointerException
   at
   
  org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.i
  nvokeHome(StatelessSessionContainer.java:598)
   at
   
  org.jboss.resource.connectionmanager.CachedConnectionIntercept
  or.invokeHome(CachedConnectionInterceptor.java:167)
   at
   
  org.jboss.ejb.plugins.TxInterceptorBMT.invokeHome(TxIntercepto
  rBMT.java:54)
   at
   
  org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invo
  keHome(StatelessSessionInstanceInterceptor.java:57)
   at
   
  org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityI
  nterceptor.java:104)
   at
   
  org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor
  .java:109)
   at
   
  org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSe
  ssionContainer.java:300)
   at org.jboss.ejb.Container.invoke(Container.java:727)
   
   Still a ClassLoading problem??  A configuration problem?  I wish 
   someone could point me in the write path.  MyApp is configured 
   according to the contents listed below.  Tomcat works fine, 
  EJB works 
   fine, I just can't talk from a servlet to an EJB else the 
  error above.
   
   Thanks
   Dennis
  
  
  
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED] 
  https://lists.sourceforge.net/lists/listinfo/j boss-user
  
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] Compile errors for Catalina with CVS head

2002-04-15 Thread Dennis Muhlestein

I just barely posted that message to the dev list.  It seams someone
removed two necessary files from CVS.

On Mon, 2002-04-15 at 10:36, James Higginbotham wrote:
 Anyone seeing the following 2 errors when compiling catalina .sar? I did
 a checkout at 11:00 am this morning, a build init, modules-all from the
 main build, and an init, build from catalina. If someone is working on
 this in an effort to release jboss rc1 with Tomcat to Sourceforge, I can
 wait - just let me know when you hope to have it released. 
  
 Thanks,
 James
  
 $ cat build.log
  
 configure:
  
 init:
  
 compile-classes:
  [javac]Compiling 18 source files to
 C:\libs\jboss-all\catalina\output\classes
  
 [javac]C:\libs\jboss-all\catalina\src\main\org\jboss\test\tomcat\ejb\bea
 n\StatelessSessionBean.java:12: cannot resolve s
 ymbol
  [javac]symbol  : class ServiceLibraries
  [javac]location: package system
  [javac]import org.jboss.system.ServiceLibraries;
  [javac]^
  
 [javac]C:\libs\jboss-all\catalina\src\main\org\jboss\test\tomcat\ejb\bea
 n\StatelessSessionBean.java:13: cannot resolve s
 ymbol
  [javac]symbol  : class UnifiedClassLoader
  [javac]location: package system
  [javac]import org.jboss.system.UnifiedClassLoader;
  [javac]^
  
 [javac]C:\libs\jboss-all\catalina\src\main\org\jboss\web\catalina\Engine
 CreateAction.java:5: warning: org.xml.sax.Attrib
 uteList in org.xml.sax has been deprecated
  [javac]import org.xml.sax.AttributeList;
  [javac]   ^
  
 [javac]C:\libs\jboss-all\catalina\src\main\org\jboss\web\catalina\Logged
 XmlMapper.java:4: warning: org.xml.sax.Attribute
 List in org.xml.sax has been deprecated
  [javac]import org.xml.sax.AttributeList;
  [javac]   ^
  
 [javac]C:\libs\jboss-all\catalina\src\main\org\jboss\web\catalina\Logged
 XmlMapper.java:77: warning: org.xml.sax.Attribut
 eList in org.xml.sax has been deprecated
  [javac]   static class ToAttributeList implements AttributeList
  [javac]   ^
  
 [javac]C:\libs\jboss-all\catalina\src\main\org\jboss\test\tomcat\ejb\bea
 n\StatelessSessionBean.java:66: cannot resolve s
 ymbol
  [javac]symbol  : class UnifiedClassLoader
  [javac]location: class
 org.jboss.test.tomcat.ejb.bean.StatelessSessionBean
  [javac] if( loader instanceof UnifiedClassLoader 
 sawUnifiedClassLoader == false )
  [javac]   ^
  
 [javac]C:\libs\jboss-all\catalina\src\main\org\jboss\test\tomcat\ejb\bea
 n\StatelessSessionBean.java:70: cannot resolve s
 ymbol
  [javac]symbol  : class ServiceLibraries
  [javac]location: class
 org.jboss.test.tomcat.ejb.bean.StatelessSessionBean
  [javac]ServiceLibraries libraries =
 ServiceLibraries.getLibraries();
  [javac]^
  
 [javac]C:\libs\jboss-all\catalina\src\main\org\jboss\test\tomcat\ejb\bea
 n\StatelessSessionBean.java:70: cannot resolve s
 ymbol
  [javac]symbol  : variable ServiceLibraries
  [javac]location: class
 org.jboss.test.tomcat.ejb.bean.StatelessSessionBean
  [javac]ServiceLibraries libraries =
 ServiceLibraries.getLibraries();
  [javac] ^
  
 [javac]C:\libs\jboss-all\catalina\src\main\org\jboss\web\catalina\Engine
 CreateAction.java:63: warning: org.xml.sax.Attri
 buteList in org.xml.sax has been deprecated
  [javac] AttributeList attributes = ctx.getAttributeList(
 top );
  [javac] ^
  [javac]5 errors
  [javac]4 warnings
  
  




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] Building Catalina .sar (Tomcat to work withJBossBeta 2 HOWTO)?

2002-04-12 Thread Dennis Muhlestein

On Thu, 2002-04-11 at 19:40, Scott M Stark wrote:
 This is not a Catalina integration issue. It is an issue with the
 servlet 2.3 class loading model and the servlet to ejb call
 being optimized when it should not be.

Part of the reason we wanted to embed tomcat was so that the calls would
be optimized.  Will this be fixed?  Or is it possible.  Why don't I just
run tomcat elsewhere instead of embed it if calls are not optimized?

 
 By default Jetty is not using the servlet 2.3 class loading model
 that loads classes from the war before the parent class loader
 and so it works. If you turn on the servlet 2.3 class loading
 model in Jetty it also fails.
 
 This behavior is not seen if the war is included in the ear with
 the ejb jar and the ejb client jar left out of the war. Is there a
 reason this can't be done?

I updated from CVS this morning re-configured with tomcat4.0.3.  Tomcat 
is up and running and I deployed the tomcat-test.ear.

I can access the tomcat-test context but when I click on a servlet link
the servlet still can't talk to the ejb...I get:

java.lang.NullPointerException
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
at $Proxy61.create(Unknown Source)
at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:71)

Any help appreciated.  Thanks for your work in this area.

-Dennis


 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 - Original Message -
 From: James Higginbotham [EMAIL PROTECTED]
 To: Dennis Muhlestein [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Cc: Scott M Stark [EMAIL PROTECTED]
 Sent: Tuesday, April 09, 2002 5:08 PM
 Subject: RE: [JBoss-user] Building Catalina .sar (Tomcat to work with
 JBossBeta 2 HOWTO)?
 
 
 Attached is a testcase that reproduces the problem that we talked about
 here. My apologies for sending this to all on the list, but I hope that
 this testcase finds it way to the appropriate Jboss developers. I don't
 have an official bug number for reference, nor do I have a specific
 email to send this to within the development team.
 
 If you have any questions about the testcase, feel free to send me an
 email to this address.
 
 Regards,
 James
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] can someone pls fix the forum???

2002-04-12 Thread Dennis Muhlestein

I've seen this exact problem many times.  I wish someone would fix it
also.  Usually, I change what I search for and hope that different
criteria doesn't have the problem.

On Fri, 2002-04-12 at 14:03, Eric Kaplan wrote:
 I'm trying to search for stuff, and it's telling me it found a bunch of
 things, but it's getting cut off after the first or second item and there is
 no obvious way to see the entire list...
 
 Eric Kaplan
 Armanta, Inc.
 55 Madison Ave.
 Morristown, NJ  07960
 Phone: (973) 326-9600
 




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] Building Catalina .sar (Tomcat to work withJBossBeta 2 HOWTO)?

2002-04-12 Thread Dennis Muhlestein

Additional info:  I configured my application to be in an ear.

contents of my ear file:
META-INF/
META-INF/MANIFEST.MF
MyApplication.jar
ROOT.war
META-INF/application.xml

contents of application.xml
?xml version=1.0 encoding=ISO-8859-1?

application
display-nameMyApp/display-name

module
web
web-uriROOT.war/web-uri
context-root//context-root
/web
/module

module
ejbMyApplication.jar/ejb
/module

/application


I can access the root context from tomcat but I still cannot talk to an
ejb.  I still get the NullPointerException at StatelessSessionContainer
line 593 when a servlet tries to talk to an ejb.

Thanks



On Thu, 2002-04-11 at 19:40, Scott M Stark wrote:
 This is not a Catalina integration issue. It is an issue with the
 servlet 2.3 class loading model and the servlet to ejb call
 being optimized when it should not be.
 
 By default Jetty is not using the servlet 2.3 class loading model
 that loads classes from the war before the parent class loader
 and so it works. If you turn on the servlet 2.3 class loading
 model in Jetty it also fails.
 
 This behavior is not seen if the war is included in the ear with
 the ejb jar and the ejb client jar left out of the war. Is there a
 reason this can't be done?
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 - Original Message -
 From: James Higginbotham [EMAIL PROTECTED]
 To: Dennis Muhlestein [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Cc: Scott M Stark [EMAIL PROTECTED]
 Sent: Tuesday, April 09, 2002 5:08 PM
 Subject: RE: [JBoss-user] Building Catalina .sar (Tomcat to work with
 JBossBeta 2 HOWTO)?
 
 
 Attached is a testcase that reproduces the problem that we talked about
 here. My apologies for sending this to all on the list, but I hope that
 this testcase finds it way to the appropriate Jboss developers. I don't
 have an official bug number for reference, nor do I have a specific
 email to send this to within the development team.
 
 If you have any questions about the testcase, feel free to send me an
 email to this address.
 
 Regards,
 James
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] Building Catalina .sar (Tomcat to workwithJBossBeta 2 HOWTO)?

2002-04-12 Thread Dennis Muhlestein

By client jar you mean the interfaces for the ejbs right?  I don't have
any of those in my war file.

I checked the tomcat-test.war/ear that I deployed also, I didn't find
the HelloName-client.jar in there.  Contents of tomcat-test.war:

META-INF/
WEB-INF/
WEB-INF/jboss-web.xml
WEB-INF/web.xml
WEB-INF/classes/
WEB-INF/classes/org/
WEB-INF/classes/org/jboss/
WEB-INF/classes/org/jboss/test/
WEB-INF/classes/org/jboss/test/tomcat/
WEB-INF/classes/org/jboss/test/tomcat/servlet/
WEB-INF/classes/org/jboss/test/tomcat/servlet/HelloEJB.class
WEB-INF/classes/org/jboss/test/tomcat/servlet/PrintClassLoaders.class
WEB-INF/classes/org/jboss/test/tomcat/servlet/Util.class
index.html
META-INF/MANIFEST.MF

Am I missing the picture?  Thanks for your input.  I haven't got the
tomcat-test or my own ear to work yet.

-Dennis

On Fri, 2002-04-12 at 10:52, Scott M Stark wrote:
  Additional info:  I configured my application to be in an ear.
  
  contents of my ear file:
  META-INF/
  META-INF/MANIFEST.MF
  MyApplication.jar
  ROOT.war
  META-INF/application.xml
 ...
 
  I can access the root context from tomcat but I still cannot talk to an
  ejb.  I still get the NullPointerException at StatelessSessionContainer
  line 593 when a servlet tries to talk to an ejb.
 
 If your war still includes the ejb client jar as the tomcattest example
 included the WEB-INF/lib/HelloName-client.jar you will see this problem.
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] JBoss 3.0.0beta CMP Problem

2002-04-11 Thread Dennis Muhlestein

My application is completely CMP 2.0.  The key is to make sure your
DOCTYPE in your ejb-jar is EXACTLY the way it appears on suns DTD.

Jboss checks for that DOCTYPE and if it is different, it reverts back to
1.x

On Thu, 2002-04-11 at 15:32, Taylor, Brent wrote:
 It does not appear that JBoss 3.0.0beta is compliant with EJB 2.0.
 Specifically, the CMP contract. I've defined my Entity Bean as abstract per
 the EJB 2.0 specification, and JBoss pukes when it tries to deploy it.
  
 Also, the JAR manifest entries for Class-Path are not being honored since
 JBoss mangles the JAR names when it expands the EAR file during deployment.
 If I want all my beans to be able to use my 'utilities.jar' package I put
 that in each manifest Class-Path for each bean JAR. However, JBoss will
 rename that jar file to 70-utilities.jar or something when it extracts it
 from the EAR. Anybody else have similar problems?




signature.asc
Description: This is a digitally signed message part


RE: [JBoss-user] Building Catalina .sar (Tomcat to work with JBossBeta 2 HOWTO)?

2002-04-08 Thread Dennis Muhlestein

I have the exact same exception when I try to access an EJB from a
servlet. 

I took our existing application that worked fine with Tomcat on a
separate machine, and embedded tomcat into JBoss.  When I try to get the
Home object from a servlet the container throws the same exception from
StatelessSessionContainer at line 593.

To me, it seems this is a JBoss problem with embedded Tomcat.  (Not a
problem with tomcat itself.)  Again, my application works fine with
tomcat on a separate machine.

Hope we can find a solution soon.

-Dennis



On Mon, 2002-04-08 at 09:18, James Higginbotham wrote:
 Great, thanks for the info, it compiled! 
 
 Now, however, I get the following error when my struts action attempts
 to invoke an EJB.. I've used multiple J2EE containers and would assume
 that I could get a servlet and EJB out there and working quickly.. My
 unit tests show that I can talk to the EJBs in Jboss over RMI, so this
 is a Catalina-specific error. I even see the EJBs in the JMS Agent view
 (port 8082). 
 
 I'm using the CVS code from March 30th.. I'm afraid to update right now,
 due to the db configuration changed mentioned by David over the weekend
 - I don't need any more variables interfering with my port at the
 moment, unless the update is absolutely necessary. 
 
 Any ideas what could be wrong? I've never struggled so much to get a
 J2EE application working as with Jboss 3 beta. My apologies for the
 continued emails, but I really need to get this working for our product.
 
 
 Thanks,
 James
 
 
 ---
 
 Here is the tracktrace:
 
 2002-04-08 10:11:05,879 INFO
 [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] action:   Creating
 new Action instance
 2002-04-08 10:11:06,139 INFO  [STDOUT] 10:11:06,129 ERROR
 [UserManagerFactory] getUserManager caught RemoteException
 java.rmi.ServerException: null; nested exception is:
 java.lang.NullPointerException
 java.lang.NullPointerException
 at
 org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(
 StatelessSessionContainer.java:593)
 at
 org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeH
 ome(CachedConnectionInterceptor.java:167)
 at
 org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(Sta
 telessSessionInstanceInterceptor.java:57)
 at
 org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
 ptor.java:98)
 at
 org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
 CMT.java:167)
 at
 org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:
 52)
 at
 org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor
 .java:102)
 at
 org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
 at
 org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionConta
 iner.java:295)
 at org.jboss.ejb.Container.invoke(Container.java:702)
 at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:441)
 at
 org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
 at
 org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:1
 02)
 at
 org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.jav
 a:73)
 at
 org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
 at
 org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
 at
 org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
 at $Proxy33.create(Unknown Source)
 at
 com.betweenmarkets.user.client.EJBUserManagerFactory.getUserManager(EJBU
 serManagerFactory.java:36)
 at
 com.betweenmarkets.usersecurity.DefaultUserSecurityContext.login(Default
 UserSecurityContext.java:68)
 at
 com.betweenmarkets.transactionmanager.web.actions.LogonAction.handleRequ
 est(LogonAction.java:77)
 at
 com.betweenmarkets.web.BaseAction.perform(BaseAction.java:179)
 at org.apache.struts.action.Action.execute(Action.java:391)
 at
 org.apache.struts.action.ActionServlet.processActionPerform(ActionServle
 t.java:2234)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:2013)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:558)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
 tionFilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
 erChain.java:193)
 at
 com.betweenmarkets.web.accesscontrol.AccessControlServletFilter.doFilter
 (AccessControlServletFilter.java:80)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
 tionFilterChain.java:213)
 at
 

RE: [JBoss-user] Building Catalina .sar (Tomcat to work with JBos sBeta 2 HOWTO)?

2002-04-08 Thread Dennis Muhlestein

I tried with tomcat on a separate machine, and with embedded tomcat
running withing Jboss to perform the same method method call.  The
exception occurs when the container tries to invoke the create method of
my SSB only when I try from the embedded tomcat.

Note: I am using the same instance of JBoss for both instances of
Tomcat.  I can use the application without error from the remote tomcat.

I added debugging into JBoss to print the contends of homeMapping and
the method I want to get in the StatelessSessionConainer.invokeHome
method.  It does not matter if I try via the remote tomcat or the
embedded tomcat.. The map contains the exact same values and the method
I am trying to get is the same. (At least he contents of
mi.getMethod().toString() are exactly the same).

If I pass in a value to the map, shouldn't I always get the correct
value back.  It seems to me that I'm executing the same code in
StatelessSessionContainer regardless of the instance of tomcat I am
trying to access the ejb from.  When I try the embedded instance of
tomcat though, the Method m(StatelessSesssionContainer.java:590 aprox)
is null.  As far as I can tell, it's the same map and JBoss is passing
in the same value.

I'm not completely convinced that this is a classloader issue but then
again, I'm not to familiar with the in's and out's off jboss.

Guess for the time being, I'll use tomcat remotely and wait for someone
to fix this.  Happy to provide additional info if anyone is interested.

-Dennis

PS: the bug on sourceforge related to a different issue that did regard
classloading.



On Mon, 2002-04-08 at 12:52, Bunker, Dan wrote:
 I have played with the same issues and am fairly confident that this is a
 ClassLoader issue.  Investigating the tomcat.sar source files, jboss hands
 the WAR file off to Catalina to handle.  This means that all web content is
 loaded with the catalina WebClassloader.  So even though you have class1 in
 the jboss tier and you have class1 in the catalina tier they are not
 compatible due to the two different classloaders.  Sibling class loaders
 cannot understand each others content.  This issue should be addressed by
 the UCL or other relavant code.  I believe there is a bug on sourceforge
 relating to this.
 
 Dan
 
 -Original Message-
 From: David Jencks [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 08, 2002 11:42 AM
 To: James Higginbotham
 Cc: David Jencks; [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Building Catalina .sar (Tomcat to work with
 JBoss Beta 2 HOWTO)?
 
 
 Well, I wonder if it is some kind of classloader problem.  I don't really
 have a clue about what it could be.
 
 The mi (method invocation) contains info about what you are trying to do:
 the method name and arguments you called, and various context info.  I
 don't see how the mi could be null there, so I'm assuming the method map
 doesn't have what you are looking for.  What is the mi.getMethod()? What is
 in the method map? 
 
 david jencks
 
 On 2002.04.08 12:58:37 -0400 James Higginbotham wrote:
  No, both unit test and struts action use our helper factory, which use
  the narrow() method. They cast to the home interface after calling the
  helper method, which narrowed the reference. Any other ideas based on
  the stacktrace and what your code is trying to do? I can dive into the
  source and put in debug statements and such, but any context you can
  provide as to what is expected to happen a few method calls before and
  after (beyond the code itself) would be helpful. 
  
  Here is the signature for the home interface:
  
UserManager create() throws CreateException, EJBException,
  RemoteException;
  
  The weird thing is that the code works under Jetty, just not Tomcat.
  However, we'd prefer to use Tomcat for our product release. Everything
  works find under Weblogic, BTW, though they tend to be more forgiving
  with minor errors and such in descriptors, etc. 
  
  Thanks,
  James
  
   -Original Message-
   From: David Jencks [mailto:[EMAIL PROTECTED]] 
   Sent: Monday, April 08, 2002 11:53 AM
   To: James Higginbotham
   Cc: [EMAIL PROTECTED]
   Subject: Re: [JBoss-user] Building Catalina .sar (Tomcat to 
   work with JBoss Beta 2 HOWTO)?
   
   
   Basically I don't have a clue about what is going on, 
   however... Are you doing PortableRemoteObject.narrow in your 
   failing code and a cast in your unit test?  If so you might 
   try changing to a cast in your failing code. 
   This is a wild guess, but let us know if it works.
   
   Everything should be unserialized calls within the same vm.
   
   david jencks
   
   On 2002.04.08 12:37:04 -0400 James Higginbotham wrote:
Well, here is the helper code (same as what is being called 
   from the 
unit test):

UserManagerHome dmHome =
(UserManagerHome) EJBHomeFactory.getInstance()
.lookupEJBHome(UserManagerHome.class);

ejbUserManager_ 

[JBoss-user] CMP Help

2002-04-02 Thread Dennis Muhlestein


I have a very simple CMP 2.0 Bean.  It has one Field on one table. 

I am using jboss 3.0 beta 2 (from cvs)

I am trying to call the create method on my Bean from a Local Interface 
in a Stateful Session Bean.  

When I call create, I get the following output in my server.log: 


2002-04-01 16:46:39,968 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.AccountMasterEJB] Create: 
pk=dennis 
2002-04-01 16:46:40,144 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.AccountMasterEJB] Executing 
SQL: SELECT COUNT(*) FROM AccountMaster WHERE Username=? 
2002-04-01 16:46:40,242 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.AccountMasterEJB] Executing 
SQL: INSERT INTO AccountMaster (Username) VALUES (?) 
2002-04-01 16:46:40,245 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.AccountMasterEJB] Create: Rows 
affected = 1 


It appears that the CMP worked correctly.  The client Bean however,
catches the following EJBException:



2002-04-01 16:46:40,258 ERROR [STDERR]
java.lang.reflect.UndeclaredThrowableException: 
2002-04-01 16:46:40,258 ERROR [STDERR] java.rmi.ServerException: null 
Embedded Exception 
$Proxy23; nested exception is: 
javax.ejb.EJBException: null 
Embedded Exception 
$Proxy23 
2002-04-01 16:46:40,258 ERROR [STDERR] javax.ejb.EJBException: null 
Embedded Exception 
$Proxy23 
2002-04-01 16:46:40,259 ERROR [STDERR]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1072)
 
2002-04-01 16:46:40,259 ERROR [STDERR]  at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:73) 
2002-04-01 16:46:40,259 ERROR [STDERR]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:222)
 
2002-04-01 16:46:40,260 ERROR [STDERR]  at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:176)
 
2002-04-01 16:46:40,260 ERROR [STDERR]  at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134)
 
2002-04-01 16:46:40,260 ERROR [STDERR]  at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79) 
2002-04-01 16:46:40,261 ERROR [STDERR]  at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98) 
2002-04-01 16:46:40,261 ERROR [STDERR]  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) 
2002-04-01 16:46:40,261 ERROR [STDERR]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52) 
2002-04-01 16:46:40,262 ERROR [STDERR]  at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:102) 
2002-04-01 16:46:40,262 ERROR [STDERR]  at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
2002-04-01 16:46:40,262 ERROR [STDERR]  at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:468) 
2002-04-01 16:46:40,262 ERROR [STDERR]  at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:243)
 
2002-04-01 16:46:40,263 ERROR [STDERR]  at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$HomeProxy.invoke(BaseLocalContainerInvoker.java:367)
 
2002-04-01 16:46:40,263 ERROR [STDERR]  at $Proxy12.create(Unknown
Source) 
etc, etc 


This is my create method in the EJB

public String ejbCreate ( String username ) throws CreateException {
setUsername ( username );
// if I add debugging info here, it gets printed just
// fine
return null; // standard for CMP
}



Any suggestions?  Any help appreciated.

-Dennis



signature.asc
Description: This is a digitally signed message part