[JBoss-user] Can multiple datasources be defined in the same XML file?

2002-10-15 Thread Binil Thomas

Hi all,
I need to have two different datasources defined for two MySQL databases.
Searching the forums
http://jboss.org/forums/thread.jsp?forum=46thread=22388 suggests using two
XML files in the deploy directory. Is it possible to deploy two datasources
with the same XML file?

TIA,
Binil



---
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] Strange Problem on Linux

2002-10-15 Thread rahul ganjoo

Guys any help with this would be much appreciated.
I am repeating the scenario here:
Environment: Jboss 3.0.3 ,Red hat Linux 7.2

A session bean invokes a java class and then  another class
which triggers off  threads to do some db updations etc.
However we find we can get the results just one time
but the second time it hangs giving the trace below
(Saroj's mail).
However it runs fine on Win2k with same JB config.
Even if we change those db updations to just SOPs,
it still hangs the second time around.

TIA,
Rahul Ganjoo.



saroj kumar wrote:

 Hi All,

 This is the full thread dump which I get.

 Can Anybody help me understand this dump??

 Full thread dump Java HotSpot(TM) Server VM (1.4.0_01-b03 mixed mode):

 JNP Server prio=1 tid=0x0x877e2c8 nid=0x67d runnable
 [5060b000..5060b86c]
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
 - locked 0x44cfc438 (a java.net.PlainSocketImpl)
 at java.net.ServerSocket.implAccept(ServerSocket.java:438)
 at java.net.ServerSocket.accept(ServerSocket.java:409)
 at org.jnp.server.Main.run(Main.java:248)
 at java.lang.Thread.run(Thread.java:536)

 Thread-25 daemon prio=1 tid=0x0x4e93cbd8 nid=0x679 waiting on monitor
 [5058a000..5058a86c]
 at java.lang.Object.wait(Native Method)
 - waiting on 0x45ba1648 (a
 [Lcom.wipro.flowbrix.logger.LogQueue$InternalLogQueue;)
 at java.lang.Object.wait(Object.java:426)
 at com.wipro.flowbrix.logger.LogQueue.put(LogQueue.java:115)
 - locked 0x45ba1648 (a
 [Lcom.wipro.flowbrix.logger.LogQueue$InternalLogQueue;)
 at com.wipro.flowbrix.logger.LogQueue.get(LogQueue.java:255)
 at com.wipro.flowbrix.logger.LogWriter.run(LogWriter.java:147)

 RMI TCP Connection(20)-192.168.146.24 daemon prio=1 tid=0x0x85663c8
 nid=0x65c runnable [50282000..5028486c]
 at
 com.wipro.flowbrix.workflow.WFActivityController.execute(WFActivityContr
 oller.java:151)
 at
 com.wipro.flowbrix.workflow.WFActivityHandler.handleActivity(WFActivityH
 andler.java:161)
 at
 com.wipro.flowbrix.workflow.sb_processmanager.ProcessManagerBean.execute
 Activities(Unknown Source)
 at
 com.wipro.flowbrix.workflow.sb_processmanager.ProcessManagerBean.doProce
 ss(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stat
 elessSessionContainer.java:660)
 at
 org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(
 CachedConnectionInterceptor.java:186)
 at
 org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Statele
 ssSessionInstanceInterceptor.java:77)
 at
 org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
 ptor.java:107)
 at
 org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
 CMT.java:178)
 at
 org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
 at
 org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav
 a:130)
 at
 org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
 at
 org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer
 .java:313)
 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:1
 02)
 at
 org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.jav
 a:77)
 at
 org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
 at
 org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionI
 nterceptor.java:111)
 at
 org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
 at $Proxy210.doProcess(Unknown Source)
 at
 com.wipro.flowbrix.workflow.EventTranslator.handleEvent(EventTranslator.
 java:127)
 at
 com.cadmus.rpm.server.session.ServerFacade.ServerFacadeBean.handleReques
 tWFE(Unknown Source)
 at
 com.cadmus.rpm.server.session.ServerFacade.ServerFacadeBean.handleReques
 t(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 

Re: [JBoss-user] Transaction and connection problems in JBoss 3.0.3

2002-10-15 Thread Robson Miranda

About item 2, it could be that the exception raised by the method does not
set the transaction to rollback. In EJB 2.0 spec (Chapter 18), a transaction
will be marked for rollback if an system exception (e.g. EJBException) is
thrown. An application exception will not mark the transaction for rollback.

Robson.

- Original Message -
From: Camus Chan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 15, 2002 6:32 AM
Subject: [JBoss-user] Transaction and connection problems in JBoss 3.0.3


 Hi,

 I have a couple of problems when running JBoss 3.0.3 (actually starting
from
 JBoss 3.0.0) for a long time. Please give some hints, directions:

 System Information:
 OS: Solaris 2.7
 JBoss: 3.0.3
 Tomcat: 4.1.12
 Database: Oracle8i
 JDK: 1.3 / 1.4
  JBoss and Tomcat are started successfully and the connection pool is
set
 as well, jars can be deployed successfully.

 Problems:
 1. Everytime I call an CMP bean, a new connection is generated, and seems
 not being moved back to the pool nor reused. From v$session, I can see
that
 the connection keeps increased but not shrinked. Eventually the max. no of
 connection allowed (set in init.ora) is reached and running out and jboss
 raises exception. I read some 2.4.X manual, there is some parameters
 control, like gcenabled, gcidletimeout, ...etc. which can control the
 behaviour of connections getting from the pool, but I cannot set them in
 oracle-service.xml as no such attributes are allowed to be set. Are they
 obsolete in JBoos3.X ? Or any other methods / procedures to do the same
 thing ?

 2. I cannot write any workable transaction sample. The scenario is that:
 I have a (stateless) session bean which looks up two CMP beans, each of
the
 CMP beans insert a record (into two different tables). However, I notice
 that whatever the result of the 2nd insert (e.g. Oracle raises errors),
the
 1st insert get committed automatically (this is accomplished by placing a
 sleep between the two inserts and select from the Oracle table in
SQLPlus).
 I have tried using user-transaction and container-managed transactions
mode,
 but no luck.
 I am using oracle-service.xml and the trans-type in the ejb-jar.xml is set
 to required. I cannot switch to use oracle-xa-service.xml as jboss errors
 raised (javax.ejb.FinderException: Find failed:
 java.lang.IllegalArgumentException: null xaRes) when calling the CMP beans
 ( I have appiled the changes to jboss-service.xml as stated in the
 oracle-xa-service.xml but not to transaction-service.xml as I cannot find
 that files any where in the downloaded package). I do think JBoss should
be
 tested with transaction before released, but what's the problem with my
 cases, configurations or beans or ... ?

 3. Can you tell me what are the differences between oracle-service.xml and
 oracle-xa-service.xml ? Should I use oracle-xa-service.xml ? How to make
it
 works to use oracle-xa-service.xml ?

 4. The shutdown.sh doesn't work in JBoss 3.0.3 (but it works in
JBoss3.0.0)
 and the jboss doesn't have any response to it.

 5. When redeploying an existing jar, the classcastexception occurs if
using
 JDK1.4 but not with JDK1.3. However, after restarting JBoss, it works
again.


 Sorry, for my long paragraphs. I have asked these questions from the JBoss
 forums but not much responses and solutions. Attached please also find my
 configuration files FYR. Please help.

 Many Thanks,
 Camus



 ---
 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] Transaction and connection problems in JBoss 3.0.3

2002-10-15 Thread JohnsBrn



2. I cannot write any workable transaction sample. The scenario is that:
I have a (stateless) session bean which looks up two CMP beans, each of the
CMP beans insert a record (into two different tables). However, I notice
that whatever the result of the 2nd insert (e.g. Oracle raises errors), the
1st insert get committed automatically (this is accomplished by placing a
sleep between the two inserts and select from the Oracle table in SQLPlus).
I have tried using user-transaction and container-managed transactions mode,
but no luck.

Are you using thread control in your ejbs, or did you just add the sleep call for 
testing? Transactions are managed on a per-thread basis and multi-threaded beans will 
not work properly. You should not attempt to call any Thread functions (including 
sleep) from your ejb.


3. Can you tell me what are the differences between oracle-service.xml and
oracle-xa-service.xml ? Should I use oracle-xa-service.xml ? How to make it
works to use oracle-xa-service.xml ?

the oracle-xa-service allows you to use oracle with other XA data sources in a single 
transaction. If you are only using Oracle, this is not necessary.


Sorry, for my long paragraphs. I have asked these questions from the JBoss
forums but not much responses and solutions. Attached please also find my
configuration files FYR. Please help.

I didn't see any attached files??
b

__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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



[JBoss-user] JBoss-3.0.x: log4j configuration on a per-app basis ?

2002-10-15 Thread Julia Johnson

Is there currently any mechanism for e.g. adding a
Log4J Appender as my app is deployed and removing it
as it is undeployed ?

As far as I can make out, all configuration is done
through conf/log4j.xml, which contains global
configuration. This is problematic if different groups
are deploying/undeploying apps from a common
(production) server.

I would like my app to contain a
META-INF/jboss-log4j.xml or similar

If nothing like this yet exists, are there any plans
for something similar ?

Julia


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.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] Farm drops app on redeploy

2002-10-15 Thread jakob . dalsgaard

To Jeff Schnitzer

As I see it, you have an EAR deployer that you want to make dependant on your datasource?

I've just tried editing my conf/jboss-service.xml, before it was:

!-- EAR deployer --
mbean code=org.jboss.deployment.EARDeployer name=jboss.j2ee:service=EARDeployer
/mbean

Now it's:

!-- EAR deployer --
mbean code=org.jboss.deployment.EARDeployer name=jboss.j2ee:service=EARDeployer
 dependsjboss.jca:service=LocalTxCM,name=DefaultDS/depends
/mbean

Not that I've had any troubles before - but imho this should have the effect that your EAR deployer depends on your datasource (this way you make a dependancy from conf/ into deploy/ - which might not be that nice - but that's just aesthetics). From my feeble attempts it seems to have the correct effect on my system - but that might just be coincidental.

I haven't played that much around with this setup, but one effect might be that if you edit the xml for your datasource, and hence redeploy your connection pool, then your EAR deployer gets redeployed, and with it, all your EAR's

Jakob


PS: so you're the guy to talk to for all us europeans that can get the Sims Online Beta test CD shipped over the pond?!
 (just kidding)

Jakob Dalsgaard
Udvikler
e-mail:  [EMAIL PROTECTED]
Vesterbrogade 149
1620 København V
Tlf.:  70 25 80 30
Fax.: 70 25 80 31








Schnitzer, Jeff [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
10/08/02 05:08 AM
Please respond to jboss-user


To:[EMAIL PROTECTED]
cc:
Subject:[JBoss-user] Farm drops app on redeploy


Hi! I have a JBoss (3.0.2/tomcat 4.0.4) cluster (right now just 2
machines) which is farmed. For the most part, farming works (although
it seems to like to pick up my EAR before the oracle-service.xml which
provides the data source), but I just started experiencing a peculiar
bit of behavior.

A normal deploy from scratch farms out my EAR just fine; it's picked up
by both JBoss instances and all is well.

If I redeploy the application, it installs to both instances and then is
immediately removed from both instances (!)

What may have something to do with this is that my app now takes a long
time (a couple minutes) to load and initialize. Back when it was almost
instantaneous, I didn't notice this problem.

Is there something I can do about this? Also, is there some way of
forcing my EAR to deploy _after_ my oracle-service.xml?

Thanks,
Jeff Schnitzer
[EMAIL PROTECTED]
(JBoss is finding its way into The Sims Online :-)


---
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: removing bean lock and it has tx set - question

2002-10-15 Thread Alexey Yudichev
Title: RE: [JBoss-user] Re: removing bean lock and it has tx set - question





I often (but not always) face these errors when CMP2.0 entities are being removed/added from/to a relationship with other entities.

I encounter the error often enough to help developers find a cause... if it would help


Best wishes,
 Alexei Yudichev mailto:[EMAIL PROTECTED]


-Original Message-
From: Chris Pinfold [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 3:38 AM
To: [EMAIL PROTECTED]
Cc: Terry Hawkins; Alan Yost
Subject: RE: [JBoss-user] Re: removing bean lock and it has tx set - question



We are getting a similar error (see below) from a Stateless Session bean using JBoss 3.0.2.
We are also using the Required transaction attribute. The error occurs after the following sequence of events:
1) create some data using entity beans, via a session facade
2) Shutdown JBoss
3) Restart JBoss
4) Remove the data using entity beans, via a session facade


Are we possibly doing something wrong or is this related to the same bug?


Regards
Chris


This is the error message:


2002-10-10 14:37:50,699 ERROR [com.yambay.mdrover.erp.proxy.session.ERPTestManagerBean] Failed due to remote exception removing bean lock and it has tx set!; CausedByException is:

 removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!; nested exception is: 
 javax.ejb.TransactionRolledbackLocalException: removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!
javax.transaction.TransactionRolledbackException: removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!; nested exception is: 
 javax.ejb.TransactionRolledbackLocalException: removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!; CausedByException is:
 removing bean lock and it has tx set!
 at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:230)
 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.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
 at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
 at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
 at org.jboss.ejb.Container.invoke(Container.java:720)
 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:73)
 at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
 at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)
 at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
 at $Proxy61.removeJob(Unknown Source)
 at com.yambay.mdrover.erp.proxy.session.ERPTestManagerBean.clearCache(ERPTestManagerBean.java:661)
 at com.yambay.mdrover.erp.proxy.session.ERPTestManagerBean.runTestCase


...






-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED]]
Sent: Friday, 11 October 2002 7:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Re: removing bean lock and it has tx set -
question



Hi Michael,


I've applied the fix to the 2.4 branch.


Regards,
Adrian


From: Michael Rudorfer [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Re: removing bean lock and it has tx set - question
Date: Fri, 11 Oct 2002 10:47:28 +0200

Did I get you right, Bill?

You think that this is a bug in Jboss, not a problem with
me, using transactions in a wrong way?

Michael

Bill Burke wrote:

  Can you log a bug on this, copy this email, and assign to me?
 
  patriot1burke
 
  Thanks,
 
  Bill
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
   Rudorfer
   Sent: Thursday, October 10, 2002 11:38 AM
   To: [EMAIL PROTECTED]
   Subject: [JBoss-user] removing bean lock and it has tx set - 
question
  
  
   Hi there!
  
   I have the following problem:
  
   I am using Jboss 2.4.6 with CMP (jaws) and Container
   Managed Transaction.
   I have a Stateful Session bean with a bussiness method,
   that utilizes entity beans. The transaction type of that bussiness
   method is set to required. When there are many entity beans
   to be accessed, jboss crashes 

[JBoss-user] jsp-javac logging in jboss-3.0.3_tomcat-4.1.12

2002-10-15 Thread David Ward

Can anyone help me change my logging settings so I don't get this jsp 
compilation logging in my jboss server.log?

2002-10-15 12:06:59,512 INFO  [STDOUT]
2002-10-15 12:06:59,516 INFO  [STDOUT]
2002-10-15 12:06:59,521 INFO  [STDOUT]
2002-10-15 12:06:59,525 INFO  [STDOUT]
2002-10-15 12:06:59,529 INFO  [STDOUT] [javac]
2002-10-15 12:06:59,533 INFO  [STDOUT] Compiling 1 source file

I am using:
Red Hat Linux 7.1.
Sun JDK 1.4.1
jboss-3.0.3_tomcat-4.1.12

I have attached my log4j.xml and tomcat41-service.xml files.

Obviously, I could change my ConsoleAppender's Threshold to ERROR (from 
INFO), but then it cuts out a lot of logging that I want (app's 
deploying, services starting, etc.).

Limiting the org.apache.jk category to ERROR helped me get rid of all 
the coyote/jk2/ajp13 chunk data, so I tried limiting the 
org.apache.jasper category too, but to no avail.  Maybe something in 
org.jboss.web.catalina?  But what?

Thanks for any and all help!

Sincerly,
David


?xml version=1.0 encoding=UTF-8?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd

!-- = --
!--   --
!--  Log4j Configuration  --
!--   --
!-- = --

!-- $Id: log4j.xml,v 1.5.2.6 2002/09/27 22:29:24 patriot1burke Exp $ --

!--
   | For more configuration infromation and examples see the Jakarta Log4j
   | owebsite: http://jakarta.apache.org/log4j
 --

log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false

  !-- = --
  !-- Preserve messages in a local file --
  !-- = --

  !-- A time/date based rolling appender --
  appender name=FILE class=org.jboss.logging.appender.DailyRollingFileAppender
  	!--
param name=File value=${jboss.server.home.dir}/log/jboss-server.log/
param name=File value=/opt/webdocs/logs/jboss-server.log/
	--
param name=File value=${jboss.server.home.dir}/log/jboss-server.log/
param name=Append value=false/
param name=Threshold value=INFO/

!-- Rollover at midnight each day --
param name=DatePattern value='.'-MM-dd/

!-- Rollover at the top of each hour
param name=DatePattern value='.'-MM-dd-HH/
--

layout class=org.apache.log4j.PatternLayout
  !-- The default pattern: Date Priority [Category] Message\n --
  param name=ConversionPattern value=%d %-5p [%c] %m%n/

  !-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
  param name=ConversionPattern value=%d %-5r %-5p [%c] (%t:%x) %m%n/
   --
/layout	
  /appender

  !-- A size based file rolling appender
  appender name=FILE class=org.jboss.logging.appender.RollingFileAppender
param name=File value=${jboss.server.home.dir}/log/server.log/
param name=Append value=false/
param name=MaxFileSize value=500KB/
param name=MaxBackupIndex value=1/

layout class=org.apache.log4j.PatternLayout
  param name=ConversionPattern value=%d %-5p [%c] %m%n/
/layout	
  /appender
  --

  !-- == --
  !-- Append messages to the console --
  !-- == --

  appender name=CONSOLE class=org.apache.log4j.ConsoleAppender
param name=Threshold value=INFO/
param name=Target value=System.out/

layout class=org.apache.log4j.PatternLayout
  !-- The default pattern: Date Priority [Category] Message\n --
  param name=ConversionPattern value=%d{ABSOLUTE} %-5p [%c{1}] %m%n/
/layout
  /appender


  !-- == --
  !-- More Appender examples --
  !-- == --

  !-- Buffer events and log them asynchronously
  appender name=ASYNC class=org.apache.log4j.AsyncAppender
appender-ref ref=FILE/
appender-ref ref=CONSOLE/
appender-ref ref=SMTP/
  /appender
  --

  !-- EMail events to an administrator
  appender name=SMTP class=org.apache.log4j.net.SMTPAppender
param name=Threshold value=ERROR/
param name=To value=[EMAIL PROTECTED]/
param name=From value=[EMAIL PROTECTED]/
param name=Subject value=JBoss Sever Errors/
param name=SMTPHost value=localhost/
param name=BufferSize value=10/
layout class=org.apache.log4j.PatternLayout
  param name=ConversionPattern value=[%d{ABSOLUTE},%c{1}] %m%n/
/layout
  /appender
  --

  !-- Syslog events
  appender name=SYSLOG class=org.apache.log4j.net.SyslogAppender
param name=Facility value=LOCAL7/
param name=FacilityPrinting value=true/
param name=SyslogHost value=localhost/
  /appender
  --

  !-- Log events to JMS (requires a topic to be created)
  appender name=JMS class=org.apache.log4j.net.JMSAppender
param name=Threshold value=ERROR/
param name=TopicConnectionFactoryBindingName 

[JBoss-user] Still Disappearing JSPs seen via Jetty

2002-10-15 Thread Frank Morton



I've posted this a number of times with no 
response
each time it happens. And it is happening right 
now, do
I'd like to know if there is anything I can check 
before
restarting for a clue.

I'm now using 3.0.2 with JDK 1.3.1-b24 under Red 
Hat 7.2.

Periodically, seems like after long periods of idle 
time, that
Jetty looses track of all the jsp files, so I start 
getting 404
Not Found errors.

For example, my logon url is:

http://myhostname/city/jsp/logon.jsp

At this moment on a server, I get a 404 error going 
to that page,
but I know it is there. If I look at:

http://myhostname/city

there is a jsp directory. But, if I look in that 
directory through the
browser, about 80% of the JSPs do not show up as 
existing, but
I know they are there and can look in the "real" 
directory through
a shell and confirm they are there. Plus, if I 
restart jboss, they
show up again and will be fine for some unknown 
number of days.

This is a real problem I've experience now under 
different versions.

Anything I can check on this server right now 
before I restart jboss?



[JBoss-user] jboss ldap class error in AIX

2002-10-15 Thread Emerson Cargnin - SICREDI Serviços

I'm using jboss 3.0.1 with tomcat in AIX 5.1 jdk 1.3.1 with 64 bits, and
when testing a app. that worked in linux suse 8 (same jboss ver.) i'm
getting the following errors :

the first is when starting the server up :

2002-10-15 08:36:53,430 DEBUG
[org.jboss.security.auth.login.XMLLoginConfig] Loading
xmlConfig=file:/optlocal/java/jboss-3.0.1_tomcat-4.0.4/server/default/conf/login-config.xml
2002-10-15 08:36:53,455 ERROR [STDERR] Warning: validation was turned on
but an org.xml.sax.ErrorHandler was not
2002-10-15 08:36:53,455 ERROR [STDERR] set, which is probably not what
is desired.  Parser will use a default
2002-10-15 08:36:53,455 ERROR [STDERR] ErrorHandler to print the first
10 errors.  Please call
2002-10-15 08:36:53,455 ERROR [STDERR] the 'setErrorHandler' method to
fix this.
2002-10-15 08:36:53,456 ERROR [STDERR] Error: URI=null Line=24: Element
type policy is not declared.
2002-10-15 08:36:53,461 ERROR [STDERR] Error: URI=null Line=28: Element
type application-policy is not declared.
2002-10-15 08:36:53,462 ERROR [STDERR] Error: URI=null Line=28:
Attribute name is not declared for element application-policy.
2002-10-15 08:36:53,771 ERROR [STDERR] Error: URI=null Line=29: Element
type authentication is not declared.
2002-10-15 08:36:53,772 ERROR [STDERR] Error: URI=null Line=30: Element
type login-module is not declared.
2002-10-15 08:36:53,773 ERROR [STDERR] Error: URI=null Line=31:
Attribute code is not declared for element login-module.
2002-10-15 08:36:53,773 ERROR [STDERR] Error: URI=null Line=31:
Attribute flag is not declared for element login-module.
2002-10-15 08:36:53,789 ERROR [STDERR] Error: URI=null Line=37:
Attribute name is not declared for element application-policy.
2002-10-15 08:36:53,790 ERROR [STDERR] Error: URI=null Line=40:
Attribute code is not declared for element login-module.
2002-10-15 08:36:53,791 ERROR [STDERR] Error: URI=null Line=40:
Attribute flag is not declared for element login-module.
2002-10-15 08:36:53,928 INFO
[org.jboss.security.plugins.JaasSecurityManagerService] Starting


This is when trying to login through web :

2002-10-15 08:37:40,013 DEBUG
[org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache
for bean Usuario: old capacity = 100, new capacity = 50
2002-10-15 08:39:18,210 DEBUG
[org.jboss.security.plugins.JaasSecurityManager.sicredi] Login failure
javax.security.auth.login.LoginException: unable to find LoginModule
class: org.jboss.security.auth.spi.LdapLoginModule
 at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:630)
 at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:124)
 at
javax.security.auth.login.LoginContext$3.run(LoginContext.java:530)
 at java.security.AccessController.doPrivileged(Native Method)
 at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:527)
 at
javax.security.auth.login.LoginContext.login(LoginContext.java:448)
 at
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:381)
 at
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:347)
 at
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:215)
 at
org.jboss.web.catalina.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:281)
 at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:161)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

Re: [JBoss-user] Still Disappearing JSPs seen via Jetty

2002-10-15 Thread Jules Gosnell

Look around in /tmp/Jetty_* dirs

Is it possible that some chron job is removing the JSPs from these 
directories ?

Jules


Frank Morton wrote:

 I've posted this a number of times with no response

 each time it happens. And it is happening right now, do

 I'd like to know if there is anything I can check before

 restarting for a clue.

  

 I'm now using 3.0.2 with JDK 1.3.1-b24 under Red Hat 7.2.

  

 Periodically, seems like after long periods of idle time, that

 Jetty looses track of all the jsp files, so I start getting 404

 Not Found errors.

  

 For example, my logon url is:

  

 http://myhostname/city/jsp/logon.jsp

  

 At this moment on a server, I get a 404 error going to that page,

 but I know it is there. If I look at:

  

 http://myhostname/city

  

 there is a jsp directory. But, if I look in that directory through the

 browser, about 80% of the JSPs do not show up as existing, but

 I know they are there and can look in the real directory through

 a shell and confirm they are there. Plus, if I restart jboss, they

 show up again and will be fine for some unknown number of days.

  

 This is a real problem I've experience now under different versions.

  

 Anything I can check on this server right now before I restart jboss?

  






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] Still Disappearing JSPs seen via Jetty

2002-10-15 Thread Frank Morton

 Look around in /tmp/Jetty_* dirs
 
 Is it possible that some chron job is removing the JSPs from these 
 directories ?

That must be it! I didn't even realize that tmpwatch is
running by default on the red hat systems. That fits
the symptoms exactly and explains why it never
happened on other systems.

I'll make the change and see if it runs fine for awhile.

Thanks and I owe you!

Frank

 
 Jules
 
 
 Frank Morton wrote:
 
  I've posted this a number of times with no response
 
  each time it happens. And it is happening right now, do
 
  I'd like to know if there is anything I can check before
 
  restarting for a clue.
 
   
 
  I'm now using 3.0.2 with JDK 1.3.1-b24 under Red Hat 7.2.
 
   
 
  Periodically, seems like after long periods of idle time, that
 
  Jetty looses track of all the jsp files, so I start getting 404
 
  Not Found errors.
 
   
 
  For example, my logon url is:
 
   
 
  http://myhostname/city/jsp/logon.jsp
 
   
 
  At this moment on a server, I get a 404 error going to that page,
 
  but I know it is there. If I look at:
 
   
 
  http://myhostname/city
 
   
 
  there is a jsp directory. But, if I look in that directory through the
 
  browser, about 80% of the JSPs do not show up as existing, but
 
  I know they are there and can look in the real directory through
 
  a shell and confirm they are there. Plus, if I restart jboss, they
 
  show up again and will be fine for some unknown number of days.
 
   
 
  This is a real problem I've experience now under different versions.
 
   
 
  Anything I can check on this server right now before I restart jboss?
 
   
 
 
 
 
 
 
 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
 



---
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 or apache.common.logging?

2002-10-15 Thread Enrique Vetere



Does jboss use 
log4j 
directly? or is it used from the org.apache.commons.logging 
SPI?
If the first if true 
(as I think it is): are there any plans to isolate it thru 
commons.logging?


Enrique 
Vetere---Baufesthttp://www.baufest.comPhone: 
11-4807-8080Av. Las Heras 3257(C1425ASJ) Buenos Aires - 
Argentina---



RE: [JBoss-user] Log4j or apache.common.logging?

2002-10-15 Thread James Higginbotham
Title: Message



Search 
www.mail-archive.com under the 
jboss-dev list for a thread on this. Short answer, no. 

James

  
  -Original Message-From: Enrique Vetere 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 3:33 
  PMTo: 'Jboss-UserSubject: [JBoss-user] Log4j or 
  apache.common.logging?
  Does jboss use 
  log4j 
  directly? or is it used from the org.apache.commons.logging 
  SPI?
  If the first if 
  true (as I think it is): are there any plans to isolate it thru 
  commons.logging?
  
  
  Enrique 
  Vetere---Baufesthttp://www.baufest.comPhone: 
  11-4807-8080Av. Las Heras 3257(C1425ASJ) Buenos Aires - 
  Argentina---
  


Re: [JBoss-user] Jetty Question

2002-10-15 Thread Greg Turner




Thanks, buts its not a Struts specific thing.

Its something that should be in the Html spec, and I am wanting to know if
Jetty is doing the correct thing according to the Html spec.

According to one Html reference, I found on the web, the action is a URI.
URIs can be absolute, or relative.

An absolute URI can be something like action="http://www."  So its obvious
we are dealing with the relative situation.

Greg




Dmitri Colebatch wrote:

  This is really a struts question, but I'll have a go...

  
  
In a form element,
form method="post" name="Form0" action="/Foo"

should the action value have a preceeding "/" as I have written here.
It appears, that if the "/" is there, Jetty does not pick up any of the
request parameters submitted by the form.  If it is not there, then the
request parameters are picked up.   By picked up, I mean
HttpServletRequest.getParameter (param name) returns the correct value.

  
  
the action should correspond to the _name_ of the action in
struts-config.xml (in this case, I'm guessing "Foo").  Its not a path value,
and so shouldn't have the '/'

  
  
Or is this a bug with my web browser that is submitting the form,
Netscape 7.0 on Win2000?

  
  
the behaviour seems reasonable to me.

cheers
dim



---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


  


-- 
Greg Turner, JBoss Authorized Consultant

Tiburon Enterprise Systems
http://www.tiburon-e-systems.com
Box 1171
Tiburon, CA 94920
415-927-2543





Re: [JBoss-user] Jetty Question

2002-10-15 Thread Dmitri Colebatch



lol (at myself)... ummm ... apologies, sorry 
(o:

for some reason I read that as html:form 
... dont ask why! sorrry.

I'll leave the task of answering your question to 
someone who is thinking straight!

cheers
dim


  - Original Message - 
  From: 
  Greg Turner 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, October 16, 2002 9:27 
  AM
  Subject: Re: [JBoss-user] Jetty 
  Question
  Thanks, buts its not a Struts specific thing.Its 
  something that should be in the Html spec, and I am wanting to know if Jetty 
  is doing the correct thing according to the Html spec.According to one 
  Html reference, I found on the web, the action is a URI. URIs can be 
  absolute, or relative.An absolute URI can be something like action="http://www." 
   So its obvious we are dealing with the relative 
  situation.GregDmitri Colebatch wrote:
  This is really a struts question, but I'll have a go...

  
In a form element,
form method="post" name="Form0" action="/Foo"

should the action value have a preceeding "/" as I have written here.
It appears, that if the "/" is there, Jetty does not pick up any of the
request parameters submitted by the form.  If it is not there, then the
request parameters are picked up.   By picked up, I mean
HttpServletRequest.getParameter (param name) returns the correct value.

the action should correspond to the _name_ of the action in
struts-config.xml (in this case, I'm guessing "Foo").  Its not a path value,
and so shouldn't have the '/'

  
Or is this a bug with my web browser that is submitting the form,
Netscape 7.0 on Win2000?

the behaviour seems reasonable to me.

cheers
dim



---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


  -- 
Greg Turner, JBoss Authorized Consultant

Tiburon Enterprise Systems
http://www.tiburon-e-systems.com
Box 1171
Tiburon, CA 94920
415-927-2543


[JBoss-user] capacity planning to use jboss

2002-10-15 Thread Emerson Cargnin - SICREDI Serviços

Today i got a question from my manager (i work in a bank, there will be 
a web layer at the bank office and a central ejb layer) :

Emerson, how many boxes in the ejblayer do we need to support 800 
offices and more than 4000 simultaneous clients (from the offices). 
Imagine that you have available any number of xeon dual 2mhz with 2giga 
RAM connected through a gigabit lan, how many boxes of this kind do we 
need?

I confess that i exitated a little. This is a though question, indeed. I 
think that CMP and mainly clustering will not have the same gain when 
you have too many nodes in the cluster, given the communication needed 
among the nodes to keep the data replicated.

Does any one have any parameter for a capacity plan for a scenario like 
this? jboss group, any clue ??

What could be the limit beetwen number of nodes and replication overhead?

Thanks in advance for any answer : )


-- 

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Farm drops app on redeploy

2002-10-15 Thread Schnitzer, Jeff








Thanks!  Thats just what I was
looking for.  At the moment I have disabled formal clustering and am simply
running the application as a collection of independent loadbalanced nodes, but
this will come in handy when Im feeling masochistic and start playing
with farming again :-)



Thanks,

Jeff Schnitzer

(You can get The Sims Online beta CD from
Amazon for $5; Ill bet you could convince them to ship it overseas :-)







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 15, 2002
7:23 AM
To:
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] Farm
drops app on redeploy




To Jeff Schnitzer 

As
I see it, you have an EAR deployer that you want to make dependant on your
datasource? 

I've
just tried editing my conf/jboss-service.xml, before it was: 

!--
EAR deployer -- 
mbean
code=org.jboss.deployment.EARDeployer
name=jboss.j2ee:service=EARDeployer 
/mbean


Now
it's: 

!--
EAR deployer -- 
mbean
code=org.jboss.deployment.EARDeployer
name=jboss.j2ee:service=EARDeployer 

dependsjboss.jca:service=LocalTxCM,name=DefaultDS/depends

/mbean


Not
that I've had any troubles before - but imho this should have the effect that
your EAR deployer depends on your datasource (this way you make a dependancy
from conf/ into deploy/ - which might not be that nice
- but that's just aesthetics). From my feeble attempts it seems to have the
correct effect on my system - but that might just be coincidental.


I
haven't played that much around with this setup, but one effect might be that
if you edit the xml for your datasource, and hence redeploy your connection
pool, then your EAR deployer gets redeployed, and with it, all your EAR's


Jakob



PS:
so you're the guy to talk to for all us europeans that can get the Sims Online
Beta test CD shipped over the pond?! 

(just kidding) 

Jakob
Dalsgaard
Udvikler
e-mail:  [EMAIL PROTECTED]
Vesterbrogade 149
1620 København V
Tlf.:  70 25 80 30
Fax.: 70 25 80 31






 
  
  
  
  
  Schnitzer, Jeff
  [EMAIL PROTECTED] 
  Sent
  by: [EMAIL PROTECTED] 
  10/08/02 05:08 AM 
  Please
  respond to jboss-user 
  
  
  
  
 To:[EMAIL PROTECTED]
  
  
 cc: 
  
 Subject:[JBoss-user] Farm
  drops app on redeploy
  
 





Hi! I have a JBoss (3.0.2/tomcat 4.0.4)
cluster (right now just 2
machines) which is farmed. For the most part, farming works (although
it seems to like to pick up my EAR before the oracle-service.xml which
provides the data source), but I just started experiencing a peculiar
bit of behavior.

A normal deploy from scratch farms out my EAR just fine; it's picked up
by both JBoss instances and all is well.

If I redeploy the application, it installs to both instances and then is
immediately removed from both instances (!)

What may have something to do with this is that my app now takes a long
time (a couple minutes) to load and initialize. Back when it was almost
instantaneous, I didn't notice this problem.

Is there something I can do about this? Also, is there some way of
forcing my EAR to deploy _after_ my oracle-service.xml?

Thanks,
Jeff Schnitzer
[EMAIL PROTECTED]
(JBoss is finding its way into The Sims Online :-)


---
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] Farm drops app on redeploy

2002-10-15 Thread Bill Burke



I 
rewrote the farming service in 3.2 and beyond. Should solve a lot of 
issues. The farming service in 3.0.x is a bit limited.

Sorry,

Bill

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Schnitzer, 
  JeffSent: Tuesday, October 15, 2002 8:19 PMTo: 
  [EMAIL PROTECTED]Subject: RE: [JBoss-user] Farm 
  drops app on redeploy
  
  Thanks! That’s 
  just what I was looking for. At the moment I have disabled formal 
  clustering and am simply running the application as a collection of 
  independent loadbalanced nodes, but this will come in handy when I’m feeling 
  masochistic and start playing with farming again :-)
  
  Thanks,
  Jeff 
  Schnitzer
  (You can get The Sims 
  Online beta CD from Amazon for $5; I’ll bet you could convince them to ship it 
  overseas :-)
  
  
  
  -Original 
  Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 7:23 
  AMTo: 
  [EMAIL PROTECTED]Subject: Re: [JBoss-user] Farm drops app 
  on redeploy
  
  To Jeff 
  Schnitzer As I see it, you have an EAR 
  deployer that you want to make dependant on your datasource? 
  I've just tried editing my 
  conf/jboss-service.xml, before it was: !-- EAR deployer 
  -- mbean 
  code="org.jboss.deployment.EARDeployer" 
  name="jboss.j2ee:service=EARDeployer" /mbean 
  Now it's: 
  !-- EAR deployer 
  -- mbean 
  code="org.jboss.deployment.EARDeployer" 
  name="jboss.j2ee:service=EARDeployer"  
  dependsjboss.jca:service=LocalTxCM,name=DefaultDS/depends 
  /mbean 
  Not that I've had any 
  troubles before - but imho this should have the effect that your EAR deployer 
  depends on your datasource (this way you make a dependancy from "conf/" into 
  "deploy/" - which might not be that nice - but that's just aesthetics). From 
  my feeble attempts it seems to have the correct effect on my system - but that 
  might just be coincidental. I haven't played 
  that much around with this setup, but one effect might be that if you edit the 
  xml for your datasource, and hence redeploy your connection pool, then your 
  EAR deployer gets redeployed, and with it, all your EAR's 
  Jakob 
  PS: so you're the guy to talk 
  to for all us europeans that can get the Sims Online Beta test CD shipped over 
  the pond?!  (just 
  kidding) Jakob 
  DalsgaardUdviklere-mail:  
  [EMAIL PROTECTED]Vesterbrogade 1491620 København VTlf.: 
   70 25 80 30Fax.: 70 25 80 31
  


  

  
"Schnitzer, 
Jeff" [EMAIL PROTECTED] Sent by: 
[EMAIL PROTECTED] 
10/08/02 05:08 
AM Please respond to 
jboss-user 
  

   
 To:
[EMAIL PROTECTED]
 cc:
 Subject:[JBoss-user] Farm drops app 
on redeploy
  Hi! I have a JBoss 
  (3.0.2/tomcat 4.0.4) cluster (right now just 2machines) which is farmed. 
  For the most part, farming works (althoughit seems to like to pick 
  up my EAR before the oracle-service.xml whichprovides the data source), 
  but I just started experiencing a peculiarbit of behavior.A normal 
  deploy from scratch farms out my EAR just fine; it's picked upby both 
  JBoss instances and all is well.If I redeploy the application, it 
  installs to both instances and then isimmediately removed from both 
  instances (!)What may have something to do with this is that my app 
  now takes a longtime (a couple minutes) to load and initialize. Back 
  when it was almostinstantaneous, I didn't notice this problem.Is 
  there something I can do about this? Also, is there some way 
  offorcing my EAR to deploy _after_ my 
  oracle-service.xml?Thanks,Jeff 
  Schnitzer[EMAIL PROTECTED](JBoss is finding its way into The Sims 
  Online 
  :-)---This 
  sf.net email is sponsored by:ThinkGeekWelcome to geek 
  heaven.http://thinkgeek.com/sf___JBoss-user 
  mailing 
  list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Strange Problem on Linux

2002-10-15 Thread rahul ganjoo

Hi Jonathan,
Yes Ofcourse the EJB spec doesnt recommend threading
in EJBs... but someone here thought providing two levels
of indirection from the EJB component would make sure
it executes outside the context of the bean which apparently
aint the case.

However I am curious why it aint causing us trouble on win2k
boxes???
Is there any workaround to this on Linux till we get the
design right?

TIA,
Rahul Ganjoo.


Jonathan.O'[EMAIL PROTECTED] wrote:

 Rahul,
 I thought the EJB spec doesn't allow code to start threads. You should
 probably send an update message to a queue and do the DB updates there.
 Ciao,
 Jonathan O'Connor
 Ph: +353 1 872 3305
 Mob: +353 86 824 9736
 Fax: +353 1 873 3612

 rahul ganjoo [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 15.10.2002 13:46
 Please respond to jboss-user


 To: [EMAIL PROTECTED]
 cc:
 Subject:Re: [JBoss-user] Strange Problem on Linux

 Guys any help with this would be much appreciated.
 I am repeating the scenario here:
 Environment: Jboss 3.0.3 ,Red hat Linux 7.2

 A session bean invokes a java class and then  another class
 which triggers off  threads to do some db updations etc.
 However we find we can get the results just one time
 but the second time it hangs giving the trace below
 (Saroj's mail).
 However it runs fine on Win2k with same JB config.
 Even if we change those db updations to just SOPs,
 it still hangs the second time around.

 TIA,
 Rahul Ganjoo.

 saroj kumar wrote:

  Hi All,
 
  This is the full thread dump which I get.
 
  Can Anybody help me understand this dump??
 
  Full thread dump Java HotSpot(TM) Server VM (1.4.0_01-b03 mixed mode):
 
  JNP Server prio=1 tid=0x0x877e2c8 nid=0x67d runnable
  [5060b000..5060b86c]
  at java.net.PlainSocketImpl.socketAccept(Native Method)
  at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
  - locked 0x44cfc438 (a java.net.PlainSocketImpl)
  at java.net.ServerSocket.implAccept(ServerSocket.java:438)
  at java.net.ServerSocket.accept(ServerSocket.java:409)
  at org.jnp.server.Main.run(Main.java:248)
  at java.lang.Thread.run(Thread.java:536)
 
  Thread-25 daemon prio=1 tid=0x0x4e93cbd8 nid=0x679 waiting on monitor
  [5058a000..5058a86c]
  at java.lang.Object.wait(Native Method)
  - waiting on 0x45ba1648 (a
  [Lcom.wipro.flowbrix.logger.LogQueue$InternalLogQueue;)
  at java.lang.Object.wait(Object.java:426)
  at com.wipro.flowbrix.logger.LogQueue.put(LogQueue.java:115)
  - locked 0x45ba1648 (a
  [Lcom.wipro.flowbrix.logger.LogQueue$InternalLogQueue;)
  at com.wipro.flowbrix.logger.LogQueue.get(LogQueue.java:255)
  at com.wipro.flowbrix.logger.LogWriter.run(LogWriter.java:147)
 
  RMI TCP Connection(20)-192.168.146.24 daemon prio=1 tid=0x0x85663c8
  nid=0x65c runnable [50282000..5028486c]
  at
  com.wipro.flowbrix.workflow.WFActivityController.execute(WFActivityContr
  oller.java:151)
  at
  com.wipro.flowbrix.workflow.WFActivityHandler.handleActivity(WFActivityH
  andler.java:161)
  at
  com.wipro.flowbrix.workflow.sb_processmanager.ProcessManagerBean.execute
  Activities(Unknown Source)
  at
  com.wipro.flowbrix.workflow.sb_processmanager.ProcessManagerBean.doProce
  ss(Unknown Source)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
  a:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
  Impl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
  org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stat
  elessSessionContainer.java:660)
  at
  org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(
  CachedConnectionInterceptor.java:186)
  at
  org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Statele
  ssSessionInstanceInterceptor.java:77)
  at
  org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
  ptor.java:107)
  at
  org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
  CMT.java:178)
  at
  org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
  at
  org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav
  a:130)
  at
  org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
  at
  org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer
  .java:313)
  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:1
  02)
  at
  

Re: [JBoss-user] Auto-increment primary keys and CMP

2002-10-15 Thread Alex Loubyansky

Hello Robert,

in JBoss-3.0 you have no chance to achieve it.
Since version 3.2, JBoss supports unknown primary keys.
Currently, autoincrement is supported for MySQL only. If you use
JDK1.4 then you can make use of JDBC3 getGeneratedKeys. You'll need
just setup the table to generate the primary key and configure unknown
primary key for cmp bean.

Using CMP, you have other alternatives, though:
- UUIDKeyGenerator for UUID keys;
- custom sql to fetch the next key value (for DBs that support
sequences);

alex

Tuesday, October 15, 2002, 11:21:02 PM, you wrote:

RM Hi - 

RM I have a table that has a NUMERIC primary key that is defined as an IDENTITY
RM key.  The primary key column is defined such that the database automatically
RM sets the primary key on insert to the next incremental value.  The user is
RM not allowed to set the key to any value or the database will return an
RM error.

RM My problem is that I have defined a CMP bean that maps to this table, but I
RM cannot get a create to work.  If I call a create which includes the primary
RM key, the database throws an exception because I am not allowed to set the
RM value.  If I call a create method that does not take the primary key, the
RM database throws an exception because JBoss is trying to set the primary key
RM to null.

RM My question is - is there any way to tell JBoss that this primary key is
RM managed by the database and thus should not be written to?  

RM How do people typically handle working with tables with identity keys?

RM By the way, I am using JBoss 3.0.2 and Sybase Adaptive Server Enterprise 12.

RM Thanks.

RM Robert


-- 
Best regards,
 Alex Loubyansky




---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user