[JBoss-user] getServletContext() throwing a NullPointer?
I'm trying to get my webapp that works perfectly with JBoss3.2.1 (with Jetty) to work with JBoss3.2.3 with Jetty 4.2.14. When i execute the following line of code in the doPost method of a servlet, i get a NullPointerException: System.out.println( TEST: getServletContext()= + getServletContext()); Here's the stacktrace: Exception StackTrace: java.lang.NullPointerException at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:204) at com.emsystem.web.MainController.doPost(MainController.java:104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:201) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:133) at com.emsystem.arch.struts.EMSystemActionServlet.service(EMSystemActionServlet.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1776) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:514) at org.mortbay.http.HttpContext.handle(HttpContext.java:1726) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.jboss.jetty.Jetty.service(Jetty.java:456) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:196) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:487) Does anyone have any ideas as to what is causing this? Or how to fix it? thanks. .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.
[JBoss-user] JBoss Looping on Startup
I'm experiencing the strangest problem... When i startup JBoss it loops forever. I'm using JBoss3.2.3 with Jetty on Windows with Jdk 1.4.2_04. It appears that once my webapp has been deployed, JBoss just starts over again. Checkout these lines of output: 19:41:36,359 INFO [MainDeployer] Deployed package: file:/C:/dev/jboss-3.2.3/server/emsystem/deploy/emsystem.ear 19:41:36,359 INFO [URLDeploymentScanner] Started jboss.deployment:type=DeploymentScanner,flavor=URL 19:41:36,937 INFO [Server] Starting JBoss (MX MicroKernel)... 19:41:36,937 INFO [Server] Release ID: JBoss [WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445) 19:41:36,937 INFO [Server] Home Dir: C:\dev\jboss-3.2.3 Any ideas? .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 Took a Nap!
That's a problem with windows's console app. My production servers are headless redhat 9 boxes. .peter Roy Britten wrote: Nice. Thanks Adrian. On Fri, 20 Feb 2004 at 5:37am, Adrian Brock wrote: Right click the title bar on your console and turn off quick edit mode.
[JBoss-user] JBoss Took a Nap!
We experienced an odd problem last night in one of our production servers running JBoss3.2.1 (with Jetty). The entire things simply stopped responding for ~3 minutes! It didn't complete any of it's web requests nor write anything to the log for the entire period - something i've never seen before. The only thing that we can think of is that the VM was doing GC for that period. Does anyone have any other ideas on what could have caused the little nap it took? thanks. .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 Took a Nap!
Actually i don't think it has anything to do with the web container as we have a jmx service that runs every 60 seconds that always dumps stuff to the server.log. During the 3 minute nap, it didn't appear to run... .peter Rod Macpherson wrote: Use tomcat -- you knew that was coming:) -Original Message- From: Peter Luttrell [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 8:24 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss Took a Nap! We experienced an odd problem last night in one of our production servers running JBoss3.2.1 (with Jetty). The entire things simply stopped responding for ~3 minutes! It didn't complete any of it's web requests nor write anything to the log for the entire period - something i've never seen before. The only thing that we can think of is that the VM was doing GC for that period. Does anyone have any other ideas on what could have caused the little nap it took? thanks. .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. --- 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_id56alloc_id438op=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.
[JBoss-user] Odd Problem...
We experienced an odd problem last night in one of our production servers running JBoss3.2.1 (with Jetty). The entire things simply stopped responding for ~3 minutes! It didn't complete any of it's web requests nor write anything to the log for the entire period - something i've never seen before. The only thing that we can think of is that the VM was doing GC for that period. Does anyone have any other ideas on what could have caused the little nap it took? thanks. .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.
[JBoss-user] C-JDBC?
Does anyone have experience with c-jdbc (http://c-jdbc.objectweb.org/) in jboss? .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] How to configure locking mechanism for EnityBean s - optimistic vs pessimistic?
Where are these test beans used? In other words, where is the code for the test cases located? I just did a text search of the 3.2.1-src i have and couldn't find the text "EntityModifiedLocking" in any files other then the deployment descriptors. thanks. .peter Adrian Brock wrote: On Fri, 2004-01-16 at 23:42, Sasidharan, Manoj wrote: Hello, I could not find this entry in JBOSS_HOME/server/default/conf/standardjbosscmp-jdbc.xml. Should I add a new one??? This is from the testsuite. http://cvs.sourceforge.net/viewcvs.py/jboss/jbosstest/src/resources/cmp2/optimisticlock/META-INF/jbosscmp-jdbc.xml?rev=1.4view=auto Regards, Adrian Please let me know. FYI, we are running JBoss v3.2.3 using Oracle 9i rgds MS -Original Message- From: Juha Lindfors [mailto:[EMAIL PROTECTED]] Sent: Friday, January 16, 2004 2:22 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] How to configure locking mechanism for EnityBeans - optimistic vs pessimistic? optimistic-locking in jbosscmp-jdbc.xml On Fri, 16 Jan 2004, Sasidharan, Manoj wrote: Hello All, How can we change the locking mechanism used in Entity Beans - optimistic, pessimistic? Any pointers to which configuration file need to be modified. Thanks in advance. Best Regards MS --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMS vs ASYNC Log4J Appender
We log a ton of stuff and are having problems caused by synchronous logging blocking the appserver when linux rotates other various logs in the system. So we're considering using the ASYNC or JMS appenders. If we use the JMS appender we'll write a quick MDB to log all messages synchronously. Does anyone have any experience with these appenders in a high volume? Are there things to watch out for with either? Are there any key advantages or disadvantages of using JMS vs ASYNC? The obvious one is that JMS is sent to a topic so we'd have control over what we do with the log messages. Is there much more overhead with JMS vs ASYNC? In the past someone mentioned that the ASYNC appender can deadlock. Has anyone else experienced this? When it deadlocked, what happened? Did log messages just stop getting delivered, or did it take the whole server down? thanks. .peter
[JBoss-user] EnityBeans: Optimistic Locking Help
Can JBoss handle cmp optimistic locking that spans web requests? Here's the scenario that i'm trying to get working: Open two browser windows and display a value for a sample field. Update the value on one. Then update the value on the second, without refreshing first, and i'm hoping to get an exception signifying the stale data displayed, but i don't the update works fine. If this is possible, how do i make this happen? I have constructed a very simple sample project based on the optimistic locking section in the paydocs and have tried all but the UID method of locking but can't seam to get it to work. I'm wondering if someone might be able to identify what i have wrong. The sample project can be downloaded here: http://www.sharpuniverse.com/jboss/entitybeanlocking/sample.zip All you'll need to is set your jboss install dir in the build.properties then run the deploy target and go to the entitybeanlocking context. The JSP page reads the value from the db, puts the entitybean in the session and displays the current value to the page. On subsequent requests it gets the entitybean out of the session. The update servlet gets the entitybean out of the session and updates the value. In order to get optimistic locking working, it sounds like i need to get and set the value from the same reference, hence why i'm putting the entity bean reference in the session. The documentation refers optimistic locking working within the transaction, which could be my problem considering i'm executing across multiple web requests. If this is the problem, can anyone suggest a strategy for getting it to work. thanks. .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.
[JBoss-user] ASYNC Log4J Appender
A couple of questions about the log4j ASYNC appender: Considering that we're not allowed to spawn off threads in ejb's, is the ASYNC appender J2EE compliant? If it's not, does it matter, considering it's supplied resource from the appserver? If the VM crashes, we'd presumably loose whatever had not been written to the log right? Does anyone have experience with how much this might be? Is there any way to quantify it, such as 10sec of the log or something? Or is it pretty resilient to losing that last little bit of data. thanks. .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] JMS vs ASYNC Log4J Appender
When it deadlocked, what happened? Did log messages just stop getting delivered, or did it take the whole server down? Has one else experiences such a problem? .peter Juha Lindfors wrote: I've seen the async appender deadlock, so I'm not entirely convinced of its robustness. I did not pursue it any further to find the cause. There's at least one open bug in the log4j tracker for this. YMMV -- Juha On Fri, 19 Dec 2003, Peter Luttrell wrote: We log a ton of stuff and are having problems caused by synchronous logging blocking the appserver when linux rotates other various logs in the system. So we're considering using the ASYNC or JMS appenders. If we use the JMS appender we'll write a quick MDB to log all messages synchronously. Does anyone have any experience with these appenders in a high volume? Are there things to watch out for with either? Are there any key advantages or disadvantages of using JMS vs ASYNC? The obvious one is that JMS is sent to a topic so we'd have control over what we do with the log messages. Is there much more overhead with JMS vs ASYNC? thanks. .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_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ASYNC Log4J Appender
A couple of questions about the log4j ASYNC appender: Considering that we're not allowed to spawn off threads in ejb's, is the ASYNC appender J2EE compliant? If it's not, does it matter, considering it's supplied resource from the appserver? If the VM crashes, we'd presumably loose whatever had not been written to the log right? Does anyone have experience with how much this might be? Is there any way to quantify it, such as 10sec of the log or something? Or is it pretty resilient to losing that last little bit of data. thanks. .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
Is there a way to tell if i've run out of file descriptors? thanks. .peter David Ward wrote: 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Ìk ___ 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.
[JBoss-user] Jetty: Detail on JSP Errors?
I've inherited some bad JSP pages, that are full of code and have no error handling. Pity me! Whenever there's an unhandled exception in the code on a page, we get one of JasperExceptions and stacktrace below. The correct long term solution is of course to get the code out of the JSP pages. The short term solution is at least implement proper error handling, which we'll do for the next release. In the meantime, i'm wondering though if there is any magic flag in Jetty to get it to generate more helpful/meaningful error messages that might help us determine what the problem on the pages are. thanks. .peter Exception StackTrace: org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129) at com.emsystem.web.MainController.doPost(MainController.java:104) at com.emsystem.web.MainController.doGet(MainController.java:147) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:168) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129) at MyForwardingServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507) at org.mortbay.http.HttpContext.handle(HttpContext.java:1664) at org.mortbay.http.HttpServer.service(HttpServer.java:863) at org.jboss.jetty.Jetty.service(Jetty.java:460) at org.mortbay.http.HttpConnection.service(HttpConnection.java:775) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455) -- 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
Thanks for the info. I'll checkout the file descriptors. I didn't realize that could be the problem. I've had problems with them in the past, but its always been with non-java apps and the error messages were pretty clear. No, we don't have a performance problem, but when i do experience this problem the whole appserver is out of commission until it is either resolved or restarted. .peter David Ward wrote: 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Ìk ___ 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] JBoss On Linux
The VM could be the source of my problem. My unix admin suspects that Sun's VM might not be handling socket connections properly. And in general i am very interested to hear what experiences others are having with alternative VMs. Most of my experience has been with Suns. .peter Christofer Dutz wrote: I don't think that they *all* address the wrong thing. Im my Posting about JRockit I was talking about Stability. Refering to the SPECjAppServer benchmark was the best reference I could give since a realy good benchmark doesn't only measure the performance. The benchmark was designed to simulate the stress of 8 hours full server stress within 1 hour. Why do you think jboss crashed with the other VMs within 30mins? Certainly not because it was too slow. If it is too slow the only things you can see are error messages on the driver application injecting the benchmark-data to SPECjAppServer. It was the best test I can think of how well a VM (and of course JBoss ... since this was the thing I was testing) performs. I also mentioned that I could register a slow memory-consuption grow on Sun VMs ... what would be the cause of this if not a memory leak ??? Chris David Ward schrieb: 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 --- 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
Re: [JBoss-user] JBoss On Linux
Currently we deploy with hypersonic running but don't actually use it. Hopefully that should mean that it's not my problem. However, next week we will start using it as a persistent store for JbossMQ. The config i'm about to use is jdbc2 with pretty default settings. How does one run it "in-line" or "in-process"? I don't see a reference to that in the docs. thanks. .peter Jon Barnett wrote: 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| *---*--*
Re: [JBoss-user] JBoss On Linux
I was very surprised to see that we had a problem getting a connection to the jndi service as well. I had assumed it was in-vm. We haven't modified conf/jndi.properties; we get our context manually. We set java.naming.provider.url to jnp://localhost:1099. I just noticed the following in the conf/jndi.properties file: # Do NOT uncomment this line as it causes in VM calls to go over RMI! #java.naming.provider.url=""> So it looks like setting it to jnp://localhost:1099 could really be adding to the socket load on the box, and thus we could be running out of file descriptors after a week or so, which is roughly how long we can stay running. Does this sound plausible? As far as stack size, our default is 8m. Does anyone have any recommendations on what we should set this too? Or suggestions on determining what is appropriate for our particular situation? thanks. .peter Adrian Brock wrote: On Thu, 2003-12-04 at 21: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 This sounds like a problem with sockets. Beyond what John said about hsqldb, use "netstat -an" to see what sockets are open and what state they are in. But you should also check that the vm is responding at all and hasn't just hung. Use kill -3 jboss-pid to see whether it produces a thread dump. The most likely problem is your access to jndi. Why are you making it use a socket at all? It should be using in memory access. Either you have changed conf/jndi.properties (don't) or you have a jndi.properties deployed somewhere else with a provider url specified. jndi access should not be using a local socket inside jboss. Unrelated, you might also want to reduce the stack size. The typical 8M of stack is very large for java which allocates most stuff on the heap. Use ulimit -a to see your default setting. NOTE: There is a ulimit command in bin/run.sh where you should change this. Regards, Adrian -- 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.
[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
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: 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
[JBoss-user] Jetty Log Info
We're using JBoss3.2.1 + Jetty 4.2.9. I'm wondering if there's additional log info available from Jetty, and how to turn it on. thanks. .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.
[JBoss-user] Jetty Thread Count: Recommendations?
Each of our servers handles roughly 50k jsp pages + 450k other files each day. We're using JBoss3.2.1 + Jetty 4.2.9. Does anyone have a recommendation as to how many threads we should allow Jetty to have? We've got it currently set to the default (100), but periodicly we're running out of threads with the following error messages: =2003-11-10 11:48:52,143 [Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]] WARN [jbossweb] WARNING: No thread for Socket[addr=/127.0.0.1,port=48196,localport=8080] (We're proxing through apache which is running on each machine, incase you're wondering why it's 127.0.0.1.) Here's the configuration we're using: attribute name=ConfigurationElement Configure class=org.mortbay.jetty.Server Call name=addListener Arg New class=org.mortbay.http.SocketListener Set name=PortSystemProperty name=jetty.port default=8080//Set Set name=MinThreads10/Set !-- Set name=MaxThreads100/Set -- Set name=MaxThreads100/Set Set name=MaxIdleTimeMs3/Set Set name=LowResourcePersistTimeMs5000/Set /New /Arg /Call .. thanks. .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.
[JBoss-user] Jetty Thread Count: Recommendations?
Each of our servers handles roughly 50k jsp pages + 450k other files each day. We're using JBoss3.2.1 + Jetty 4.2.9. Does anyone have a recommendation as to how many threads we should allow Jetty to have? We've got it currently set to the default (100), but periodicly we're running out of threads with the following error messages: =2003-11-10 11:48:52,143 [Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]] WARN [jbossweb] WARNING: No thread for Socket[addr=/127.0.0.1,port=48196,localport=8080] (We're proxing through apache which is running on each machine, incase you're wondering why it's 127.0.0.1.) Here's the configuration we're using: attribute name=ConfigurationElement Configure class=org.mortbay.jetty.Server Call name=addListener Arg New class=org.mortbay.http.SocketListener Set name=PortSystemProperty name=jetty.port default=8080//Set Set name=MinThreads10/Set !-- Set name=MaxThreads100/Set -- Set name=MaxThreads100/Set Set name=MaxIdleTimeMs3/Set Set name=LowResourcePersistTimeMs5000/Set /New /Arg /Call .. thanks. .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] Re: Jetty vs Tomcat
So if I wanted ALL jsp pages in my webapp to be compiled when it is deployed would I change this part of the webdefault.xml file: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class load-on-startup0/load-on-startup /servlet to this?: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class load-on-startup1/load-on-startup /servlet I tested this by creating a jsp page that does not compile and reploying it. I didn't see any problems until i actually tried to navigate to the page. thanks. .peter Greg Wilkins wrote: You can access the jasper configuration in Jetty via the webdefault.xml in the jbossweb-jetty.sar regards JD Brennan wrote: Do you have an example of what the web.xml mappings would look like? I've checked the Tomcat docs, searched the JBoss 3.2.1 source tree and even read the web.xml DTD, but I still can't figure out how to do this. Thanks, JD -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 3:51 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Jetty vs Tomcat Yes, but you have to update the web.xml mappings to use these. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ 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.
[JBoss-user] JMS Use: Multiple Server Versions?
We're considering the use of JMS with JBoss (JBossMQ). We're wondering if anyone has any ideas or opinions on this aspect: Our environment consists of multiple JBoss servers all with their own applications. We need to have a server app on one jboss server send and receive messages from a queue/topic on a different server; pretty simple to implement. We would also like to be able to upgrade jboss versions on different servers without needing to upgrade all the servers at once. I think this should work, but might depend on the protocol that the connection factories use. Should this even work? Is this possible at all? Is it only between major versions of jboss such as 2.x, 3.x, 3.2.x, etc? Do you have recommendations on what connection factories to use? Other thoughts? thanks. .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.
[JBoss-user] Change Log Level at Runtime?
Is there any way to change the log level for the server.log at runtime? I've looked at the service=Logging,type=Log4jService in the jmx-console, but can't seam to get any of the operations to work. I'm using jboss3.2.1. .peter
[JBoss-user] Please Help
Does anyone know how to fix this 11:09:35,453 WARN [TransactionImpl] XAException: tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=IS756//117, BranchQ ual=] errorCode=XAER_PROTO javax.transaction.xa.XAException at oracle.jdbc.xa.OracleXAResource.disallowLocalTxnMode(OracleXAResource.java:1047) at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:153) at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:133) at org.jboss.tm.TransactionImpl.startResource(TransactionImpl.java:1137) at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:624) at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager .java:460) at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.jav a:358) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:49 0) at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseCon nectionManager2.java:798) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102) I know it has something to do with the XA datasource. I'm using JBoss3.2.1 and Oracle 9.2.0.3 thin drivers talking to oracle 8.1.7.4 server. I'm using the sample oracle xa datassource file and i've turned padding on in the transaction service. thanks. .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.
[JBoss-user] Oracle and XA Datasource Problem
I just changed my oracle datasouce to xa based on the jca example provided. And changed the transaction-service.xml to pad=true (per the comments in the example file). Now I get the exception listed below. I've dug through the list archives and it sounds like other people have seen a similar problem, but i wasn't able to find a solution for it. Does anyone know what is causing this? Or better yet how to fix it? I'm using JBoss3.2.1 and Oracle (server 8.1.7.4; driver: 9.2.0.3 thin). thanks. .peter 11:09:35,453 WARN [TransactionImpl] XAException: tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=IS756//117, BranchQ ual=] errorCode=XAER_PROTO javax.transaction.xa.XAException at oracle.jdbc.xa.OracleXAResource.disallowLocalTxnMode(OracleXAResource.java:1047) at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:153) at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:133) at org.jboss.tm.TransactionImpl.startResource(TransactionImpl.java:1137) at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:624) at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager .java:460) at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.jav a:358) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:49 0) at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseCon nectionManager2.java:798) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102) -- 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.
[JBoss-user] EAR Classloader Scope: spec?
In jboss2.4x+jetty, if one jar depended on another jar, you needed to specify the dependency in the manifest file using the Class-Path element, even if the dependent jar was listed as a modulejava in the ear deployment descriptor. In jboss3.x+jetty, you did not need to specify the dependency in the manifest file...any class in the ear was available to everything else in the ear. Is this distinction specified in the spec anywhere? I wasn't able to find it. I'm trying to determine if the jboss3 way his portable across different app servers. thanks. .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.
[JBoss-user] JBossMQ Perforamance
In order to ascertain if JBossMQ is capable of providing the throughput I need, i've constructed a couple of little apps to see what kind of performance i can get. Here's what i've found: 100 Megabit: 1250-1350 messages per second Gigabit: 1500-1600 messages per second I was hoping to see a bit better performance then this; especially a larger differential with Gigabit. 100Megabit only used about 10% of the network bandwidth (if you believe xp's network monitor) and gigabit only used at most 1.5%. Is this the best performance i can expect? What have others observed? Can anyone suggest where the bottleneck might be? Does anyone have any suggestions on what configs to tweak? All of my test code, and deployable ear is located at http://www.sharpuniverse.com/jboss/jms-performance There is a publisher and subscriber swingapps which are webstart deployed. There is also a publisher servlet. Deploy the ear and go to context: jms-performance-test for everything Here's a little more info on my tests: JBoss3.0.3 Protocal/ConnecitonFactory: OIL 100MegaBit tests: Network: several different networks all switched Server/Client boxes: Various differnt boxes runing w2k, wxp, osx and linux, various different jdks 1.4.0 - 1.4.1_01 Gigabit tests: Network: 2 boxes with crossover cable Server: MacOSX running jdk1.3.1 Client: WindowsXP running jdk1.4.1_01 .peter --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] List Archives...
The list archives don't work. When I go to: http://lists.sourceforge.net/lists/listinfo/jboss-user and click on list archives, which takes me to http://sourceforge.net/mailarchive/forum.php?forum=jboss-user which doesn't work. Also the link on the list page: http://sourceforge.net/mail/?group_id=22866 doesn't work for user-archives...but it works nicely for dev archives. Any chance we can get this fixed? --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MBean and EJB Access through Local Interfaces?
Title: Message I have a JMX MBean that access an entity bean via Remote interfaces. Is it possible to access the entity bean through Local interfaces instead? If so, how? Is there a place i define what to look them up by, such as the ejb-local-ref in either the web.xml or ejb-jar.xml? thanks. .peter
[JBoss-user] JBossCMP Change Column Names in CMR
How do you change the column names for a table generated by a MANY-to-MANY CMR? Here's an example of what i've tried: ejb-jar.xml: ejb-relation ejb-relation-nameUser-Roles/ejb-relation-name ejb-relationship-role ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-name multiplicityMany/multiplicity relationship-role-source ejb-nameUsers/ejb-name /relationship-role-source cmr-field cmr-field-nameroles/cmr-field-name cmr-field-typejava.util.Set/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name multiplicityMany/multiplicity relationship-role-source ejb-nameRoles/ejb-name /relationship-role-source cmr-field cmr-field-nameusers/cmr-field-name cmr-field-typejava.util.Set/cmr-field-type /cmr-field /ejb-relationship-role /ejb-relation My understanding of how to do this is via this entry in jbosscmp-jdbc.xml: ejb-relation ejb-relation-nameUser-Roles/ejb-relation-name relation-table-mapping table-nameUser_Role/table-name /relation-table-mapping ejb-relationship-role ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name key-fields key-field field-nameusers/field-name column-nameuser_name/column-name /key-field /key-fields /ejb-relationship-role ejb-relationship-role ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-name key-fields key-field field-nameroles/field-name column-namerole_name/column-name /key-field /key-fields /ejb-relationship-role /ejb-relation But the problem is that jboss complains ~ It doesn't seam to be able to locate the users or roles field-name's that i've declared. Here's the summary error: [ObjectName: jboss.j2ee:service=EJB,jndiName=myBEAN state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: CMP field for key not found: field name=roles, ObjectName: jboss.j2ee:service=EJB,jndiName=myBEAN with the following exception: 17:34:33,434 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB,jndiName=myBEAN org.jboss.deployment.DeploymentException: CMP field for key not found: field name=roles at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.loadKeyFields(JDBCRe lationshipRoleMetaData.java:374) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.init(JDBCRelationshi pRoleMetaData.java:157) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.init(JDBCRelationMetaData. java:308) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.init(JDBCApplicationMet aData.java:383) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:75) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.j ava:677) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:38 9) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198) at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376) at org.jboss.ejb.Container.invoke(Container.java:793) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:950) at $Proxy6.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:384) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284 ) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) at $Proxy224.start(Unknown Source) at org.jboss.ejb.EjbModule.startService(EjbModule.java:440)
[JBoss-user] Classloader Question
Title: Message Is the classpath isolated for separate ears? If the classpath is not isolated, does anyone have a recommended strategy for handling ears with different versions of the same jar? I just deployed 2ears with radically different versions of the struts jar in them. Depending on which one loaded first the opposite blew up with errors that appear to be related to version changes with struts. If i deploy the ears separately they work fine. I am using JBoss3.0.1rc1 with tomcat4.0.3. Is this possibly a bug? .peter
[JBoss-user] (no subject)
I have a secure webapp that uses form based authentication. After a successfull login I need to check a flag and then potentially forward to a special page where the user is forced to change their password. Does anybody know how to do this? thanks. ..peter ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] (no subject)
Ya, I was thinking about using such an approach, but I didn't like the idea of adding a check to every page (or even a static included header page). Sounds like it's unavoidable though. thanks. ..peter -Original Message- From: Damon Torgerson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 7:00 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] (no subject) Peter If you're using JSPs a good example can be found in Advanced Java Server Pages by Geary. He uses a custom tag to check a session attribute and if the attribute is missing/wrong it forwards the browser to a page. You include the tag on all of the pages you wish to be secure. Damon On Mon, 2002-06-10 at 16:34, Peter Luttrell wrote: I have a secure webapp that uses form based authentication. After a successfull login I need to check a flag and then potentially forward to a special page where the user is forced to change their password. Does anybody know how to do this? thanks. ..peter ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm? source=osdntextlink ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Ranksix Solutions Inc. [EMAIL PROTECTED] 250.514.6616 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm? source=osdntextlink ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] (no subject)
ya, it was a bit vague... I'm using declarative security for my webapp. I'm using form based authentication and I have a standard login page that posts to j_security_check. I need to administratively force the user to change their password on next login. I was hoping to handle this by writing my own implementation of the servlet that handles the j_security_check request. It would check the for a flag and forward on to a different page to force the password reset and once complete forward on to the originally request destination. I couldn't find any info about how to do this in the jboss or tomcat docs, hence the post. Then I realized that a user could get around the forced password change if they changed the url, which lead me to believe that I need to put a check on the top of every page, which i didn't really like. But it sounds unavoidable (based on the other reply). thanks. ..peter -Original Message- From: Starsinic, Frank [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 7:01 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] (no subject) i think you need to be more specific but i've done this in several applications. to redirect the user you can do ... response.sendRedirect(http://whoosywhasa.com/a.jsp;); i think this is what you're looking for. if not, let me know. frank -Original Message- From: Peter Luttrell [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 4:34 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] (no subject) I have a secure webapp that uses form based authentication. After a successfull login I need to check a flag and then potentially forward to a special page where the user is forced to change their password. Does anybody know how to do this? thanks. ...peter ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm? source=osdntextlink ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] (no subject)
yep, I would see it as unavoidable, unless you want to re-implement the login process yourself. I would write a filter that performed the check and have that do the redirection. Make sure you dont do a db-query every time though! Just use some flag in the session to indicate that the user has changed their password. ya, that's what I planned to do. thanks for the warning though. hth dim thanks for the info. thanks. .peter ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user