Re: [JBoss-user] Feature idea

2003-03-03 Thread Jules Gosnell
I have considered how this might be implemented. Here is a brief dump of 
the current state of affairs.

1. As Jonathan says - you can only implement this if your API specifies 
a redeploy(), not simply deploy()/undeploy() methods. The deployment JSR 
does list this as an optional requirement and a first step in being able 
to implement this in the Jetty/JBoss integration will be the JBoss 
service lifecycle including this method.

2. If this method is implemented then there are two ways in which I see 
this happening.

a) Marc has said that he would like to see the Http and 
Servlet-container parts of Jetty decoupled and plugged into the JBoss 
JMX Bus, so that every Http request is parsed, placed onto the bus, 
travels through a generic interceptor/aspect stack and then on to it's 
servlet. There would be problems in mapping the stream-based API 
currently in place between these two components to the invocation-based 
API used on the JMX bus - but these are under consideration. If this was 
done, then a future ValveInterceptor (as mentioned on this thread) would 
be used to achieve your goal.

b) Even if these two Jetty components remain tightly coupled, there is 
no reason why we (Jetty) should not implement some form of redeploy() in 
which a context remains somehow inhabited.

This is the future. For the moment, I believe that with a little bit of 
configuration you should be able to map an underlying context to do what 
you want to do. Whilst your webapp is deployed it would shadow and 
'steal' requests from this context. Whilst it is undeployed, they would 
fall through and be processed accordingly.

If you wish to follow through with this solution, please take this 
discussion to [EMAIL PROTECTED] where I am sure you will 
find more help on how this might be achieved. Stay in touch and if you 
come up with a solution I shall add it to the Jetty/JBoss FAQ.

Jules

Jonathan.O'[EMAIL PROTECTED] wrote:

David,
Two points about this: 
One: you HOPE the application is only down for a minute. You don't know if 
it will deploy properly.
Two: Maybe it could implemented with an interceptor, looking for requests 
to old Web apps. The web app would have to register with the interceptor 
saying it was going down. On deployment, it would unregister with the 
interceptor. However, I have no idea how you could implement it. No doubt, 
its easy enough for some interceptor expert.

Ciao,
Jonathan O'Connor




David Corbin [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
28.02.2003 13:02
Please respond to jboss-user
   To: JBoss User [EMAIL PROTECTED]
   cc: 
   Subject:[JBoss-user] Feature idea

The one thing I'd like to see jboss provide.  When I an application is 
redeployed, I'd like to see JBoss accept requests for the context of the 
application, and return a page that says Please try again in a few 
moments.  Even better would be some way to configure the response.  The 
key point is, that the application is down for a minute, we know that 
it's down for just a bit, we should be able to handle the error better.

David



---
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 email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com

---
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] Many-to-many relation table is not being updated

2003-03-03 Thread Marek Lange
I tried this but it didn't work... :-(
I have tried on JBoss 3.2.0RC2 too, but it didn't work too. I'm stucked on
this for almost 2 weeks by now. :-(
If you have any other suggestion or an example of 2 EJB with a many-to-many
relationship between them coded using XDoclet, please send me.
The fact, that you get the correct results if you populate the database 
manually, proofs that the relation is correctly working. So there seems 
to be another reason why the inserts do not work.

Have you set up a 1:n relation before? Does this work? Perhaps there is 
a problem with your database? What are you using?

-marek



---
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] build of jboss cvs 3.2 fails now for about 4 days ?

2003-03-03 Thread Egger Lothar
hello scott

yes I can do a build also, but the error
occurs in ./build/build.sh release-zip or release-tgz

sorry if my earlier mail pointed in the wrong direction.

cheers
lothar

 -Original Message-
 From: Scott M Stark [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 01, 2003 2:29 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] build of jboss cvs 3.2 fails now 
 for about 4 days ?
 
 
 I just pulled down a clean checkout and was able to build the 
 3.2 branch.
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 - Original Message - 
 From: Egger Lothar [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 9:45 AM
 Subject: [JBoss-user] build of jboss cvs 3.2 fails now for 
 about 4 days ?
 
 
  hi all
   
  hm.. is it me ?
  
  this what i've done
  
  
 ##
 #
  #!/bin/sh
  export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot/jboss
  cvs login
  cvs -z3 checkout -r Branch_3_2 jboss-3.2
  cd jboss-3.2/
  ./build/build.sh init
  ./build/build.sh
  ./build/build.sh help
  ./build/build.sh release-tgz
  ./build/build.sh release-zip
  
 ##
  
  if fails at ./build/build.sh
   with the following error
  
  
  _module-varia-most:
  [unjar] Expanding:
  /home/Lviz/jboss-cvs/jboss-3.2/varia/output/lib/htmladaptor.war into
  
 /home/Lviz/jboss-cvs/jboss-3.2/build/output/jboss-3.2.0RC3/ser
ver/all/deploy
  /jmx-console.war
  [unjar] Expanding:
  
 /home/Lviz/jboss-cvs/jboss-3.2/varia/output/lib/http-invoker.sar into
  
 /home/Lviz/jboss-cvs/jboss-3.2/build/output/jboss-3.2.0RC3/ser
ver/all/deploy
  /http-invoker.sar
   [move] Moving 1 files to
  
 /home/Lviz/jboss-cvs/jboss-3.2/build/output/jboss-3.2.0RC3/ser
ver/all/deploy
  /http-invoker.sar
  [unjar] Expanding:
  
 /home/Lviz/jboss-cvs/jboss-3.2/build/output/jboss-3.2.0RC3/ser
ver/all/deploy
  /http-invoker.sar/tmp.war into
  
 /home/Lviz/jboss-cvs/jboss-3.2/build/output/jboss-3.2.0RC3/ser
ver/all/deploy
  /http-invoker.sar/invoker.war
 [delete] Deleting:
  
 /home/Lviz/jboss-cvs/jboss-3.2/build/output/jboss-3.2.0RC3/ser
ver/all/deploy
  /http-invoker.sar/tmp.war
  [unjar] Expanding:
  
 /home/Lviz/jboss-cvs/jboss-3.2/varia/output/lib/jbossmq-httpil
 .sar into
  
 /home/Lviz/jboss-cvs/jboss-3.2/build/output/jboss-3.2.0RC3/ser
ver/all/deploy
  /jbossmq-httpil.sar
  [unjar] Unable to expand to file
  
 /home/Lviz/jboss-cvs/jboss-3.2/build/output/jboss-3.2.0RC3/ser
ver/all/deploy
  /jbossmq-httpil.sar/jbossmq-httpil.war
  
  BUILD FAILED
  file:/home/Lviz/jboss-cvs/jboss-3.2/build/build.xml:1167: 
 Use a fileset to
  copy directories.
  
  Total time: 1 minute 32 seconds
  
  thank you for your help
  Lothar
  
  
  
  ---
  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


[JBoss-user] [jboss3.2.0RC2/tomcat4.1.18] can't gain access to JNDIView or wardeployed

2003-03-03 Thread Ionel Gardais
Hi,

i've just upgrade from Jboss 3.0.0 w/ Tomcat to Jboss3.2.0RC2/Tomcat.

I'm no more enable to access localhost:8082 for the management or even 
apps deployed under localhost:8080

This all works in the previous version of JBoss.
Do I need to modify/add values in my war file ?
Thanks,
ionel


---
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] Unsolvable? Managing state in a clustered environment

2003-03-03 Thread sounder
I got stuck!

Requirements:
1) we need to manage stateful sessions (with complex session information)
2) in a clustered environment
3) session must survive a node going down (--replication is mandatory)
4) SOAP-enabled, NO web clients, client does not have notion of 
HttpSessions (so forget that)
5) Session State should be kept in-memory (for performance reasons)
6) make Session data persistent when session lifetime is over
7) requests on the session always modify session information (no 
read-only requests)

Possible Solution (A):
- use EntityBeans to track Session State
Problems with (A):
- for the described scenario EntityBeans cannot be clustered without 
violating RQMT 3), 5) and 7)
- main problem: there is currently no state replication for EntityBeans 
across cluster nodes (why)

Possible Solution (B):
- use Stateful SessionBeans to manage state
- SFSBs are synchronized across nodes, so it looks like all RQMTS apply 
and this is the way to go, but

Problems with (B):
- there is no finder-like way of getting the SFSB instance for a 
particular session, so the reference to the instance must be kept somewhere
- in web environments one would store the reference in the HttpSession 
but RQMT 4) disallows that
- but how can this be solved with, let's say a SOAP Client who does have 
notion of HttpSessions? Where can the reference be stored?

To me it seems once more that the spec is incomplete or am I just blind?

Is there any way to solve this dilemma? Any thoughts appreciated.
Toby


---
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] Feature idea

2003-03-03 Thread Rick LaBanca
Jetty is separate but the jboss folks seem to want to treat it as the
official jsp portion of the suite (I agree). I think of jboss as the
controller over all its components so specifying some kind of wait page or
other logic should be at this top level somehow I think.

- Original Message -
From: Guy Rouillier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 11:23 PM
Subject: Re: [JBoss-user] Feature idea


 - Original Message -
 From: Rod Macpherson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, March 01, 2003 2:51 AM
 Subject: Re: [JBoss-user] Feature idea


   JBoss is an EJB engine.  What kind of page are you talking about?
 I
   think you are actually talking about a web app bundled up into a war
   with other stuff and deployed on a jboss-jetty or jboss-tomcat
   combination.  But JBoss itself doesn't have anything to do with
 pages.
 
  Guy,
 
  I for one appreciate that David distilled web app bundled up into a
 war
  with other stuff and deployed on a jboss-jetty or jboss-tomcat
 combination
  to pages since the abbreviated reference was both unambiguous and
 correct.
  JBoss is now an umbrella label for the complete J2EE stack including
 JMS,
  JCA, JSP and so on.

 Well, I'm just a user of JBoss, not part of JBoss Group, so I'll let
 them draw the line.  My understanding is that Jetty is still a
 separately maintained product - it is **optionally** bundled with JBoss
 as a convenience and to gain the performance advantage (if you so
 choose) of running them both in a single JVM.  But I'd prefer not to
 obfuscate the terminology.  I choose to run JBoss and Tomcat
 independently, on different servers.  Does it make sense in that context
 to speak of JBoss serving pages, and if so, what pages would that be
 referring to?  And while it may seem I'm being too picky about
 terminology, it helps in isolating problems to understand which
 component is responsible for what.  For example, in David's example,
 Jetty would have to put up the temp page, since it is the piece that is
 rendering JSP pages.

 David, if I came across as abrupt, I apologize.  We've been in a crunch
 at work and I haven't been sleeping enough.  Perhaps I should just lurk.




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


[JBoss-user] Log4j problem

2003-03-03 Thread Rafal Kedziorski
hi,

in log4j.xml I defined my own appender:

appender name=MMCMSFILE 
class=org.jboss.logging.appender.DailyRollingFileAppender
  param name=File value=${jboss.server.home.dir}/log/mmcms.log/
  param name=Append value=true/
  param name=Threshold value=DEBUG/
  param name=DatePattern value='.'-MM-dd/
  layout class=org.apache.log4j.PatternLayout
param name=ConversionPattern value=%d %-5p [%c] %m%n/
param name=ConversionPattern value=%d %-5r %-5p [%c] (%t:%x) 
%m%n/ --
  /layout
/appender

...

category name=de.polonium
  priority value=DEBUG/
  appender-ref ref=MMCMSFILE/
/category
There is only one problem. in server.log (default logfile for JBoss) I see 
the debug print out's from my lib-classes, where are stored under:

jboss-3.0.6\server\default\lib\...

from my EJB's and servlets the print out is going into mmcmc.log

Best Regards,
Rafal


---
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] Many-to-many relation table is not being updated

2003-03-03 Thread Mauricio Hiroshi Nagaoka
Yes, 1:N relations work perfectly.
I'm usign default JBoss database (HSQLDB).
I've tested with MySQL too. Same problem... :-(

Mauricio


- Original Message -
From: Marek Lange [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 03, 2003 7:34 AM
Subject: Re: [JBoss-user] Many-to-many relation table is not being updated


  I tried this but it didn't work... :-(
  I have tried on JBoss 3.2.0RC2 too, but it didn't work too. I'm stucked
on
  this for almost 2 weeks by now. :-(
 
  If you have any other suggestion or an example of 2 EJB with a
many-to-many
  relationship between them coded using XDoclet, please send me.

 The fact, that you get the correct results if you populate the database
 manually, proofs that the relation is correctly working. So there seems
 to be another reason why the inserts do not work.

 Have you set up a 1:n relation before? Does this work? Perhaps there is
 a problem with your database? What are you using?

 -marek



---
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] Loging out user from webapplication -session.invalidate() doesntdestory all user data - name and password

2003-03-03 Thread Ivan Bolcina








Hello. 

I have several web applications running on jetty/jboss. All
of them are secure and require user to login. I have a problem. User gets into
one applications, then he exits. ( I call session.invalidate())

Then, user goes to another application, he logs in again and
logs out again. BUT, when he enters the first application again, he is not
prompted for username/password. I belive jetty remembers user's data. I hoped
thant when I do session.invalidate(), everything about this user, object bound
to session as well as his credidentials, will be forgoten. This is not the
case. So how to do this?



Thank you very much for your help,

Ivan








RE: [JBoss-user] couple of JBoss and xdoclet questions

2003-03-03 Thread MNewcomb
 I've noticed that in my bean class if I specify a method like:
 
 /**
 * @ejb.interface-method
 * @ejb.persistence
 *
 * @return String
 */
public abstract String getState();
 
 The resulting output in jbosscmp-jdbc.xml looks like:
 
 cmp-field
 field-namestate/field-name
 /cmp-field
 
 If the column name in the database is the same as the object's 
 field-name do I still need to specify the column-name attribute 
 underneath @ejb.persistence?  Or do I only need to specify the 
 column-name when it is not equivalent to the field-name?

You only need to specify column-name if the one JBoss uses does not match
existing db structure, or you don't like the name it uses (just the field
name).

 If I have the following method:
 
 /**
 * @ejb.interface-method
 * @ejb.persistence
 * column-name=address_id
 * @ejb.pk-field
 *
 * @return Integer
 */
public abstract Integer getAddressId();
 
 Do I need the @ejb.persistence tag if I also have @ejb.pk-field?

Yes.  The pk-field tag just tags this field as being part of the generated
pk class.  The pk-field tag is really used only for compound pks.  What you
really want is:

/**
 * ...
 *
 * @ejb.bean name=XXX primkey-field=addressId type=CMP ...
 */
public abstract class XXXBean ...

  ...

 /*
  * @ejb.interface-method
  * @ejb.persistence
  */
 public abstract Integer getAddressId();

For non-compound primary keys, use the primkey-field attribute of the
@ejb.bean tag.

Michael


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


[Fwd: [JBoss-user] Can't access a Bean using RMI/IIOP]

2003-03-03 Thread Gerard BUNEL
Hello,

Last week I posted this mail and got no answer.
Really nobody has an idea about a possible solution ?

Gerard BUNEL a écrit :

 Hello,

 I encounter a probleme in one of my EJB when this one tries to get a
 reference on another EJB which may
 be (or may not be) located on another host/server. I use the following code
 where a_Context is long a String
 of kind IOR:... refering to a root CosNaming provided by JBoss (JacORB in
 fact)

 try {
   java.util.Properties p = new java.util.Properties();
   p.put(Context.PROVIDER_URL, a_Context);
   ic = new InitialContext(p);

   Object o = ic.lookup( EJBCTIProxy);
   EJBCTIProxyHome home = (EJBCTIProxyHome)PortableRemoteObject.narrow(
 o, EJBCTIProxyHome.class);
   ic.close();
   // EJB creation
   EJBCTIProxy delegate = home.create();
   return delegate;
 } catch (Exception ne) {
   throw new CreateException(ne.getMessage());
 } finally {
   if (ic != null)
   try { ic.close(); } catch (Exception e) {}
 }

  the lookup fails with the exception printed below.
 I understand that should have added the line to solve the problem:

 p.put(Context.INITIAL_CONTEXT_FACTORY, some.class.from.jacorb);

 But I would like to avoid this solution as it is not portable from one
 server to another. The class name is different
 in BEA WebLogic for example. So, Is there another soulution ?

 17:30:19,206 WARN  [NamingContext] Failed to connect to IOR:1099
 javax.naming.CommunicationException: Failed to connect to server IOR:1099.
 Root
  exception is
 javax.naming.ServiceUnavailableException: Failed to connect to server
 IOR:1099.
  Root exception is
 java.net.UnknownHostException: IOR
 at java.net.InetAddress.getAllByName0(InetAddress.java:920)
 at java.net.InetAddress.getAllByName0(InetAddress.java:890)
 at java.net.InetAddress.getAllByName(InetAddress.java:884)
 at java.net.InetAddress.getByName(InetAddress.java:814)
 at
 org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory
 .java:61)
 at
 org.jnp.interfaces.NamingContext.getServer(NamingContext.java:159)
 at
 org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1029)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:450)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
 at javax.naming.InitialContext.lookup(InitialContext.java:347)
 at
 com.ftrd.cti.ejb.EJBCTIClientProxyBean.createServer(EJBCTIClientProxy
 Bean.java:192)

 Gerard BUNEL

 --
 [EMAIL PROTECTED] - Atlantide - http://www.ago.fr/atlantide/
 Technopole Brest Iroise BP 80802 - 29608 Brest cedex - France -
 Tel. : +33 (0)2 98 05 43 21 - Fax. : +33 (0)2 98 05 20 34 - e-mail:
 [EMAIL PROTECTED]
 Centre Affaires Oberthur - 74D, rue de Paris -  35700 Rennes - France
 Tel. : +33 (0)2 99 84 15 84 - Fax : +33 (0)2 99 84 15 85 - e-mail:
 [EMAIL PROTECTED]

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

--
[EMAIL PROTECTED] - Atlantide - http://www.ago.fr/atlantide/
Technopole Brest Iroise BP 80802 - 29608 Brest cedex - France -
Tel. : +33 (0)2 98 05 43 21 - Fax. : +33 (0)2 98 05 20 34 - e-mail:
[EMAIL PROTECTED]
Centre Affaires Oberthur - 74D, rue de Paris -  35700 Rennes - France
Tel. : +33 (0)2 99 84 15 84 - Fax : +33 (0)2 99 84 15 85 - e-mail:
[EMAIL PROTECTED]




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


[JBoss-user] Very confused about transactions!!

2003-03-03 Thread Brian McSweeney



Hi guys,

I reckon I'm going to come across as a dope here, 
but anyway :-)

I read recently that for entity beans that use ejb2 cmp only Required, 
RequiresNew or Mandatory transaction attributes are allowed. Does this 
mean that every single method on every single 
Entity Bean using CMPmust be ina 
transaction? Is this not massively overkill? For 
example, to read a value in an 
entity bean it has to be in a 
transaction?

have I got this correct?

cheers,
Brian


[JBoss-user] Creating a SQL sequence

2003-03-03 Thread Steve Jones
Hi,

I'm interested in creating a sequence in my DB at the
point of table creation by the CMP container. Is this sort
of thing configurable? Or is there a class that could be
subclassed to implement this?

I'm using JBoss 3.0.4.

--
Steve Jones[EMAIL PROTECTED]

PGP: 1A98501A
fp:  D695 6031 30F5 70E6 975F  C876 1956 946C 1A98 501A

Real programmers don't write in BASIC. Actually, no
programmers write in BASIC after reaching puberty.


---
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] combination scoped class loading with xmbeans not working

2003-03-03 Thread Jurjan-Paul Medema
Hello,

Can somebody confirm that there is a bug in the implementation of the 
loader-repository functionality for ears in combination with the use of 
XMBeans.

Using JBoss 3.2.0RC2, I find scoped class loading to be working fine for 
e.g. Standard MBeans (the SAR inside a scoped EAR) and XMBeans to be 
working nicely when not trying to scope them.

Combining these wonderful features consistently results in:

16:22:57,290 WARN  [ServiceConfigurator] Failed to complete install
java.lang.ClassNotFoundException: No ClassLoaders found for: 
com.globalros.broadcast.BroadcastServer
at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:155)
at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:161)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.loadClass(UnifiedLoaderRepository3.java:144)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.loadClass(UnifiedLoaderRepository3.java:489)
at 
javax.management.loading.DefaultLoaderRepository.loadClass(DefaultLoaderRepository.java:78)
at 
org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:825)
at 
org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:266)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:155)
at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
at 
org.jboss.system.ServiceController.install(ServiceController.java:225)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)

(Actually, this stack trace is the result of deploying under the CVS HEAD 
for JBoss 3.2.0RC3 ).

Thanks,
Jurjan-Paul Medema


---
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] [HELP] Application Error: tried to enter Stateful bean with different transaction context

2003-03-03 Thread Alban Soupper
Hi all,
 I need help to resolve to following problem:

javax.ejb.EJBException: Application Error: tried to enter Stateful bean with
different transaction context, contextTx: TransactionImpl:XidImpl
[FormatId=257, GlobalId=Legolas//2, BranchQual=], methodTx:
TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//3, BranchQual=]
at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
ionInstanceInterceptor.java:228)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:107)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:178)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
380)
at org.jboss.ejb.Container.invoke(Container.java:712)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77
)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce
ptor.java:117)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy63.handleEvent(Unknown Source)
at
com.eim.application.intranet.control.web.ClientControllerWebImpl.processRequ
est(ClientControllerWebImpl.java:295)
at
com.eim.application.intranet.view.third.action.wizard.create.TreatStep1Actio
n.execute(TreatStep1Action.java:67)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:446)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at
com.eim.application.intranet.control.struts.CustomRequestProcessor.process(C
ustomRequestProcessor.java:50)
...


What can be the reason of such error ?

Thanks a lot in advance :)

Alban.


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager at postmaster.eim.ch.
**



---
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] show memory usage

2003-03-03 Thread Michael Klem
If you want to do it programmatically, use JMX and query the JBoss 
app server that way. In my app I display how much total and free 
memory are available and do it this way.

String _jbossMemoryString = (String)jmxMgr.invoke( 
DefaultDomain:service=Info, listMemoryUsage );

The string contains HTML tags so I strip all that out.

At 1:04 PM +0100 03/03/2003, Rafal Kedziorski wrote:
hi,

in WebLogic there is a possibility to obsere the memory usage thru 
an applet console. Knowns anybody the same possibility for JBoss. or 
have I to implement this?

Best Regards,
Rafal


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


--
 Michael Klem [EMAIL PROTECTED]626-296-3027
---
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] [XDcolet] getting ride of relationship tag in jbosscmp-jdbc.xml

2003-03-03 Thread Ionel Gardais
Hi,

I'm using Xdoclet to generate the interfaces of my beans and the 
deployment descriptor.

I have enable a 1:N relationship.
Even when I am not adding an @jboss.relation tag, I get a relationship 
xml tag in jbosscmp-jdbc.xml and this make JBoss complains with this 
error message :

code
17:28:08,574 ERROR [URLDeploymentScanner] MBeanException: Exception in 
MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
 none
Incompletely deployed packages:
 none
MBeans waiting for classes:
 none
MBeans waiting for other MBeans:
[ObjectName: jboss.j2ee:jndiName=ejb/calendrier/LocalSalle,service=EJB
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: Atleast one 
role of a foreign-key mapped relationship must have key fields: 
ejb-relation-name=Tache-Salle, ObjectName: 
jboss.j2ee:jndiName=ejb/calendrier/LocalCycle,service=EJB
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: Atleast one 
role of a foreign-key mapped relationship must have key fields: 
ejb-relation-name=Tache-Salle, ObjectName: 
jboss.j2ee:jndiName=ejb/calendrier/LocalPersonne,service=EJB
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: Atleast one 
role of a foreign-key mapped relationship must have key fields: 
ejb-relation-name=Tache-Salle, ObjectName: 
jboss.j2ee:jndiName=ejb/calendrier/LocalTache,service=EJB
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: Atleast one 
role of a foreign-key mapped relationship must have key fields: 
ejb-relation-name=Tache-Salle]
/code

Where is the problem ?
Can I disable the adding of the relationship tag in jbosscmp-jdbc.xml ? 
(I don't use a foreigne key)

Thanks,
ionel


---
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] combination scoped class loading with xmbeans not working

2003-03-03 Thread Scott M Stark
Create a bug report on sourceforge with an example so I can look into it.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: Jurjan-Paul Medema [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 03, 2003 7:46 AM
Subject: [JBoss-user] combination scoped class loading with xmbeans not working


 Hello,
 
 Can somebody confirm that there is a bug in the implementation of the 
 loader-repository functionality for ears in combination with the use of 
 XMBeans.
 
 Using JBoss 3.2.0RC2, I find scoped class loading to be working fine for 
 e.g. Standard MBeans (the SAR inside a scoped EAR) and XMBeans to be 
 working nicely when not trying to scope them.
 
 Combining these wonderful features consistently results in:
 
 16:22:57,290 WARN  [ServiceConfigurator] Failed to complete install
 java.lang.ClassNotFoundException: No ClassLoaders found for: 
 com.globalros.broadcast.BroadcastServer
  at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:155)
  at 
 org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:161)
  at 
 org.jboss.mx.loading.UnifiedLoaderRepository3.loadClass(UnifiedLoaderRepository3.java:144)
  at 
 org.jboss.mx.loading.UnifiedLoaderRepository3.loadClass(UnifiedLoaderRepository3.java:489)
  at 
 javax.management.loading.DefaultLoaderRepository.loadClass(DefaultLoaderRepository.java:78)
  at 
 org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:825)
  at 
 org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:266)
  at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
  at 
 org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:155)
  at 
 org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
  at 
 org.jboss.system.ServiceController.install(ServiceController.java:225)
  at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
 
 (Actually, this stack trace is the result of deploying under the CVS HEAD 
 for JBoss 3.2.0RC3 ).
 
 Thanks,
 Jurjan-Paul Medema
 
 
 
 ---
 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


[JBoss-user] Two partitons with the same name?

2003-03-03 Thread Vladyslav Kosulin
Hi,
Sometime I need to dynamically separate some boxes from the partition (create 
temporary partition).
Is it possible to get 2 different partitions with the same name just by changing 
the attribute name=PartitionConfig? What to change?
I tried to read the JavaGroups docs, but did not find a clear answer.
Thanks,
Vlad



---
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] Re: Deadlocks

2003-03-03 Thread Jon Swinth
Does this mean that putting the following in the jbosscmp-jdbc.xml file 
doesn't make the beans read-only any more?

entity
  ejb-nameCarrierBeanRO/ejb-name
  table-namecarrier/table-name
  read-onlytrue/read-only
  read-time-out3/read-time-out
/entity

On Sunday 02 March 2003 06:35 pm, [EMAIL PROTECTED] 
wrote:
 From: Mauricio Hiroshi Nagaoka [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Deadlocks
 Date: Sun, 2 Mar 2003 19:00:12 -0300
 Reply-To: [EMAIL PROTECTED]


 Hi!


 I didn't find any way do detect deadlocks on JBoss but you can change your
 jboss.xml to tell JBoss which methods do not need an EJB lock.


 In each entity entry in jboss.xml file, do the following change (in this
 example, get* methods are read-only):


 entity
 ejb-nameRole/ejb-name
 local-jndi-nameejb/webflow/local/Role/local-jndi-name
 !-- this tells JBoss that the get* methods are read-only --
 method-attributes
 method
 method-nameget*/method-name
 read-onlytrue/read-only
 /method
 /method-attributes
 /entity


 I didn't find any XDoclet @tag to do this but I coded a XSLT transform:


 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes/


  xsl:template match=@*|node()
xsl:copy
  xsl:apply-templates select=@*|node()/
/xsl:copy
  /xsl:template


  xsl:template match=entity
   xsl:copy
xsl:apply-templates/
method-attributes
 method
  method-nameget*/method-name
  read-onlytrue/read-only
 /method
/method-attributes
   /xsl:copy
  /xsl:template


 /xsl:stylesheet


 If you are using ant to build your project do something like this:


   xslt in=${original.jboss.xml} out=${modified.jboss.xml}
 style=${location.of.xslt.above}
outputproperty name=method value=xml/
outputproperty name=standalone value=yes/
outputproperty name=encoding value=iso8859_1/
outputproperty name=indent value=yes/
xmlcatalog
 dtd publicId=-//JBoss//DTD JBOSS 3.0//EN
 location=${location.of.jboss.xml.dtd}/
/xmlcatalog
   /xslt


 The xmlcatalog tag above is optional. It's included here just to avoid a
 remote connection for the xml validation.


 I hope this helps.


 Greetings from Brazil!


 Mauricio



---
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] MDB Dependency and JMS Recovery

2003-03-03 Thread Chris Bonham
There have been a couple of discussions about how to establish dependencies
between deployment units (EARs, JARs, SARs, etc.)  But how can you make sure
that a bean is not deployed until another has been?

Environment: JBoss 3.2.0beta2, Sun JDK 1.4.1_01, WinXP Pro, Oracle 9i

Basically, we have an MDB that listens on a JMS queue (via JVMServerILService)
and it calls a stateless session bean that performs some business operations.
In the case where JBoss was shutdown improperly, there are still messages on
the queue that are persisted in the JMS_MESSAGES table (we're using the JDBC2
PersistenceManager).  When JBoss starts up, the undelivered messages are sent,
triggering the MDB, but the dependent SLSB is not yet ready!  Is there a way to
reorder this sequence of events or is it a bug?  I've attached a stacktrace.

Thanks.

--
Chris Bonham
President/CEO
Third Eye Consulting, Inc.
[EMAIL PROTECTED]
http://www.thirdeyeconsulting.com
317.823.3686
317.823.0353 (FAX)


11:30:31,614 INFO  [StatelessSessionContainer] Starting
11:30:31,644 INFO  [StatelessSessionInstancePool] Starting
11:30:31,644 INFO  [StatelessSessionInstancePool] Started
11:30:31,644 INFO  [StatelessSessionContainer] Started
11:30:31,644 INFO  [StatelessSessionContainer] Starting
11:30:31,704 INFO  [StatelessSessionInstancePool] Starting
11:30:31,704 INFO  [StatelessSessionInstancePool] Started
11:30:31,704 INFO  [StatelessSessionContainer] Started
11:30:31,704 INFO  [StatelessSessionContainer] Starting
11:30:31,744 INFO  [StatelessSessionInstancePool] Starting
11:30:31,744 INFO  [StatelessSessionInstancePool] Started
11:30:31,744 INFO  [StatelessSessionContainer] Started
11:30:31,744 INFO  [EntityContainer] Starting
11:30:31,784 INFO  [EntityInstancePool] Starting
11:30:31,784 INFO  [EntityInstancePool] Started
11:30:31,784 INFO  [EntityContainer] Started
11:30:31,784 INFO  [EntityContainer] Starting
11:30:31,815 INFO  [EntityInstancePool] Starting
11:30:31,815 INFO  [EntityInstancePool] Started
11:30:31,815 INFO  [EntityContainer] Started
11:30:31,815 INFO  [EntityContainer] Starting
11:30:31,845 INFO  [EntityInstancePool] Starting
11:30:31,845 INFO  [EntityInstancePool] Started
11:30:31,845 INFO  [EntityContainer] Started
11:30:31,845 INFO  [EntityContainer] Starting
11:30:31,885 INFO  [EntityInstancePool] Starting
11:30:31,885 INFO  [EntityInstancePool] Started
11:30:31,885 INFO  [EntityContainer] Started
11:30:31,885 INFO  [MessageDrivenContainer] Starting
11:30:31,895 INFO  [JMSContainerInvoker] Starting
11:30:31,895 INFO  [DLQHandler] Creating
11:30:31,895 INFO  [DLQHandler] Created
11:30:31,925 INFO  [DLQHandler] Starting
11:30:31,925 INFO  [DLQHandler] Started
11:30:31,925 INFO  [JMSContainerInvoker] Started
11:30:31,925 INFO  [MessageDrivenInstancePool] Starting
11:30:31,925 INFO  [MessageDrivenInstancePool] Started
11:30:31,925 INFO  [MessageDrivenContainer] Started
11:30:31,925 INFO  [EntityContainer] Starting
11:30:32,045 INFO  [EntityInstancePool] Starting
11:30:32,045 INFO  [EntityInstancePool] Started
11:30:32,075 INFO  [EntityContainer] Started
11:30:32,095 INFO  [StatelessSessionContainer] Starting
11:30:32,285 INFO  [StatelessSessionInstancePool] Starting
11:30:32,285 INFO  [StatelessSessionInstancePool] Started
11:30:32,315 INFO  [StatelessSessionContainer] Started
11:30:32,335 INFO  [StatelessSessionContainer] Starting
11:30:32,405 ERROR [LogInterceptor] TransactionRolledbackLocalException,
causedBy:
java.lang.NullPointerException
  at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createBeanClassInstance(JDBCStoreManager.java:513)
  at
org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersistenceManager.java:165)
  at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:251)
  at
org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:272)
  at
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java
:197)
  at
org.jboss.ejb.plugins.EntityMultiInstanceInterceptor.invokeHome(EntityMultiInstanceInterceptor.java:64)
  at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
  at
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
  at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:112)
  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:237)
  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:71)
  at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:105)
  at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:131)
  at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:125)
  at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:475)
  at

Re: [JBoss-user] Creating a SQL sequence

2003-03-03 Thread Alex Loubyansky
Not in 3.0 branch. You need to upgrade to 3.2.
The you can make use of entity-commands (see standardjbosscmp-jdbc.xml)
It'll allow you to use database generated values (mysql, informix,
sybase, hsql), specify custom sql statement to fetch new key value
(this is for sequences), provide JNDI name for key generator factory
(currently, only string UUID is available).

alex

Monday, March 03, 2003, 5:46:57 PM, Steve Jones wrote:

SJ Hi,

SJ I'm interested in creating a sequence in my DB at the
SJ point of table creation by the CMP container. Is this sort
SJ of thing configurable? Or is there a class that could be
SJ subclassed to implement this?

SJ I'm using JBoss 3.0.4.

SJ --
SJ Steve Jones[EMAIL PROTECTED]

SJ PGP: 1A98501A
SJ fp:  D695 6031 30F5 70E6 975F  C876 1956 946C 1A98 501A

SJ Real programmers don't write in BASIC. Actually, no
SJ programmers write in BASIC after reaching puberty.


-- 
Best regards,
 Alex Loubyansky




---
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] Creating a SQL sequence

2003-03-03 Thread David Ward
What about Oracle?

thx.

Mensaje citado por Alex Loubyansky [EMAIL PROTECTED]:

 Not in 3.0 branch. You need to upgrade to 3.2.
 The you can make use of entity-commands (see standardjbosscmp-jdbc.xml)
 It'll allow you to use database generated values (mysql, informix,
 sybase, hsql), specify custom sql statement to fetch new key value
 (this is for sequences), provide JNDI name for key generator factory
 (currently, only string UUID is available).
 
 alex
 
 Monday, March 03, 2003, 5:46:57 PM, Steve Jones wrote:
 
 SJ Hi,
 
 SJ I'm interested in creating a sequence in my DB at the
 SJ point of table creation by the CMP container. Is this sort
 SJ of thing configurable? Or is there a class that could be
 SJ subclassed to implement this?
 
 SJ I'm using JBoss 3.0.4.


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


RE: [JBoss-user] Re: Deadlocks

2003-03-03 Thread Bill Burke
two different things.

read-only for CMP means that updates will never happen.

read-only in jboss.xml is a container thing.  You can either mark the entire
bean read-only, which means that the bean will never do any transactional
locking, or you can do it per method.  See the JBoss for-pay docs for more
details.

Bill

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Jon Swinth
 Sent: Monday, March 03, 2003 1:14 PM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] Re: Deadlocks


 Does this mean that putting the following in the jbosscmp-jdbc.xml file
 doesn't make the beans read-only any more?

 entity
   ejb-nameCarrierBeanRO/ejb-name
   table-namecarrier/table-name
   read-onlytrue/read-only
   read-time-out3/read-time-out
 /entity

 On Sunday 02 March 2003 06:35 pm,
 [EMAIL PROTECTED]
 wrote:
  From: Mauricio Hiroshi Nagaoka [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] Deadlocks
  Date: Sun, 2 Mar 2003 19:00:12 -0300
  Reply-To: [EMAIL PROTECTED]
 
 
  Hi!
 
 
  I didn't find any way do detect deadlocks on JBoss but you can
 change your
  jboss.xml to tell JBoss which methods do not need an EJB lock.
 
 
  In each entity entry in jboss.xml file, do the following
 change (in this
  example, get* methods are read-only):
 
 
  entity
  ejb-nameRole/ejb-name
  local-jndi-nameejb/webflow/local/Role/local-jndi-name
  !-- this tells JBoss that the get* methods are read-only --
  method-attributes
  method
  method-nameget*/method-name
  read-onlytrue/read-only
  /method
  /method-attributes
  /entity
 
 
  I didn't find any XDoclet @tag to do this but I coded a XSLT transform:
 
 
  ?xml version=1.0 encoding=UTF-8?
  xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes/
 
 
   xsl:template match=@*|node()
 xsl:copy
   xsl:apply-templates select=@*|node()/
 /xsl:copy
   /xsl:template
 
 
   xsl:template match=entity
xsl:copy
 xsl:apply-templates/
 method-attributes
  method
   method-nameget*/method-name
   read-onlytrue/read-only
  /method
 /method-attributes
/xsl:copy
   /xsl:template
 
 
  /xsl:stylesheet
 
 
  If you are using ant to build your project do something like this:
 
 
xslt in=${original.jboss.xml} out=${modified.jboss.xml}
  style=${location.of.xslt.above}
 outputproperty name=method value=xml/
 outputproperty name=standalone value=yes/
 outputproperty name=encoding value=iso8859_1/
 outputproperty name=indent value=yes/
 xmlcatalog
  dtd publicId=-//JBoss//DTD JBOSS 3.0//EN
  location=${location.of.jboss.xml.dtd}/
 /xmlcatalog
/xslt
 
 
  The xmlcatalog tag above is optional. It's included here just
 to avoid a
  remote connection for the xml validation.
 
 
  I hope this helps.
 
 
  Greetings from Brazil!
 
 
  Mauricio



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


[JBoss-user] Stateful Session Beans in JBOSS3.2

2003-03-03 Thread Corbin, James

Hello,

In JBOSS3.2, can you configure the min and max numbers of Stateful session
beans created in the JDBC pool?

I know you can set the min and max beans in the pool through configuration
settings on the App Server, but can it be done at the bean level?  For
example, I have stateful session bean A.  I want to set the min and max
pool sizes of 1 and 3 for A.

Thanks

  _  


Architecture and Emerging Systems
Starwood Technology and Revenue Systems 
9285 Teddy Lane, Suite 230 
Lone Tree, CO 80124


 _  


This electronic message transmission contains information from the Company that may be 
proprietary, confidential and/or privileged.
The information is intended only for the use of the individual(s) or entity named 
above.  If you are not the intended recipient, be
aware that any disclosure, copying or distribution or use of the contents of this 
information is prohibited.  If you have received
this electronic transmission in error, please notify the sender immediately by 
replying to the address listed in the From: field.



---
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] Loging out user from webapplication -session.invalidate()doesnt destory all user data - name and password

2003-03-03 Thread Brett Sealey
session.invalidate() will only work if form based auth is being used.

If you're using basic auth then you will need to roll your own logout 
method that uses a 401 response to convince the browser to forget the 
login details.

btw - Closing the browser is/was the traditional way of logging out of 
basic auth. Servlet Spec 2.4 reportedly has a HttpSession.logout() method 
but I've not looked into it.

On Mon, 3 Mar 2003, Ivan Bolcina wrote:

 Hello. 
 I have several web applications running on jetty/jboss. All of them are
 secure and require user to login. I have a problem. User gets into one
 applications, then he exits. ( I call session.invalidate())
 Then, user goes to another application, he logs in again and logs out again.
 BUT, when he enters the first application again, he is not prompted for
 username/password. I belive jetty remembers user's data. I hoped thant when
 I do session.invalidate(), everything about this user, object bound to
 session as well as his credidentials, will be forgoten. This is not the
 case. So how to do this?
  
 Thank you very much for your help,
 Ivan
 




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Feature idea

2003-03-03 Thread Guy Rouillier

- Original Message -
From: Rick LaBanca [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 03, 2003 7:53 AM
Subject: Re: [JBoss-user] Feature idea


 Jetty is separate but the jboss folks seem to want to treat it as the
 official jsp portion of the suite (I agree). I think of jboss as the
 controller over all its components so specifying some kind of wait
page or
 other logic should be at this top level somehow I think.

Jetty is **currently** the default JSP engine used by JBoss.  Not too
long ago, Tomcat was the default.  I don't think either of them is
official, sine they are independent products and JBoss just picks one.
At this point, I prefer Tomcat.  So if anyone chooses to address this
issue, I sincerely hope they do so in an agnostic manner.  JBoss has
been very good up to now about making all things pluggable, so I'm
assuming they would in this case also.  I definitely don't want to
anything that is Jetty-specific.



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] where/how can I download JBoss4.0?

2003-03-03 Thread Sasidharan, Manoj
Hello All,

Where can I download JBoss4.0? If no binary version is available, please
provide necessary cvs information for checking out the source.

rgds
MS


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Memory leak

2003-03-03 Thread David Corbin
We're running JBOSS 3.0.3 (mostly, though some developers I think are 
using 3.0.4) at work, developing a simple web application.  We 
frequently undeploy/deploy the application using  ant to invoke commands 
like those below:

http://${jmx.host}/jmx-console/HtmlAdaptor?action=invokeOpByNamename=jboss.system:service%3DMainDeployermethodName=deployargType=java.lang.Stringarg=${dir.war}
http://${jmx.host}/jmx-console/HtmlAdaptor?action=invokeOpByNamename=jboss.system:service%3DMainDeployermethodName=undeployargType=java.lang.Stringarg=${dir.war}
We've found that after doing this repeatedly, jboss runs out of memory 
(no hard measurments yet, but probably between 10  30 cycles). 

Now, to me, fundamentally, this cannot be a bug in our application, 
since undeploying it should eliminate all object references to anything 
in our application, making it subject to garbage collection.  Am I wrong 
in my interpretation of this?  If so, please explain it to me.

Thanks.
David


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [ANN] Pixory beta-2.7

2003-03-03 Thread Joseph Panico
Pixory is a personal image server. It allows you to store your
photos on your own pc but to access, compose into albums, and share
them anywhere on the internet. It's your personal online photo sharing
service, running on your computer using your broadband internet
connection. Pixory is a client and a server, a lightweight web
application for browsing photo collections on your hardrive; an album
server to your friends and family or anyone on the internet. It
simplifies accessing and organizing photo collections on your home
network.
What's new:

Pixory now includes a distribution for easy deployment into JBoss.

You can find it here:

http://www.pixory.org

Joseph Panico
[EMAIL PROTECTED]


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



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Feature idea

2003-03-03 Thread Rick LaBanca
Pluggable is good, but I would like jboss to keep on a path where it's
configured as abstractly as possible and passes that to the plugins. For
example, it would be nice if you didn't have to configure jetty listeners,
but instead configured jboss web ports, and that got passed to the server of
choice.

- Original Message -
From: Guy Rouillier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 03, 2003 5:32 PM
Subject: Re: [JBoss-user] Feature idea



 - Original Message -
 From: Rick LaBanca [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, March 03, 2003 7:53 AM
 Subject: Re: [JBoss-user] Feature idea


  Jetty is separate but the jboss folks seem to want to treat it as the
  official jsp portion of the suite (I agree). I think of jboss as the
  controller over all its components so specifying some kind of wait
 page or
  other logic should be at this top level somehow I think.

 Jetty is **currently** the default JSP engine used by JBoss.  Not too
 long ago, Tomcat was the default.  I don't think either of them is
 official, sine they are independent products and JBoss just picks one.
 At this point, I prefer Tomcat.  So if anyone chooses to address this
 issue, I sincerely hope they do so in an agnostic manner.  JBoss has
 been very good up to now about making all things pluggable, so I'm
 assuming they would in this case also.  I definitely don't want to
 anything that is Jetty-specific.



 ---
 This SF.net email is sponsored by: Etnus, makers of TotalView, The
debugger
 for complex code. Debugging C/C++ programs can leave you feeling lost and
 disoriented. TotalView can help you find your way. Available on major UNIX
 and Linux platforms. Try it free. www.etnus.com
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] MDB Dependency and JMS Recovery

2003-03-03 Thread Brian Wallis
On Tue, 4 Mar 2003 05:26, Chris Bonham wrote:
 There have been a couple of discussions about how to establish dependencies
 between deployment units (EARs, JARs, SARs, etc.)  But how can you make
 sure that a bean is not deployed until another has been?

 Environment: JBoss 3.2.0beta2, Sun JDK 1.4.1_01, WinXP Pro, Oracle 9i

 Basically, we have an MDB that listens on a JMS queue (via
 JVMServerILService) and it calls a stateless session bean that performs
 some business operations. In the case where JBoss was shutdown improperly,
 there are still messages on the queue that are persisted in the
 JMS_MESSAGES table (we're using the JDBC2 PersistenceManager).  When JBoss
 starts up, the undelivered messages are sent, triggering the MDB, but the
 dependent SLSB is not yet ready!  Is there a way to reorder this sequence
 of events or is it a bug?  I've attached a stacktrace.

1) You can indicate a dependency of one jar(sar/war,etc..) on another using
   the manifest Class-Path entry. So if using ant you would put

 jar destfile=charlie.jar
   manifest
 attribute name=Class-Path value=fred.jar/
   /manifest
  ...
 /jar

   and then charlie.jar will depend on fred.jar so fred.jar will get loaded
   first. Space seperate other jar files in the value if you need more than
   one.

2) If it is an MBean requiring an ejb then you can put explicit dependencies
   in the MBean declaration in the jboss-service.xml. XDoclet can sort of
   handle this for you if you are using it to generate the jboss-service.xml
   in the sar file. What you need is a depends.../depends with the MBean
   name for the EJB in it, ie: jboss.j2ee:jndiName=ejb/aardvark/Name,service=EJB.

3) Finally for MBeans, you can just put a classpath element in the *-service.xml
   referencing the dependent jar, ie

 classpath codebase=. archives=fred.jar/

Remember that loading an EJB jar both loads the classes *and* starts the ejbs,
similarly for other jars with descriptors in them. If you just want to access classes
then you need to seperate them from the deployment descriptors. I usually have
a _client.jar and an _ejb.jar for ejbs. The client jar file contains most of the 
classes,
the ejb one has the bean classes and the deployment descripters. Similar for
other types.


brian wallis...

P.S. I am only just getting this right myself, dependencies can get very complicated 
in a large multi component project.


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Scoped classloading problems

2003-03-03 Thread Ryan Hoegg
Hello,

First of all, I am new to both JBoss and this mailing list, and I must 
say that I am quite impressed with JBoss (as compared to Websphere).

I am having a problem using a scoped class loader for my EAR.  It seems 
that there is cross pollination both ways between my EAR and some class 
loader up the chain... not sure if its the ServerLoader or the 
SystemLoader.  After reading the ClassLoader.pdf on sourceforge, I 
suspect that the scoped classloader code was designed to isolate 
deployed apps from one another, and not to isolate them from the system 
loader.

I have enabled trace logging of my class loader as suggested on the 
sf.net docs page.  (There is a small typo in that XML snippet, 
unbalanced double quotes).

I have enabled scoped classloading by including a jboss-app.xml in the 
META-INF/ subdirectory of my EAR.  This file follows the syntax I have 
seen documented in several places, and uses myapp.com:loader=myapp.ear 
as the JMX object name for the loader repository.

My application uses Log4J for logging, and depends on a closed source 
JAR that in turn depends on Xalan J 1.x.  I have included these 3 JARs 
in my EAR in the /lib subdirectory, and referenced them in the 
Class-Path attribute in the manifest of each of my WARs and my ejb JAR.

The two problems that arise are:
1. I get a NoSuchMethodException when using Xalan for 
org.apache.xalan.xslt.Process.getDefaultLiaison().  This method is 
present in the Process class in Xalan J 1.2.2, which is the version of 
the JAR I included in my EAR.
2. My application includes a log4j.properties that defines the root 
category as DEBUG level.  As soon as I deploy my application, JBoss 
begins logging internally at a DEBUG level to the console.

As a result of these observations, it is my current belief that it is 
impossible to insulate a deployed app from libraries used internally in 
JBoss.  However, I would appreciate the thoughts of more experienced 
JBoss users and developers.  Classloading seems to be a hot topic on 
both mailing lists and the forums.  If someone reading this thinks 
appropriate, please alert the appropriate people from the developers' 
list to my plight.

Thanks,
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
P.S. I saw a post in the archives from someone who wanted to use Xerces 
for his app, regardless of what is used internally to JBoss.  I believe 
the answer to my issue will also be the answer to his.



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] where/how can I download JBoss4.0?

2003-03-03 Thread Ricardo Argüello
Looks like this page is outdated:
http://www.jboss.org/developers/sourcecode.jsp

So don't follow its instructions...

Read the more-up-to-date instructions here:
http://www.jboss.org/developers/guides/quickstart.jsp

This page will also help:
http://sourceforge.net/cvs/?group_id=22866


These are the easy steps:

Login to Sourceforge using a CVS client:
cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/jboss login

Checkout the jboss-head module (it has JBoss 4.0):
cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/jboss checkout jboss-head

Good luck,

Ricardo Argüello

- Original Message - 
From: Sasidharan, Manoj [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 03, 2003 7:06 PM
Subject: [JBoss-user] where/how can I download JBoss4.0?


 Hello All,
 
 Where can I download JBoss4.0? If no binary version is available, please
 provide necessary cvs information for checking out the source.
 
 rgds
 MS
 
 
 ---
 This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
 for complex code. Debugging C/C++ programs can leave you feeling lost and 
 disoriented. TotalView can help you find your way. Available on major UNIX 
 and Linux platforms. Try it free. www.etnus.com
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: [Xdoclet-user] New release of xPetstore - website

2003-03-03 Thread Herve Tchepannou
The xpetstore web site is: http://xpetstore.sourceforge.net

On Mon, 2003-03-03 at 21:04, Herve Tchepannou wrote:
 I'm proud to announce the lattest release of xPetstore.
 xPetstore is a lightweight version of the Sun Petstore application based
 on open source tools and framework.
 xPetstore also demonstrate to develloper how to build WODRA (Write Once,
 Deploy and Run Anywhere) J2EE application
 
 This release contains 2 implementations:
 - A pure EJB implementation based on JSP, Struts, Sitemesh, EJB + CMP2.0
 - A servlet implementation based on Velocity, Webwork, Sitemesh, POJO +
 Hibernate
 xPetstore has been succefully deployed and tested on the following
 platforms:
 OS: Linux, Windows
 Application Server: JBoss-3.0.x and WebLogic-7.x
 Databases: HypersonicSQL, PostgreSQL, SapDB, mySQL, Oracle, MS SQL
 Server
 
 -- 
 
 Herve Tchepannou
 mailto:[EMAIL PROTECTED]
 
 
 
 ---
 This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
 for complex code. Debugging C/C++ programs can leave you feeling lost and 
 disoriented. TotalView can help you find your way. Available on major UNIX 
 and Linux platforms. Try it free. www.etnus.com
 ___
 xdoclet-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] New release of xPetstore

2003-03-03 Thread Herve Tchepannou
I'm proud to announce the lattest release of xPetstore.
xPetstore is a lightweight version of the Sun Petstore application based
on open source tools and framework.
xPetstore also demonstrate to develloper how to build WODRA (Write Once,
Deploy and Run Anywhere) J2EE application

This release contains 2 implementations:
- A pure EJB implementation based on JSP, Struts, Sitemesh, EJB + CMP2.0
- A servlet implementation based on Velocity, Webwork, Sitemesh, POJO +
Hibernate
xPetstore has been succefully deployed and tested on the following
platforms:
OS: Linux, Windows
Application Server: JBoss-3.0.x and WebLogic-7.x
Databases: HypersonicSQL, PostgreSQL, SapDB, mySQL, Oracle, MS SQL
Server

-- 

Herve Tchepannou
mailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user