[JBoss-user] Problems using IBM JDK 1.3.1 with JBoss 3.2.1
Hi we encountered problems when running JBoss 3.2.1 with IBM JDK 1.3.1 on Windows 2000. The VM crashes when deploy/undeploy ears. Is anyone using IBM JDK 1.3.1 on Windows in conjunction with JBoss 3.2.1? Thanks Kristian --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMS scheduled redelivery
Hi, I am using Jboss 3.2.2 and a MDB as JMS destination. The MDB should take a message from the queue, process it and sometimes (if processing fails) put it back into the queue. Is it possible to tell JMS that I want to receive the message from the queue again after a period of time? Otherwise I would have to wait in the MDB for the specified time before re-processing the message which doesn' seem to be good design. Thanks in advance Stefan --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] how to run more then one instance in jboss3.2
Anil Kumar wrote: Hi i'm try to port my application from weblogic 6.1 to Jboss 3.2.In my application i have three server instance running.Plz let me know how this is possible to run more then one instances in Jboss 3.2. my mail address [EMAIL PROTECTED] Of course, it is possible. You could use the binding manager to make port configurations easier for all instances. An example is in docs/examples/bindingmanager. You have to activate the binding manager in jboss-service.xml. You just set up different configurations in $JBOSS_HOME/server and configure the ports in the binding manager xml file and start the different configs by using the parameter '-c' (e.g. bin/run.sh -c myinstance). Easy! -marek --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Unknown PUBLIC id in ejb-jar.xml: -//JBoss//DTD JBOSS//EN
I have a deployment issue that shows up on Unix (Solaris) but not on Windows. I have an ear file that contains a number of enterprise beans each in its own jar file. When I attempt to deploy the ear file it will deploy some of the enterprise beans, but invariably fail on at least one with the error message that is the subject of this email. The deployment descriptors are quite simple, pretty much copies of each other with only the names of the bean changed. For example, ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS//EN http://www.jboss.org/j2ee/dtd/jboss.dtd; jboss enterprise-beans entity ejb-nameUser/ejb-name jndi-nameUser/jndi-name /entity /enterprise-beans /jboss This is one of the beans that fails. I'm running JBoss 3.2.2 on both Solaris and Windows. I don't get this error on Windows. I tends to be the same beans that crash, although there is some variation depending on the order the beans deploy in. I haave run dos2unix across all the deployment descriptors including application.xml. Any ideas? Bruce Ashton Senior Developer Ext. 8272 http://www.activis.com/ Please note that: 1. This e-mail may constitute privileged information. If you are not the intended recipient, you have received this confidential email and any attachments transmitted with it in error and you must not disclose, copy, circulate or in any other way use or rely on this information. 2. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices. 3. The contents of this email are those of the individual and do not necessarily represent the views of the company. 4. The company does not conclude contracts by email and all negotiations are subject to contract. 5. The company accepts no responsibility once an e-mail and any attachments is sent. http://www.activis.com This annotation was added by the e-scan service. http://www.activis.com -- This message has been checked for all known viruses by e:)scan. For further information please contact [EMAIL PROTECTED] --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Unknown PUBLIC id in ejb-jar.xml: -//JBoss//DTD JBOSS//EN
At 13:29 04.12.2003, Bruce Ashton wrote: I have a deployment issue that shows up on Unix (Solaris) but not on Windows. I have an ear file that contains a number of enterprise beans each in its own jar file. When I attempt to deploy the ear file it will deploy some of the enterprise beans, but invariably fail on at least one with the error message that is the subject of this email. The deployment descriptors are quite simple, pretty much copies of each other with only the names of the bean changed. For example, ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS//EN http://www.jboss.org/j2ee/dtd/jboss.dtd; jboss enterprise-beans entity ejb-nameUser/ejb-name jndi-nameUser/jndi-name /entity /enterprise-beans /jboss This is one of the beans that fails. I'm running JBoss 3.2.2 on both Solaris and Windows. I don't get this error on Windows. I tends to be the same beans that crash, although there is some variation depending on the order the beans deploy in. I haave run dos2unix across all the deployment descriptors including application.xml. Any ideas? Try with this: !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.2//EN http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd; Rafal --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Container Responsibility for CMR Foreign Keys
Hi! Yes, the pk columns have been created with the identity attribute. FYI - the key generation did work properly when the app was deployed to 3.2.1. It's just that w/3.2.1, I had to do some inefficient fk setting that I hope to avoid with the 3.2.2 insert-after-ejb-post-create config option. Regards! Matt Hanson -Original Message- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 3:43 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Container Responsibility for CMR Foreign Keys Is the column in the database was created with IDENTITY attribute? Hanson, Matthew wrote: Hi-- Well, I added the auto-increment tag to jbosscmp-jdbc.xml, and the null primary key exception is still thrown: --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Unknown PUBLIC id in ejb-jar.xml: -//JBoss//DTD JBOSS//EN
Try with this: !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.2//EN http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd; Rafal That gets pretty much the same error, Unknown PUBLIC id in ejb-jar.xml: -//JBoss//DTD JBOSS 3.2//EN When I run dos2unix It always tells me, could not open /dev/kbd to get keyboard type US keyboard assumed could not get keyboard type US keyboard assumed I wouldn't have thought this would be a problem, but could it be something to do with locale settings? --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Please note that: 1. This e-mail may constitute privileged information. If you are not the intended recipient, you have received this confidential email and any attachments transmitted with it in error and you must not disclose, copy, circulate or in any other way use or rely on this information. 2. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices. 3. The contents of this email are those of the individual and do not necessarily represent the views of the company. 4. The company does not conclude contracts by email and all negotiations are subject to contract. 5. The company accepts no responsibility once an e-mail and any attachments is sent. http://www.activis.com This annotation was added by the e-scan service. http://www.activis.com -- This message has been checked for all known viruses by e:)scan. For further information please contact [EMAIL PROTECTED] --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to test virtual hosting
Hi all, just wondering if there is any way to test virtual hosting without having to register the domain name! Eg, say I try to virtual host my app on http://brian.test.com and I map this to some context-root, how do I then test that http://brian.test.com will work? I think that it's probably a routing table issue and I need to update my dns somehow. However I'm running on windows, so does anyone know if this can be done at all? Do I need to install a little dns server on my local machine on windows? Am I getting this all wrong? thanks, Brian _ 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 OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to test virtual hosting
You could setup your own nameserver in which you server what you want and setup localhost als primary Nameserver ... this worked for me Chris Brian Styles wrote: Hi all, just wondering if there is any way to test virtual hosting without having to register the domain name! Eg, say I try to virtual host my app on http://brian.test.com and I map this to some context-root, how do I then test that http://brian.test.com will work? I think that it's probably a routing table issue and I need to update my dns somehow. However I'm running on windows, so does anyone know if this can be done at all? Do I need to install a little dns server on my local machine on windows? Am I getting this all wrong? thanks, Brian _ 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 OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Two datasources, almost working...
Hi Jarkko, thanks for the help. Unfortunately this didn't work. Even when I separated out the mysql file what seemed to happen was both ears used one database. I tested each application on its own (removing the other ear) and they both worked fine. I think what was happening was they were using whichever datasource was loaded first. I fixed the problem by adding a jboss-app.xml file and adding the following lines: jboss-app loader-repositoryappname:loader=dell/loader-repository /jboss-app jboss-app loader-repositoryappname:loader=microsoft/loader-repository /jboss-app I think this gives each ear a separate class loader, but I'm not sure. It finally worked for me under this configuration. thanks for the help, Brian From: Jarkko Lietolahti [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Two datasources, almost working... Date: Thu, 04 Dec 2003 05:39:54 +0200 Hello, Try separating the datasource definitions into two different ds.xml-files (dell-mysql-ds and microsoft-mysql-ds.xml). This also gives you the ability to deploy/undeploy only needed datasources.. t. Jarkko Brian Styles wrote: Hi all, In my effort to deploy two versions of my ear on the same jboss3.2.2 under different virtual hosts, I'm left with one little problem. Try as I might, my two applications are using the one datasource. For examples sake, lets say the two versions of the applications are for two different companies: dell and microsoft I'm using mysql and have created two datasources in my mysql-ds.xml file datasources local-tx-datasource jndi-namedellDS/jndi-name connection-urljdbc:mysql://localhost:3306/dell/connection-url driver-classcom.mysql.jdbc.Driver/driver-class user-namejboss/user-name passwordwhatever/password /local-tx-datasource local-tx-datasource jndi-namemicrosoftDS/jndi-name connection-urljdbc:mysql://localhost:3306/microsoft/connection-url driver-classcom.mysql.jdbc.Driver/driver-class user-namejboss/user-name passwordwhatever2/password /local-tx-datasource /datasources and the references in my ejb jars do correspond correctly to these jndi names. And when I check the jmx-console, under jboss.jca I get name=dellDS,service=LocalTxCM name=dellDS,service=ManagedConnectionFactory name=dellDS,service=ManagedConnectionPool name=microsoftDS,service=LocalTxCM name=microsoftDS,service=ManagedConnectionFactory name=microsoftDS,service=ManagedConnectionPool but under jboss.management.local I only see: J2EEServer=Local,JCAResource=microsoftDS,j2eeType=JCAConnectionFactory,name=microsoftDS Wrapper,j2eeType=JCAResource,name=microsoftDS J2EEServer=Local,j2eeType=JCAManagedConnectionFactory,name=microsoftDS but no corresponding entries for dellDS Both applications are successfully using micrsoftDS and I think that maybe this might be because of the lack of the stuff in jboss.management.local above. Please can anyone help me? thanks very much, Brian _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to test virtual hosting
If you don't want to manage a nameserver, just define some entries in your hosts file on each system. Gary. On Thu, 2003-12-04 at 10:55, Christofer Dutz wrote: You could setup your own nameserver in which you server what you want and setup localhost als primary Nameserver ... this worked for me Chris Brian Styles wrote: Hi all, just wondering if there is any way to test virtual hosting without having to register the domain name! Eg, say I try to virtual host my app on http://brian.test.com and I map this to some context-root, how do I then test that http://brian.test.com will work? I think that it's probably a routing table issue and I need to update my dns somehow. However I'm running on windows, so does anyone know if this can be done at all? Do I need to install a little dns server on my local machine on windows? Am I getting this all wrong? thanks, Brian _ 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 OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Gary S. Cuozzo [EMAIL PROTECTED] Innovation Software Group, LLC --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] share stateful session beans
Greetings, I wonder if there is a way to share information in a stateful session bean (which is not intended to persist for life rather just for the life time of the application server) between several clients. When I say several clients I mean I have a web service, a servlet, a ejb, or any other access point, and I would like to access to the stateful bean from there. My problem is how to share the bean when the contexts are different and heterogeneous - shouldn't exist a find method for a stateful session bean? I use at the moment a entity bean but it has some problems: -slow (stores the information in the database) -if database connection fails (for a db restart), my system blocks - and it shouldn't. thanks. regards, Pedro Salazar. -- -PS --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [RESOLVED] What works in 3.0.4 hangs in 3.2.2
Jim Crossley [EMAIL PROTECTED] writes: Linux RH 9, JVM 1.4.1_01 I have a webapp that uses JasperReports to generate a report from two local-tx datasources working fine with JBoss 3.0.4, but hangs in apparently random places within my servlet's service method when deployed on 3.2.2 (either tomcat or jetty). From the thread dump below, it appears PoolThread-9 is the culprit, but I can't tell why. I was hoping someone here can... I upgraded to JVM 1.4.2_02 and the problem is gone. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] share stateful session beans
A Stateful Session Bean is specifically intended to have one instance allocated to each client. Your best option is to use a Stateless Session Bean, which provides the interface, and have it delegate to a POJO which maintains the state and is created using some variation of the Singleton pattern. -- Danny Yates -Original Message- From: Pedro Salazar [mailto:[EMAIL PROTECTED] Sent: 04 December 2003 16:21 To: [EMAIL PROTECTED] Subject: [JBoss-user] share stateful session beans Greetings, I wonder if there is a way to share information in a stateful session bean (which is not intended to persist for life rather just for the life time of the application server) between several clients. When I say several clients I mean I have a web service, a servlet, a ejb, or any other access point, and I would like to access to the stateful bean from there. My problem is how to share the bean when the contexts are different and heterogeneous - shouldn't exist a find method for a stateful session bean? I use at the moment a entity bean but it has some problems: -slow (stores the information in the database) -if database connection fails (for a db restart), my system blocks - and it shouldn't. thanks. regards, Pedro Salazar. -- -PS --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Nullpointer exception when starting JMS connection
Hello list, We have a strange issue when starting a QueueReceiver from a SFSB. We go this stacktrace org.jboss.mq.SpyJMSException: Cannot create a ConnectionReceiver; - nested throwable: (java.lang.NullPointerException) at org.jboss.mq.Connection.receive(Connection.java:1178) at org.jboss.mq.SpyMessageConsumer.receiveNoWait(SpyMessageConsumer.java:364) We use JBoss 3.2.1 Any idea? Regards, Stephane --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] share stateful session beans
On Thu, 2003-12-04 at 16:29, Yates, Danny wrote: A Stateful Session Bean is specifically intended to have one instance allocated to each client. Your best option is to use a Stateless Session Bean, which provides the interface, and have it delegate to a POJO which maintains the state and is created using some variation of the Singleton pattern. -- Danny Yates Could you explain me better the theory of POJO inside stateless session beans? I think I know what is intended to do, but I don't know how to implement it. A little example would be more than enough... regards, Pedro Salazar. -- -PS --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Web security 403
Hi! I'd like to create a war with some security constraints! I modify login-config.xml and I create the database's tables: application-policy name = dafne authentication login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule flag = required module-option name = dsJndiNamejava:/MySqlDS/module-option module-option name = principalsQuerySELECT PASSWORD FROM PRINCIPALS WHERE PRINCIPAL_ID=?/module-option module-option name = rolesQuerySELECT ROLE,ROLEGROUP FROM ROLES WHERE PRINCIPAL_ID=?/module-option /login-module /authentication /application-policy I create jboss-web.xml: jboss-web security-domainjava:/jaas/dafne/security-domain /jboss-web And finally I put the web constraints: security-constraint web-resource-collection web-resource-nameProtected/web-resource-name url-pattern/index.jsp/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-namedefault/realm-name /login-config security-role role-nameadmin/role-name /security-role The authantication works good: xxx.xxx.xxx.xxx - admin [04/Dec/2003:18:28:16 1000] GET /aaa/index.jsp HTTP/1.1 403 839 but a 403 will appear: Access to the specified resource (Access to the requested resource has been denied) has been forbidden Maybe JBoss can't bound username with role... Why this don't work!? What I miss?! Help me please!!! Gio --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] share stateful session beans
I *think* Danny implied: Your-Session-Bean { // what ever your store is private static SomeStoreImpl store = SomeStoreImpl.getInstance(); public void store(String key, Object value) throws RemoteException { store.put(key, value); } } -Original Message- From: Pedro Salazar [mailto:[EMAIL PROTECTED] Sent: 04 December 2003 17:17 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] share stateful session beans On Thu, 2003-12-04 at 16:29, Yates, Danny wrote: A Stateful Session Bean is specifically intended to have one instance allocated to each client. Your best option is to use a Stateless Session Bean, which provides the interface, and have it delegate to a POJO which maintains the state and is created using some variation of the Singleton pattern. -- Danny Yates Could you explain me better the theory of POJO inside stateless session beans? I think I know what is intended to do, but I don't know how to implement it. A little example would be more than enough... regards, Pedro Salazar. -- -PS --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] share stateful session beans
On Thu, 2003-12-04 at 17:22, Arvinder Singh wrote: I *think* Danny implied: Your-Session-Bean { // what ever your store is private static SomeStoreImpl store = SomeStoreImpl.getInstance(); public void store(String key, Object value) throws RemoteException { store.put(key, value); } } Does it works in cluster? I don't know if stateless EJBs are clustered... So, if I have more than one application server instance, the values would be replicated? -- -PS --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] cmp primary key fields
Hi, In jbosscmp-jdbc.xml how do I map primary key fields to a certain database field? I can map the regular fields easily. Thanks, Jeremy begin:vcard fn:Jeremy Rempel n:Rempel;Jeremy email;internet:[EMAIL PROTECTED] tel;work:604-309-0866 x-mozilla-html:FALSE version:2.1 end:vcard
Re: [JBoss-user] Unexpected Signal : 11
Brian, this problem occurs only when it is running under Linux. When we changed our glib from glibc-2.3.2-4.80.6 to glibc-2.3.2-4.80.8 at RedHat 8 using up2date -u the problem got worse. I looked at http://developer.java.sun.com/servlet/SessionServlet?url=/developer/bugParade/bugs/4927116.html But nothing worked, they say: -Release Fixed 1.4.2_04, tiger-beta And: we don't see this behavior with J2SE 1.4.0 or 1.4.1_05 I tryed all this options, but 1.4.2_04 doesn't exists, and using 1.4.0 or 1.4.1_05 it crashes too. Any ideas? Thanks Gabriel Brian Wallis [EMAIL PROTECTED] escreveu: On Wednesday 03 December 2003 07:39, Adrian Brock wrote: On Tue, 2003-12-02 at 19:11, Rod Macpherson wrote: Segmentation Violation. Unless you are making JNI calls there is nothing application code can do to generate this signal. Except allocate all the memory and the VM doesn't trap the out of memory situation. I get these (and signal 10, buserror) with both the linux 1.3.x/1.4.x and Solaris VMs. It doesn't happen very often but often enough to worry me about the stability of the JVM in a 24x7 production environment. Getting the patch levels correct on Solaris can be a bit of a pain, there is usually a list included in the JVM release notes but they are not always available if they have been superceded, you have to get the latter one. This in itself can be a problem as sun are not unknown to have a regression of a problem, particularly in the threading area. Linux is a different but similar problem, the recent glibc changes have introduced some problems as well. I run mostly Mandrake 9.(0,1,2) based systems but often with a redhat (2.4.7-10) kernel due to our usage of clearcase. I've never been able to find a commonality between the crashes and have never been able to reproduce one at will so it is very difficult to report the error. Are similar problems seen on Windows JDKs? (and which versions of Windows?) We now have systems in production on Solaris 8 (although with very light usage for the moment) and are going to be watching the stability very closely. thanks, brian wallis... --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Enviado usando webmail v2.3 --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] cmp primary key fields
The same way as non primary key fields. Jeremy Rempel wrote: Hi, In jbosscmp-jdbc.xml how do I map primary key fields to a certain database field? I can map the regular fields easily. Thanks, Jeremy --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems using IBM JDK 1.3.1 with JBoss 3.2.1
Have seen it too, that VM doesn't seem too stable. -- Juha On Thu, 4 Dec 2003, Kristian Köhler wrote: Hi we encountered problems when running JBoss 3.2.1 with IBM JDK 1.3.1 on Windows 2000. The VM crashes when deploy/undeploy ears. Is anyone using IBM JDK 1.3.1 on Windows in conjunction with JBoss 3.2.1? Thanks Kristian --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss On Linux
We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.
Re: [JBoss-user] JBoss On Linux
hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss On Linux
Thanks for the tip. .peter Felipe Oliveira wrote: hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.
Re: [JBoss-user] Container Responsibility for CMR Foreign Keys
Key generation commands in 3.2.1 are different from those in 3.2.2. In 3.2.2 you should have auto-increment/ for generated fields. Could check whether key generation work for you w/o mapping foreign key fields to the primary key fields? Hanson, Matthew wrote: Hi Just another FYI on the null primary key for auto-increment primary key problem in jboss-3.2.2. Basically, the auto-increment keys don't seem to generate, and I get a null primary key error on creation. The suggestion was to add auto-increment/ to jbosscmp-jdbc.xml for the key fields. I did that, and the failure still occurs. Just to be sure, I simply deployed the jar to 3.2.1. With 3.2.1, the deployment failed with the following error: 2003-12-04 13:50:16,738 ERROR [org.jboss.deployment.scanner.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=homebrew/ejb/entity/accountHolderBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.IllegalStateException: auto-increment template not found] So, in 3.2.1, I removed the auto-increment/ tag from the beans, and the app deploys and the bean works (i.e., auto-increment keys are generated properly). Can you tell me why the auto-increment tag was suggested for 3.2.2? Are there additional tags that must be included? Please help!!! Regards, Matt Hanson --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss On Linux
Peter, do a ps ax as root and you will probably see the following processes running : - cron.daily - updatedb - run-parts and another one i can't remember the name of. http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-autotasks-anacron.html should help you to disable the job that is run Werner -- ir. Werner Ramaekers Enterprise Java Solutions Architect - Shift@ JBoss Authorized Service Partner Read my Blog at http://www.werner.be May the source be with you. -- Peter Luttrell wrote: Thanks for the tip. .peter Felipe Oliveira wrote: hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. -- --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: [JBoss-user] JBoss On Linux
After testing a while with several VMs We found out that BEAs Jrockit is by far the best VM for usage with JBoss (Of course this is what we found out for our Tests and is only an oppinion, so please don't shout too loud). Even if it does cost a little for a production licence, the performance and stability it provides is worth much more. Using this VM we were able to run the SPECjAppServer2002 benchmark in a 9 Node cluster under full load for over one hour. This is much more than we could achieve with for example the Sun VM with 35min. This indicates that it seems to handle the usual VM-trash a lot better. We could even monitor absolutely constant Memory usage - a thing we could not say for the Sun VM. I would absolutely recomend trying this. Our Systems were all SuSE based Linux System on AMD machines. Christofer Dutz -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Felipe Oliveira Gesendet: Donnerstag, 4. Dezember 2003 22:20 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] JBoss On Linux hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] JBoss On Linux
That's a pretty nice review. Does anyone else use JRocket on Linux? What are there experiences? .peter Christofer Dutz wrote: After testing a while with several VMs We found out that BEAs Jrockit is by far the best VM for usage with JBoss (Of course this is what we found out for our Tests and is only an oppinion, so please don't shout too loud). Even if it does cost a little for a production licence, the performance and stability it provides is worth much more. Using this VM we were able to run the SPECjAppServer2002 benchmark in a 9 Node cluster under full load for over one hour. This is much more than we could achieve with for example the Sun VM with 35min. This indicates that it seems to handle the usual VM-trash a lot better. We could even monitor absolutely constant Memory usage - a thing we could not say for the Sun VM. I would absolutely recomend trying this. Our Systems were all SuSE based Linux System on AMD machines. Christofer Dutz -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Felipe Oliveira Gesendet: Donnerstag, 4. Dezember 2003 22:20 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] JBoss On Linux hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371opk ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss On Linux
Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribió: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: AW: [JBoss-user] JBoss On Linux
That's a pretty nice review... Yes, in fact I expected to see a link to the storefront that would net him some micropayments: a nickel per view:) My only concern is that they are now under BEA's umbrella so the temptation to enhance or hobble when running or not running in weblogic is there. -Original Message- From: Peter Luttrell [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 5:17 PM To: [EMAIL PROTECTED] Cc: Subject: Re: AW: [JBoss-user] JBoss On Linux That's a pretty nice review. Does anyone else use JRocket on Linux? What are there experiences? .peter Christofer Dutz wrote: After testing a while with several VMs We found out that BEAs Jrockit is by far the best VM for usage with JBoss (Of course this is what we found out for our Tests and is only an oppinion, so please don't shout too loud). Even if it does cost a little for a production licence, the performance and stability it provides is worth much more. Using this VM we were able to run the SPECjAppServer2002 benchmark in a 9 Node cluster under full load for over one hour. This is much more than we could achieve with for example the Sun VM with 35min. This indicates that it seems to handle the usual VM-trash a lot better. We could even monitor absolutely constant Memory usage - a thing we could not say for the Sun VM. I would absolutely recomend trying this. Our Systems were all SuSE based Linux System on AMD machines. Christofer Dutz -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Felipe Oliveira Gesendet: Donnerstag, 4. Dezember 2003 22:20 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] JBoss On Linux hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
RE: AW: [JBoss-user] JBoss On Linux
BTW, did you try the -Xincgc option for continuous GC on Sun's JVM? That would probably give you the same results you were seeing in JRockit. Depending on how you configure each you may not be looking at an apples to apples comparison. -Original Message- From: Rod Macpherson on behalf of Rod Macpherson Sent: Thu 12/4/2003 7:21 PM To: [EMAIL PROTECTED] Cc: Subject: RE: AW: [JBoss-user] JBoss On Linux That's a pretty nice review... Yes, in fact I expected to see a link to the storefront that would net him some micropayments: a nickel per view:) My only concern is that they are now under BEA's umbrella so the temptation to enhance or hobble when running or not running in weblogic is there. -Original Message- From: Peter Luttrell [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 5:17 PM To: [EMAIL PROTECTED] Cc: Subject: Re: AW: [JBoss-user] JBoss On Linux That's a pretty nice review. Does anyone else use JRocket on Linux? What are there experiences? .peter Christofer Dutz wrote: After testing a while with several VMs We found out that BEAs Jrockit is by far the best VM for usage with JBoss (Of course this is what we found out for our Tests and is only an oppinion, so please don't shout too loud). Even if it does cost a little for a production licence, the performance and stability it provides is worth much more. Using this VM we were able to run the SPECjAppServer2002 benchmark in a 9 Node cluster under full load for over one hour. This is much more than we could achieve with for example the Sun VM with 35min. This indicates that it seems to handle the usual VM-trash a lot better. We could even monitor absolutely constant Memory usage - a thing we could not say for the Sun VM. I would absolutely recomend trying this. Our Systems were all SuSE based Linux System on AMD machines. Christofer Dutz -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Felipe Oliveira Gesendet: Donnerstag, 4. Dezember 2003 22:20 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] JBoss On Linux hi peter, i run jboss in the same exactly environment, but i don't seem to be running into these problems. we found the ibm jvm to be the best for our scenario...maybe you should take a look at it. felipe Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter -- CONFIDENTIALITY NOTICE: This e-mail message, including any
RE: [JBoss-user] JBoss On Linux
Downloaded JRockit and launched a large J2EE application in debug mode. JBoss started in 1:24. Using Sun's JDK 1.4 JVM the same application started in 1:32. I would call that a noise-level improvement given JRockit is a commercial product focused on performance. Not a valid benchmark but then if your compiled code is really all that you would expect to see more than a fraction of 1% improvement. Conclusion: JRockit is not worth the disk space it's sitting on:) -Original Message- From: David Ward [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 6:28 PM To: [EMAIL PROTECTED] Cc: Subject: Re: [JBoss-user] JBoss On Linux Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribi: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=ick ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user winmail.dat
RE: [JBoss-user] JBoss On Linux
It's contagious, ain't it:) -Original Message- From: David Ward [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 8:28 PM To: [EMAIL PROTECTED] Cc: Subject: Re: [JBoss-user] JBoss On Linux Rod, Input appreciated and respected, however I think to help Peter we need to keep off the performance bunny hole. He never said performance was his problem. As a side note, you're right: what you tested (startup time) was far from a valid performance benchmark. JVMs intended to boost server performance don't try to be fast for startup times (if you want that, use the -client jvm option, not -server). They care more about being fast for things servers care about after they're already up and running - like handling multiple threads quickly, optimizing server hotspots like network connections, and effective memory management of large heaps under load, etc. Besides, I take benchmarks with a grain of salt - each custom app does different things, and thus it's impossible that a generic benchmark is going to tell you what you really need to know - how does tool A stack up against tool B with YOUR application... Oh shoot, now you got me goin' down the bunny hole. Seriously, Peter - my guess is you've either got a resource leak or an inappropriate resource configuration. Start by looking at file descriptors. Just my 2 cents (again), David Rod Macpherson escribi: Downloaded JRockit and launched a large J2EE application in debug mode. JBoss started in 1:24. Using Sun's JDK 1.4 JVM the same application started in 1:32. I would call that a noise-level improvement given JRockit is a commercial product focused on performance. Not a valid benchmark but then if your compiled code is really all that you would expect to see more than a fraction of 1% improvement. Conclusion: JRockit is not worth the disk space it's sitting on:) -Original Message- From: David Ward [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 6:28 PM To: [EMAIL PROTECTED] Cc: Subject: Re: [JBoss-user] JBoss On Linux Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong
Re: [JBoss-user] JBoss On Linux
Rod, Input appreciated and respected, however I think to help Peter we need to keep off the performance bunny hole. He never said performance was his problem. As a side note, you're right: what you tested (startup time) was far from a valid performance benchmark. JVMs intended to boost server performance don't try to be fast for startup times (if you want that, use the -client jvm option, not -server). They care more about being fast for things servers care about after they're already up and running - like handling multiple threads quickly, optimizing server hotspots like network connections, and effective memory management of large heaps under load, etc. Besides, I take benchmarks with a grain of salt - each custom app does different things, and thus it's impossible that a generic benchmark is going to tell you what you really need to know - how does tool A stack up against tool B with YOUR application... Oh shoot, now you got me goin' down the bunny hole. Seriously, Peter - my guess is you've either got a resource leak or an inappropriate resource configuration. Start by looking at file descriptors. Just my 2 cents (again), David Rod Macpherson escribi: Downloaded JRockit and launched a large J2EE application in debug mode. JBoss started in 1:24. Using Sun's JDK 1.4 JVM the same application started in 1:32. I would call that a noise-level improvement given JRockit is a commercial product focused on performance. Not a valid benchmark but then if your compiled code is really all that you would expect to see more than a fraction of 1% improvement. Conclusion: JRockit is not worth the disk space it's sitting on:) -Original Message- From: David Ward [mailto:[EMAIL PROTECTED] Sent: Thu 12/4/2003 6:28 PM To: [EMAIL PROTECTED] Cc: Subject: Re: [JBoss-user] JBoss On Linux Peter, I've read others' responses to your problems, and they all seem to be addressing the wrong thing: performance. What you describe does not sound like a performance problem (neither of speed nor memory management). You never said the app was slow, so why do you care about SPECjAppServer2002 benchmarks and the like? It sounds more like a resource leak to me, my first guess being of file descriptors. On Linux/UNIX based systems, socket connections (like to your mailserver and database) - not just files - use file descriptors. If that's the case, something - or a growing number of things - are holding onto sockets or files (same thing to UNIX) and not letting go. If I were you I would do 2 things: 1) In the short term, increase your system setting for max # of file descriptors (in my experience, OS defaults are stunningly low for production systems). This will require a system reboot to take effect. 2) Find out where your resource leak is. It may be there's one in your application (that runs in jboss), and then the cron runs that might require a lot of descriptors too. Together, they could use up to your limit. To diagnose this you might have to employ more than just one tool. netstat (comes with Linux/UNIX), filemon (http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc. Last, maybe there really isn't a leak, but the nature of your application, plus the crons that run at specific times, just simply require more file descriptors than what your system has configured. Upping that value might prove to be all you need to do. If it never grows past that max, you're set - no leak. Unfortunately, without doing some surfing, I can't tell you where to set it for your system, or what the best value should be. I'll leave that as an exercise for you. ;) Anyway, hope this helps. And sorry in advance if it ends up leading you down the wrong path. I just wanted to share what your problem smelled like to me. David Peter Luttrell escribi: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a
Re: [JBoss-user] JBoss On Linux
On Fri, 2003-12-05 at 08:15, Peter Luttrell wrote: We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We have a pretty heavy load. After roughly a week many of the boxes start to experience weird problems where JBoss is unable to get what looks to be socket connections. In some cases, we cannot contact our mailserver, in other cases we cannot contact our database; in the latest case we're unable to get a connection to the local jndi server (localhost:1099). Sometimes a simple restart of jboss will sometimes solves the problems, othertimes we have to restart linux. The times of the crashes are roughly 4am and sometimes 6am, so it's likely caused by a cron job running at those times, which we're currently looking into. Has anyone experienced similar problems? .peter Perhaps some other things to check are hsqldb related open files if you are running hsqldb using a JDBC port rather than in-line or in-process. You can lsof to check for anything untoward there. This is a known problem with hsqldb AFAIK. We run with hsqldb as in-process. We also run the IBM 1.4.1 SDK for performance reasons. YMMV but it appears that the IBM and BEA JDK/SDKs have a performance advantage - at least out of the box without any tweaking or special options. Best regards, *---*--* | Jon Barnett | | E-Mail: [EMAIL PROTECTED] | | Homepage: http://www.amitysolutions.com.au Date: 05.12.2003 | | | | And there he saw a marvellous sight | | As to it he made his way:| | Before a fine tomb freshly built | | Praying, a hermit lay. | | The tomb was cased in marble grey| | And inscribed in lettering bright. | | A noble coffin was on it, lit| | By a hundred candles' light. | | l.3526,3533 from the Stanzaic Le Morte Arthur| *---*--* signature.asc Description: This is a digitally signed message part