Re: [JBoss-user] [Performance Tuning] - Re: 360Mo Tenured generation clogs my Garbage Collector!

2004-11-05 Thread Paul Ekeland
That is done, and actually the source of the problem.
Since the jsp are precompiled, they are stashed in the tenured forever 
since the GC does not know what to do with them.

We are using JBoss 3.2.5
genman wrote:
JBoss version?  You can also precompile your .JSP files with jspc.
View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853992#3853992
Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853992
---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 

--
Paul Ekeland
Odile Jacob Education
15 rue Soufflot
75005 Paris
tél.: 01 44 41 64 93

---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - 360Mo Tenured generation clogs my Garbage Collector!

2004-11-04 Thread ekeland
 Hi,

here is the situation. I am running my application on a JBoss with the following JVM 
arguments " -Xms768m -Xmx768m" on a windows2000 with 1Gb of RAM.

Without doing even using the application, I notice a FullGC gets done every minute 
(default) and takes 3s. On a much more used computer, the GC takes up to 17s during 
which JBoss is, as expected, "brain dead". From a user standpoint, this is not 
horrific.

I tried to tune the GC and found out the problem comes from precompiled JSP that are 
stored in my application. When JBoss initializes, he stores them and they go directly 
in the tenured generation and stay there and account to up to 360Mo. Of course, a 
FullGC then gets called every time the GC is called.

I tried numerous solutions and here are results:
* the concurrent and incremental low pause collectors only aggravate the situation
* since the tenured collection is taking so much space compared to the others, I tried 
to increase its size ("-XX:NewRatio=100), still with no success.
* another way was to try another collector and increase the threshold when the FullGC 
gets called "-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=90". Nothing.

The problem really comes from the fact that my tenured stays this size after being 
collected. So every time the GC repasses through the whole 360Mo of precompiled JSPs!
Is there any way of forcing them in the PermanentGeneration collection? Or would you 
see another solution?

Thanks for any help!

Paul

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853971#3853971

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853971


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Out of memory error in freeBSD

2004-02-18 Thread Paul Ekeland




Actually, both of you were right since the rebuilding of the kernel
enabled me to start JBoss, but still have OutOfMemory errors once the
application was used. Increasing the size of the permanent generation
heap took care of this one.

Thanks!

Paul

Andrew C. Oliver wrote:

  Re: [JBoss-user] Out of memory error in freeBSD
  
Are you positive it isn’t this:
  
  http://jboss.org/wiki/Wiki.jsp?page=OutOfMemoryExceptionWhenRedeploying
  
The page talks mostly about redeployment but 800 JSPs could also be a
lot of class definitions.  Thus fill up the perm generation pool on the
heap...
  
  From: Paul Ekeland
<[EMAIL PROTECTED]>
  Reply-To: [EMAIL PROTECTED]
  Date: Fri, 13 Feb 2004 15:38:04 +0100
  To: [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] Out of memory error in freeBSD
  
Ryan,
  
we're going to try this option, even though it seemed at first freeBSD
5.1 dynamically dealt with process limits.
Thanks!
  
Paul
  
Ryan Maclear wrote: 
  
   
Hi Paul,

I don't know if this is relevant in your case, but I've had this problem
before on other FreeBSD versions (4.7-STABLE) and fixed it as follows:

FreeBSD has kernel level user process limits, including direct memory
allocation If the user limits are too low for your jboss instance
together
with your application, jboss reports an OutOfMemory error. This can be
fixed by increasing the kernel user process limits by adding the
following
lines to the kernel config file and rebuilding the kernel. The example
below limits the user to 384Mb of memory, but this can be increased to
what you need,

options MAXDSIZ="(384*1024*1024)"
options MAXSSIZ="(384*1024*1024)"
options DFLDSIZ="(384*1024*1024)"

Of course, if this has already been done, the memory limits are high
enough, and the problem still persists, the problem lies elsewhere. It
is
however more than likely not a jboss problem in this case.

Hope this helps.
    
Cheers,
Ryan


On Fri, 13 Feb 2004, Paul Ekeland wrote:

  
 

 
Hello all,
  
I am trying to deploy our application on JBoss in a freeBSD 5.1
platform with 1Go of RAM, only to get to an OutOfMemory error. Here is
the configuration:
  
 1. In a first step, we precompiled our JSP's (all 800 of them) and the
server crashes during the loading of the servlets
 2. Without the precompilation, JBoss crashes the same way a bit later
during the initialisation process.
In a windows environment, with a less powerful machine, I have found
the solution by tweaking the standardJboss.xml file and lowering all
non-cluster related
max-caches to 1. That did the job and I thought hopefuly the result
would be the same on our main server. Unfortunately, we got exactly the
same error as
before so I am wondering even if these modifications are taken in
account in the freeBSD environment?
Any hint is very appreciated! Thanks,
  
Paul
  
--- SF.Net is
sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps
& Web services for Linux
with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
  
 ___ JBoss-user
mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
  

 
  
 


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click


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

  

  
-- 
Paul Ekeland
Odile Jacob Education
15 rue Soufflot
75005 Paris
tél.: 01 44 41 64 93
--- SF.Net is
sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps
 Web services for Linux with a free DVD software kit from IBM. Click
Now! http://ads.osdn.com/?ad_id=1356_id=3438=click
___ JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
  


-- 
Paul Ekeland
Odile Jacob Education
15 rue Soufflot
75005 Paris
tél.: 01 44 41 64 93




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


Re: [JBoss-user] Out of memory error in freeBSD

2004-02-13 Thread Paul Ekeland






Ryan,

we're going to try this option, even though it seemed at first freeBSD
5.1 dynamically dealt with process limits.
Thanks!

Paul

Ryan Maclear wrote:

  Hi Paul,

I don't know if this is relevant in your case, but I've had this problem
before on other FreeBSD versions (4.7-STABLE) and fixed it as follows:

FreeBSD has kernel level user process limits, including direct memory
allocation If the user limits are too low for your jboss instance together
with your application, jboss reports an OutOfMemory error. This can be
fixed by increasing the kernel user process limits by adding the following
lines to the kernel config file and rebuilding the kernel. The example
below limits the user to 384Mb of memory, but this can be increased to
what you need,

options MAXDSIZ="(384*1024*1024)"
options MAXSSIZ="(384*1024*1024)"
options DFLDSIZ="(384*1024*1024)"

Of course, if this has already been done, the memory limits are high
enough, and the problem still persists, the problem lies elsewhere. It is
however more than likely not a jboss problem in this case.

Hope this helps.

Cheers,
Ryan


On Fri, 13 Feb 2004, Paul Ekeland wrote:

  
  
Hello all,

I am trying to deploy our application on JBoss in a freeBSD 5.1 platform with 1Go of RAM, only to get to an OutOfMemory error. Here is the configuration:

 1. In a first step, we precompiled our JSP's (all 800 of them) and the server crashes during the loading of the servlets
 2. Without the precompilation, JBoss crashes the same way a bit later during the initialisation process.
In a windows environment, with a less powerful machine, I have found the solution by tweaking the standardJboss.xml file and lowering all non-cluster related
max-caches to 1. That did the job and I thought hopefuly the result would be the same on our main server. Unfortunately, we got exactly the same error as
before so I am wondering even if these modifications are taken in account in the freeBSD environment?
Any hint is very appreciated! Thanks,

Paul

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


  
  

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

  


-- 
Paul Ekeland
Odile Jacob Education
15 rue Soufflot
75005 Paris
tél.: 01 44 41 64 93




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


[JBoss-user] Out of memory error in freeBSD

2004-02-13 Thread Paul Ekeland




Hello all,

I am trying to deploy our application on JBoss in a freeBSD 5.1
platform with 1Go of RAM, only to get to an OutOfMemory error. Here is
the configuration:


  In a first step, we precompiled our JSP's (all 800 of them) and
the server crashes during the loading of the servlets
  Without the precompilation, JBoss crashes the same way a bit
later during the initialisation process.

In a windows environment, with a less powerful machine, I have found
the solution by tweaking the standardJboss.xml file and lowering all
non-cluster related max-caches to 1. That did the job and I thought
hopefuly the result would be the same on our main server.
Unfortunately, we got exactly the same error as before so I am
wondering even if these modifications are taken in account in the
freeBSD environment?
Any hint is very appreciated! Thanks,

Paul





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


Re: [JBoss-user] SSO with JBoss-tomcat

2003-11-19 Thread Paul Ekeland
Scott,

thanks for the answer. I would nevertheless be interested in the patch 
in sourceforge to try it out. Could you please tell me where is the 
patch and how to use it?
Thanks again,

Paul

Scott M Stark wrote:

You need the patch sitting in sourceforge. The default tomcat sso 
solution
does not work with the integrated security in jboss. We will be looking
to initegrate this patch soon.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

Paul Ekeland wrote:

Hi,

I've been trying to do some Single sign-on with the following 
configuration JBoss 3.2.1-tomcat 4.1.24, so far with no success. It 
would be useful for us since we have several war deployed. I have 
strictly followed the tomcat SSO configuration (by adding a Valve 
with SingleSignOn) and this is not enough.

As I searched around I, it seems I am not the only one trying this 
unsuccessfuly. So, before spending more time trying to make this 
happen, did it already work for someone? If yes, how did you do?

Thanks,

Paul





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



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


[JBoss-user] SSO with JBoss-tomcat

2003-11-14 Thread Paul Ekeland
Hi,

I've been trying to do some Single sign-on with the following 
configuration JBoss 3.2.1-tomcat 4.1.24, so far with no success. It 
would be useful for us since we have several war deployed. I have 
strictly followed the tomcat SSO configuration (by adding a Valve with 
SingleSignOn) and this is not enough.

As I searched around I, it seems I am not the only one trying this 
unsuccessfuly. So, before spending more time trying to make this happen, 
did it already work for someone? If yes, how did you do?

Thanks,

Paul



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


RE: [JBoss-user] Re: Problem with SQL query for MySQL

2003-11-13 Thread Paul Ekeland
Thanks a bunch Heiko.
It did give some trouble.. I am just wondering why all my other tables were created normaly then. 

Paul

Subject: Re: [JBoss-user] Re: Problem with SQL query for MySQL
Date: Thu, 13 Nov 2003 13:51:13 +0100
From: "Rupp, Heiko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
This is a multi-part message in MIME format.

--_=_NextPart_001_01C3A9E4.D1E1B5B6
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I just checked in a fix to JDBCStartCommand, that puts a space in front =
of the opening parentheses.
This will be in 3.2.3rc2
 Heiko





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


[JBoss-user] Re: Problem with SQL query for MySQL

2003-11-12 Thread Paul Ekeland
sorry, my mistake. I pasted the corrected SQL query. The generated one 
does not have a space between the table name and the opening parenthesis 
"(", as you can see: "CREATE TABLE user(user_id INTEGER NOT NULL,login 
VARCHAR(250) BINARY, password_ VARCHAR(250) BINARY, first_name 
VARCHAR(250) BINARY, last_name VARCHAR(250) BINARY, gender VARCHAR(250) 
BINARY, email VARCHAR(250) BINARY, school_id INTEGER, CONSTRAINT pk_user 
PRIMARY KEY (user_id))" --__--__-- Message: 8 Date: Wed, 12 Nov 2003 
13:30:22 +0200 From: Alexey Loubyansky <[EMAIL PROTECTED]> To: 
[EMAIL PROTECTED] Subject: Re: [JBoss-user] Problem with 
SQL query for MySQL Reply-To: [EMAIL PROTECTED] As far as 
I remember, Rafal's problem was "no space after table name". What's your 
problem? I just executed your DDL in MySql w/o problems. Paul Ekeland 
wrote:

Hello,

I have exactly the same problem as Rafal, but with the following 
JBoss-generated query:
"CREATE TABLE user (user_id INTEGER NOT NULL,login VARCHAR(250) BINARY,
password_ VARCHAR(250) BINARY, first_name VARCHAR(250) BINARY, last_name 
VARCHAR(250) BINARY, gender VARCHAR(250) BINARY, email VARCHAR(250) 
BINARY, school_id INTEGER, CONSTRAINT pk_user PRIMARY KEY (user_id))"

I downloaded the latest JBoss 3.2.3RC1, released today but unfortunately 
with the same result..
Were your modification taken in account in this release or is it a 
different problem?
Thanks,

Paul


 

Branch_3_2
   



Rafal Kedziorski wrote:
 > At 20:24 28.10.2003 +0200, Alexey Loubyansky wrote:
 > >> It is fixed now.
 > > > In main cvs branch?
 > > > Regards,
 > Rafal
 > > >> alex
 >>
 >> Rafal Kedziorski wrote:
 >>
 >>> hi,
 >>> I'm using MySQL 4.0.13 and 4.0.14 (4.0.16 I will test tomorrow) and 
 >>> JBoss 3.2.2. And I have problems with this query (generated by JBoss):
 >>> insert into user(class_id, retail_id, mandant_id, language_id, >>> 
user_data_id, nickname, login_name, password, status, creation_date, >>> 
last_login_date) values ('35F7A660096411D89BC0D1907F01', '1234', >>> 
2, 1, null, null, '[EMAIL PROTECTED]', 'demo', 8, '2003-10-28 >>> 17:31:36', 
null)
 >>> but the same query with space after user
 >>> insert into user (class_id, retail_id, mandant_id, language_id, >>> 
user_data_id, nickname, login_name, password, status, creation_date, >>> 
last_login_date) values ('35F7A660096411D89BC0D1907F01', '1234', >>> 
2, 1, null, null, '[EMAIL PROTECTED]', 'demo', 8, '2003-10-28 >>> 17:31:36', 
null)
 >>> works.
 >>> This exception is shown:
 >>> 17:31:36,406 ERROR [UserEntityBean] Could not create entity >>> 
java.sql.SQLException: Syntax error or access violation,  message >>> 
from server: "You have an error in your SQL syntax.  Check the manual 
 >>> that corresponds to your MySQL server version for the right syntax 
to >>> use near 'user(class_id, retail_id, mandant_id, language_id, >>> 
user_data_id" at >>> 
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1651) at >>> 
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:889) at >>> 
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:956) at >>> 
com.mysql.jdbc.Connection.execSQL(Connection.java:1874) at >>> 
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1700 
 >>> ) at >>> 
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1569 
 >>> ) at >>>
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:321) 

 >>> at >>>
org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.executeInsert(JDBCMySQLCreateCommand.java:66) 

 >>> at >>>
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:295) 

 >>> at >>>
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:144) 

 >>> at >>> 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:518) 

 >>> at >>>
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:208) 
 >>> at >>>
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:269) 

 >>> at >>> 
org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:580) 
 >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>> 
Method)   

Re: [JBoss-user] Problem with SQL query for MySQL

2003-11-11 Thread Paul Ekeland
Hello,

I have exactly the same problem as Rafal, but with the following JBoss-generated query:
"CREATE TABLE user (user_id INTEGER NOT NULL,login VARCHAR(250) BINARY,
password_ VARCHAR(250) BINARY, first_name VARCHAR(250) BINARY, last_name VARCHAR(250) BINARY, 
gender VARCHAR(250) BINARY, email VARCHAR(250) BINARY, school_id INTEGER, 
CONSTRAINT pk_user PRIMARY KEY (user_id))"

I downloaded the latest JBoss 3.2.3RC1, released today but unfortunately with the same 
result..
Were your modification taken in account in this release or is it a different problem?
Thanks,
Paul


Branch_3_2
Rafal Kedziorski wrote:
> At 20:24 28.10.2003 +0200, Alexey Loubyansky wrote:
> 
>> It is fixed now.
> 
> 
> In main cvs branch?
> 
> 
> Regards,
> Rafal
> 
> 
>> alex
>>
>> Rafal Kedziorski wrote:
>>
>>> hi,
>>> I'm using MySQL 4.0.13 and 4.0.14 (4.0.16 I will test tomorrow) and 
>>> JBoss 3.2.2. And I have problems with this query (generated by JBoss):
>>> insert into user(class_id, retail_id, mandant_id, language_id, 
>>> user_data_id, nickname, login_name, password, status, creation_date, 
>>> last_login_date) values ('35F7A660096411D89BC0D1907F01', '1234', 
>>> 2, 1, null, null, '[EMAIL PROTECTED]', 'demo', 8, '2003-10-28 
>>> 17:31:36', null)
>>> but the same query with space after user
>>> insert into user (class_id, retail_id, mandant_id, language_id, 
>>> user_data_id, nickname, login_name, password, status, creation_date, 
>>> last_login_date) values ('35F7A660096411D89BC0D1907F01', '1234', 
>>> 2, 1, null, null, '[EMAIL PROTECTED]', 'demo', 8, '2003-10-28 
>>> 17:31:36', null)
>>> works.
>>> This exception is shown:
>>> 17:31:36,406 ERROR [UserEntityBean] Could not create entity 
>>> java.sql.SQLException: Syntax error or access violation,  message 
>>> from server: "You have an error in your SQL syntax.  Check the manual 
>>> that corresponds to your MySQL server version for the right syntax to 
>>> use near 'user(class_id, retail_id, mandant_id, language_id, 
>>> user_data_id" at 
>>> com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1651) at 
>>> com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:889) at 
>>> com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:956) at 
>>> com.mysql.jdbc.Connection.execSQL(Connection.java:1874) at 
>>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1700 
>>> ) at 
>>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1569 
>>> ) at 
>>>
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:321)

>>> at 
>>>
org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.executeInsert(JDBCMySQLCreateCommand.java:66)

>>> at 
>>>
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:295)

>>> at 
>>>
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:144)

>>> at 
>>> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:518)

>>> at 
>>>
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:208) 
>>> at 
>>>
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:269)

>>> at 
>>> org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:580) 
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
>>> Method)  at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>> at java.lang.reflect.Method.invoke(Method.java:324) at 
>>>
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1042) 
>>> at 
>>> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) 
>>> at 
>>>
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:197)

>>> at 
>>>
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:214)

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

RE: [JBoss-user] HELP : JBoss 3.0.x isn't logging ANYRuntimeExceptions!!

2002-07-25 Thread Paul Ekeland
Title: RE: [JBoss-user] HELP : JBoss 3.0.x isn't logging ANYRuntimeExceptions!!



There 
are 2 ways to use log4j for your EJBs in JBoss. The simplest is to modify JBoss' 
configuration file, log4j.xml and include your own settings. The other, a little 
more complicated, is to create a servlet that reads your log4j configuration 
file and initializes the environment.
There 
are more details about it in this message from the Log4J mailing 
list:
http://www.mail-archive.com/log4j-user@jakarta.apache.org/msg03297.html
 
Sincerely,
 
Paul 

  -Message d'origine-De : Alan Yost 
  [mailto:[EMAIL PROTECTED]]De la part de Alan 
  YostEnvoyé : jeudi 25 juillet 2002 15:16À : 
  [EMAIL PROTECTED]Objet : RE: [JBoss-user] HELP 
  : JBoss 3.0.x isn't logging ANYRuntimeExceptions!!
  James - I'm a relative newbie to EJB, but have used log4j in the 
  past.  What I'm not sure of is how is the log4j first configured for my 
  EJBs?   
   
  In a normal java application I would include 
  the PropertyConfigurator.configure(myConfigFile) statement in 
  the main(String[] args) block at the start of my 
  application.  This however, goes out the window with stateless session 
  beans and Entity beans. 
   
  I'm not sure as to how JBoss will maintain one instance of 
  my Logger class.  Will my classes (even just plain old java classes 
  that are called by a servlet etc) somehow use the same instance of the logger 
  class that JBoss is using - and therefore I can use the log4J settings that 
  come with JBoss, of do I need to include a separate configuration file and if 
  so when would I initialise it?
   
  Any help or words of wisdom would be appreciated.
   
   
  Regards
   
   
  Alan.
   
   
   
<>

[JBoss-user] using log4J with JBoss and Cactus

2002-07-24 Thread Paul Ekeland


Hello everyone,

I am currently writing a program to test my EJBs using Cactus. I created a
war file of the cactus tests and they run on a JBoss 3.0 platform. JBoss,
Cactus and my program are all using log4J... Here is how it is written so
far: I followed your recommandations and so I adapted the log4j.xml of JBoss
and inserted my own appenders and loggers as shown in appendix.

Now, Cactus also is using log4J and needs 2 configuration files,
log_client.properties and log_server.properties . log_client.properties is
described in the appendix too.

With this setup, here is what i get:

* 2 empty logfiles cactus_client.log and cactus_server.log even though the
code requires some  events to be written in them. At least, it seems it
reads correctly the configuration files from Cactus.

* an appender error that should not have happened if the appenders i had
put in the  configuration file of JBoss, log4J.xml, had been taken in
account:
" Standard Error -
log4j:WARN No appenders could be found for logger
(com.credm.babel.cactus.TestPropertyType).
log4j:WARN Please initialize the log4j system properly.
-  ---"

* No files are created for the CACTUSTEST appender..

I'm a bit lost to be honest between all this, so if you could help me I
would greatly appreciate it.. I'm not sure but I think there could be some
issues with log4J's JBoss and log4J's war file being in different
classloaders...

Thanks!

Paul

==
log4j.xml:
==

http://jakarta.apache.org/log4j/";
debug="true">


































































==
log_client.properties:
==

# Properties for configuring Log4j
# This is the configuring for logging on the JUnit side (i.e. the client
side)

log4j.appender.cactus = org.apache.log4j.FileAppender
log4j.appender.cactus.File =
D:/applications/jboss-3.0.0_tomcat-4.0.3/server/default/log/cactus_client.lo
g
log4j.appender.cactus.Append = false
log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p
%-30.30c{2} %x - %m %n

# Any application log which uses Log4J will be logged to the Cactus log file
# log4j.rootCategory=DEBUG, cactus
log4j.rootlogger=DEBUG, cactus

# By default we don't log at the DEBUG level for Cactus log, in order not to
generate too
# many logs. However, should a problem arise and logs need to be sent to the
Cactus dev team,
# then we will ask you to change this to DEBUG.
log4j.logger.org.apache.cactus = INFO, cactus
log4j.additivity.org.apache.cactus=false



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