Re: [JBoss-user] Memory Leak on Lunix!!!
On Saturday 09 March 2002 8:57 pm, Daniel Bruce Lynes wrote: > On March 8, 2002 01:15 am, Christian Riege wrote: > > this is fixed in the forthcoming 2.4.5 release; alternatively you can > > also grab the lates Branch_2_4 CVS code. > > > > An OutOfMemoryException on Linux also occurs because of some issues > > Linux has with threading; this is also dependent upon the JVM you're > > using. We've been getting better results by using IBM's implementation > > rather than the one Sun provides. Win2k and the respective JVM's on > > Win2k doesn't show this problem. > > I haven't been using Sun's JDK 1.2.x/1.3.x under Linux because it's such a > buggy piece of garbage. However, Blackdown's seems to work just fine, and > doesn't seem to suffer from this memory leak you're referring to. But > Sun's JVM isn't just buggy as hell under Linux...the same is also true of > their Windows JVM. The Hotspot JPDA debugger doesn't work properly in > either...have to run it in the classic VM all the time. > > JDK 1.4 doesn't seem to have any issues from Sun so far, however. Makes you wonder. All these years and still no decent java implementation and far too many issues for it to become a serious contender of any sort. Garbage collecting garbage. Give me a real lisp os anytime! The fact that j2 runs 2x faster on Windows than on Linux and that there have never been any real BSD vm's speaks tomes! SUN -- Open Source your bleedin VM or else follow the old motto: WRITE ONCE DEBUG EVERYWHERE Get your act together ;) ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jdk1.4's gone final
On Friday 15 Feb 2002 7:24 pm, David Hamilton wrote: > Nicolai P Guba wrote : > >> On Friday 15 Feb 2002 2:47 pm, David Ward wrote: > >> > >> 2) Take a look at the Reflection Performance improvements graph here: > >> http://java.sun.com/j2se/1.4/performance.guide.html > >> Again not sure, but this looks like it could really help JBoss > >> performance with the Proxy layer to the EJBs. > > > > Probably not very much, unless deploy-time becomes of an issue. I cannot > > imagine any run-time features that would require relfection. Or? > > Think it depends what you mean by reflection. If you are referring to the > process of getting Method and constructor objects the I agree, but this > seems to refer to the actual invoke method. > > This article that the invoke method is 20 (twenty) times faster in 1.4 than > 1.3.1. > > There must be at least two invocations on any EJB call (Proxy and > Container), and that would, in the past, have added a much larger overhead > than a straight method call. Indeed, this is good news. > Looking at the rest of the article, the claims it makes are quite > impressive (and if realistic, would make a significant difference to JBoss > performance, IMHO). > They are (over 1.3.1): > Servlets: +35% > EJBs: +34% > SPECjbb2000: +58% > > Anyone fancy trying some figures for JBoss? I'd agree on the impressiveness ;) We are going to stress test our servers, if there is any useful data, I'll publish them here. cheers! ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jdk1.4's gone final
On Friday 15 Feb 2002 5:37 pm, danch wrote: > Nicolai P Guba wrote: > > Probably not very much, unless deploy-time becomes of an issue. I cannot > > imagine any run-time features that would require relfection. Or? > > I think there are a few places, but if so they probably cache the method > lookups already. Cheers! Hmmm, apparently Serialization and I/O libs have received a lot of attention. Guess that would have a positive impact. Especially the way things are serialized. We looked at this and found that there is lots of room for improvement... (pre 1.4). *sigh* Sometimes it's just all too visible that different groups within Javasoft are working on parts of the core SDK. It's sometimes so inconsistent and the quality varies greatly. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jdk1.4's gone final
On Friday 15 Feb 2002 2:47 pm, David Ward wrote: > More than a couple things in 1.4 look attractive to JBoss: > > 1) JDBC 3.0 includes all the javax.sql stuff built in, but much cooler > is the new ability to retrieve database automatically generated keys. > http://java.sun.com/j2se/1.4/docs/relnotes/features.html#jdbc > Not sure, but this might make it easier for the Entity Container to get > the primary key back on ejbCreate if/when the key was a sequence. Hmmm, this feature is available via a multitude of drivers, but in a non-standardised way... > 2) Take a look at the Reflection Performance improvements graph here: > http://java.sun.com/j2se/1.4/performance.guide.html > Again not sure, but this looks like it could really help JBoss > performance with the Proxy layer to the EJBs. Probably not very much, unless deploy-time becomes of an issue. I cannot imagine any run-time features that would require relfection. Or? ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Stateful Session Bean Problem
On Wed, 2001-11-21 at 09:42, Sacha Labourey wrote: > Hello Nicolai, > > Are you sure that your SFSB lifetime hasn't expired? It looks like the bean > state has been removed from the file storage. H, this is definitively the case because the file is not there any more. However, this bean is being still refered to and one would expect it to serialize and passivate, then activate later on. Never to just delete itself as long as the session is still open. It doesn't make sense. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Stateful Session Bean Problem
What are the reasons for a stateful session bean NOT to serialize itself onto the filesystem? I am getting this pretty odd exception from our only stateful session bean and am a bit stupefied. H Log is below [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [java] javax.transaction.TransactionRolledbackException: Could not activate; nested exception is: [java] java.io.FileNotFoundException: /usr/local/JBoss/2.4.3/jboss/db/sessions/QueryHandler/1006278857470.ser (No such file or directory); nested exception is: [java] java.rmi.NoSuchObjectException: Could not activate; nested exception is: [java] java.io.FileNotFoundException: /usr/local/JBoss/2.4.3/jboss/db/sessions/QueryHandler/1006278857470.ser (No such file or directory) [java] javax.transaction.TransactionRolledbackException: Could not activate; nested exception is: -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Strange Session Bean behaviour in 2.4.1
Hmmm, I am deploying the same application on 2.4.0 and 2.4.1. Now, I've got a logging statement in the create method of the session bean and to my surprise I noticed that in 2.4.0 the statement only appeared once when I connected with the client, in 2.4.1 however they appear numerous times which is kind of strange and slowing things down unnecessarily. Has something changed? If not, could this be a bug? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tomcat 4.0 & JBoss 2.4.0
Herve Tchepannou <[EMAIL PROTECTED]> writes: > actually, Im comfuse with crimson? what the purpose of that jar > when xerces does the job? It's a choice of XML parser implementation. JAXP is a generic interface whereas crimson is the driver implementation. Xerces does both in one go. The only reason to stick with a difficult to set up parser would be because there is a lot of XML processing and it would have an adverse effect on the system otherwise. JBoss only reads a couple of XML files so it shouldn't matter that much. When I installed cocoon I had to remove jaxp.jar and crimson.jar and replace it with xerces.jar. I've noticed no difference at all. My 0.02 UKP Hehehe Sasha, the UK hasn't joined the Euro yet -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tomcat 4.0 & JBoss 2.4.0
"Saint-Martin Cecile" <[EMAIL PROTECTED]> writes: > Sorry, I have found what is the problem. JBoss was using Apache > Xerces for parser and tomcat was using Jaxp. I delete jaxp.jar and > crimson.jar directory and it's OK. Hmmm, I wonder why bother with crimson.jar and jaxp.jar when xerces got it all? Is there any particular reason for this? I'd vote for xerces for simplicity's sake. my 0.02 DM.- :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] (no subject)
Herve Tchepannou <[EMAIL PROTECTED]> writes: > - For devellopement purpose, Im using HypersonicSQL > - For production, PostgreSQL is a good choice I second that opinion. PostgreSQL natively supports transactions and has a very elegant locking mechanism. Make sure you compile the JDBC driver yourself since Postgres can build a different driver depending on the jdk you are using. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss and MySql Problems
"Daniel Ferrante" <[EMAIL PROTECTED]> writes: > Thanks Nicolai - I've strongly debated dropping the Entity Bean > stuff entirely. I believe I've found a work around to buy me some > time by setting GCEnabled to true and GCMxIdleTime to 1. It > cleans all the loose connections up. This definitely is only a hack > to buy me time though. Do you know of any problems with doing this, > or does it seem like a viable short term solution. I tested it and > it appears to work for my needs. Best, Dan Dan, I strongly recommend you attend the seminars given by Marc. In fact, it was Marc that raised the controversy with EJB and persistence. I don't think that a different app server will solve that problem. However, I really don't know why you need such high numbers of concurrent connections? Also, if you are using EJB and are worried about the persistence part, I recommend you give PostgreSQL a try since it's locking is much more fine grained and thus better suited for systems that make a lot of small requests. I've noticed a big performance increase --which kind of surprised me. I recommend you compile the Postgres JDBC driver yourself and give that a go. At least it should give you a better indication where the problem is. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] log4j system.out category
David Jencks <[EMAIL PROTECTED]> writes: > include > > import org.apache.log4j.Category; > > > private Category log = Category.getInstance(MyClass.class); > //Or use a string, maybe for jsps, haven't tried > > > to log... > > log.info("my message"); > > log.warn("HI"); > catch (Exception e) > { > log.error("now you've really done it! You broke it with exception", e); > } > log.debug("be sure to ignore this"); If you are try to log from within any of your Beans you can do the following: == import org.jboss.logging.Logger; . . . . . Logger.warning ("Problem locating UDFs for removal:" + e); == I think you need to add jboss.jar to your classpath. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss and MySql Problems
"Daniel Ferrante" <[EMAIL PROTECTED]> writes: > I am trying to debug why my application constantly dies (or hangs) > after 100 connections are created. I have made sure that I am > closing all the connections to the database in my code (that is > anywhere I make a direct connection to the database not using the > entity beans). I am not sure what the limits of your mysql/jdbc-driver combo are wrt concurrent connections. There could be OS limitations as well. You can make a direct connection to the database by getting the DataSource via JNDI and then use it just like with BMP. There is an example of that in the JBoss docs IIRC. You could drop the entity bean stuff entirely and just access the DB from session beans. In some cases this is quite desirable, as I found out. > I understand since Blocking is set to true that it waits for a new > connection. Is this a problem with CMP, mySQL, or do you see > anything in the XADataSourceLoader. In the first place I'd check my OS limitations for concurrent network connections and then the database and make sure that the driver doesn't bomb out. It's quite unlikely that it's XADataSourceLoader. Try setting the max value to 200 and see whether the problem persists. Posting your OS info as well as your mysql and jdbc driver versions can help as well. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: SV: SV: SV: [JBoss-user] Killing off a session?
"Lennart Petersson" <[EMAIL PROTECTED]> writes: > But what is the problem with having the user still in cache even > when he/she has left? No one else can use it and it will sooner or > later be timed out. If you want anything to happen in logout method > then you have to code it just like what you have to do with your > login method. Remember that login does 'nothing' more than fills up There are cases where there is confidential information on a screen and people would like to log out from the session explicitly. In such cases it is not wise to rely on a session timeout. > a Subject - no authentication is done until your first EJB call. If > you want a explicit authentication immediatly during login than it > is up to you to use your own LoginModule implemntation that does > that. Hmmm, makes sense but that's quite a lot of work for very little gain. I cannot imagine a reason why when one uses a logout() call the session should still be active. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: SV: SV: [JBoss-user] Killing off a session?
"Lennart Petersson" <[EMAIL PROTECTED]> writes: > Yes there is a MBean for it, > org.jboss.security.plugins.JaasSecurityManagerService. And there is > a flush method you can reach on > http://localhost:8082/ViewObjectRes//Security%3Aname%3DJaasSecurityManager > page. /Lennart so the thing to do is to look up the mbean for the JaasSecurityManager mbean and then call the flush method? Quite a lot of work for a WebOS IMO :) Is there any reason why this is not automagic via the logout method? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Accessing JavaMail session
Herve Tchepannou <[EMAIL PROTECTED]> writes: > In JBoss documentation, its recommended to defined in the > ejb-jar.xml a resource named mail/Mail of type > javax.mail.Session. and in the code, request it via the JNDI name > java:Mail, which works fined. > > But when I try to request the JavaMail session with the JNDI name > java:comp/env/mail/Mail, I receive an exception?! It seems to me > that EJB specs recomend to access resource via > java:/comp/env/... domain. > > So why can't I access mail session via java:/comp/env/mail/Mail? Doesn't jboss report the JNDI name space on the mbean interface on port 8082? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: SV: [JBoss-user] Killing off a session?
On Mon, 2001-09-24 at 13:16, Lennart Petersson wrote: > Hi Nicolai! > I'm remembering your question from London. I've tested this and although JBoss >security is caching a users authentication it is not possible for another user to log >on and use the cached state unless he is using same user/password. Because there is >always a check forthe correctnes of user/password. If you do change the roles that a >user belongs to then you have to flush the cache manually (use 8082) - or wait for >the time out. Maybe even the password is cached, don't know about that. > /Lennart Hmmm, flushing the cache manually is bad. However, if there is something on port 8082 then there must be a mbean for this. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Killing off a session?
On Mon, 2001-09-24 at 11:09, Gerry Duhig wrote: > Hi, > > We have a couple of servlet based applications deployed by the embedded Tomcat under >JBoss. > > These are secured by the JBoss security system using >org.jboss.security.auth.spi.DatabaseServerLoginModule. We use form based >authentication to force users to "log in". > > Users are correctly authenticated and it all works fine. > > Now we need a way of killing off that authentication so that we can force another >user to log on and not gain access using the first user's credentials. > > We don't want to insist users kill of their web browser, so we need some other way >that we can use from the servlet or a bean. > > Is there such a way? Sorry if its a FAQ - I didn't spot it in my searches! > Hmmm, I remember asking this question at the London Seminar and it appears that one needs to flush the session --or something along those lines. A simple logout() wouldn't do (although I am puzzled as to why it doesn't implicitly flush). Scott? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] web site is down?
"Sacha Labourey" <[EMAIL PROTECTED]> writes: > Any info? > > I get: > > HTTP ERROR: 404 Not Found > Could not find resource for / > RequestURI=/ Same here. Hmmmm, this happens quite often. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: [jetty-discuss] Re: Security and Jetty
Greg Wilkins <[EMAIL PROTECTED]> writes: > Can you also send me that section of your web.xml so that I can > test your exact setup. Is on it's way. > sorry about this - if you need to get past this point for testing > now, try using BASIC auth for the time being. We are demonstrating it right now. Whether it's on tomcat or not is not so much of an issue right now. I'd like to deploy on jetty though, which is end of this month. Thankx for your quick response :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [jetty-discuss] Re: Security and Jetty
Greg Wilkins <[EMAIL PROTECTED]> writes: > Nicolai P Guba wrote: > > > Greg Wilkins <[EMAIL PROTECTED]> writes: > > > >>Nicalai, > >> > >>RC9 contains a bug with FORM authentication. If the > >>URL j_security_check is not covered by the security contraint > >>then it is not handled correctly.I know this is counter > >>intuitive and it has already beed fixed for the next release. > >> > > Greg, thank you for the pointer. Could you kindly provide me with a > > more concise example on how I can fix this? > > The simplest thing to do is to probably get > > ftp://jetty.mortbay.org/pub/nightly/Jetty3-latest/lib/org.mortbay.jetty.jar > > And replace the org.mortbay.jetty.jar in your release. > Greg I've tried this fix but the problem persists. Unfortunately tomcat and jetty seem to behave different when it comes to the security bit. For eg, when I had a page in the /protected area and wasn't logged on, I got the logon screen from Tomcat. However, Jetty gives me HTTP ERROR: 500 Internal Server Error RequestURI=/restricted/ And the url on top of the browser says http://ejb.frontwire.com/restricted/? Ok. Now let's got to the login page directly and the output is the same as before. HTTP ERROR: 404 Not Found Could not find resource for /j_security_check RequestURI=/j_security_check H. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Collection implementation
[EMAIL PROTECTED] writes: > I know this is not really jboss related, but rather java in general > but I thought I would try. I have an ejb(cmp) , it has a: public > Collection findAll() method. I havent used the Collection class so I > cantfigure out how to implement this . I am trying to populate a > dropdown box on a jsp page with this collection. If anyone knows > where some Collection examples are online I would appreciate > it. Ihave looked through several Enterprise java books with no luck. > Thanks,Graham Collection collection = homeInterface.findAll(); ArrayList someListData = new ArrayList (collection); -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] how to run JBoss with Tomcat?
On 09 Aug 2001 13:30:58 -0400, Herve Tchepannou wrote: > I've downloader JBoss-2.4 with Tomcat-3.2.3. > I run the script run_with_tomcat.bat but, it looks like tomcat is not > started > when I go to http://localhost:8080 in my browser, nothing hapens > In jboss/log/server.log, there is no mention of Tomcat > > any clue what to do to run tomcat with JBoss? > thanx in advance Maybe you didn't tell it to use the tomcat specific configuration. Look at the jboss/conf directory. Mine for eg says: npg@machiavelli:~$ ls -1 /usr/local/JBoss-2.2.2_Tomcat-3.2.2/jboss/conf/ default peanuts preferences.properties tomcat So I have a default, peanuts and a tomcat configuration. Simply put, in order to run the JBoss with the config files located in tomcat do a run.sh tomcat (or run.bat for DOS) Give it a whirl ;) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Any WebServices function/sample available in JBoss?
On 08 Aug 2001 12:06:12 -0700, Jonathan Lee wrote: > Bea weblogic6.1 has the new feature "Web Services". > I like to know whether jboss (The bea killer) has that > feature or not. If yes, is there any sample I can get? What excactly does this feature do? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS and JSP
On 08 Aug 2001 17:16:36 +0100, Luke Taylor wrote: > > > Nicolai P Guba wrote: > > > > Hmmm, it gives me > > > > java.rmi.RemoteException: checkSecurityAssociation; nested exception is: > > java.lang.SecurityException: Authentication exception, principal=null > > java.lang.SecurityException: Authentication exception, principal=null > > > > Are you using the Jboss_Tomcat distribution out of the box, or have you > tried to set it up yourself? This error could happen if tomcat doesn't > have the appropriate security interceptor included. It will then let > you access the web pages without authentication, and when the calls are > made to jboss, there is no principal set by the client so the call > fails. Out of the Box, ie from the binary download. Hmmm, I tried the JASS-Howto example and that worked fine. > Alternatively (possibly more likely), you don't have your security > constraints setup properly and they just aren't being applied - whether > you use basic or form authentication shouldn't matter. Are the files > you are accessing definately in > > /workspace/* > > Have you checked there are no typos in the url ?? No typos in url. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS and JSP
On 08 Aug 2001 16:22:31 +0100, Luke Taylor wrote: > > > Nicolai P Guba wrote: > > > > > > Would it help if you look at the entire fileset? > > Sure. Send me the complete stuff and I'll have a look at it. Cheers! Tarball is on it's way/ -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS and JSP
On 08 Aug 2001 14:17:21 +0100, Luke Taylor wrote: > Also you say you're now using a login page instead of basic > authentication ?? I'm not sure what you mean by this because the > web.xml you supplied was still set up to use basic authentication. This > should preobably be changed to use form-based authentication and > specify the jsp to use for logins: > > > FORM > > /login.jsp > /loginFailed.htm > > Hmmm, it gives me java.rmi.RemoteException: checkSecurityAssociation; nested exception is: java.lang.SecurityException: Authentication exception, principal=null java.lang.SecurityException: Authentication exception, principal=null Agh! Would it help if you look at the entire fileset? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS and JSP
On 08 Aug 2001 14:17:21 +0100, Luke Taylor wrote: > Have you put an entry in auth.conf for "frontwire-platform" which uses > the DatabaseServerLoginModule? It sounds like you're ending up with the > default one. Yeah. Note that I can do this successfully with a swing client. It's the tomcat bit which causes me grief. > Presumably you're using the embedded tomcat distribution (??). This is Indeedy :) > set up to use the jboss security manager so you should modify the > auth.conf in your jboss configuration directory. Done (when I configured auth for the client). > Also you say you're now using a login page instead of basic > authentication ?? I'm not sure what you mean by this because the > web.xml you supplied was still set up to use basic authentication. This > should preobably be changed to use form-based authentication and > specify the jsp to use for logins: > > > FORM > > /login.jsp > /loginFailed.htm > > Cheers Luke! I'll give this a go and let you know if I had any joy :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JAAS and JSP
I need help in security matters. I've read the JAAS Howto and got the (thin) client to sucessfully authenticate itself etc... (using DatabaseServerLoginModule). I'd like to try out the same with JSP pages (unfortunately no example but cannot be that different since it is in essence a servlet itself) but appear to have some problems. First, the web server doesn't give me the popup box for authentication (as advertised in the Howto), so I decided to do this via a login page. Not a big problem since this is much closer to a real-life scenario anyway (we'll need this later on). The first problem is that the webcontainer does't seem to know about the security-authentication mechanism since it says: [Default] java.io.IOException: Properties file users.properties not found [Default] at org.jboss.security.auth.spi.UsersRolesLoginModule.loadProperties(UsersRolesLoginModule.java:200) I'd expect any errors to come from the DatabaseServerLoginModule. What didn't I do, and where should I put my client's auth.conf? WEB deployment descriptors attch'd. Thanks in advance ;) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 Frontwire Workspace Demo /hello /WEB-INF/tlds/hello.tld jdbc/CAMS javax.sql.DataSource Container Restricted Declarative Security Test /workspace/* HEAD GET POST PUT DELETE guest NONE BASIC Frontwire Workspace Demo guest ClientController Session com.frontwire.cams.session.clientcontroller.ClientControllerHome com.frontwire.cams.session.clientcontroller.ClientController java:/jaas/frontwire-platform ClientController ejb/cmp/ClientController
Re: [JBoss-user] CMP entity beans spanning multiple tables
On 07 Aug 2001 12:19:14 +0530, vramesh wrote: > HI! > Can CMP entitty bean support multiple tables? If so how to implement > thanks in advance > ramesh > regards There are a couple of options. JAWS can create custom finders for you. However, since these finders sitting on the home interface want to activate a bean, they may not always what you want. I recommend you use a session bean for the workflow part. This way you can comfortably handle relationships over multiple beans with the benefit of a transaction rollback should something go wrong. Other possiblities include "mixing" BMP and CMP. Some beans I've deployed as CMP but implemented some custom methods which look up the datasource and do some custom SQL --just like in the ol' days :) Works a treat. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Thousands of java threads?
On 04 Aug 2001 00:14:39 -0400, marc fleury wrote: > it's VM related, some VMs (IBM) just hangs on Linux... > > unclear why... clean on all other OSs an inconvenience > Marc, I tend to slightly disagree with respect to this statement. I had a lot of trouble with the Sun JDK's on Linux because of a documented bug in JDK 1.3. The symptoms were very similar, ie loads of threads and no more available processes for the user the server was running as. Somebody suggested a fix, namely using the IBM jdk and voila, the problem disappeared. npg@raphael:/usr/local/JBoss/2.4.0/jboss/bin$ java -version java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010502 (JIT enabled: jitc)) Hmmm -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Writing custom SQL in CMP Bean
Is it possible to write some custom SQL for a CMP Bean? Something along the lines of: public void setCompanyStakeholders (ArrayList a, long firstIdBlockNum) throws RemoteException { final String query = "INSERT INTO Stakeholder (id, companyId, firstName, lastName, email, dateCreated, lastModified, createdBy, mimeTypePreference, modifiedBy, source, neverContact, validEmail, optIntype, optInVerification) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; Connection connection = null; PreparedStatement prepStmt = null; try { connection = this.dataSource.getConnection(); prepStmt = connection.prepareStatement (query); long id= firstIdBlockNum; int size = a.size(); for (int i = 0; i < size; i++) { StakeholderData data = (StakeholderData) a.get (i); Timestamp timestamp = JDBCHelper.getTimestamp(); id = id++; prepStmt.setLong (1, id); prepStmt.setLong (2, data.companyId); prepStmt.setString(3, data.firstName); prepStmt.setString(4, data.lastName); prepStmt.setString(5, data.email); prepStmt.setTimestamp (6, timestamp); prepStmt.setTimestamp (7, timestamp); prepStmt.setString(8, data.createdBy); prepStmt.setString(9, data.mimeTypePreference); prepStmt.setString(10, data.modifiedBy); prepStmt.setString(11, data.source); prepStmt.setBoolean (12, data.neverContact); prepStmt.setBoolean (13, data.validEmail); prepStmt.setInt (14, data.optInType); prepStmt.setInt (15, data.optInVerification); prepStmt.executeUpdate(); prepStmt.clearParameters(); Log.debug (this, "setCompanyStakeholders: " + data.email); } etc ??? I don't think it would be possible since I tried deploying this and got the following back: [Container factory] org.jboss.ejb.DeploymentException: CAMS not bound [Container factory] at org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.init(JawsApplicationMetaData.java:120) [Container factory] at org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFileLoader.java:75) [Container factory] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.(JDBCCommandFactory.java:133) [Container factory] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManager.java:83) [Container factory] at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:110) [Container factory] at org.jboss.ejb.EntityContainer.init(EntityContainer.java:221) Note that previous deployments always worked. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] java.lang.ClassCastException: $Proxy339
On 31 Jul 2001 15:58:46 +0200, Sternagel Annegret (PN-SYS/DAS) wrote: > The findBy... method should return a reference to the remote interface of > the entitybean (the ejbFindBy... the primarykey), on that remote interface > you can call a method to get the Collection. Cheers! You just saved my sanity :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] java.lang.NoClassDefFoundError in latestBETA(2.4_26)
On 31 Jul 2001 13:43:25 +0400, Andrew wrote: > Hi, I've little problem with latest beta.I've BMP bean and when I try to create >it throws exception: > > [Contract] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is: > javax.ejb.EJBException > [Contract] java.lang.ClassCastException: java.lang.NoClassDefFoundError > But all deployed fine and I can't find my class in this stacktrace. > What's the problem? It probably means what it says on the tin, namely that it cannot find a class that is required by the bean. Are you sure all objects that this particular BMP bean needs are inside the jarball? Hope this helps && Happy Jbossing! -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] java.lang.ClassCastException: $Proxy339
A small problem with BMP. I need some methods to return large amounts of data. I noticed that initializing a new entity bean for every single data item (there are more than 50,000 rows), is very time consuming and not really required in this scenario. So I switched to BMP and defined the following finder method: public Collection ejbFindByCompanyId (long companyId) throws FinderException, RemoteException { Connection connection = null; PreparedStatement prepStmt = null; ResultSet result = null; ArrayList list = new ArrayList(); try { connection = this.dataSource.getConnection(); prepStmt = connection.prepareStatement (companyIdQuery); prepStmt.setLong (1, companyId); result = prepStmt.executeQuery(); while (result.next()){ loadStakeholderData (result); if (this.id > 0) { StakeholderData data = new StakeholderData(); data.id = this.id; data.companyId = this.companyId; data.firstName = this.firstName; data.lastName= this.lastName; data.email = this.email; data.createdBy = this.createdBy; data.dateCreated = this.dateCreated; data.mimeTypePreference = this.mimeTypePreference; data.modifiedBy = this.modifiedBy; data.neverContact= this.neverContact; data.optInType = this.optInType; data.optInVerification = this.optInVerification; data.source = this.source; data.validEmail = this.validEmail; data.lastModified= this.lastModified; list.add (data); System.out.println ("ejbFindByCompanyId: Adding " + data.email); } else { System.out.println ("Invalid Stakehodler.id" + this.id); } } return list; } catch (SQLException e){ throw new EJBException (e.getMessage()); } finally { JDBCHelper.close (connection, prepStmt, result); } } Note that StakeholderData is a class implementing Serializable. Now, when I call this finder from a session bean like: public ArrayList getCompanyStakeholders (StakeholderData data) throws RemoteException, FinderException, EntityDataException { this.verifyLongId ("StakeholderData", data.companyId); try { Collection c = this.stakeholderHome.findByCompanyId (data.companyId); ArrayList list = new ArrayList (c); int size = list.size(); System.out.println ("list size = " + size); for (int i = 0; i < size; i++ ){ StakeholderData o = (StakeholderData)list.get(i); System.out.println (o.email); } return list; } catch (FinderException e){ throw new EJBException (e.getMessage()); } } I get the following: [ClientController] list size = 20 [ClientController] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is: javax.ejb.EJBException [ClientController] java.lang.ClassCastException: $Proxy339 [ClientController] at com.frontwire.cams.session.clientcontroller.ClientControllerEJB.getCompanyStakeholders(ClientControllerEJB.java) [ClientController] at java.lang.reflect.Method.invoke(Native Method) [ClientController] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:472) [ClientController] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87) [ClientController] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133) [ClientController] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263) [ClientController] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) [ClientController] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190) [ClientController] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) ... 8< Hmmm, I've tried this with the finder returning an ArrayList but had no luck either What did I do wrong or didn't do? -- Nicolai P
Re: [JBoss-user] Working with large records
On 30 Jul 2001 11:38:24 +0200, Philipp Meier wrote: > On Mon, Jul 30, 2001 at 10:07:59AM +0100, Nicolai P Guba wrote: > > I am looking for some advice. Assuming I have a bean that is often > > accessed but returns a lot of data, something in the region of 50,000 > > rows minimum. > > > > I don't think that instantiating a bean for every record is efficient. > > In fact, it's dog slow! Is there a way to write a CMP method that takes > > a large ArrayList or Collection and then retrieves the data from the > > server efficiently, or am I best off writing this in BMP? > > IMHO, Go for BMP. Bother! :) Vielen Dank mein Herr! -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Resolution: Problem with CMP Bean cache withdifferent finder met hods
On 30 Jul 2001 09:54:50 +0100, Penhey, Tim wrote: > > > Black magic (ooh aaah). Thanks for the VERY useful report which I reckon should help me to fix a pretty nasty problem of a similar kind :) Me thinks whether JAWS shouldn't trap such errors though? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Working with large records
Hello chaps I am looking for some advice. Assuming I have a bean that is often accessed but returns a lot of data, something in the region of 50,000 rows minimum. I don't think that instantiating a bean for every record is efficient. In fact, it's dog slow! Is there a way to write a CMP method that takes a large ArrayList or Collection and then retrieves the data from the server efficiently, or am I best off writing this in BMP? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: CMP Debug SQL Statements (JAWS)
Try this instead. Note where the tag is now. AdsDB Oracle8 true true false false false -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP Debug SQL Statements (JAWS)
On 28 Jul 2001 10:03:42 -0700, Michael Angelo Libio wrote: > For some reason (jboss manual), I was under the impression that I can view the SQL >statements executed by the CMP beans via the console/terminal. In JAWS, I've set the > to true, but I don't see any SQL statements. Should be looking >elsewhere? Any help, is appreciated. Thank you. Try something like this in jaws.xml java:/PostgreSQL PostgreSQL false true false true false 600 false . Then do a tail -f log/server.log to see the output. Works for me :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Force create of table after manual drop?
On 27 Jul 2001 22:09:29 -0700, David M. Karr wrote: > >>>>> "David" == David M Karr <[EMAIL PROTECTED]> writes: > > David> In JBoss 2.2.2, using MySQL, I had a sample application, and it had >created a > David> table. I manually dropped the table, now I'm trying to figure out how to >get > David> JBoss to figure out it needs to recreate the table. I've tried various >things, > David> like deleting the deployed jar from the "deploy" directory, and the >unjarred > David> directory in the "tmp" directory. I've redeployed the jar, and JBoss >seems to > David> do it without complaining, but it still refuses to create the table. > > Ok, I have some more information. I checked the "server.log" file, and I saw > the following: > > [JAWS] java.sql.SQLException: General error: All parts of a PRIMARY KEY must be NOT >NULL; If you need NULL in a key, use UNIQUE instead > [JAWS]at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:497) > [JAWS] ... > [JAWS] Could not create table CDBean: General error: All parts of a PRIMARY KEY must >be NOT NULL; If you need NULL in a key, use UNIQUE instead Hmmm, it's MySQL giving you that error. Something is not right with your Driver or with JAWS (probably your setup). Any idea what causes it to believe that the primary key is null all of a sudden? Are the typmappings etc... in jaws.xml correct? > However, I'm not sure when this occurred. I'm having trouble understanding how > the log file works. It seems to be created with a large number of nulls at the > beginning of the file, even when I delete it and restart JBoss. I haven't > noticed any option to timestamp log file entries. This is more of a log4j thingy. I don't know enough about that. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Force create of table after manual drop?
On 26 Jul 2001 19:45:41 -0700, David M. Karr wrote: > >>>>> "Nicolai" == Nicolai P Guba writes: > My situation is less complicated than that. I just changed the default > standardjaws.xml to use mySQL instead of Hypersonic, then I created my project. > I didn't change any type mappings. When I deployed the jar initially, it > worked fine. It created the table, and I was able to run methods to create > rows, delete rows, list rows, etcetera. I then decided I wanted to try > something absurd and drop the table. Now, I can't seem to convince it that the > table needs to be recreated. I'm not sure it is a good idea manually manipulating a database where a EJB server is running on top of it... However, on tests I've dropped tables and databases many times and they were always re-created. Hm My real problem is with JAWS right now. I've done imports of recrords larger than 20k rows and suddenly JAWS couln't read the ResultSet any more. I am a bit perplexed and have ABSOLUTELY no clue what is going on. (See my JAWS problem posting). I am thinking going live in three weeks time. If I cannot get over this hurdle rather soon then I cannot use JBoss for deployment. I wish I had your problem :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com CTO mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem Activating beans
JAWS seems to have a problem I don't understand. Suddenly, everything seems broken! Here is some output: [Stakeholder] Activated bean Stakeholder with id = 826 [JAWS] Unable to read from ResultSet: java.lang.reflect.InvocationTargetException [Stakeholder] Activated bean Stakeholder with id = 20107 [JAWS] Unable to read from ResultSet: java.lang.reflect.InvocationTargetException [Stakeholder] Activated bean Stakeholder with id = 827 [JAWS] Unable to read from ResultSet: java.lang.reflect.InvocationTargetException [Stakeholder] Activated bean Stakeholder with id = 20108 [JAWS] Unable to read from ResultSet: java.lang.reflect.InvocationTargetException [Stakeholder] Activated bean Stakeholder with id = 828 [JAWS] Unable to read from ResultSet: java.lang.reflect.InvocationTargetException I have no idea what is going wrong here :( I'm using Jboss 2.2.2, CMP and PostgreSQL, IBM JDK1.3, Linux 2.4.6-xfs -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] how to configure jboss for mysql and tomcat
On 26 Jul 2001 13:40:56 +0200, Scheil, Sven wrote: > the jaws example works fine (after minor changes in the jaws.xml), but the > clients of the cd example don't work: > > compiling/running the client apps produces this error: > >ant cmp-cd-upload > ... > main: > [java] java.lang.NoClassDefFoundError: org/jboss/docs/cmp/cd/${client} > [java] Java Result: 1 Oh dear! Looks like either your ant version is not the expected one or that the build.xml file needs looking into. Looking at the error message, why does it think that the client file is called ${client}? Shouldn't this value have been substituted? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] InvocationTargetException in JAWS
Help please! I have a nasty problem with JAWS. We are doing some testing with JBoss and are importing data with 60,000 records. A bit later we connect a client (about 40,000 records imported at this stage) to display the full listing of the currently imported records. The log shows the following error: [MySQL] Resource 'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@6e296cd8' enlisted for 'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@6e28acd8'. [MySQL] Pool MySQL [2/3/5] gave out pooled object: org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@6e28acd8 [JAWS] Unable to read from ResultSet: java.lang.reflect.InvocationTargetException [Stakeholder] Activated bean Stakeholder with id = 767 [JAWS] Unable to read from ResultSet: java.lang.reflect.InvocationTargetException [Stakeholder] Activated bean Stakeholder with id = 768 [MySQL] Pool MySQL [1/3/5] returned object org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@6e28acd8 to the pool. Please, could somebody shed some light onto this? Note that the problem is the same with MySQL as with PostgreSQL. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Force create of table after manual drop?
On 25 Jul 2001 22:28:54 -0700, David M. Karr wrote: > In JBoss 2.2.2, using MySQL, I had a sample application, and it had created a > table. I manually dropped the table, now I'm trying to figure out how to get > JBoss to figure out it needs to recreate the table. I've tried various things, > like deleting the deployed jar from the "deploy" directory, and the unjarred > directory in the "tmp" directory. I've redeployed the jar, and JBoss seems to > do it without complaining, but it still refuses to create the table. I experienced the same problem. In my case the fault was that I changed from PostgreSQL to MySQL and the VARCHAR has been defined in PostgreSQL as VARCHAR(256) whereas MySQL expects a VARCHAR(255) as maximum acceptable value. Because the mapping was not right it couldn't create the tables (quite logical). Maybe you'd like to verify your mappings in your jaws.xml? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error
>>>>> "LO" == Ludovic Orban <[EMAIL PROTECTED]> writes: LO> Maybe that has something to do with this bug: LO> http://developer.java.sun.com/developer/bugParade/bugs/4395735.html LO> It looks quite the same. Looks probable. We've observed the same thing a while ago. At the time it looked like JBoss was not suitable for production. Somebody suggested that it may be related to the JVM and that they used the IBM JDK1.3 instead and with quite some success. We've tried it and are very happy with the solution and now JBoss is back on the map (Bigtime of course :). Subjectively, I'd even say that the IBM JDK runs better on a linux box (no measurements however). Hope this helps a little && Happy Hacking. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com CTO mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Home Interface remove() methods
"Larry Kim" <[EMAIL PROTECTED]> writes: > hello, > > the javax.ejb.EJBHome interface has methods: > > ... > void remove(Handle handle)=20 > //Remove an EJB object identified by its handle.=20 > void remove(java.lang.Object primaryKey)=20 > //Remove an EJB object identified by its primary key.=20 > ... > > however upon deploying my bean, i get a deployer warning saying that the > home interface should just contain create / finder methods and upon > invoking the remove method from a client i get > a org.jboss.MethodNotImplementedException. ? > > is this right? how do i remove an ejb? > Looks like something is not right in your home interface. Have you got the code? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJX gives wrong values for java.sql.Timestamp
"Burkhard Vogel" <[EMAIL PROTECTED]> writes: > Hi, > why is this wrong? I think this depends on the type of DB and the purpose. > if you don't like it, change it! its anly an mapping! > Burkhard Note that it says java.sql.TimeStamp and not java.sql.Timestamp. This never works. Of course the mapping can be edited/changed etc... but maybe I asked the wrong question? What I really should have asked is where do these values come from. It would make sense if the values inserted would come from standardjaws.xml IMO. Sorry for the confusion ;) > ----- Original Message - > From: "Nicolai P Guba" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 16, 2001 12:05 PM > Subject: [JBoss-user] EJX gives wrong values for java.sql.Timestamp > > > > Using ejx that is distributed with Jboss 2.2.2 > > > > > > It gives me this typemapping for a TIMESTAMP value. > > > > > > > >java.sql.TimeStamp > >TIMESTAMP > >TIMESTAMP > > > > > > > > Surely, this is horribly wrong. Has this been fixed? If not, where > > do I need to look for fixing it myself (will post patch if this > > helps). > > > > Cheerio > > -- > > Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com > > mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] > > GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJX gives wrong values for java.sql.Timestamp
Using ejx that is distributed with Jboss 2.2.2 It gives me this typemapping for a TIMESTAMP value. java.sql.TimeStamp TIMESTAMP TIMESTAMP Surely, this is horribly wrong. Has this been fixed? If not, where do I need to look for fixing it myself (will post patch if this helps). Cheerio -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How Do I Nominate 2 cmp-fields as Primary Key?
Anthony IVETAC <[EMAIL PROTECTED]> writes: > I have an entity bean whose semantics require that a subset of it's > attributes are used as the primary key, rather than just one > attribute. It has 4 attributes, 2 of which I need to constitute the > primary key. > > The problem is that I don't know hoe to declare more than one > cmp-field as the primary key in the EJB-JAR .xml file. Do I need to > insert one primary key tag for each field? This is excactly when you need to write and deploy a primary key class, implementing Serializable. This scenario is covered in the J2EE Tutorial from Sun (PDF file). Hope this helps. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error
>>>>> "JA" == Jim Archer <[EMAIL PROTECTED]> writes: JA> Hi All... --On Thursday, July 12, 2001 7:30 PM +1000 Robert JA> Schulz JA> <[EMAIL PROTECTED]> wrote: >> We are pretty close to production as well and run numerous stress >> test (creation of around 50,000 beans, 500,000+ SQL statements) and >> jboss never climbed over 50MB ... we use RH7.1 (Linux) 2.4, sun >> jdk1.3.1, postgres7.1.2 and resin in a separate VMs. We are only >> using "core" EJB features (no MDBs, no SOAP, no integrated >> Servlets, etc, etc ...) JA> This is exactly what we see on Debian Linux withthe 2.2 kernel and JA> Sun 1.3.1 JDK. Someone suggested using the IBM 1.3 JDK. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss Security Tutorial
>>>>> "NT" == Nick Taylor <[EMAIL PROTECTED]> writes: NT> looks like your client is failing to find NT> %JBOSS_HOME%\client\auth.conf which is the client login config NT> file. i thought the tutorial examples set this but you could try NT> passing the client something like NT> -Djava.security.auth.login.config=file:///auth.conf Ah, cheers! Hmmm, I'll try that. Guess I can set this as a property? Would make more sense for someone wanting to distribute the client to other people. Happy Hacking -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss Security Tutorial
Hmmm, I'm running the security tutorial and I get this exception. Any ideas as to why? +++ Running SessionClient with username=scott, password=echoman, example=example1 Exception in thread "main" java.lang.SecurityException: Unable to locate a login configuration at com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry(ConfigFile.java:221) at javax.security.auth.login.LoginContext.init(LoginContext.java:172) at javax.security.auth.login.LoginContext.(LoginContext.java:319) at SessionClient.main(SessionClient.java:62) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] DatabaseServerLoginModule
http://www.jboss.org/documentation/HTML/ch09s17.html talks about this module but I can neither find the API doc nor the file. Is this one still alive? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error
>>>>> "JA" == Jim Archer <[EMAIL PROTECTED]> writes: JA> Saul, watch your thread usage. jBoss will usually throw an out of JA> memory exception when it can't create a new thread... On Solaris, JA> you have a hard limit of threads. JA> I don't know if this is your actual problem, but I thought I would JA> mention it. I think there should be a bug open. We've had a lot of problems with this on a Linux box. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB 2
>>>>> "BG" == Boris Garbuzov <[EMAIL PROTECTED]> writes: BG> Can anybody briefly describe how much of EJB2 spec is implemented BG> in JBoss? Not quite sure, but there is a ejb2.0.jar in the lib/ext dir. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql works
>>>>> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: >> Hmm. >> >> Ours is Debian GNU/Linux and the mysql version is >> >> mysql Ver 11.13 Distrib 3.23.36, for pc-linux-gnu (i586) >> >> Could it be that the mysql version is older and maybe incompatible >> with that driver? RB> That's the thing, I went to the older version to get it to RB> work. In any case I'm glad I can stop banging my head against the RB> wall. Now then any help with an example of how to actually use it RB> in a servlet and/or jsp page would be greatly appreciated. There is a pretty good example in the J2EE Tutorial PDF from Sun. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql works
>>>>> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: RB> At 06:59 PM 7/4/01 +0100, you wrote: >>>>>>> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: RB> Under Red Hat 6.1: RB> [JDBC provider] Starting [JDBC provider] Started [mySQLDS] RB> Starting [mySQLDS] XA Connection pool mySQLDS bound to RB> java:/mySQLDS [mySQLDS] Stopped [mySQLDS] [snip] RB> java.security.AccessController.doPrivileged(Native Method) RB> [mySQLDS] at org.jboss.Main.main(Main.java:117) RB> All I did was change to the older version of mm.mysql and RB> restarted. Problem gone. Hmm. Ours is Debian GNU/Linux and the mysql version is mysql Ver 11.13 Distrib 3.23.36, for pc-linux-gnu (i586) Could it be that the mysql version is older and maybe incompatible with that driver? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql works
>>>>> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: RB> At last. Note that Jboss 2.2.2 requires RB> mm.mysql-2.0.2-bin.jar. Version mm.mysql-2.0.4-bin.jar will not RB> work. H, I've been using 2.0.4 with JBoss 2.2.2 for quite some time now. What excactly doesn't work? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Error fetchning session bean
>>>>> "NT" == Nick Taylor <[EMAIL PROTECTED]> writes: >> Hmmm, I got this error. The bean verifies and is deployed. Could >> somebody please shed some light into this? Am I missing a jar >> file? NT> yep, jboss-client.jar Arrrgh. *pilot error*. I had the file in my classpath but jde-mode doesn't barf when the file doesn't exist. I did some restructuring (bad thing) and created a little problem. Now I'm getting this: Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/TransactionManager at java.lang.Class.getMethods0(Native Method) at java.lang.Class.getDeclaredMethods(Class.java:1039) at java.io.ObjectStreamClass.computeSerialVersionUID(ObjectStreamClass.java:873) at java.io.ObjectStreamClass.access$200(ObjectStreamClass.java:46) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:420) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.init(ObjectStreamClass.java:401) Another jar file missing? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error fetchning session bean
Hmmm, I got this error. The bean verifies and is deployed. Could somebody please shed some light into this? Am I missing a jar file? javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy (no security manager: RMI class loader disabled)] SAXException:java.lang.NullPointerException -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HOWTO] Autoincrementing Primary Key with CMP
e PostgreSQL uses for sequences [a much better way of doing it than mySQL IMO]). Not all databases support such feature. However, I believe that it should be possible to provide a facility that returns the value for the row_id even if the database has no facilities as such. The backend implementation would then simply provide the number from the sequence generator utility. Whether this makes sense for Jboss or not is something I haven't thought about much. It would definitively be a bonus for developers. However, what would definitively be a winner is to provide a sequence generator implementation with JBoss, similar to Orionserver. Comments and suggestions for improvements welcome :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] GUI tools for deployment
>>>>> "JA" == Jim Archer <[EMAIL PROTECTED]> writes: JA> This may sound strange, but I have played bote with EJX and the JA> J2EE deploy tool, and I ncan never figure them out. I have much JA> better luck writing the descriptors by hand or generating them. The J2EE deploy tool only works with the refernece implementation. I found EJX very confusing to start with but managed later on. I don't think it is of a particulartly good design. I'm now considering moving away from XEmacs/JDEmode and give netbeans a whirl :) -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] GUI tools for deployment
>>>>> "b" == bcd <[EMAIL PROTECTED]> writes: b> I notice that Sun has a Deployment GUI tool for its J2EE b> implementation. Is this useful in conjunction with JBoss? Or is b> there something else I should rather use? Hmmm, it's not difficult to figure out that I'm with Emacs as IDE (or OS --pending on point of view), but I am currently looking at Forte 3.0. Written by SUN and is (semi)freely available (ie free as in free beer but no source code) and distributed as a .class file which is the installer. Quite impressive but I haven't tried to plug it into JBoss yet. Has anybody tried this? b> I did try a JBoss GUI tool for editing deployment descriptors (I b> think that's what it was supposed to do :-) but it didn't seem to b> show me much of interest. It doesn't do much else :( I once tried to connect the deploytool to jboss but never succeeded. Would be nice if one could get it going... -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] downloadable manual...where?
>>>>> "RK" == Roman Kunert <[EMAIL PROTECTED]> writes: RK> under linux I am using the program pavuk (comes with my SuSE7.1) RK> to fetch the updated docs automatically, it stores the whole RK> documentation tree on your drive and remaps all links so you can RK> use it locally. but you are right, a zipped documentation RK> snapshot would make sense... I agree. >> I put in the parameters in the "Test" tab: >> >> CVS Server: cvs.jboss.souceforge.net >> >> CVS Repository: /cvsroot/jboss/ >> >> >> UserName: anonymous >> >> and it just bombs...what do I do? try :pserver:[EMAIL PROTECTED]:/cvsroot/jboss -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ant tutorial for jboss
>>>>> "AS" == Antony Stace <[EMAIL PROTECTED]> writes: AS> Hi Folks Can someone please tell me where the best resoucres are AS> for using ant with jboss. cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/jboss login cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/jboss co jbosstest/src/build Should do the trick. There is a nice build.xml file which is a good example on how to use ANT with jboss. Any other questions should probably be handled by the ANT FAQ and Manual. Happy Hacking! -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] create(), ejbCreate() and id
>>>>> "Af" == Allen fogleson <[EMAIL PROTECTED]> writes: Af> if not db independent. I freely admit we do this all the time. we Af> dont do it in the ejbCreate... we do it before calling create, but Af> same difference. recently i had to write some components (really Af> a set of beans/tags/jsps) that would work on (potentially) several Af> databases... it was a little more difficult :) Hmmm, is there an example? (PostgreSQL will do). -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] (THREAD DUMP) OutOfMemoryException
As requested. It's a pretty long file and thus compressed and attch'd. dump -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708
Re: [JBoss-user] problems with server with 2 network cards
>>>>> "PB" == Patrick Buchinger <[EMAIL PROTECTED]> writes: PB> hi everybody! PB> i have a server with 2 network cards in it, one is connecting to the PB> internal network (let's say ip=192.168.0.100) and one is connecting to PB> the internet (let's say ip=212.172.122.17). PB> the os of the server is linux (kernel 2.2.16). the server also is the PB> gateway from the internal network to the world (using NAT). PB> now the problem is, when i try to connetct to jboss from outside the PB> internal network (to ip 212.172.122.17), i always get a PB> NoRouteToHostException to host 192.168.0.100!!??!!! PB> is this a jboss problem or a server configuration problem? has someone PB> ever made such a configuration successfully run with jboss? PB> the server is our development server, but our customer wants to test PB> the application from outside, so i need this configuration to work. PB> please help me! Hmmm, are you sure your NAT setup works? Can you ping the box from outside? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] closing PreparedStatements
>>>>> "TY" == Tim Yates <[EMAIL PROTECTED]> writes: TY> Hooray!! And I was worried that I was just being hopelessly TY> paranoid ;-) TY> Thanks for that :-) (I too use Oracle) He's right. When he pointed that out to me I started closing them in reverse order. Even if it's a bit paranoid, considering the problems that it could cause it's a good discipline. How knows, maybe some release of a driver will not like just that. I'd call this best practice :) TY> - Original Message - From: Allen fogleson TY> <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> TY> Sent: Thursday, June 21, 2001 3:44 PM Subject: Re: [JBoss-user] TY> closing PreparedStatements >> also I have always closed things in reverse order.. resultset, >> preparedstatement, connection. it may or may not matter depending >> on the drivers i guess, but better safe than sorry. amazingly ihave >> seen problems with oracle and closing connections before resultsets >> and prepared statements. at least that is all we could ever figure >> out the problem was. >> TY> _______ JBoss-user mailing TY> list [EMAIL PROTECTED] TY> http://lists.sourceforge.net/lists/listinfo/jboss-user -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Memory Leak problem
>>>>> "SMS" == Scott M Stark writes: SMS> Obtain a thread dump of the vm in this situation to see where the SMS> threads are via a Ctrl-\ or SIGQUIT. This gets dumped to stderr SMS> so you need to redirect this or have a huge console buffer or SMS> logging. Ok. Will do as soon as thir reappears. cheers -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] closing PreparedStatements
>>>>> "d" == danch <[EMAIL PROTECTED]> writes: d> Tim Yates wrote: >> Wotcha! >> >>> That's what I did. Sorry for not supplying the implementation for >>> that helper. 'ere it is. public static void close( Connection c, >>> PreparedStatement s, ResultSet >> r ) >> >>> { try { if( c != null ){ c.close(); } if( s != null ){ s.close(); >>> } if( r != null ){ s.close(); } } catch( SQLException e ){ throw >>> new EJBException( "ExtendedJDBC: close: " + e.getMessage() ); } } >>> d> You should probably also put a try ... catch block around each d> close, otherwise it's vaguely possible that an exception thrown by d> one close method could cause you to not close another object or d> two. Cheers muchos. Yeah, that util needs a bit more refining. However, closing the prep stmt before the conn helped (DUH!). Never mind. I can always blame it on caffeeine :) Happy Hacking! -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Memory Leak problem
>>>>> "JA" == Jim Archer <[EMAIL PROTECTED]> writes: JA> Well, maybe now that you and I have verified it and know how to JA> reproduce it someone will fix it. JA> Danch, do you want me to write this up on SourceForge bug list, or JA> is this a known issue? Hmmm, on deploying a valid jar I also got this exception (unexpectedly) then the same problem with running out of processes occured... [Container factory] java.lang.IllegalStateException: The session is closed [Container factory] at org.jbossmq.SpySession.createMessage(SpySession.java:132) [Container factory] at org.jboss.ejb.plugins.AbstractInstanceCache.createMessage(AbstractInstanceCache.java:129) [Container factory] at org.jboss.ejb.plugins.AbstractInstanceCache.logPassivation(AbstractInstanceCache.java:478) [Container factory] at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanceCache.java:673) [Container factory] at org.jboss.util.WorkerQueue$QueueLoop.flush(WorkerQueue.java:218) [Container factory] at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:194) [Container factory] at java.lang.Thread.run(Thread.java:484) Hope this helps a bit more in order to pin the problem -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] closing PreparedStatements
>>>>> "TY" == Tim Yates <[EMAIL PROTECTED]> writes: TY> Wotcha! Arrrgha! >> That's what I did. Sorry for not supplying the implementation for >> that helper. 'ere it is. >> >> public static void close( Connection c, PreparedStatement s, >> ResultSet TY> r ) >> { try { if( c != null ){ c.close(); } if( s != null ){ s.close(); } >> if( r != null ){ s.close(); } } catch( SQLException e ){ throw new >> EJBException( "ExtendedJDBC: close: " + e.getMessage() ); } } >> TY> did you mean : TY> r.close() for the last one? TY> Have you tried changing the order? Will do. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Cutting down the default configuration
>>>>> "RY" == Roy Yip <[EMAIL PROTECTED]> writes: RY> Better just comment them out! You'll probably need them for the RY> Message Driven Bean and JavaMail stuff later. I just created a new directory, ie conf/mystuff or something, copied the default stuff over, then ran jboss via its startup script ./run.sh mystuff nice. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] closing PreparedStatements
>>>>> "TY" == Tim Yates <[EMAIL PROTECTED]> writes: TY> Hiya! Try: 'ellau! TY> ----- Original Message - From: Nicolai P Guba TY> <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: TY> Thursday, June 21, 2001 10:02 AM Subject: [JBoss-user] closing TY> PreparedStatements >> finally { ExtendedJDBC.close( connection, prepStmt, result ); } } >> TY> finally { try { if( result != null ) result.close() ; } catch( TY> SQLException e ) { } try { if( prepStmt != null ) prepStmt.close() TY> ; } catch( SQLException e ) { } try { if( connection != null ) TY> connection.close() ; } catch( SQLException e ) { } } TY> Thats what I'd do That's what I did. Sorry for not supplying the implementation for that helper. 'ere it is. public static void close( Connection c, PreparedStatement s, ResultSet r ) { try { if( c != null ){ c.close(); } if( s != null ){ s.close(); } if( r != null ){ s.close(); } } catch( SQLException e ){ throw new EJBException( "ExtendedJDBC: close: " + e.getMessage() ); } } Now what? It appears as if the PreparedStatements are being cached (not necessarily a bad idea) but do these resources get reclaimed by JBoss? H Could not find much info about this. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Cutting down the default configuration
>>>>> "SS" == Steve Slatcher <[EMAIL PROTECTED]> writes: SS> Thanks for that. I was neglecting to edit jboss-auto.jcml. Is SS> there anything else that could be safely removed? I am currently SS> using session beans only so I certainly don't any CMP stuff for SS> example. This is a big gotcha. Am not sure why it doesn't reconstruct it propperly once jboss.jcml has been modified. Bug or feature? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] More Out of Memory Errors!
>>>>> "JA" == Jim Archer <[EMAIL PROTECTED]> writes: JA> Were are battling this even as I type... It seem that if jBoss JA> hits the operating systems pid (thread) limit for a process, it JA> throws out of memory exceptions. We just ran some load test JA> scripts and when we get too many threads, pop goes the weasil. Yeah. I've encountered this problem when I build a Unified Messaging platform on a GNU/Linux architecture. The voice switch needed a number of threads per timeslot on the primary rate ISDN cards. This means a magnitude of 30xthread_num x 4 (ports) x num_of_cards. Not sure what the default process size was. It's either 256 or 512. One can change it by editing a header file and recompiling the kernel (forgot which file though. bummer). I wonder why jboss needs so many threads though. Can one tweak this at startup? JA> I'm looking at two possibilities... Catch the out of memory JA> exceptions in my code and then sleep for a bit and try again (not JA> a great olution) or throw more hardware / operating system at it. JA> Maybe both. JA> Does anyone know what jBoss should do when the thread limit is JA> hit? Hmmm, I don't know why it needs so many threads. There is very little activity on the box (dedicated JBoss devel box). Maybe one should look at the thread management issue. I've noticed that on deploy error and redeploy the number of threads increases drastically (measured this very primitively via watch 'ps ax | wc -l'). Hope this helps. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] More Out of Memory Errors!
>>>>> "MB" == Michael Bilow <[EMAIL PROTECTED]> writes: MB> However, the system limitations applicable to heavyweight MB> processes apply equally to lightweight processes, in particular MB> that a single non-root user may never exceed half of the available MB> system pids. By default when building a Linux 2.2 kernel, the MB> system has a global limit of 512 pids. This is configurable in MB> the linux source (include/linux/tasks.h): MB> #define NR_TASKS 512 /* On x86 Max about 4000 */ #define MB> MAX_TASKS_PER_USER (NR_TASKS/2) #define MIN_TASKS_LEFT_FOR_ROOT 4 A, h, Thank you for reminding me of that valued filename! MB> As long as jBoss is not run by the root user, which is obviously MB> extremely dangerous and undesirable for other reasons anyway, the MB> maximum number of pids it can own concurrently is going to be MB> limited to 255 on a default kernel. Once this thread limit is MB> reached, jBoss will essentially wedge to the point where it no MB> longer even responds to SIGTERM to shut down gracefully, but MB> requires SIGKILL to stop it. I think that jBoss sees this MB> situation as an "out of memory" condition as reflected by the JVM, MB> but I am not sure about this. Of course, if jBoss is run by the MB> root user for some reason, the entire machine will be wedged at MB> this point and the only remedy would be something as drastic as MB> the reset switch or the watchdog. I agree 101% with your assessment. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] More Out of Memory Errors!
Hello The problem is much more drastic than I initially thought. I just asked a question about closing PreparedStatements. Obviously, I had a few errors. I left the server running, recompiled the app, redeployed, forgot to remove one close on the stmt, then redeployed and now this is what I've got. [Auto deploy] Deployment failed:file:/usr/local/jboss-2.2.2/deploy/CAMS.jar [Auto deploy] org.jboss.deployment.J2eeDeploymentException: Error while starting CAMS.jar: unable to create new native thread [Auto deploy] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:448) [Auto deploy] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178) [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358) [Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221) [Auto deploy] at java.lang.Thread.run(Thread.java:484) *ouch* It appears that it doens't only occur when it doesn't validate/verify, but also when there are transaction rollback exceptions. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] closing PreparedStatements
Hello JBoss hackers :) On closing a prepared statement when finished with my queries, I am getting an exception from the minerva pool. Am I correct in assuming that PreparedStatements are cached/pooled and should not be closed? == LOG -Selecting all companies for distributor 1 Connecting to: java:/CAMS [Company] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is: javax.ejb.EJBException [Company] java.lang.NullPointerException [Company] at org.opentools.minerva.jdbc.PreparedStatementInPool.close(PreparedStatementInPool.java:421) [Company] at com.frontwire.util.beanext.ExtendedJDBC.close(ExtendedJDBC.java:136) [Company] at com.frontwire.cams.entity.company.CompanyBean.ejbFindByDistributorId(CompanyBean.java:227) == Code === public ArrayList ejbFindByDistributorId( String distributorId ) throws RemoteException, FinderException { ArrayList a= new ArrayList(); CompanyID companyId= null; Connection connection = null; PreparedStatement prepStmt = null; ResultSet result = null; final String query = "SELECT id FROM company WHERE distributor_id=?"; try { connection = ExtendedJDBC.getConnection(); prepStmt = connection.prepareStatement( query ); prepStmt.setString( 1, distributorId ); result = prepStmt.executeQuery(); while( result.next() ){ String newId = result.getString( "id" ); companyId = new CompanyID( newId, distributorId ); a.add( companyId ); } return a; } catch( SQLException e ){ throw new EJBException( "SQLException: " + e.getMessage() ); } finally { ExtendedJDBC.close( connection, prepStmt, result ); } } - Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss.jcml
>>>>> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: RB> Anyone successfully load and use mm.mysql.jdbc or other MySQL RB> driver from an entry in jboss.jcml. Yep. Make sure the driver is in lib/ext and that you load it before you get to the pool. org.gjt.mm.mysql.Driver -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql
>>>>> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: RB> At 06:52 PM 6/16/01 +0100, you wrote: >> The current version MySQL works fine with Jboss . RB> Any possibility of a .ear & source tutorial? MySQL data access is RB> the next thing I need to get working (followed by Mail). I was RB> able to code a working demo of MySQL connectivity using the RB> stand-alone jakarta-tomcat distro. Could you share something RB> similar for the jboss-tomcat bundle? H, whilst on the topic, to what extent does the lack of propper transaction support in mySQL limit it's usefullness with EJB? Is PostgreSQL more suitable? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Memory Leak problem
>>>>> "JA" == Jim Archer <[EMAIL PROTECTED]> writes: JA> We have seen this behavior as well. If we have an error in the JA> matching of our bean interface and our remote interface (a JA> different parameter list or exception list, for example) and my JA> client calls into the app (I think and call to any bean will do JA> it, but I'm not sure and the client is a servlet in a WAR file in JA> the EAR) jBoss 2.2.1_Tomcat 3.2.1 will start launching threads. It JA> will continue to do so until the kernel thread limit (we have it JA> set right now to 256 threads) is hit, then it will become JA> uncontrolable. Yep. *sigh* Nasty. But does it really have to do this? JA> We have never seen this happen of the EJB JAR has no errors of the JA> type I described. It was a concern to us as well, but soince it JA> only happens when we have a bug, we decided to just be carefull. JA> I would be interested to know if you find the cause of this on JA> your system, especially if it is different than thr cause on JA> mine. Its easy to miss this error if you have many beans, as the JA> verifier messages scroll off the window quickly. Yes. This happens when the file to be deployed does not pass the verifier test, has a method missing on it's home interface etc... etc... etc... I can confirm your experiences. However, I am seriously concerned about this "feature" for JBoss in a production environment. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Memory Leak problem
>>>>> "d" == danch <(Dan Christopherson)" <[EMAIL PROTECTED]>> writes: d> BTW, this isn't literally a memory leak - it's a thread leak and d> Java VMs don't have a separate exception/error for that. d> Not that leaking one resource is any better than leaking another... I know that I ran out of processes since the box couldn't even fork the process required to shutdown or even reboot the server. Arrrgh. What I noticed is that on deploy there are somethimes IllegalStateExceptions. I have a look at how I manage resources. I close all db connections after use, as well as results. However, I didn't close PreparedStatements because there is some kind of proxy/cache in Jboss that barfs at me as I try this. H,... What worries me a bit is that I am thinking of deploying this stuff in the near future... I'll try and give more info when it occurs again. Maybe somebody can make some more sense of the logs than myself. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Memory Leak problem
Hello I noticed that on deploying entities several times, the server starts throwing an OutOfMemory Exception and has spanned too many processes for the OS (Linux) to handle so that there are not enough resources left for a fork to shut down the server gracefully (or reboot). Has anybody experienced similar problems? Could it be that I am not freeing some resurces or other problem with my BMP Entities? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: Primary Key Error? (was Re: OutOfMemoryError)
>>>>> "d" == danch <[EMAIL PROTECTED]> writes: NPG> You are excused . Since we are already blabbing, you NPG> wouldn't have an answer to my primary key problem with CMP Beans NPG> I posted earlier on? d> What problem? I can't find your earlier post. 'ere it is :) From: Nicolai P Guba <[EMAIL PROTECTED]> Subject: [JBoss-user] CMP and mySQL relational mapping To: [EMAIL PROTECTED] Date: 08 Jun 2001 15:43:13 +0100 Reply-To: [EMAIL PROTECTED] Simple question (I hope): If I'd like to use CMP for a project. mySQL supports auto-generating the primary key for an inserted row (AUTO_INCREMENT). Is this feature supported by jboss? If not, what strategy would you recommend for handling primary keys (never done it any other way but to rely upon the database to generate the value). -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: Primary Key Error? (was Re: OutOfMemoryError)
>>>>> "d" == danch <[EMAIL PROTECTED]> writes: d> Nicolai P Guba wrote: >> You are excused . Since we are already blabbing, you >> wouldn't have an answer to my primary key problem with CMP Beans I >> posted earlier on? d> What problem? I can't find your earlier post. Here it is: From: Nicolai P Guba <[EMAIL PROTECTED]> Subject: [JBoss-user] CMP and mySQL relational mapping To: [EMAIL PROTECTED] Date: 08 Jun 2001 15:43:13 +0100 Reply-To: [EMAIL PROTECTED] Simple question (I hope): If I'd like to use CMP for a project. mySQL supports auto-generating the primary key for an inserted row (AUTO_INCREMENT). Is this feature supported by jboss? If not, what strategy would you recommend for handling primary keys (never done it any other way but to rely upon the database to generate the value). -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Communication link failure after 12 hours of inactivity
>>>>> "d" == danch <[EMAIL PROTECTED]> writes: d> mySQL is set up to close connections from the server end after ~12 d> hours of inactivity? This is fairly common in databases. d> A lot of connection pool implementations have settings for testing d> the status of connections. Perhaps that needs to go into JBossPool Thank you for pointing this out. I would strongly lobby for adding such functionality soon, since I imagine that this would be a deal-breaker for a lot of people thinking of deploying jboss in a production environment (like myself). -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Communication link failure after 12 hours of inactivity
This is a regular thing with the mySQL connection pool. Why? Driver: mm.mysql-2.0.4 [CAMS] Resource 'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@4a9a2d' enlisted for 'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@38d6f7'. [CAMS] Pool CAMS [1/1/20] gave out pooled object: org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@38d6f7 [Company] XAException: tx=XidImpl [FormatId=257, GlobalId=raphael.frontwire.com//0, BranchQual=] errorCode=XA_UNKNOWN(0) [Company] javax.transaction.xa.XAException: Rollback failed: Communication link failure: java.io.IOException [Company] at org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.rollback(XAResourceImpl.java:219) [Company] at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1557) [Company] at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:412) [Company] at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:88) [Company] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307) [Company] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86) [Company] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:164) jboss.jcml jboss.conf ejb-jar.xml jaws.xml jboss.xml -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708
Re: [JBoss-user] OutOfMemoryError
>>>>> "DW" == David Ward <[EMAIL PROTECTED]> writes: DW> FYI, tag pooling has been added in Tomcat 3.3, but disabled by DW> default. To enable it, add to your DW> app's section in your $TOMCAT_HOME/conf/server.xml file. Innteresting DW> Sorry for the blabbing; thought it might be interesting. David You are excused . Since we are already blabbing, you wouldn't have an answer to my primary key problem with CMP Beans I posted earlier on? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] OutOfMemoryError
>>>>> "AF" == Allen Fogleson <[EMAIL PROTECTED]> writes: AF> in the jvms just because a system has memory does not mean that AF> the JVM will take it. Most jvm's start with some standard min and AF> max stack size. and when that max stack size is reached you get AF> the java.lang.OutOfMemoryError. You can increase your stack size AF> with the standard java -Xms1M -Xmx64M where 1 and 64 are the min AF> and max stack sizes to use in mb (in this case). Thank you Al. What worries me is that there is very little activity on that box and I wonder why it actually ran out of resources. My main concern here is that I may have done something which caused a leak in one of my beans. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ./conf directory location
>>>>> "JG" == Julian Gosnell <[EMAIL PROTECTED]> writes: JG> I tried copying the jetty dir to /tmp/foo and trying various JG> incantations such as ./run.sh ../../../../../../tmp/jetty - but no JG> dice. Maybe I missed something. JG> I would want an answer to Q1 before I spent more time on it - but JG> this would definitely be the way I would go. JG> Making symbolic links from public space into your home dir looks JG> like a bad idea, and you could forget it on M$. I'd opt for symbolic links for now. There is a bug in the code. If you look at Main.java (used by run.jar), there comes a point where it needs to know the config base directory --which is hard-code to "../conf". Not a very elegant solution IMO. Also, in order for this jar to find the properties file you need to add the conf_dir to the classpath. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP and mySQL relational mapping
Simple question (I hope): If I'd like to use CMP for a project. mySQL supports auto-generating the primary key for an inserted row (AUTO_INCREMENT). Is this feature supported by jboss? If not, what strategy would you recommend for handling primary keys (never done it any other way but to rely upon the database to generate the value). -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] OutOfMemoryError
>>>>> "SL" == Sacha Labourey <[EMAIL PROTECTED]> writes: SL> Hello, How do you launch JBoss? do you use the java -ms an -mx SL> command line parameters? SL> If no, I think you should. It's using the defaults from run.sh. Let me have a wee look... ponder ponder... oops. No. only the -server flag. Will try this now. Cheers! -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] OutOfMemoryError
*ouch* Hmmm, left the server overnight, came back next morning and ran the client against it. Not sure whether I am able to accurately pinpoint why the system thinks it is out of memory... :( npg@raphael:~$ free total used free sharedbuffers cached Mem:255332 253244 2088 0 0 153308 -/+ buffers/cache: 99936 155396 Swap: 497972 0 497972 [User] TRANSACTION ROLLBACK EXCEPTION:unable to create new native thread; nested exception is: java.lang.OutOfMemoryError: unable to create new native thread [User] java.lang.OutOfMemoryError: unable to create new native thread [User] at java.lang.Thread.start(Native Method) [User] at sun.rmi.transport.DGCClient$EndpointEntry.(DGCClient.java:218) [User] at sun.rmi.transport.DGCClient$EndpointEntry.lookup(DGCClient.java:190) [User] at sun.rmi.transport.DGCClient.registerRefs(DGCClient.java:108) [User] at sun.rmi.transport.LiveRef.read(LiveRef.java:267) [User] at sun.rmi.server.UnicastRef2.readExternal(UnicastRef2.java:57) [User] at java.rmi.server.RemoteObject.readObject(RemoteObject.java:203) [User] at java.lang.reflect.Method.invoke(Native Method) [User] at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2213) [User] at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410) [User] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) [User] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) [User] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.readExternal(GenericProxy.java:166) [User] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.readExternal(HomeProxy.java:265) [User] at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1212) [User] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) [User] at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) [snip] -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] DB pool without specified username/password.
>>>>> "GR" == Guy Rouillier <[EMAIL PROTECTED]> writes: [snip] GR> you'll get a null pointer exception. Second, we know the changes GR> required to make the pool use userids and passwords properly. One GR> of the motivations for forking the minerva implementation into the GR> JBossPool implementation was so that we could incorporate some of GR> these fixes. GR> My employer went out of business last week, so I should have GR> plenty of time next week to coordinate with Toby to get these GR> changes into JBossPool. Very sorry to hear that your employer's business went belly-up. Talking about JBossPool features Is it possible to add a new connection to the pool without having to restart the server? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Deploy Error : jboss trying to connect to java.sun.com ?
>>>>> "GS" == Grim Shieldsson <[EMAIL PROTECTED]> writes: GS> The XML parser is trying to get the DTD from sun. You need to GS> have it locally available. You prolly have a line like: taglib PUBLIC "-//SunMicrosystms, Inc.//DTD JSP Tag Library GS> 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"; Simply repace the URI "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"; with "file://path/to/your/dtd/stuff/web-jsptaglibrary_1_1.dtd" Making sure the DTD is installed there (of course). Hope this helps -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailgo:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] DB pool without specified username/password.
>>>>> "HP" == Heikki Paajanen <[EMAIL PROTECTED]> writes: HP> Hi Is it possible to create DB pool without giving username and HP> password beforehand ? So you can use DataSource connecting run HP> time with some username and password... HP> Or is there a way to do it without pool or direct jdbc code ? I've never managed to get a mySQL connection pool going without having to provide at least a password. I am not sure wether this is a bug or a feature. Maybe a different connection pool would provide such feature? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailgo:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user