AW: [JBoss-user] JBoss SAP DB
Thanki a lot ! -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Vittorio Ballestra Gesendet: Freitag, 4. Juli 2003 16:12 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] JBoss SAP DB I've used it since about 6 months ago. I had had a lot of problem with sapdb jdbc driver that had caused big memory leaks problems in the application server. Now we're going with postgresql and happy with it. No more daily reboot of the jboss server and life easier. But perhaps now sapdb finally succeded in creating a reliable jdbc driver, I don't know. Bye, V --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Explicit Usage of Commit and Rollabck...
If you want to handle commit/rollback inside your bean you should use BMT (Bean managed transactions). commit-option is only for entity beans. It is a policy for the cached entity bean instance at the end of the transaction. Regards, Adrian On Mon, 2003-07-07 at 06:12, Muraly R wrote: Hi Gurus, I am having a particular Stateful session bean. In this bean I want to handle the database connection manually. That is I should be able to use Connection.commit() and Connection.rollback explicitly, for only this Bean. On a previous mail thread David explained that since the transaction happens inside the JTA context, usage of commit and rollback throws exception. In the standardjboss.xml, for entity beans I saw the 'commit-option' tag. But I am not able understand the usage of this. Can I add this to a container-configuration and add it to this particular bean? If yes which is option I can use(A,B,C,..) Could anyone please guide how can I achieve the explicit usage of commit and rollback in a particular Satefull session Bean? Thanks Muraly --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] $1000.00 FREE - $100,000 JACKPOTS - CASINO ONLINE.......... vmt
ENTER HERE Unsubscribe me: [EMAIL PROTECTED] lyoprfjofqgcacudevuchwcdqkf --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Explicit Usage of Commit and Rollabck...
Hi Adrian, Thanks for the immediate response. I am new to this area... So just a few more questions;-) So if I have to use BMT for my bean is it enough to specify the transaction-type as 'Bean' in ejb-jar.xml. Or is there anything more added to this. I have my DS deployed as a service. Also can I use the same procedure to connect to the database (i.e lookup method to access), which is used in other beans, or do I have to use a seperate type of connection methodology. (Also if there is any useful links with eg. it would be helpful) Thanks Muraly At 07:07 07/07/2003 +0100, you wrote: If you want to handle commit/rollback inside your bean you should use BMT (Bean managed transactions). commit-option is only for entity beans. It is a policy for the cached entity bean instance at the end of the transaction. Regards, Adrian On Mon, 2003-07-07 at 06:12, Muraly R wrote: Hi Gurus, I am having a particular Stateful session bean. In this bean I want to handle the database connection manually. That is I should be able to use Connection.commit() and Connection.rollback explicitly, for only this Bean. On a previous mail thread David explained that since the transaction happens inside the JTA context, usage of commit and rollback throws exception. In the standardjboss.xml, for entity beans I saw the 'commit-option' tag. But I am not able understand the usage of this. Can I add this to a container-configuration and add it to this particular bean? If yes which is option I can use(A,B,C,..) Could anyone please guide how can I achieve the explicit usage of commit and rollback in a particular Satefull session Bean? Thanks Muraly --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[4]: [JBoss-user] Question about CMP entity
Hello Marco, Sunday, July 06, 2003, 10:39:45 PM, Marco Tedone wrote: MT Alexey, I would be interested in writing something useful for Jboss users if MT possible. Where shall I implemented the bottom interfaces? In an ordinary MT class? In an EJB? Entity beans don't have to implement these interfaces. The two generators available, are not aware of EJB at all. And can be used by any component in JBoss. But, generally, you could implement these interfaces in EJB. I haven't thought about it, though. MT Shall I write any code for getFactoryName() and MT getKeyGenerator()? Yes. getFactoryName returns factory's JNDI name and getKeyGenerator() returns an instance of KeyGenerator. MT Is the entity-command element support by XDoclet AFAYK? Yes, it is supported. MT May the bottom mentioned interfaces implemented in the same class? I don't see why not. MT At MT present we are deciding if implementing Marco Garbelini's solution or a MT built in solution (by means of a synchronized method). In any case, I will MT probably ask to one of my developers to build this solution with you, if MT that is ok for you. Great, let's discuss it. Thank you, alex MT Regards, MT Marco MT - Original Message - MT From: Alexey Loubyansky [EMAIL PROTECTED] MT To: Marco Tedone [EMAIL PROTECTED] MT Sent: Thursday, June 26, 2003 9:51 AM MT Subject: Re[2]: [JBoss-user] Question about CMP entity You need to implement two interfaces (in package MT org.jboss.ejb.plugins.keygenerator) public interface KeyGenerator { public Object generateKey(); } public interface KeyGeneratorFactory { public String getFactoryName(); public KeyGenerator getKeyGenerator() throws Exception; } Then deploy/bind the factory to JNDI and declare entity-command in jbosscmp-jdbc.xml supplying fractory's JNDI name, for example !-- uses key generator to fetch the next key value -- entity-command name=key-generator attribute MT name=key-generator-factoryUUIDKeyGeneratorFactory/attribute /entity-command In ejbCreate container calls KeyGenerator.generateKey() to set PK value. There is UUID key generator in 3.2 and there is HiLo generator (something like you are going to implement with EJBs) in HEAD. If you really would like to go this route, feel free to contact me. BTW, key generation welcomes contributions. In 4.0 it is also used for our JDO implementation JBossDO. If anyone is interested in contribution, please, contact me. alex Thursday, June 26, 2003, 10:15:30 AM, Marco Tedone wrote: MT Thank you Alex, I have already received a possible solution from Marco MT Garbelini and I'll try it, but particularly, the one you are MT suggesting (my MT own key generator class) sounds interesting. How could I implement it MT in the MT EJB CMP architecture? MT Marco MT - Original Message - MT From: Alexey Loubyansky [EMAIL PROTECTED] MT To: Marco Tedone [EMAIL PROTECTED] MT Sent: Thursday, June 26, 2003 7:12 AM MT Subject: Re: [JBoss-user] Question about CMP entity Hello Marco, if the problem really is a primary key generation you could consider entity-commands in JBoss-3.2. The options are: - database key generation (sequences, etc); - custom sql; - you can supply your own key generator class that will be asked for the next key; - JDBC3.0 PreparedStatement.getGeneratedKeys(). alex Thursday, June 26, 2003, 1:06:43 AM, Marco Tedone wrote: MT Sorry guru for the [silly] question: I am having a discussion with MT people in MT my project regarding the container work with CMP entity beans. More MT specifically, we want to implement a Numerator table to assign MT numbers MT to MT several entities of our model. MT Suppose a client wants to assign a value to a peopleId field in a MT People MT table, then it will in order: MT 1) Access the Numerator table (behind a CMP entity bean) MT 2) Retrieve the value from the number field; MT 3) Assign that value to peopleId MT 4) Increment the value by 1 MT What I am saying to the guys in the project is that the container MT (Jboss in MT our case) could ensure that, from the moment when the number is MT retrieved to MT the moment when the number is incremented by 1 nobody else will be MT able to MT alter the value of the number field in the Numerator table. Someone MT is MT replying that we should implement a synchronized method. Is that MT really MT necessary? I'm quite sure that there is a way to instruct the MT container to MT 'lock' in a certain sense the value of the number field. One way MT could MT be a MT transaction (shall we use synchronization in this case?); is there MT anything MT simplier? MT Many thanks for your time, MT Marco --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download
Re: [JBoss-user] WARN [...] what they mean...
On 7/6/03 5:09 PM, Adrian Brock [EMAIL PROTECTED] wrote: On Sun, 2003-07-06 at 16:40, Magesh Prabhu wrote: I could'nt understand this Adrian, I'm using Oracle 8.1.6 database with the following datasource configuration: datasources local-tx-datasource jndi-nameOracleDS/jndi-name connection-urljdbc:oracle:thin:@193.16.18.126:1521:clipper/connection-url driver-classoracle.jdbc.driver.OracleDriver/driver-class user-nametest/user-name passwordtest/password exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name /local-tx-datasource /datasources Could you please give more explanation on your comment.. Should my jdbc driver support this prepare() method My transaction is all Container managed and I run on Commit Option 'B' You need the xa datasource for prepare() When I'm not using an xa datasource why is it expecting for a prepare(); My app does'nt involve any XA datasource. In fact, the configuration above is the only datasource configured for my app. 2) WARN [WrappedConnection] Closing a statement you left open, please do your own housekeeping You are not closing a statement. Closing a pooled connection just returns the connection to the pool. In all my Entity Beans, I have this following code to clean up the resources they use and I've double checked all my beans so that they dont leave any connections open. private void releaseResources(ResultSet rs, Statement stmt, Connection conn) { if (rs != null) { try { rs.close(); } catch (SQLException e) { log.fatal(e); } } if (stmt != null) { try { stmt.close(); } catch (SQLException e) { log.fatal(e); } } if (conn != null) { try { conn.close(); } catch (SQLException e) { log.fatal(e); } } } JBoss disagrees with you. Maybe you have: Statement stmt = conn.prepareStatement(...); ... stmt = conn.prepareStatement(...); ... releaseResources(rs, stmt, conn); The first statement won't be closed. Or maybe your releaseResources is not in a finally block. Thanks for your advice on this, I will double check my app again. -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Explicit Usage of Commit and Rollabck...
On Mon, 2003-07-07 at 08:11, Muraly R wrote: Hi Adrian, Thanks for the immediate response. I am new to this area... So just a few more questions;-) So if I have to use BMT for my bean is it enough to specify the transaction-type as 'Bean' in ejb-jar.xml. Or is there anything more added to this. Yes. By new, do you mean EJBs. BMT stateful beans aren't the best place to start learning. :-) I have my DS deployed as a service. Also can I use the same procedure to connect to the database (i.e lookup method to access), which is used in other beans, or do I have to use a seperate type of connection methodology. (Also if there is any useful links with eg. it would be helpful) Yes, you need a user transaction Read the spec or an ejb book. Make sure this is no gap in your logic where the connection doesn't get closed or the transaction isn't committed/rolled back. -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] WARN [...] what they mean...
On Mon, 2003-07-07 at 08:33, Magesh Prabhu wrote: On 7/6/03 5:09 PM, Adrian Brock [EMAIL PROTECTED] wrote: On Sun, 2003-07-06 at 16:40, Magesh Prabhu wrote: You need the xa datasource for prepare() When I'm not using an xa datasource why is it expecting for a prepare(); My app does'nt involve any XA datasource. In fact, the configuration above is the only datasource configured for my app. You are using an MDB. You have two resources in the same transaction: The JMS session and the DB connection. This does two phase commit, prepare/commit. -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] WARN [...] what they mean...
Interesting! The warning message is pretty annoying (if, for example, you don't want to/can't shell out for Sybase's Distributed Transaction Manager, or if you're using the built-in Hypersonic db). Could there be a config option (presumably as part of the MDB/MDB containter config) to turn the warning off? Dan. -- Danny Yates -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 10:27 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] WARN [...] what they mean... On Mon, 2003-07-07 at 09:45, [EMAIL PROTECTED] wrote: Hi Adrian, Does your statement imply that any work done either directly or indirectly by an MDB (such as, for example, accessing Entity Beans) requries an XA datasource? I would use should rather than requires. If you want the acknowledgement of the message receipt to be in sync with the db commit, yes. Of course, you can use BMT to separate them into two different transactions or just ignore the warning about the prepare() on local. Rgds, Dan. -- Danny Yates -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ 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: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] WARN [...] what they mean...
Simply change log4j configuration to turn off this specific message. Cheers, sacha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: lundi, 7. juillet 2003 11:37 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] WARN [...] what they mean... Interesting! The warning message is pretty annoying (if, for example, you don't want to/can't shell out for Sybase's Distributed Transaction Manager, or if you're using the built-in Hypersonic db). Could there be a config option (presumably as part of the MDB/MDB containter config) to turn the warning off? Dan. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss performance enhancements
Version 1 of our document on some simple code improvements to JBoss 3.2.0 and the effect on performance is now available. We'll work on the document as time allows. The current data covers performance measurements based on Linux/IBM SDK/Trove. The document is an 820K pdf available from the section of our website on JBoss code optimizations, http://www.amitysolutions.com.au/pages/downloads.html#code. With four basic and relatively simple changes, we obtained a further 10 percent response time reduction over the bytecode optimizations we performed earlier - a total of about 30 percent in total over the vanilla JBoss distribution. This also seemed to translate to the same level of application responsiveness. We also demonstrate the raw performance of Collections including Iterator over ArrayList get(i). Apart from that, the figures give some idea of the cost of internal client calls versus external client calls. We hope these are of some benefit. In the future, we would like to test ECperf performance gains but currently don't have the equipment to adequately meet the ECperf overall resource demands. If anyone would like to donate some equipment for testing, please step forward. ;) We'll also plan to look at Sun JDK performance and memory performance. Best regards, JonB. smime.p7s Description: S/MIME cryptographic signature
Re: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mapped to primary key columns ...
Hello Christofer, Monday, July 07, 2003, 11:58:43 AM, Christofer Dutz wrote: CD Hi, CD I am getting these errors when mirgrating the SPECjAppServer from BeaWeblogic to CD JBoss. I wrote a message about this problem a few months ago. Someone told me CD that he opened a bug-report and I had a look at it. Unfortunately nothing has CD changed. It was me. I consider it as not being a bug but a feature. Therefore, I submited a feature request for it. You have been the only one on the list asking for it and since you publicly said bye, this became a low priority task for me. CD JBoss still complaines (JBoss-3.2.2RC1) about me wanting to change the PK Values CD outside ejbCreate. Yes I know .. this is bad, but the value isn't changed. The CD set-method wants to set the value of the field to a value it was already set to CD in ejbCreate. CD All other major application server check if the value is realy CD changed prior to throwing an exception. Could you, please, enumerate what other/all app servers you tried? I would really appreciate this info. CD Wouldn't it be nice if Jboss behaved the CD same way as all the others do? Yes, it would. But the list of all others first. Deal? alex --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] WARN [...] what they mean...
On Mon, 2003-07-07 at 10:32, Marek Lange wrote: [EMAIL PROTECTED] wrote: Hi Adrian, Does your statement imply that any work done either directly or indirectly by an MDB (such as, for example, accessing Entity Beans) requries an XA datasource? I asked the same question some weeks ago and David replied: I don't know what the Oracle error means, but you do not need an xa datasource for jbossmq xa. In fact the jbossmq xa jdbc connections are set to autocommit while in use by jbossmq, as it handles transactions independently of the database. Can someone clarify? You are talking about something else. That is the jdbc2 persistence manager that is used internally by the server. It only requires a local transaction (which it starts itself, suspending/resuming any existing transaction). This thread is about db connections used by the application in the same transaction as MDB message delivery. -marek --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] deploy error
hi, I'm porting our sql script from PostgreSQL to MySQL. This works. But I get an error deploying one entity bean: 13:46:54,603 ERROR [EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Couldn't create entity command: ; - nested throwable: (java.lang.NullPointerEx ception) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:136) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:481) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:410) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) 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(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) at $Proxy11.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:392) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy32.start(Unknown Source) at org.jboss.ejb.EjbModule.startService(EjbModule.java:329) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) 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(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) at $Proxy11.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:392) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy22.start(Unknown Source) at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:540) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:822) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:630) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:603) at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy7.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20 0) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273) 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
Re: [JBoss-user] JBoss 3.2.1/Firebird Issue
Guy Rouillier wrote: Can you post the contents of the -ds.xml file for the Firebird database? You don't mention what is in the .tgz, and I don't open unannounced attachments these days. Contents of attached zip file; [EMAIL PROTECTED]:/tmp tar -tzvf jboss3.2.1.tgz drwxr-xr-x steve/users 0 2003-07-04 11:49:38 firebird/ -rw-r--r-- steve/users 24658 2003-07-04 11:49:18 firebird/excerpt_server.log -rwxr-x--- steve/users1846 2003-07-04 11:49:38 firebird/firebird-ds.xml Text files only, from a linux system -- No virii, macros, or other bad things. Thanks, Steve -- Java/J2EE Developer/Integrator 214-724-7741 jboss3.2.1.tgz Description: GNU Unix tar archive
Re: [JBoss-user] deploy error
Hello Rafal, make sure there is mysql-get-generated-keys entity-command in standardjbosscmp-jdbc.xml. What version are you using, BTW? alex Monday, July 07, 2003, 2:52:20 PM, Rafal Kedziorski wrote: RK hi, RK I'm porting our sql script from PostgreSQL to MySQL. This works. But I get RK an error deploying one entity bean: RK 13:46:54,603 ERROR [EntityContainer] Starting failed RK org.jboss.deployment.DeploymentException: Couldn't create entity command: ; RK - nested throwable: (java.lang.NullPointerEx RK ception) RK at RK org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:136) RK at RK org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:481) RK at RK org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:410) RK at RK org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170) RK at RK org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340) RK at RK org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) RK at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at RK org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) RK at $Proxy11.start(Unknown Source) RK at RK org.jboss.system.ServiceController.start(ServiceController.java:392) RK at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) RK at $Proxy32.start(Unknown Source) RK at org.jboss.ejb.EjbModule.startService(EjbModule.java:329) RK at RK org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) RK at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at RK org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) RK at $Proxy11.start(Unknown Source) RK at RK org.jboss.system.ServiceController.start(ServiceController.java:392) RK at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) RK at $Proxy22.start(Unknown Source) RK at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:540) RK at org.jboss.deployment.MainDeployer.start(MainDeployer.java:822) RK at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:630) RK at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:603) RK at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) RK at $Proxy7.deploy(Unknown Source) RK at RK org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) RK at RK org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) RK at RK
[JBoss-user] a tiny NISLoginModule for those who may need one
Hi, Here is a little LoginModule of my own : NISLoginModule It allows user the authenticate against a NIS server and set a default principal to user when the authentication succeeds. Ionel NISLM-0.1.jar Description: Binary data
Re: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mappedto primary key columns ...
Alexey Loubyansky wrote: Hello Christofer, Monday, July 07, 2003, 11:58:43 AM, Christofer Dutz wrote: CD Hi, CD I am getting these errors when mirgrating the SPECjAppServer from BeaWeblogic to CD JBoss. I wrote a message about this problem a few months ago. Someone told me CD that he opened a bug-report and I had a look at it. Unfortunately nothing has CD changed. It was me. I consider it as not being a bug but a feature. Therefore, I submited a feature request for it. You have been the only one on the list asking for it and since you publicly said bye, this became a low priority task for me. Ok ... I see ;} Well my professor asked me to continue my work as an employe of my university. It would be very nice if this feature would be added in the near future, since it prevents me from runing the SPECjAppServer in Jboss without changing the sourcecode. CD JBoss still complaines (JBoss-3.2.2RC1) about me wanting to change the PK Values CD outside ejbCreate. Yes I know .. this is bad, but the value isn't changed. The CD set-method wants to set the value of the field to a value it was already set to CD in ejbCreate. CD All other major application server check if the value is realy CD changed prior to throwing an exception. Could you, please, enumerate what other/all app servers you tried? I would really appreciate this info. Well I tried BeaWeblogic and talked with people using the Borland AppServer and WebSphere ... CD Wouldn't it be nice if Jboss behaved the CD same way as all the others do? Yes, it would. But the list of all others first. Deal? alex Chris --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] deploy error
hi, At 15:27 07.07.2003 +0300, Alexey Loubyansky wrote: Hello Rafal, make sure there is mysql-get-generated-keys entity-command in standardjbosscmp-jdbc.xml. this is defined as: entity-command name=mysql-get-generated-keys class=org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand/ What version are you using, BTW? JBoss 3.2.2beta and MySQL 4.0.13. currently I changed the definition to: entity ejb-nameUsers_2_GroupsBean/ejb-name read-ahead strategyon-load/strategy page-size4/page-size eager-load-group*/eager-load-group /read-ahead list-cache-max1000/list-cache-max table-nameusers_2_groups/table-name cmp-field field-nameusers_2_groups_id/field-name column-nameusers_2_groups_id/column-name auto-increment/ /cmp-field cmp-field field-nameusers_id/field-name column-nameusers_id/column-name /cmp-field cmp-field field-namegroups_id/field-name column-namegroups_id/column-name /cmp-field cmp-field field-namevalid_from/field-name column-namevalid_from/column-name /cmp-field cmp-field field-nameexpired/field-name column-nameexpired/column-name /cmp-field !-- entity-command name=pk-sql attribute name=pk-sqlSELECT nextval('users_2_groups_seq')/attribute /entity-command -- entity-command name=pk-sql attribute name=pk-sqlSELECT LAST_INSERT_ID()/attribute /entity-command /entity But no I get this message: 2003-07-07 15:26:07,165 FATAL [net.magix.xmlapi.request.category.CreateCategoryRequest] run() failed javax.ejb.DuplicateKeyException: Entity with primary key 3 already exists at org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertPKCreateCommand.beforeInsert(JDBCInsertPKCreateCommand.java:82) the business logic dosn't change while replacing database. Rafal
Re[2]: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mapped to primary key columns ...
Ok, thanks. I'll do it soon and let you know. alex Monday, July 07, 2003, 4:15:30 PM, Christofer Dutz wrote: CD Alexey Loubyansky wrote: Hello Christofer, Monday, July 07, 2003, 11:58:43 AM, Christofer Dutz wrote: CD Hi, CD I am getting these errors when mirgrating the SPECjAppServer from BeaWeblogic to CD JBoss. I wrote a message about this problem a few months ago. Someone told me CD that he opened a bug-report and I had a look at it. Unfortunately nothing has CD changed. It was me. I consider it as not being a bug but a feature. Therefore, I submited a feature request for it. You have been the only one on the list asking for it and since you publicly said bye, this became a low priority task for me. CD Ok ... I see ;} CD Well my professor asked me to continue my work as an employe of my CD university. CD It would be very nice if this feature would be added in the near future, CD since it prevents me from CD runing the SPECjAppServer in Jboss without changing the sourcecode. CD JBoss still complaines (JBoss-3.2.2RC1) about me wanting to change the PK Values CD outside ejbCreate. Yes I know .. this is bad, but the value isn't changed. The CD set-method wants to set the value of the field to a value it was already set to CD in ejbCreate. CD All other major application server check if the value is realy CD changed prior to throwing an exception. Could you, please, enumerate what other/all app servers you tried? I would really appreciate this info. CD Well I tried BeaWeblogic and talked with people using the Borland CD AppServer and WebSphere ... CD Wouldn't it be nice if Jboss behaved the CD same way as all the others do? Yes, it would. But the list of all others first. Deal? alex CD Chris --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] deploy error
hi, I attached my jbosscmp-jdbc.xml. only while deploying Users_2_GroupsBean I get the error message. 15:56:25,290 ERROR [EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Couldn't create entity command: ; - nested throwable: (java.lang.NullPointerEx ception) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:136) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:481) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:410) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) 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(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) at $Proxy11.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:392) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy32.start(Unknown Source) at org.jboss.ejb.EjbModule.startService(EjbModule.java:329) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) 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(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) at $Proxy11.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:392) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy22.start(Unknown Source) at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:540) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:822) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:630) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:603) at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy7.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20 0) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273) 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)
[JBoss-user] JBoss-net xml-schema problem
Title: Message Hi folks, I've a two classes called ExecutionData and Parameter that are used with various EJBs in my application. In order to move to web services I'm under the impression that I need Axis or jboss-net to be able to be able to decipher them so I put the @jboss-net:xml-schema tag above the class declaration in both java files. Generating the web-service using xdoclet produces the following wsdd snippet. typeMapping qname="ExecutionData" type="java:ie.tcd.cs.kdeg.serene.data.ExecutionData" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/ typeMapping qname="Parameter" type="java:ie.tcd.cs.kdeg.serene.data.Parameter" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/ When I deploy this web-service.xml file within my .wsr file an attempt to retrieve the wsdl I get an exception thrown that the 'xmlns:tns1 can't be left empty. If I don't include the above typeMapping in the web-services.xml file then it retrieves the wsdl fine however the ExecutionData is mapped to the xsl:anyType datatype. However jboss then can't find a de-serialiser when I go to invoke the service. Any ideas folks, Mark.
Re: [JBoss-user] Re: Mod_JK Failover
Jules Gosnell wrote: Regardless, this is too much management overhead and mod_jetty will address this and many other issues. I never heard about mod_jetty, and am not able to find any references. Could you please give some glue on what's this? Is this from Jetty 5? Also any road map would be much appreciated. Thanks, Vlad --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] deploy error
Could you, meanwhile, try to explicitly specify the class attribute in your jbosscmp-jdbc.xml? Thanks, alex Monday, July 07, 2003, 5:02:11 PM, Rafal Kedziorski wrote: RK hi, RK I attached my jbosscmp-jdbc.xml. only while deploying Users_2_GroupsBean I RK get the error message. RK 15:56:25,290 ERROR [EntityContainer] Starting failed RK org.jboss.deployment.DeploymentException: Couldn't create entity command: ; RK - nested throwable: (java.lang.NullPointerEx RK ception) RK at RK org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:136) RK at RK org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:481) RK at RK org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:410) RK at RK org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170) RK at RK org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340) RK at RK org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) RK at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at RK org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) RK at $Proxy11.start(Unknown Source) RK at RK org.jboss.system.ServiceController.start(ServiceController.java:392) RK at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) RK at $Proxy32.start(Unknown Source) RK at org.jboss.ejb.EjbModule.startService(EjbModule.java:329) RK at RK org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) RK at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at RK org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) RK at $Proxy11.start(Unknown Source) RK at RK org.jboss.system.ServiceController.start(ServiceController.java:392) RK at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) RK at $Proxy22.start(Unknown Source) RK at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:540) RK at org.jboss.deployment.MainDeployer.start(MainDeployer.java:822) RK at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:630) RK at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:603) RK at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) RK at RK sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) RK at java.lang.reflect.Method.invoke(Method.java:324) RK at RK org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) RK at RK org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) RK at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) RK at $Proxy7.deploy(Unknown Source) RK at RK org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) RK at RK org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) RK at RK org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20 RK 0) RK at
Re: [JBoss-user] deploy error
hi, we found the error. we added the auto-increment tag to two read only entity beans and JBoss didn't shows wrong error on the wrong entity bean. Regards, Rafal At 15:27 07.07.2003 +0300, Alexey Loubyansky wrote: Hello Rafal, make sure there is mysql-get-generated-keys entity-command in standardjbosscmp-jdbc.xml. What version are you using, BTW? alex Monday, July 07, 2003, 2:52:20 PM, Rafal Kedziorski wrote: RK hi, RK I'm porting our sql script from PostgreSQL to MySQL. This works. But I get RK an error deploying one entity bean: RK 13:46:54,603 ERROR [EntityContainer] Starting failed RK org.jboss.deployment.DeploymentException: Couldn't create entity command: ; RK - nested throwable: (java.lang.NullPointerEx RK ception) --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HI
HI http://www.zz66.com --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] 3.x Quick Start Guide?
I've purchased the doc subscription from core developers, but I can't seem to find a quick start guide that is at all recent. All of the subscription docs seem to refer to individual technologies (JCA, CMP). Is there some book that I have to buy as well? It's unclear what my subscription gets me exactly ... Sorry if this is covered in other posts, but the list hosting doesn't seem to have searching, and google's bringing up ancient stuff. Stuart Popejoy --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 3.x Quick Start Guide?
Looks like I didn't look hard enuf ... http://prdownloads.sourceforge.net/jboss/QuickStart-30x.pdf?download Thanks anyhoo, Stuart On Mon, 2003-07-07 at 13:08, Stuart Popejoy wrote: I've purchased the doc subscription from core developers, but I can't seem to find a quick start guide that is at all recent. All of the subscription docs seem to refer to individual technologies (JCA, CMP). Is there some book that I have to buy as well? It's unclear what my subscription gets me exactly ... Sorry if this is covered in other posts, but the list hosting doesn't seem to have searching, and google's bringing up ancient stuff. Stuart Popejoy --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss dynamic ql problem
Hi, I have a dynamic ql issue. Does anyone has working examples for dynamic-ql and share them with jboss -users? I am stuck with the following dynamic ql errors. Thanks J.P. in the ejb-jar.xml, here is the piece: query query-method method-nameejbSelectABCD/method-name method-params method-paramjava.lang.String/method-param method-paramjava.lang.Object[]/method-param /query-method ejb-ql//query in the jbosscmp-jdbc.xml, here is the piece: query query-method method-nameejbSelectABCD/method-name method-params method-paramjava.lang.String/method-param method-paramjava.lang.Object[]/method-param /query-method dynamic-ql//query In the program, I construct: String sql_str="SELECT OBJECT(obj) FROM xyzTable obj WHERE obj.f1 = a1 AND obj.f2 = a2"; and call jbSelectABCD(sql_str, new Object[]{}); the error log messages I got are: DEBUG [ejbSelectABCD] DYNAMIC-QL: SELECT OBJECT(obj) FROM xyzTable obj WHERE obj.f1 = a1 AND obj.f2 = a2 ERROR [STDERR] javax.ejb.FinderException: Error compiling ejbql: org.jboss.ejb.plugins.cmp.ParseException: Encountered "a1" at line1, column ... Was expecting one of:"CONCAT""SUBSTRING"... ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCDynamicQLQuery.execute(JDBCDynamicQLQuery.java:74) org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCSelectorBridge.execute(JDBCSelectorBridge.java:64) Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
[JBoss-user] Problem looking HAPartition
I'm trying to get a remote handle on the HAPartition to use with HA-RMI and to monitor the partition. The problem is that my reference to HAPartition is always null. Using EJTool's JNDI brower I can clearly see the JNDI entry is there and is a org.jboss.ha.framework.server.HAPartitionImpl. public static void main(String[] args) { System.setProperty( java.naming.provider.url, localhost:11100,localhost:21100); System.setProperty( java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); System.setProperty(java.naming.factory.url.pkgs, org.jboss.naming); try { InitialContext ctx = new InitialContext(); HAPartition partition = (HAPartition)ctx.lookup(HAPartition/DefaultPartition); if(partition == null) { System.out.println(partition is null); } } catch (Exception e) { e.printStackTrace(); } } Kevin Christmas AmeriPath IT - Dallas --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss dynamic ql problem
Hi, I have a dynamic ql issue. Does anyone has working examples for dynamic-ql and share them with jboss -users? I am stuck with the following dynamic ql errors. Thanks J.P. in the ejb-jar.xml, here is the piece: query query-method method-nameejbSelectABCD/method-name method-params method-paramjava.lang.String/method-param method-paramjava.lang.Object[]/method-param /query-method ejb-ql//query in the jbosscmp-jdbc.xml, here is the piece: query query-method method-nameejbSelectABCD/method-name method-params method-paramjava.lang.String/method-param method-paramjava.lang.Object[]/method-param /query-method dynamic-ql//query --- In the program, I construct: String sql_str="SELECT OBJECT(obj) FROM xyzTable obj WHERE obj.f1 = a1 AND obj.f2 = a2"; and call jbSelectABCD(sql_str, new Object[]{}); - the error log messages I got are: DEBUG [ejbSelectABCD] DYNAMIC-QL: SELECT OBJECT(obj) FROM xyzTable obj WHERE obj.f1 = a1 AND obj.f2 = a2 ERROR [STDERR] javax.ejb.FinderException: Error compiling ejbql: org.jboss.ejb.plugins.cmp.ParseException: Encountered "a1" at line1, column ... Was expecting one of:"CONCAT""SUBSTRING"... ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCDynamicQLQuery.execute(JDBCDynamicQLQuery.java:74) org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCSelectorBridge.execute(JDBCSelectorBridge.java:64) Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re[2]: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mapped to primary key columns ...
Hello Chris, I just enabled overriding PK with FK if they are equal. ENJOY!!! ;) alex Monday, July 07, 2003, 4:15:30 PM, Christofer Dutz wrote: CD Alexey Loubyansky wrote: Hello Christofer, Monday, July 07, 2003, 11:58:43 AM, Christofer Dutz wrote: CD Hi, CD I am getting these errors when mirgrating the SPECjAppServer from BeaWeblogic to CD JBoss. I wrote a message about this problem a few months ago. Someone told me CD that he opened a bug-report and I had a look at it. Unfortunately nothing has CD changed. It was me. I consider it as not being a bug but a feature. Therefore, I submited a feature request for it. You have been the only one on the list asking for it and since you publicly said bye, this became a low priority task for me. CD Ok ... I see ;} CD Well my professor asked me to continue my work as an employe of my CD university. CD It would be very nice if this feature would be added in the near future, CD since it prevents me from CD runing the SPECjAppServer in Jboss without changing the sourcecode. CD JBoss still complaines (JBoss-3.2.2RC1) about me wanting to change the PK Values CD outside ejbCreate. Yes I know .. this is bad, but the value isn't changed. The CD set-method wants to set the value of the field to a value it was already set to CD in ejbCreate. CD All other major application server check if the value is realy CD changed prior to throwing an exception. Could you, please, enumerate what other/all app servers you tried? I would really appreciate this info. CD Well I tried BeaWeblogic and talked with people using the Borland CD AppServer and WebSphere ... CD Wouldn't it be nice if Jboss behaved the CD same way as all the others do? Yes, it would. But the list of all others first. Deal? alex CD Chris --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] where to purchase 3.x docs
Hi, Following the link from the JBoss.org web site to purchse 3.x base documentation leads to a no results found in the ComponentSource frame. I have emailed them but not heard back yet, does anyone have a direct link to the catalog entry for this item? Thank you, Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss-net xml-schema problem
Hi Mark, I had this exact problem. What I did was use the same prefix that I gave to the jbossnet code generator in my ANT script, to the @jboss-net:xml-schema tag, and it seems to have cleared it up. So, if you have in your ANT script: jbossnet prefix=myapp ... / Then in your data object class XDoclet tag, you need to say something like: @jboss-net:xml-schema urn=myapp:myDataObject Then everything seemed to get linked together and start working for me. Hope this helps. -Neal On July 7, 2003 10:45 am, [EMAIL PROTECTED] wrote: Hi folks, I've a two classes called ExecutionData and Parameter that are used with various EJBs in my application. In order to move to web services I'm under the impression that I need Axis or jboss-net to be able to be able to decipher them so I put the @jboss-net:xml-schema tag above the class declaration in both java files. Generating the web-service using xdoclet produces the following wsdd snippet. typeMapping qname=ExecutionData type=java:ie.tcd.cs.kdeg.serene.data.ExecutionData serializer=org.apache.axis.encoding.ser.BeanSerializerFactory deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory encodingStyle= http://schemas.xmlsoap.org/soap/encoding/ http://schemas.xmlsoap.org/soap/encoding// typeMapping qname=Parameter type=java:ie.tcd.cs.kdeg.serene.data.Parameter serializer=org.apache.axis.encoding.ser.BeanSerializerFactory deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory encodingStyle= http://schemas.xmlsoap.org/soap/encoding/ http://schemas.xmlsoap.org/soap/encoding// When I deploy this web-service.xml file within my .wsr file an attempt to retrieve the wsdl I get an exception thrown that the 'xmlns:tns1 can't be left empty. If I don't include the above typeMapping in the web-services.xml file then it retrieves the wsdl fine however the ExecutionData is mapped to the xsl:anyType datatype. However jboss then can't find a de-serialiser when I go to invoke the service. Any ideas folks, Mark. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] where to purchase 3.x docs
Use this direct link: http://www.componentsource.com/product.asp?SC=EJBOSPO=513502grc=JBOSSGRC=BACPPOS=PL -- Scott Stark Chief Technology Officer JBoss Group, LLC Erik Price wrote: Hi, Following the link from the JBoss.org web site to purchse 3.x base documentation leads to a no results found in the ComponentSource frame. I have emailed them but not heard back yet, does anyone have a direct link to the catalog entry for this item? Thank you, Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] where to purchase 3.x docs
Erik Price wrote: Hi, Following the link from the JBoss.org web site to purchse 3.x base documentation leads to a no results found in the ComponentSource frame. I have emailed them but not heard back yet, does anyone have a direct link to the catalog entry for this item? You have cookies disabled for sites different from the originating one. Enable all cookies before clicking on this page, and enjoy ;-) Vlad --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] where to purchase 3.x docs
Scott M Stark wrote: Use this direct link: http://www.componentsource.com/product.asp?SC=EJBOSPO=513502grc=JBOSSGRC=BACPPOS=PL Thanks. That took me right to the correct page, where I found both the Windows and the Unix versions for $10.00 each. I decided to purchase it on the spot, and was pleased to see that ComponentSource offered a telephone service where I could give my credit card information over the phone. However, when I called ComponentSource (1-888-850-9911), I was informed by the person I spoke with (whose name I forget) that they don't sell JBoss. I tried to explain that I wasn't interested in purchasing JBoss itself but rather the documentation which was listed on their site as an item for sale, but he steadfastly insisted that they don't sell JBoss. He said that the only way to purchase JBoss is directly from the JBoss.org web site. I even explained that I had a reference code, presumably pointing to the fact that ComponentSource does indeed list the JBoss documentation on their site, but he didn't want to even hear the code. He said that they only handle renewals, and offered little else to the situation. [In my opinion he could benefit from some customer service training; I had a more helpful attitude than that ten years ago when I worked in a fast food restaurant.] So, if this is not where to purchase JBoss documentation from, can someone clue me in on how it's supposed to work? The JBoss.org web site doesn't seem to have anything except the ComponentSource frame. Thanks, Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Secured bean call from MBean
Hi, I want to make a bean call to a secured bean from an Mbean. The Mbean has no security information associated with its calling thread and can therefore not do this. I was wondering what one should do in such a scenario. I don't want to remove the security context from the bean and was wondering what's the right thing to do here? So far I could only think of writing my own user name (no password) login module and setting up a new JAAS security domain for the Mbean JAAS authentication. Would this still be considered secure, as I am only using this code inside the app server or did I forget about something? Regards, Sebastian --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mappedto primary key columns ...
Alexey Loubyansky wrote: Hello Chris, I just enabled overriding PK with FK if they are equal. ENJOY!!! ;) YOU ARE MY HERO ... I'll try it as soon as possible :) Thanx, chris alex Monday, July 07, 2003, 4:15:30 PM, Christofer Dutz wrote: CD Alexey Loubyansky wrote: --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] constraining session bean pool
Brian Wallis wrote: On Fri, 4 Jul 2003 07:40, Erik Price wrote: How to configure JBoss 3.0 to constrain the session bean pool to only a certain number of session beans? (For stateful beans.) I wish to test ejbPassivate() and ejbActivate() in action. You will need to define your own session bean container configuration. The default ones are in conf/standardjboss.xml and you are probably currently using the Standard Stateful SessionBean one from that file which has a max pool size of 100. You can copy this configuration from there into your bean's jboss.xml file into the container-configuration section (see the jboss_3_0.dtd file for details) then adapt it to your needs. Change the container-pool-confMaximumSize from 100 to whatever you need. I've read the jboss.xml DTD (http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd) and constructed my jboss.xml per its requirements (I think), but I still get errors when I deploy the JAR file. Here are the contents of my jboss.xml, can anyone tell me what is wrong with it? I wasn't sure what to use as the value for the required element feeder-policy, so I just used the one suggested in the DTD's comments. ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.0//EN http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd; jboss container-configurations container-configuration container-nameStateful Session Bean MasteringEJB/container-name container-pool-conf MaximumSize2/MaximumSize feeder-policyorg.jboss.ejb.plugins.TimedInstancePoolFeeder/feeder-policy feeder-policy-conf increment0/increment period0/period /feeder-policy-conf /container-pool-conf /container-configuration /container-configurations /jboss The error messages I get are appended below. Thanks, Erik 19:14:07,468 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss /jboss-3.0.7_jakarta-tomcat-4.1.24/server/default/deploy/Count.jar 19:14:07,796 ERROR [MainDeployer] could not create deployment: file:/C:/jboss/jb oss-3.0.7_jakarta-tomcat-4.1.24/server/default/deploy/Count.jar org.jboss.deployment.DeploymentException: Failed to load metadata; - nested thro wable: (java.lang.NullPointerException) at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:326) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) at $Proxy3.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen tScanner.java:435) at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe ploymentScanner.java:656) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:507) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:217) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. loop(AbstractDeploymentScanner.java:230) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. run(AbstractDeploymentScanner.java:207) Caused by: java.lang.NullPointerException at org.jboss.metadata.ConfigurationMetaData.importJbossXml(Configuration MetaData.java:236) at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMeta Data.java:524) at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:184) at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:321) ... 16 more 19:14:07,890 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment [EMAIL PROTECTED] url=file:/C:/jboss/jboss-3.0 .7_jakarta-tomcat-4.1.24/server/default/deploy/Count.jar, deployedLastModified=0 } org.jboss.deployment.DeploymentException: Failed to load metadata; - nested thro wable: (java.lang.NullPointerException) at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:326) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at
Re: [JBoss-user] Secured bean call from MBean
Hi Sebastian, The normal solution is to get the MBean to do a JAAS login using the client-login module. In 3.2 it should be possible to write it as an XMBean with an interceptor that does run-as processing. Such an interceptor doesn't currently exist AFAIK. Regards, Adrian On Mon, 2003-07-07 at 23:34, Sebastian Hauer wrote: Hi, I want to make a bean call to a secured bean from an Mbean. The Mbean has no security information associated with its calling thread and can therefore not do this. I was wondering what one should do in such a scenario. I don't want to remove the security context from the bean and was wondering what's the right thing to do here? So far I could only think of writing my own user name (no password) login module and setting up a new JAAS security domain for the Mbean JAAS authentication. Would this still be considered secure, as I am only using this code inside the app server or did I forget about something? Regards, Sebastian --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss dynamic ql problem
Don't you want ?1 instead of a1 or maybe 'a1' Regards, Adrian On Mon, 2003-07-07 at 19:14, wrote: Hi, I have a dynamic ql issue. Does anyone has working examples for dynamic-ql and share them with jboss -users? I am stuck with the following dynamic ql errors. Thanks J.P. in the ejb-jar.xml, here is the piece: query query-method method-nameejbSelectABCD/method-name method-params method-paramjava.lang.String/method-param method-paramjava.lang.Object[]/method-param /query-method ejb-ql/ /query in the jbosscmp-jdbc.xml, here is the piece: query query-method method-nameejbSelectABCD/method-name method-params method-paramjava.lang.String/method-param method-paramjava.lang.Object[]/method-param /query-method dynamic-ql/ /query --- In the program, I construct: String sql_str=SELECT OBJECT(obj) FROM xyzTable obj WHERE obj.f1 = a1 AND obj.f2 = a2; and call jbSelectABCD(sql_str, new Object[]{}); - the error log messages I got are: DEBUG [ejbSelectABCD] DYNAMIC-QL: SELECT OBJECT(obj) FROM xyzTable obj WHERE obj.f1 = a1 AND obj.f2 = a2 ERROR [STDERR] javax.ejb.FinderException: Error compiling ejbql: org.jboss.ejb.plugins.cmp.ParseException: Encountered a1 at line1, column ... Was expecting one of: CONCAT SUBSTRING... ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCDynamicQLQuery.execute(JDBCDynamicQLQuery.java:74) org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCSelectorBridge.execute(JDBCSelectorBridge.java:64) __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Some unofficial performance results
Due to ECperf use requirements, we can't report anything too concrete. Some unofficial information :- For ECperf 1.1 on our meagre test configuration, the standard JBoss 3.2.0 distribution fails at txRate=1 for a Sun JDK 1.4.1_01 - failures with manufacturing and orders response times and failure to meet targets by substantial margins, up to 30 percent below. With the changes, we were able to get to txRate=2 without failure. At txRate=3, response times passed but the targets failed by up to 5 percent of the required values. So the performance improvements appear to deliver substantial benefits. We also measured responses against our own test application on the Sun JDK on Windows and determined a decrease in the reponse time of 20 percent on measurements taken in a previous study. JonB smime.p7s Description: S/MIME cryptographic signature