[JBoss-user] JAAS,Setting alternate Security domain
Title: JAAS,Setting alternate Security domain Hi all , I have set up a security domain in login-config.xml as application-policy name = Test authentication login-module code = org.jboss.security.auth.spi.UsersRolesLoginModule flag = required / /authentication /application-policy To apply this to EJB my jboss.xml looks like this ?xml version=1.0 encoding=UTF-8? jboss !-- All bean containers use this security manager by default -- security-domainjava:/jaas/Test/security-domain enterprise-beans session ejb-nameHelloWorld/ejb-name jndi-nameHelloWorld/jndi-name /session /enterprise-beans /jboss But I have some EJB's which should not be in this Security domain . Say I have a bean called EchoWorld .. which can be called withour Authentication/Authorization . What settings should I do in jboss.xml ?? Any pointers , help is appreciated .. Nimish
[JBoss-user] Rollback with side-effects, but /without/ a UserTransaction
Hi. I've read (namely in the O'Reilly /Enterprise Java Beans/ book, 3rd ed.), that: ...it is strongly recommended that you do not attempt to manage transactions explicitly. Through transaction attributes, Enterprise JavaBeans provides a comprehensive and simple mechanism for delimiting transactions at the method level and propagating transactions automatically. Only developers with a thorough understanding of transactional systems should attempt to use JTA with EJB. (Chap 14.5) Consequently, I'm curious if it is possible to write the following code without using a UserTransaction (e.g., using only transaction attributes). I have an entity bean, Foo. I would like to write an interface method of Foo, update(). update() that adjusts some of Foo's fields, then calls an internal validation method, validate(), that checks the validity of those new field values. validate() returns null on success, and a string explaining any failures if it fails. If validate() succeeds, I'd like to commit the changes to Foo. If validate() fails, I'd like to roll back the changes, and return the error message to the caller. In pseudo-Java, public String update(int val1, String val2, float val3) { setVal1(val1); setVal2(val2); setVal3(val3); String result = validate(); if (result != null) { rollback(); } else { commit(); } return result; } I'm curious: is this possible to do using only method-level transaction attributes? Or do I need a UserTransaction? Any advice would be much appreciated. Thanks in advance, --Joe -- Joseph Barillari -- http://barillari.org --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: Jetty - static files removed from tmp dir
Scott M Stark wrote: You have a cron job removing these files. Override the location jetty uses for its temp storage by setting the java.io.tmpdir property to point to the jboss server/x/tmp directory for example. Jason was going to change the JBoss startup so that it set java.io.tmpdir to the jboss tempdir. I saw some discussion about this, but no resolution? cheers --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] force reload of read-only entity bean
Hi, This might sound like an odd request but is it possible to force a read-only entity bean (or all read-only entity beans) to reload from the database. The reason I ask this is that we use dbunit for some of our unit tests. These tests will reset the database to a known state according to a given xml dataset before running the test(s). The only problem with this is that if a read-only entity bean is changed and has already been loaded by JBoss, then the test has a stale copy of the data. Is there anyway to force JBoss to reload its entity bean cache for the purpose of running these tests? Our alternative is to run through all of our dbunit datasets and make sure we do not have any overlap on read-only entity beans but this could become unmanageable very quickly. Many thanks, Tim PS... current set-up is: JBoss 3.0.7 (but might be moving to 3.2 in near future). Java SDK 1.4.1_02 --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SPECjAppServer StackOverflowError gone
Hi, this is no request for help. I just wanted to inform you about our progress. After a while ob debugging a collegue of mine found out that the StackOverflowException was thrown when doing a jndi naming lookup. After changing the jndi-strings the application threw a NamingException. (This was the exeption which urged me to change the correct values to wrong ones in an earlier stage of deployment). This was a little supprising. After changing to the RC2 version of jboss-3.2.2 this exception mutated into an NoSuchEntity error. (By the way ... you can't shut down the RC2 version when debugging in Ecclipse with the JBoss-IDE plugin) Thanks for including the patch for only thorwing an exception, only if a PK value is changed. It works like a charm. chris - This mail sent through IMP: http://horde.org/imp/ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Rollback with side-effects, but /without/ a UserTransaction
Hi, You can achieve this one of two ways: 1) Throw a system exception from your method (not an application exception as that will not cause a rollback). See section 14.6 (page 433 in my edition) 2) Use context.setRollbackOnly(). See last few paragraphs of section 14.5 (also page 433 in my edition) Dan. -- Danny Yates -Original Message- From: Joseph Barillari [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 08:50 To: jboss-user Subject: [JBoss-user] Rollback with side-effects, but /without/ a UserTransaction Hi. I've read (namely in the O'Reilly /Enterprise Java Beans/ book, 3rd ed.), that: ...it is strongly recommended that you do not attempt to manage transactions explicitly. Through transaction attributes, Enterprise JavaBeans provides a comprehensive and simple mechanism for delimiting transactions at the method level and propagating transactions automatically. Only developers with a thorough understanding of transactional systems should attempt to use JTA with EJB. (Chap 14.5) Consequently, I'm curious if it is possible to write the following code without using a UserTransaction (e.g., using only transaction attributes). I have an entity bean, Foo. I would like to write an interface method of Foo, update(). update() that adjusts some of Foo's fields, then calls an internal validation method, validate(), that checks the validity of those new field values. validate() returns null on success, and a string explaining any failures if it fails. If validate() succeeds, I'd like to commit the changes to Foo. If validate() fails, I'd like to roll back the changes, and return the error message to the caller. In pseudo-Java, public String update(int val1, String val2, float val3) { setVal1(val1); setVal2(val2); setVal3(val3); String result = validate(); if (result != null) { rollback(); } else { commit(); } return result; } I'm curious: is this possible to do using only method-level transaction attributes? Or do I need a UserTransaction? Any advice would be much appreciated. Thanks in advance, --Joe -- Joseph Barillari -- http://barillari.org --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SPECjAppServer2002 up and running
Hi again ! After another period of debugging we found a soultion to our NoSuchEntity error. Now our Benchmark is up and running. There are still some realy small bugs, but I think we will be able to fix them in a few hours. The good thing is: It works without any need for modification of the benchmark code :) After having everything the way we want we will try first tests on a one-machine environment. If everything goes well we will try building a JBoss cluster in our University Pool (one of the pools we already did Bea benchmarks). Even if we will not be allowed to publish real $/bbop information ... I think we will be able to produce some realy interesting information. Whish us good luck and a ton of thanxs to all you guys out there building patches for me all the time ;) Christofer Dutz Björn Weis - This mail sent through IMP: http://horde.org/imp/ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] force reload of read-only entity bean
Tim McAuley wrote: Hi, This might sound like an odd request but is it possible to force a read-only entity bean (or all read-only entity beans) to reload from the database. The reason I ask this is that we use dbunit for some of our unit tests. These tests will reset the database to a known state according to a given xml dataset before running the test(s). The only problem with this is that if a read-only entity bean is changed and has already been loaded by JBoss, then the test has a stale copy of the data. Is there anyway to force JBoss to reload its entity bean cache for the purpose of running these tests? Our alternative is to run through all of our dbunit datasets and make sure we do not have any overlap on read-only entity beans but this could become unmanageable very quickly. Many thanks, Tim Another quick note... as I think of different options to use. Might it be possible to disable the read-only caching ability of JBoss entirely upon start-up? This would allow us to run the unit tests, where performance is not an important factor. One reason that this issue has cropped up is that we're making some of our previously read-write entity beans read-only, which is why it is difficult to start re-writing all of our unit tests (and data). Tim --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] what is the MBean.../apologies
Hi Scott, ok..i moved the code that adds operations etc in getMBeanInfo.. everything works fine now... thanx! br marco -Original Message- From: ext Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 13 July, 2003 21:32 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] what is the MBean.../apologies No, that is not correct. JBoss is trying to call start but your initialization of your DynamicMBean metadata is not being done correctly and so when getMBeanInfo is called, this ends up having no operations defined. Check your bean in the jmx-console and you will see that you have no attributes and no operations. You are trying to create the metadata from within start, but JBoss does not know that you have a start operation. You should be initializing your metadata in getMBeanInfo on the first call. -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: hi scott, sorry...i realized that i have to call myself those start and init methods.. jboss won't call them for me automatically. thanx 4 ur help and regards marco --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JAAS,Setting alternate Security domain
Title: JAAS,Setting alternate Security domain To do so, You could define the method permission for the bean EchoWorld in the file jboss.xml as following: method-permission uncheck/ ejb-nameEchoWorld/ejb-name method*/method /method-permission But the login modules still need to be configured to authenticate an anonymous user, so you need to define the unauthenticated-principal in the login-config.xml for your security domain. For example: application-policy name = Test authentication login-module code = org.jboss.security.auth.spi.UsersRolesLoginModule flag = required module-option name = unauthenticatedIdentitynobody/module-option /login-module /authentication /application-policy You should also define this in jboss.xml: security-domainjava:/jaas/Test/security-domain unauthenticated-principalnobody/unauthenticated-principal Quan -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 12:45 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] JAAS,Setting alternate Security domain Hi all , I have set up a security domain in login-config.xml as application-policy name = Test authentication login-module code = org.jboss.security.auth.spi.UsersRolesLoginModule flag = required / /authentication /application-policy To apply this to EJB my jboss.xml looks like this ?xml version=1.0 encoding=UTF-8? jboss !-- All bean containers use this security manager by default -- security-domainjava:/jaas/Test/security-domain enterprise-beans session ejb-nameHelloWorld/ejb-name jndi-nameHelloWorld/jndi-name /session /enterprise-beans /jboss But I have some EJB's which should not be in this Security domain . Say I have a bean called EchoWorld .. which can be called withour Authentication/Authorization . What settings should I do in jboss.xml ?? Any pointers , help is appreciated .. Nimish
[JBoss-user] NoSuchObjectException: Could not activate; failed to recover session
I debugged further to understand the problem and I've reached this exception: java.rmi.NoSuchObjectException: Could not activate; failed to recover session (session has been probably removed by session-timeout) I hope this brings someone a clue for what is happening, 'cause it sure isn't bringing me one.. I'm applying the same reasoning I use for httpSession: The sessions are replicated in both servers. When JB1 goes down, JB2 keeps a copy of the session that was in use. When JB1 comes up again, it syncs with JB1 and get (again) the session that was in use. When the user connects to JB1, the session is reactivated. As far as I can understand, this is what happens with my java client app: It keeps calling the a ejb instance that is replicated in both servers. The sub know there are JB1 and JB2 that provide that ejb method/instance. When JB1 goes down, the stub redirects to JB2. Eventually JB1 comes up and the stub knows that by a piggibacked message retrived by JB2. Then it can call JB1 again (for instance, it JB2 goes down). The difference I have here is that the client is a servlet, and not a java app. But I guess ths same reasoning should apply... Unless... There is one other difference: The calling instances: With my java client, I do calls when 1- Both servers are up 2- JB1 is down 3- JB1 is up again with the servlet, I'm doing the calls 1 and 3 (as I'm not using a front-end balancer, I can't invoke the servlet when JB1 is down as my http requests are send directly to JB1) But I'm not sure if this makes a diference or not... - Original Message - From: Joao Clemente [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 13, 2003 8:21 PM Subject: [JBoss-user] [Cluster test app] fails to recover ejb session? --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] force reload of read-only entity bean
Sometimes the simplest solution is the best... we use to xdoclet to generate our deployment descriptor files, so they are recreated each time we rebuild our app. I've just added this target into our ant file to build the ejb jar file. target name=disable-read-only-entity-beans depends=init if=disable-read-only replace file=${project.ejbxml.dir}/jbosscmp-jdbc.xml replacetoken![CDATA[read-onlytrue/read-only]]/replacetoken replacevalue![CDATA[read-onlyfalse/read-only]]/replacevalue /replace /target So now all we have to do, when we want to deploy the app for unit testing is add the option: -Ddisable-read-only=true A bit hacky, I know, but the least obtrusive way of working around our problem. All the best, Tim Hi, This might sound like an odd request but is it possible to force a read-only entity bean (or all read-only entity beans) to reload from the database. The reason I ask this is that we use dbunit for some of our unit tests. These tests will reset the database to a known state according to a given xml dataset before running the test(s). The only problem with this is that if a read-only entity bean is changed and has already been loaded by JBoss, then the test has a stale copy of the data. Is there anyway to force JBoss to reload its entity bean cache for the purpose of running these tests? Our alternative is to run through all of our dbunit datasets and make sure we do not have any overlap on read-only entity beans but this could become unmanageable very quickly. Many thanks, Tim PS... current set-up is: JBoss 3.0.7 (but might be moving to 3.2 in near future). Java SDK 1.4.1_02 --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] entityContext.getEJBLocalObject() returns local interface of another object
Got 5 hits this weekend. Other fields always correspond to the context with the expected primary key. i.e. entityContext.getEJBLocalObject() returns a consistent entity but belonging to the context other than current. -Original Message- From: Alexey Yudichev Sent: Friday, July 11, 2003 09:49 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] entityContext.getEJBLocalObject() returns local interface of another object I did not check yet for other fields. I will do it now and see. But it will take some time until our next development iteration is finished and released. As I said, I perform the check inside one of business methods of the entity bean: public abstract class TerminalBean extends MMSBean implements EntityBean { [...] public TerminalDO getTerminalDO() { //todo: remove when fixed TerminalPK pkViaEc = (TerminalPK)entityContext.getEJBLocalObject().getPrimaryKey(); TerminalPK pkViaGetters = new TerminalPK(getVendor(), getModel()); if (!pkViaEc.equals(pkViaGetters)) { logger.error(pkViaEc=+pkViaEc+, pkViaGetters=+pkViaGetters); } //entityContext.getEJBLocalObject().getPrimaryKey() is buggy and sometimes returns primary key of //another object return new TerminalDO(new TerminalPK(getVendor(), getModel()), getPropertyDOs(), getDescription(), getModel(), getVendor()); } [...] } Another case for me is when customer is authenticated on the site, I save the ejb handle of Customer bean in servlet session. After that to obtain a local interface of the Customer Bean I use Customer customer = (Customer)((CustomerRemote)handle.getEJBObject()).getLocalObject() where getLocalObject() is implemented as a business method public EJBLocalObject getLocalObject() { return entityContext.getEJBLocalObject(); } At this point I get the local interface of another customer (not the one the handle points to). After that I again use the customer.getPrimaryKey() of the customer in further business logic... I will install the check of other fields and let you know. -Original Message- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 18:10 To: Alexey Yudichev Subject: Re: [JBoss-user] entityContext.getEJBLocalObject() returns local interface of another object Hello Alexey, what about other fields? Do their values correspond to the context with the expected primary key or to the context that is actually present? When do you perform the check? More details would really be appreciated. Thank you, alex Thursday, July 10, 2003, 5:04:06 PM, Alexey Yudichev wrote: AY I am using Jboss 3.2.1 AY Sometimes entityContext.getEJBLocalObject() returns local interface of another instance of the same entity bean. AY I have a superclass for all my entities in application which implements EntityBean's setEntityContext() method and saves entityContext in a field. AY Inside one of business methods of one of entity beans I check if a primary key constructed from key CMP field(s) matches a primary key obtained from AY entityContext.getEJBLocalObject().getPrimaryKey(). Sometimes they do not match: entityContext.getEJBLocalObject().getPrimaryKey() returns primary key of another instance of the same entity bean. AY I have sometimes situations when user is logged in as one customer and enjoys privileges of another... AY This happens ~20 times a day with a particular single object for me... I could install some kind of bug trap logging some debug info to help fix the bug. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] entityContext.getEJBLocalObject() returns local interface of another object
Hi, I'm looking into this myself. Are you using read-only methods by any chance? Steve Coy On Monday, July 14, 2003, at 09:11 PM, Alexey Yudichev wrote: Got 5 hits this weekend. Other fields always correspond to the context with the expected primary key. i.e. entityContext.getEJBLocalObject() returns a consistent entity but belonging to the context other than current. -Original Message- From: Alexey Yudichev Sent: Friday, July 11, 2003 09:49 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] entityContext.getEJBLocalObject() returns local interface of another object I did not check yet for other fields. I will do it now and see. But it will take some time until our next development iteration is finished and released. As I said, I perform the check inside one of business methods of the entity bean: public abstract class TerminalBean extends MMSBean implements EntityBean { [...] public TerminalDO getTerminalDO() { //todo: remove when fixed TerminalPK pkViaEc = (TerminalPK)entityContext.getEJBLocalObject().getPrimaryKey(); TerminalPK pkViaGetters = new TerminalPK(getVendor(), getModel()); if (!pkViaEc.equals(pkViaGetters)) { logger.error(pkViaEc=+pkViaEc+, pkViaGetters=+pkViaGetters); } //entityContext.getEJBLocalObject().getPrimaryKey() is buggy and sometimes returns primary key of //another object return new TerminalDO(new TerminalPK(getVendor(), getModel()), getPropertyDOs(), getDescription(), getModel(), getVendor()); } [...] } Another case for me is when customer is authenticated on the site, I save the ejb handle of Customer bean in servlet session. After that to obtain a local interface of the Customer Bean I use Customer customer = (Customer)((CustomerRemote)handle.getEJBObject()).getLocalObject() where getLocalObject() is implemented as a business method public EJBLocalObject getLocalObject() { return entityContext.getEJBLocalObject(); } At this point I get the local interface of another customer (not the one the handle points to). After that I again use the customer.getPrimaryKey() of the customer in further business logic... I will install the check of other fields and let you know. -Original Message- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 18:10 To: Alexey Yudichev Subject: Re: [JBoss-user] entityContext.getEJBLocalObject() returns local interface of another object Hello Alexey, what about other fields? Do their values correspond to the context with the expected primary key or to the context that is actually present? When do you perform the check? More details would really be appreciated. Thank you, alex Thursday, July 10, 2003, 5:04:06 PM, Alexey Yudichev wrote: AY I am using Jboss 3.2.1 AY Sometimes entityContext.getEJBLocalObject() returns local interface of another instance of the same entity bean. AY I have a superclass for all my entities in application which implements EntityBean's setEntityContext() method and saves entityContext in a field. AY Inside one of business methods of one of entity beans I check if a primary key constructed from key CMP field(s) matches a primary key obtained from AY entityContext.getEJBLocalObject().getPrimaryKey(). Sometimes they do not match: entityContext.getEJBLocalObject().getPrimaryKey() returns primary key of another instance of the same entity bean. AY I have sometimes situations when user is logged in as one customer and enjoys privileges of another... AY This happens ~20 times a day with a particular single object for me... I could install some kind of bug trap logging some debug info to help fix the bug. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1
Re: [JBoss-user] j_security_check JBoss/Jetty
What I would like to know is how do you avoid users selection the login form jsp. If they select that first they do not get directed to the startup page after. On Thu, 2003-06-26 at 20:58, Brian Wallis wrote: On Wed, 25 Jun 2003 19:39, Alastair Rodgers wrote: You don't need to write any special Action or Form classes to use JAAS with Struts. The steps you need are: ... Thanks, that is a nice clear explanation. I think I know most of that in bits and pieces but if you get one bit wrong it is very hard to work out what you missed brian wallis.. --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Solved?!? (Re: [JBoss-user] [Cluster test app] fails to recover ejb session?)
Well, I can't explain why, but I've setup my cluster with the a loadbalancer in front, instead of interacting directly with one of the jboss servers, and this way I don't have an exception... If someone has followed the problem I described here, I have an hipoteses for what was happening, but I would like it validated: By using a load balancer, when JB1 goes down, the requests are directed to JB2 wich is able to provide updated references to the user stub (by piggybacking). When JB1 comes up again, those references are again updated with a pointer to a NEW AND DIFFERENT ejb stub in JB1... and that is why ot works! What could be happening was that JB1 was goind down, but the user stub kept the reference for it, one that would become invalid. When JB1 came up again, it would create a new ejb with the correct session values but whose reference was different. User then tried to interact, the user stub would see JB1 up and try that old reference (invalid). I don't know why at that time it would not failover to JB2 but... I'll try to validate this using the java application that I got working, but using a longer time separating 2 interactions, so long that it would enable for JB1 to go down and up before a connection got redirected to JB2.. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error debugging 3.2.0
Hi all, I'm debugging my code using the following: JBoss 3.2.0 Eclipse 2.1.1 JBoss IDE 1.1.0 Every 10 seconds, I get the following console output: 14:54:35,603 INFO [DLQHandler] Destroying 14:54:35,603 INFO [DLQHandler] Destroyed 14:54:35,613 INFO [DLQHandler] Creating 14:54:35,613 ERROR [DLQHandler] Initialization failed javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,613 INFO [JMSContainerInvoker] Reconnected to JMS provider 14:54:35,633 WARN [JMSContainerInvoker] JMS provider failure detected: javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,633 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider This only occurs when I debug, NOT when I do a normal start/stop of the server. Does anybody have any ideas? Thanks, Dan. _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Error debugging 3.2.0
What does the JNDI namespace show in terms of bound jms factories? What does the jms invocation layer service associated with XAConnectionFactory show in terms of starting up? -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: Hi all, I'm debugging my code using the following: JBoss 3.2.0 Eclipse 2.1.1 JBoss IDE 1.1.0 Every 10 seconds, I get the following console output: 14:54:35,603 INFO [DLQHandler] Destroying 14:54:35,603 INFO [DLQHandler] Destroyed 14:54:35,613 INFO [DLQHandler] Creating 14:54:35,613 ERROR [DLQHandler] Initialization failed javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,613 INFO [JMSContainerInvoker] Reconnected to JMS provider 14:54:35,633 WARN [JMSContainerInvoker] JMS provider failure detected: javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,633 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider This only occurs when I debug, NOT when I do a normal start/stop of the server. Does anybody have any ideas? Thanks, Dan. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] NoSuchObjectException: Could not activate; failedto recover session
Show the full stacktrace of this error to demonstrate that the request is in fact going through an HA capable proxy. -- Scott Stark Chief Technology Officer JBoss Group, LLC Joao Clemente wrote: I debugged further to understand the problem and I've reached this exception: java.rmi.NoSuchObjectException: Could not activate; failed to recover session (session has been probably removed by session-timeout) I hope this brings someone a clue for what is happening, 'cause it sure isn't bringing me one.. I'm applying the same reasoning I use for httpSession: The sessions are replicated in both servers. When JB1 goes down, JB2 keeps a copy of the session that was in use. When JB1 comes up again, it syncs with JB1 and get (again) the session that was in use. When the user connects to JB1, the session is reactivated. As far as I can understand, this is what happens with my java client app: It keeps calling the a ejb instance that is replicated in both servers. The sub know there are JB1 and JB2 that provide that ejb method/instance. When JB1 goes down, the stub redirects to JB2. Eventually JB1 comes up and the stub knows that by a piggibacked message retrived by JB2. Then it can call JB1 again (for instance, it JB2 goes down). The difference I have here is that the client is a servlet, and not a java app. But I guess ths same reasoning should apply... Unless... There is one other difference: The calling instances: With my java client, I do calls when 1- Both servers are up 2- JB1 is down 3- JB1 is up again with the servlet, I'm doing the calls 1 and 3 (as I'm not using a front-end balancer, I can't invoke the servlet when JB1 is down as my http requests are send directly to JB1) But I'm not sure if this makes a diference or not... --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: Solved?!? (Re: [JBoss-user] [Cluster test app] fails to recoverejb session?)
That does not make sense because the user does not have a direct reference to the RMI stub. They should have an HA proxy that will failover when a request made to the underlying RMI stub when a transport related exception occurs. The NoSuchObjectException is a transport exception. Show the full exception information to provide better context on what is going on. The only thing that jives with the introduction of a load balancer is that the session is not getting populated correctly on the jb2 instance that was not being accessed in the first testcase. When the jb1 instance comes back up it is not receiving a completely valid session from jb2. -- Scott Stark Chief Technology Officer JBoss Group, LLC Joao Clemente wrote: Well, I can't explain why, but I've setup my cluster with the a loadbalancer in front, instead of interacting directly with one of the jboss servers, and this way I don't have an exception... If someone has followed the problem I described here, I have an hipoteses for what was happening, but I would like it validated: By using a load balancer, when JB1 goes down, the requests are directed to JB2 wich is able to provide updated references to the user stub (by piggybacking). When JB1 comes up again, those references are again updated with a pointer to a NEW AND DIFFERENT ejb stub in JB1... and that is why ot works! What could be happening was that JB1 was goind down, but the user stub kept the reference for it, one that would become invalid. When JB1 came up again, it would create a new ejb with the correct session values but whose reference was different. User then tried to interact, the user stub would see JB1 up and try that old reference (invalid). I don't know why at that time it would not failover to JB2 but... I'll try to validate this using the java application that I got working, but using a longer time separating 2 interactions, so long that it would enable for JB1 to go down and up before a connection got redirected to JB2.. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS,Setting alternate Security domain
You don't have to assign the security domain globally for all beans. It can be specified for individual beans using a custom container configuration so that you have mix of secure/unsecure beans. This will preclude interaction between the beans of course. -- Scott Stark Chief Technology Officer JBoss Group, LLC Nimish Chourey , Tidel Park - Chennai wrote: Hi all , I have set up a security domain in login-config.xml as application-policy name = Test authentication login-module code = org.jboss.security.auth.spi.UsersRolesLoginModule flag = required / /authentication /application-policy To apply this to EJB my jboss.xml looks like this ?xml version=1.0 encoding=UTF-8? jboss !-- All bean containers use this security manager by default -- security-domainjava:/jaas/Test/security-domain enterprise-beans session ejb-nameHelloWorld/ejb-name jndi-nameHelloWorld/jndi-name /session /enterprise-beans /jboss But I have some EJB's which should not be in this Security domain . Say I have a bean called EchoWorld .. which can be called withour Authentication/Authorization . What settings should I do in jboss.xml ?? Any pointers , help is appreciated .. Nimish --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] column autoincrement and not autoincrement at the same time possible?
Hi JBoss Gurus, is it possible to use autoincrement on a column for cases I don´t get a primary key and in cases where I do get primary keys try to use them? I need to import a lot of data containing primary keys and after that I need to create primary keys myself in my application to be able to create additional rows. Thanks in advance, Carsten --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Error debugging 3.2.0
Hi Scott, Skimming through the startup logs, the only non-INFO messages are: 16:22:55,008 WARN [ClassLoadingTask] Duplicate class found: org.jboss.jmx.connector.invoker.InvokerAdaptorService Current CS: (file:/C:/java/jboss-3.2.0/server/default/deploy/jmx-invoker-adaptor-server. sar/ no certificates) Duplicate CS: (file:/C:/java/jboss-3.2.0/server/default/tmp/deploy/server/default/deploy/j mx-ejb-connector-server.sar/9.jmx-ejb-connector-server.sar no certificates) 16:23:03,059 WARN [WrappedConnection] Closing a statement you left open, please do your own housekeeping 16:23:03,059 WARN [WrappedConnection] Closing a statement you left open, please do your own housekeeping [NOTE: none of my code is deployed at this point!!!] The java: JNDI namespace shows: +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory) +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider) +- CounterService (class: org.jboss.varia.counter.CounterService) +- comp (class: javax.naming.Context) +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl) +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- jaas (class: javax.naming.Context) | +- jbossmq-httpil (class: org.jboss.security.plugins.SecurityDomainContext) | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext) | +- jmx-console (class: org.jboss.security.plugins.SecurityDomainContext) | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext) | +- http-invoker (class: org.jboss.security.plugins.SecurityDomainContext) +- timedCacheFactory (class: javax.naming.Context) Failed to lookup: timedCacheFactory, errmsg=null +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory) +- Mail (class: javax.mail.Session) +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory) +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter) +- TransactionManager (class: org.jboss.tm.TxManager) The global JNDI namespace shows: +- jmx (class: org.jnp.interfaces.NamingContext) | +- invoker (class: org.jnp.interfaces.NamingContext) | | +- RMIAdaptor (proxy: $Proxy22 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor) | +- rmi (class: org.jnp.interfaces.NamingContext) | | +- RMIAdaptor (class: org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl) +- OIL2XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- FiboLocal (proxy: $Proxy51 implements interface tutorial.intf.FiboLocalHome) +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- UserTransactionSessionFactory (class: org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl) +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- invokers (class: org.jnp.interfaces.NamingContext) | +- B0008025D6358 (class: org.jnp.interfaces.NamingContext) | | +- pooled (class: org.jboss.invocation.pooled.interfaces.PooledInvokerProxy) | | +- jrmp (class: org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy) | | +- http (class: org.jboss.invocation.http.interfaces.HttpInvokerProxy) +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction) +- UILXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- RMIXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- UIL2XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- jmx:B0008025D6358:rmi (class: org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl) +- queue (class: org.jnp.interfaces.NamingContext) | +- A (class: org.jboss.mq.SpyQueue) | +- testQueue (class: org.jboss.mq.SpyQueue) | +- ex (class: org.jboss.mq.SpyQueue) | +- DLQ (class: org.jboss.mq.SpyQueue) | +- D (class: org.jboss.mq.SpyQueue) | +- C (class: org.jboss.mq.SpyQueue) | +- feedmanager (class: org.jnp.interfaces.NamingContext) | | +- [commercially sensitive stuff deleted] | +- B (class: org.jboss.mq.SpyQueue) +- topic (class: org.jnp.interfaces.NamingContext) | +- testDurableTopic (class: org.jboss.mq.SpyTopic) | +- testTopic (class: org.jboss.mq.SpyTopic) | +- securedTopic (class: org.jboss.mq.SpyTopic) +- UIL2ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- UILConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- RMIConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- ejb (class: org.jnp.interfaces.NamingContext) | +- mgmt (class: org.jnp.interfaces.NamingContext) | | +- MEJB (proxy: $Proxy28 implements interface javax.management.j2ee.ManagementHome,interface
[JBoss-user] configure JBoss for Postgres
Hi, I have deployed the simple BMP entity bean from Mastering EJB on JBoss 3.2.1, and it deploys fine. However, the bean managed persistence code requires Connections from a javax.sql.DataSource, and although I have configured the DataSource in my ejb-jar.xml (see below) so that I can access it through JNDI, I am unsure of where to instruct JBoss of the JDBC connection information. Specifically, the JDBC URL:PORT/database name, the username to connect as, and the password. I have the 3.2.x docs if someone can point me in the right direction so I can see where this is set up. I have pored over chapter 3, JNDI, and although it describes ejb-jar.xml DataSource configuration, I can't find the description that explains where to specify database connection parameters like this (in a JBoss-specific manner). Thank you, Erik snipped from my ejb-jar.xml: [...] enterprise-beans entity [...] resource-ref res-ref-namejdbc/ejbPool/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /entity /enterprise-beans [...] --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Error debugging 3.2.0
I wrote: As I mentioned previously, none of this occurs when I don't use debug. Sorry, that was a slightly misleading statement. The specific startup warnings I refered to in my previous e-mail DO occur during a normal startup. It's the JMS messages every 10 seconds which only occur during a debug. Rgds, Dan. -- Danny Yates -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 15:56 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Error debugging 3.2.0 What does the JNDI namespace show in terms of bound jms factories? What does the jms invocation layer service associated with XAConnectionFactory show in terms of starting up? -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: Hi all, I'm debugging my code using the following: JBoss 3.2.0 Eclipse 2.1.1 JBoss IDE 1.1.0 Every 10 seconds, I get the following console output: 14:54:35,603 INFO [DLQHandler] Destroying 14:54:35,603 INFO [DLQHandler] Destroyed 14:54:35,613 INFO [DLQHandler] Creating 14:54:35,613 ERROR [DLQHandler] Initialization failed javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,613 INFO [JMSContainerInvoker] Reconnected to JMS provider 14:54:35,633 WARN [JMSContainerInvoker] JMS provider failure detected: javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,633 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider This only occurs when I debug, NOT when I do a normal start/stop of the server. Does anybody have any ideas? Thanks, Dan. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure,
Re: [JBoss-user] configure JBoss for Postgres
This is database specifix. YOu can find examples for datasource deployments for a number of databases in the docs/examples/jca folder. -Ursprüngliche Nachricht- Von: Erik Price [mailto:[EMAIL PROTECTED] Gesendet: Montag, 14. Juli 2003 17:36 An: [EMAIL PROTECTED] Betreff: [JBoss-user] configure JBoss for Postgres Hi, I have deployed the simple BMP entity bean from Mastering EJB on JBoss 3.2.1, and it deploys fine. However, the bean managed persistence code requires Connections from a javax.sql.DataSource, and although I have configured the DataSource in my ejb-jar.xml (see below) so that I can access it through JNDI, I am unsure of where to instruct JBoss of the JDBC connection information. Specifically, the JDBC URL:PORT/database name, the username to connect as, and the password. I have the 3.2.x docs if someone can point me in the right direction so I can see where this is set up. I have pored over chapter 3, JNDI, and although it describes ejb-jar.xml DataSource configuration, I can't find the description that explains where to specify database connection parameters like this (in a JBoss-specific manner). Thank you, Erik snipped from my ejb-jar.xml: [...] enterprise-beans entity [...] resource-ref res-ref-namejdbc/ejbPool/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /entity /enterprise-beans [...] --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Any formal (or similar) JBoss cluster test documentation or template?
I am tasked with scoping out what is necessary to implement various clustering tests with the JBoss app server before we deploy any applications on it. While I have the basics down, I am expected to come up with a professional document that explains the various tests that need to be done, their implementation, etc. I am unfortanutely unaware of exactly how a document like this should look. Does anyone have any suggestions for a template or example document that I may use to fill in how I will do the testing? This document will be reviewed by a few people before approval is given to proceed with implementation, so it needs to look good. Thanks. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Error debugging 3.2.0
Hi Scott, Seems I'm not having a good day! It turns out that this error is actually only intermittent. The relevant bits of log file are copied below (apologies for the size): 2003-07-14 16:53:59,759 WARN [org.jboss.system.ServiceController] Problem starting service jboss.jca:service=ManagedConnectionFactory,name=DefaultDS java.lang.ClassCircularityError: java/lang/NumberFormatException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.newInstance0(Class.java:276) at java.lang.Class.newInstance(Class.java:259) at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDeploymen t.java:533) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav a:966) at $Proxy11.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:392) at org.jboss.system.ServiceController.start(ServiceController.java:408) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:177) at $Proxy16.start(Unknown Source) at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:220) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy7.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne r.java:280) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner. java:421) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan( AbstractDeploymentScanner.java:200) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(Abstract DeploymentScanner.java:273) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav a:966) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:392) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at
Re: [JBoss-user] Error debugging 3.2.0
Then the likely problem is that the ObjectFactory for the java: namespace, which is implemented as a singleton via a static class variable is not working in your debug environment because the class is being loaded through another class loader and thus creating a seperate java: namespace that contains no bindings. -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: Hi Scott, Skimming through the startup logs, the only non-INFO messages are: 16:22:55,008 WARN [ClassLoadingTask] Duplicate class found: org.jboss.jmx.connector.invoker.InvokerAdaptorService Current CS: (file:/C:/java/jboss-3.2.0/server/default/deploy/jmx-invoker-adaptor-server. sar/ no certificates) Duplicate CS: (file:/C:/java/jboss-3.2.0/server/default/tmp/deploy/server/default/deploy/j mx-ejb-connector-server.sar/9.jmx-ejb-connector-server.sar no certificates) 16:23:03,059 WARN [WrappedConnection] Closing a statement you left open, please do your own housekeeping 16:23:03,059 WARN [WrappedConnection] Closing a statement you left open, please do your own housekeeping [NOTE: none of my code is deployed at this point!!!] The java: JNDI namespace shows: +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory) +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider) +- CounterService (class: org.jboss.varia.counter.CounterService) +- comp (class: javax.naming.Context) +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl) +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- jaas (class: javax.naming.Context) | +- jbossmq-httpil (class: org.jboss.security.plugins.SecurityDomainContext) | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext) | +- jmx-console (class: org.jboss.security.plugins.SecurityDomainContext) | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext) | +- http-invoker (class: org.jboss.security.plugins.SecurityDomainContext) +- timedCacheFactory (class: javax.naming.Context) Failed to lookup: timedCacheFactory, errmsg=null +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory) +- Mail (class: javax.mail.Session) +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory) +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter) +- TransactionManager (class: org.jboss.tm.TxManager) The global JNDI namespace shows: +- jmx (class: org.jnp.interfaces.NamingContext) | +- invoker (class: org.jnp.interfaces.NamingContext) | | +- RMIAdaptor (proxy: $Proxy22 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor) | +- rmi (class: org.jnp.interfaces.NamingContext) | | +- RMIAdaptor (class: org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl) +- OIL2XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- FiboLocal (proxy: $Proxy51 implements interface tutorial.intf.FiboLocalHome) +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- UserTransactionSessionFactory (class: org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl) +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- invokers (class: org.jnp.interfaces.NamingContext) | +- B0008025D6358 (class: org.jnp.interfaces.NamingContext) | | +- pooled (class: org.jboss.invocation.pooled.interfaces.PooledInvokerProxy) | | +- jrmp (class: org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy) | | +- http (class: org.jboss.invocation.http.interfaces.HttpInvokerProxy) +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction) +- UILXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- RMIXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- UIL2XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- jmx:B0008025D6358:rmi (class: org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl) +- queue (class: org.jnp.interfaces.NamingContext) | +- A (class: org.jboss.mq.SpyQueue) | +- testQueue (class: org.jboss.mq.SpyQueue) | +- ex (class: org.jboss.mq.SpyQueue) | +- DLQ (class: org.jboss.mq.SpyQueue) | +- D (class: org.jboss.mq.SpyQueue) | +- C (class: org.jboss.mq.SpyQueue) | +- feedmanager (class: org.jnp.interfaces.NamingContext) | | +- [commercially sensitive stuff deleted] | +- B (class: org.jboss.mq.SpyQueue) +- topic (class: org.jnp.interfaces.NamingContext) | +- testDurableTopic (class: org.jboss.mq.SpyTopic) | +- testTopic (class: org.jboss.mq.SpyTopic) | +- securedTopic (class:
Re: [JBoss-user] configure JBoss for Postgres
Chapter 7 on the JCA layer as well as the datasource config excerpt on sourceforge. -- Scott Stark Chief Technology Officer JBoss Group, LLC Erik Price wrote: Hi, I have deployed the simple BMP entity bean from Mastering EJB on JBoss 3.2.1, and it deploys fine. However, the bean managed persistence code requires Connections from a javax.sql.DataSource, and although I have configured the DataSource in my ejb-jar.xml (see below) so that I can access it through JNDI, I am unsure of where to instruct JBoss of the JDBC connection information. Specifically, the JDBC URL:PORT/database name, the username to connect as, and the password. I have the 3.2.x docs if someone can point me in the right direction so I can see where this is set up. I have pored over chapter 3, JNDI, and although it describes ejb-jar.xml DataSource configuration, I can't find the description that explains where to specify database connection parameters like this (in a JBoss-specific manner). Thank you, Erik snipped from my ejb-jar.xml: [...] enterprise-beans entity [...] resource-ref res-ref-namejdbc/ejbPool/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /entity /enterprise-beans [...] --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB Stats in web-console
On Sun, 2003-07-13 at 20:27, Scott M Stark wrote: Yes, there should be no difference. I don't know if its the jsr77 layer or the web console that is not hooking up the stats correctly. What does the jmx-consol e show for the bean in question? Hi Scott, I fixed this just after the 3.2.1 release. It was a problem with JSR77 using the default remote jndi name even when there was no remote deployment. Regards, Adrian -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] what is the MBean used to initialize JMSConnectionFactory? / 2
Hello Marco, You should be using create() rather than init() Regards, Adrian On Sun, 2003-07-13 at 16:22, [EMAIL PROTECTED] wrote: HI Scott, i think i m getting confused a little...sorry 4 bother u again.. An xmbean defines it management interface solely through the xml descriptor and you have not defined any service operations. Read the getting started guide. my MBean is a DynamicMBean. i have written a method that add proper operations and attributes, in order to generate the proper MBeanInfo. now i have listed following operations in the descriptor start stop init in the init method i am looking up JMS objects. i have removed the code that looks up jms objects from the constructor... now i am not having any exceptions...but it looks like the init() method is never called, and same happens for stop() method. now the new descriptor should be fine like this: ?xml version=1.0 encoding=UTF-8? service !-- -- !--TIMEBOMB SERVICE -- !-- -- mbean code=com.marco.config.MyTimerTrial name=WLSPortal:service=TimeBomb dependsjboss.mq.destination:service=Topic,name=SMSMsgBean/depends descriptionsample for jboss xmbean.dtd/description descriptors state-action-on-update value=RESTART/ descriptor name='testdescriptor' value='testvalue'//descriptors classcom.marco.config.MyTimerTrial/class constructor descriptiondefault constructor/description nameMyTimerTrial/name /constructor !--operations -- operation impact=ACTION descriptionAdds a notification/description nameaddNotification/name parameter descriptionNotification Type/description nameNotification Type/name typejava.lang.String/type /parameter parameter descriptionNotification Message/description nameNotification Message/name typejava.lang.String/type /parameter parameter descriptionDestination of the notification/description nameDestination/name typejava.lang.String/type /parameter parameter descriptionContent of the message/description nameContent/name typejava.lang.String/type /parameter parameter descriptionEmail of the sender/description nameSender/name typejava.lang.String/type /parameter parameter descriptionInterval at which notifications will be sent/description nameTimeout/name typejava.lang.String/type /parameter parameter descriptionNumber of times that the repetition will be sent/description nameRepetitions/name typejava.lang.String/type /parameter return-typevoid/return-type /operation operation impact=ACTION descriptionAdds a notification which will be sent forever/description nameaddNotificationBomb/name parameter descriptionNotification Type/description nameNotification Type/name typejava.lang.String/type /parameter parameter descriptionNotification Message/description nameNotification Message/name typejava.lang.String/type /parameter parameter descriptionDestination of the notification/description nameDestination/name typejava.lang.String/type /parameter parameter descriptionContent of the message/description nameContent/name typejava.lang.Integer/type /parameter parameter descriptionEmail of the sender/description nameSender/name typejava.lang.String/type /parameter parameter descriptionInterval at which notifications will be sent/description nameTimeout/name typejava.lang.String/type /parameter return-typevoid/return-type /operation operation impact=ACTION descriptionAdds an SMS notification/description nameaddSMSNotification/name parameter descriptionNotification Type/description nameNotification Type/name typejava.lang.String/type /parameter parameter descriptionNotification Message/description nameNotification Message/name
[JBoss-user] Clustering test cases?
Hey Bill, Sacha, Do you guys have any test cases you use to test your coding of the clustering capabilities? If so, where would I find it in the jboss-all project structure? We are trying to come up with simple test case apps to test load balancing, clustering, etc and I am not entirely sure where to start. I'd prefer to use something that is already written if possible. If you don't have your own test cases, how do you test your fixes and such? thanks. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] configure JBoss for Postgres
Scott M Stark wrote: Chapter 7 on the JCA layer as well as the datasource config excerpt on sourceforge. Scott, thanks for the pointer. After reading the JCA chapter, I have copied the $JBOSS_HOME/docs/examples/jca/postgresql-ds.xml file into my META-INF directory and modified it for accessing my Postgres database. (The configuration works fine from a standard JDBC Connection.) However, I suspect that I'm not deploying this file correctly -- can you clarify what is meant by deployed the same as other deployable components in this excerpt from page 356 of the 3.2.x docs? The simplified configuration descriptor is deployed the same as other deployable components. The descriptor must be named using a *-ds.xml pattern in order to be recognized by the XSLSubDeployer. I note that in the stack trace (appended to this email) it seems like HSQLDB driver classes are being used to access this DataSource, which is why I suspect that I am not deploying postgres-ds.xml correctly. Thanks, Erik 14:48:18,145 ERROR [STDERR] java.sql.SQLException: Table not found: ACCOUNTS in statement [SELECT SUM(balance) AS total FROM accounts] 14:48:18,145 ERROR [STDERR] at org.hsqldb.Trace.getError(Unknown Source) 14:48:18,145 ERROR [STDERR] at org.hsqldb.Result.init(Unknown Source) 14:48:18,145 ERROR [STDERR] at org.hsqldb.jdbcConnection.executeHSQL(Unknown Source) 14:48:18,145 ERROR [STDERR] at org.hsqldb.jdbcConnection.execute(Unknown Sou rce) 14:48:18,160 ERROR [STDERR] at org.hsqldb.jdbcStatement.fetchResult(Unknown Source) 14:48:18,160 ERROR [STDERR] at org.hsqldb.jdbcStatement.executeQuery(Unknown Source) 14:48:18,160 ERROR [STDERR] at org.hsqldb.jdbcPreparedStatement.executeQuery (Unknown Source) 14:48:18,176 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrappedPrepar edStatement.executeQuery(WrappedPreparedStatement.java:289) 14:48:18,176 ERROR [STDERR] at examples.AccountBean.ejbHomeGetTotalBankValue (AccountBean.java:120) 14:48:18,176 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) 14:48:18,176 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39) 14:48:18,191 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25) 14:48:18,191 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:3 24) 14:48:18,191 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterc eptor.invokeHome(EntityContainer.java:1009) 14:48:18,207 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationIn terceptor.invokeHome(EntitySynchronizationInterceptor.java:188) 14:48:18,207 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedCo nnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215) 14:48:18,207 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.inv okeHome(AbstractInterceptor.java:88) 14:48:18,223 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceIntercept or.invokeHome(EntityInstanceInterceptor.java:91) 14:48:18,254 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.i nvokeHome(EntityLockInterceptor.java:61) 14:48:18,254 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationIntercept or.invokeHome(EntityCreationInterceptor.java:28) 14:48:18,254 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.i nvokeNext(AbstractTxInterceptor.java:88) 14:48:18,270 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWit hTransactions(TxInterceptorCMT.java:243) 14:48:18,270 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke Home(TxInterceptorCMT.java:74) 14:48:18,270 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.inv okeHome(SecurityInterceptor.java:92) 14:48:18,270 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHo me(LogInterceptor.java:120) 14:48:18,285 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInter ceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) 14:48:18,285 ERROR [STDERR] at org.jboss.ejb.EntityContainer.internalInvokeH ome(EntityContainer.java:477) 14:48:18,285 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java :694) 14:48:18,301 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) 14:48:18,301 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39) 14:48:18,301 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25) 14:48:18,316 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:3 24) 14:48:18,316 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatc her.invoke(ReflectedMBeanDispatcher.java:284) 14:48:18,316 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB eanServerImpl.java:549) 14:48:18,316 ERROR [STDERR] at
Re: [JBoss-user] configure JBoss for Postgres
Drop the postgresql-ds.xml in the deploy directory like any other deployable and then use the corresponding JNDI name to lookup the datasource. If you are getting hsqldb you are looking up its datasource binding, which in the example is PostgresDS, so lookup java:/PostgresDS -- Scott Stark Chief Technology Officer JBoss Group, LLC Erik Price wrote: Scott M Stark wrote: Chapter 7 on the JCA layer as well as the datasource config excerpt on sourceforge. Scott, thanks for the pointer. After reading the JCA chapter, I have copied the $JBOSS_HOME/docs/examples/jca/postgresql-ds.xml file into my META-INF directory and modified it for accessing my Postgres database. (The configuration works fine from a standard JDBC Connection.) However, I suspect that I'm not deploying this file correctly -- can you clarify what is meant by deployed the same as other deployable components in this excerpt from page 356 of the 3.2.x docs? The simplified configuration descriptor is deployed the same as other deployable components. The descriptor must be named using a *-ds.xml pattern in order to be recognized by the XSLSubDeployer. I note that in the stack trace (appended to this email) it seems like HSQLDB driver classes are being used to access this DataSource, which is why I suspect that I am not deploying postgres-ds.xml correctly. Thanks, Erik 14:48:18,145 ERROR [STDERR] java.sql.SQLException: Table not found: ACCOUNTS in statement [SELECT SUM(balance) AS total FROM accounts] 14:48:18,145 ERROR [STDERR] at org.hsqldb.Trace.getError(Unknown Source) 14:48:18,145 ERROR [STDERR] at org.hsqldb.Result.init(Unknown Source) 14:48:18,145 ERROR [STDERR] at org.hsqldb.jdbcConnection.executeHSQL(Unknown Source) 14:48:18,145 ERROR [STDERR] at org.hsqldb.jdbcConnection.execute(Unknown Sou rce) 14:48:18,160 ERROR [STDERR] at org.hsqldb.jdbcStatement.fetchResult(Unknown Source) 14:48:18,160 ERROR [STDERR] at org.hsqldb.jdbcStatement.executeQuery(Unknown Source) 14:48:18,160 ERROR [STDERR] at org.hsqldb.jdbcPreparedStatement.executeQuery (Unknown Source) --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error connecting to remote Context
Hi all I need to sen a Message using JMS to a remote JBoss server Here is the code: Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.PROVIDER_URL, "147.15.50.120"); env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); try { jndiContext = new InitialContext(env); queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup(fabricaColas); ctxtosJMS.contexto1 = jndiContext; ctxtosJMS.queueConnFact1 = queueConnectionFactory; } catch (NamingException ne) { System.out.println("[EMISOR]: No se pudo crear contexto JNDI " + ne.toString()); ctxtosJMS.contexto1 = jndiContext; ctxtosJMS.queueConnFact1 = queueConnectionFactory; } and the error is : javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused] Any idea why?
Re: [JBoss-user] EJB Stats in web-console
On July 14, 2003 01:17 pm, Adrian Brock wrote: On Sun, 2003-07-13 at 20:27, Scott M Stark wrote: Yes, there should be no difference. I don't know if its the jsr77 layer or the web console that is not hooking up the stats correctly. What does the jmx-consol e show for the bean in question? Hi Scott, I fixed this just after the 3.2.1 release. It was a problem with JSR77 using the default remote jndi name even when there was no remote deployment. Regards, Adrian Cool, thanks Adrian and Scott for the replies. As usual, you guys get things done before I even detect the problems. :) -Neal --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Error debugging 3.2.0
I'm going to have to see a trace log of the class loading layer when this occurs to try to see where this is coming from. It could be this JDK bug showing up since java.lang.NumberFormatException cannot be causing cicularity problem: http://developer.java.sun.com/developer/bugParade/bugs/4699981.html If you want to try to create a trace log see the class loading debugging instructions on the sourceforge project page under the docs section. -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: Hi Scott, Seems I'm not having a good day! It turns out that this error is actually only intermittent. The relevant bits of log file are copied below (apologies for the size): 2003-07-14 16:53:59,759 WARN [org.jboss.system.ServiceController] Problem starting service jboss.jca:service=ManagedConnectionFactory,name=DefaultDS java.lang.ClassCircularityError: java/lang/NumberFormatException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.newInstance0(Class.java:276) at java.lang.Class.newInstance(Class.java:259) at --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user