[JBoss-user] JBoss Featured in Out-of-the-Box Open Source distribution
JBoss 3.2.1 is included in Out-of-the-Box 2.1, an intelligent distribution of over 100 Open Source projects for Java developers on both Linux and Windows. Major changes from 2.0: * Added Oracle and DB2 integration for JBoss and the sample projects * Semi-automatic database switching for JBoss and the samples after installation * Support for Red Hat, SuSE, and Mandrake Linux (in addition to Windows XP/2000) * Added PHP, phpMyAdmin, and phpBB for LAMP developers * Dozens of project updates, including JBoss, Apache, Struts, Hibernate, MySQL, PostgreSQL, etc. The free Community Edition is fully functional, does not expire, and does not require registration. It installs just over 25 of the 100+ projects, including JBoss, MySQL, and Castor, and comes with the Castor sample project and nearly all of the Enterprise Edition documentation. Please visit http://www.ejbsolutions.com for details or to download the free Community Edition. Thanks, Rod Rod Cope EJB Solutions, Inc. [EMAIL PROTECTED] --- 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] JBoss 3.0.7 Windows installer available
In case others would like something similar on Linux, the Community Edition of Out-of-the-Box works on both Windows and Linux. It optionally installs JDK 1.4.1_02, JBoss 3.2.0, MySQL 4.0.12, Ant 1.5.3, JUnit, and a bunch of other projects. It starts both JBoss and MySQL as a service on either Windows or Linux. It's free, does not expire, and does not require registration. Here's a direct link to the download page: http://www.ejbsolutions.com/downloads/obox/community/index.html BTW, we also offer technical support and consulting services for JBoss, Tomcat, Apache, Ant, MySQL, PostgreSQL, Hibernate, and the rest of the 100+ Open Source projects included in Out-of-the-Box. Happy Installing, Rod Rod Cope EJB Solutions, Inc. [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcel Ammerlaan Sent: Thursday, June 05, 2003 11:43 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss 3.0.7 Windows installer available Hi, When deploying one of our applications for our clients, we needed an installer for JBoss on the windows platform so we developed one. This installer is now available (without the application itself) for everyone to enjoy. It basically installs JBoss 3.0.7 with an optional JRE and starts JBoss as a service (on Win2k+). The installer can be downloaded here: http://www.artefact.com/?src=jbosszone=maatwerk (the pages are in dutch, but the installer and readme file are in english). regards, Marcel Ammerlaan Artefact Software Consultancy. --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] MySql, Transactions and deployment
Brian, I'm not sure about 3.23.x, but on 4.0.x and higher you can start the database with --default-table-type=InnoDB to do what you need. HTH, Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian McSweeney Sent: Saturday, April 05, 2003 4:09 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] MySql, Transactions and deployment Hi all, I'm using mysql version 3.23.52 I've read that for transactions to be supported you have to use the mysql process mysqld-max and have to have it set up to support transactions by enabling tables of type InnoDB or BDB as opposed to the default of type ISAM. My question is, I want to be able to create tables by dropping an ear into JBoss using CMP, however I think the default CREATE TABLE creates tables as type ISAM, which does not support transaction. Is there a way to include the clause type=InnoDB using hot deploy in JBoss to enable transaction support? thanks, Brian --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss 3.2RC4 and Hibernate2
Anders, I had almost exactly the same problem with the latest Hibernate2 beta 4 and JBoss 3.2RC4. I also came up with exactly the same workaround independently - replacing bcel.jar with cglib.jar. As Scott says, it may be something Gavin can change relative to avoiding Class.forName(). Until then, however, you can deploy your application as a scoped ear, jar, war, or sar to avoid this problem. I've used this technique successfully as a replacement for the bcel.jar/cglib.jar shuffle. Place a line similar to this: loader-repository com.ejbsol.oboxsample.hibernate:loader=hjasample.ear /loader-repository in your jboss-app.xml, jboss-service.xml, jboss-web.xml, etc. The JBoss class loading documentation should help clarify this usage. We're deploying Hibernate as a JBoss service and use the same loader-repository name in jboss-service.xml in the sar and in jboss-app.xml in the ear to make everything happy. HTH, Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anders Engström Sent: Thursday, April 03, 2003 10:39 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss 3.2RC4 and Hibernate2 Hi. We're having some trouble using Hibernate2 (beta2) on JBoss 3.2RC4. I've discussed the problem on the Hibernate discussion forum (sourceforge) and managed to find a work-around... sort-of :) Below is the initial post (the entire thread can be found at http://sourceforge.net/forum/forum.php?thread_id=841642forum_id=128638): From Hibernate2 forum: Hi. We're having some problem getting Hibernate2 (b4) to run on JBoss (3.2RC4). We use Hibernate from a Stateless Session EJB, and get the following stack-trace from JBoss when hibernate initializes: [...] 2003-04-01 22:33:40,078 INFO [net.sf.hibernate.cfg.Environment] Hibernate 2.0 beta 4 2003-04-01 22:33:40,086 INFO [net.sf.hibernate.cfg.Environment] loaded properties from resource hibernate.properties: {hibernate.dialect=net.sf.hibern ate.dialect.PostgreSQLDialect, hibernate.show_sql=true, hibernate.connection.datasource=java:/PostgresDS} 2003-04-01 22:33:40,095 INFO [net.sf.hibernate.cfg.Environment] JVM proxy support: true 2003-04-01 22:33:40,107 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: se/mobilecare/model/ItemModel.hbm.xml 2003-04-01 22:33:40,287 DEBUG [net.sf.hibernate.util.DTDEntityResolver] trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/ 2003-04-01 22:33:40,289 DEBUG [net.sf.hibernate.util.DTDEntityResolver] found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath 2003-04-01 22:33:40,632 INFO [net.sf.hibernate.mapping.Collection] Mapping class: se.mobilecare.model.ItemModel - item 2003-04-01 22:33:41,418 WARN [org.jboss.mx.loading.ClassLoadingTask] Duplicate class found: org.apache.bcel.generic.RETURN Current CS: (file:/home/azure/jboss-3.2.0RC4/server/default/tmp/deploy/server/default/de ploy/mobilecare-app.ear/lib/ejb/cglib.jar/75.cglib.jar no cert ificates) Duplicate CS: (file:/home/azure/jboss-3.2.0RC4/server/default/lib/bcel.jar no certificates) 2003-04-01 22:33:41,419 DEBUG [org.jboss.mx.loading.ClassLoadingTask] Ignoring source of: org.apache.bcel.generic.RETURN from CodeSource: (file:/home/a zure/jboss-3.2.0RC4/server/default/lib/bcel.jar no certificates), due to order(0=0), accepted CodeSource: (file:/home/azure/jboss-3.2.0RC4/server/de fault/tmp/deploy/server/default/deploy/mobilecare-app.ear/lib/ejb/cglib.jar/ 75.cglib.jar no certificates) 2003-04-01 22:33:41,439 ERROR [org.jboss.ejb.plugins.LogInterceptor] Unexpected Error: java.lang.NoClassDefFoundError: org/apache/bcel/generic/DCONST at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at net.sf.cglib.CodeGenerator.class$(CodeGenerator.java:63) at net.sf.cglib.CodeGenerator.init(CodeGenerator.java:105) at net.sf.cglib.KeyFactoryGenerator.init(KeyFactoryGenerator.java:93) at net.sf.cglib.KeyFactory.create(KeyFactory.java:114) at net.sf.hibernate.impl.SessionFactoryImpl.clinit(SessionFactoryImpl.java:29 7) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:57 1) at se.mobilecare.services.ejb.ItemServiceBean.getSession(Unknown Source) at se.mobilecare.services.ejb.ItemServiceBean.findAllItems(Unknown Source) 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.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles sSessionContainer.java:629) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach edConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe ssionInstanceInterceptor.java:72) at
[JBoss-user] SAR deployment problem w/3.2RC4
I have a custom SAR that deploys okay in 3.2RC2, but not in RC4. The problem is that RC4 doesn't find my utility jars in the root of the SAR like RC2 does. Adding a class-path attribute to the sar manifest doesn't help. I found that I can move the utility jars to server/default/lib and reference them in a jboss-service.xml classpath element, but that's definitely something I'd rather avoid. Any ideas? Thanks, Rod --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SAR deployment problem w/3.2RC4
Scott, It turns out that the problem was caused by the latest Hibernate jar (one of my utility jars in the root of the sar) containing ra.xml in its meta-inf directory. Once I removed it and dealt with some RC2 vs. RC4 class loading differences, everything is once again working just fine. Thanks for your help, Rod --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [Jboss-user] Serializable Transactions?
In JBoss 3.0+, it's a config-property named TransactionIsolation you need to add to your data source deployment. Here's an example from our mysql-service.xml: depends optional-attribute-name=ManagedConnectionFactoryName !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=LocalTxDS,name=MySqlDS attribute name=JndiNameMySqlDS/attribute attribute name=ManagedConnectionFactoryProperties properties config-property name=ConnectionURL type=java.lang.Stringjdbc:mysql://localhost:3306/jbossdb/config-prop erty config-property name=DriverClass type=java.lang.Stringcom.mysql.jdbc.Driver/config-property !--set these only if you want only default logins, not through JAAS -- config-property name=UserName type=java.lang.Stringroot/config-property config-property name=Password type=java.lang.Stringpassword/config-property config-property name=TransactionIsolation type=java.lang.StringTRANSACTION_SERIALIZABLE/config-property /properties /attribute !--Below here are advanced properties -- !--hack-- depends optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployme nt,name=JBoss LocalTransaction JDBC Wrapper/depends /mbean /depends Rod Cope EJB Solutions, Inc. [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of David Jencks Sent: Thursday, December 05, 2002 12:00 PM To: [EMAIL PROTECTED] Subject: Re: [Jboss-user] Serializable Transactions? It's always a good idea to tell us what jboss version you are using. I think you can set transacction isolation for all jboss 3++ versions in the datasource configuration file. As I recall you can use a string == the constant name. If it's not in an example file look in the ra.xml for one of the wrappers. I think it is also possible to set this in 2.4, but don't remember the details. david jencks On 2002.12.05 10:09:13 -0500 Jonas Engman wrote: I'm having some troubles with deadlocks with a SessionBean and three Entity beans and an easy solution would be to run all transactions serialized. Is that somehow possible in JBoss? Thanks Jonas --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] run JBoss 3.0.3 with MySQL
João, It's true that you can only specify one datasource/datasource-mapping in the defaults section, but you can also specify one datasource/datasource-mapping pair per entity definition to override the default. For example, in your jbosscmp-jdbc.xml, you could have something like this: jbosscmp-jdbc defaults datasourcejava:/DefaultDS/datasource datasource-mappingHypersonic SQL/datasource-mapping /defaults enterprise-beans entity ejb-nameSomeEJB/ejb-name datasourcejava:/ECPerfDS/datasource datasource-mappingmySQL/datasource-mapping table-namesomeTable/table-name cmp-field field-namesomeField/field-name column-namesomeColumn/column-name /cmp-field . . . Hope that helps, Rod Free Out-of-the-Box docs home: http://www.ejbsolutions.com/products/obox/community/index.html -Original Message- From: João Clemente [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 24, 2002 1:29 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [JBoss-user] run JBoss 3.0.3 with MySQL On Wed, 20 Nov 2002 22:42:09 -0700 Rod Cope [EMAIL PROTECTED] wrote: I just posted this link, but it seems to be called for again. Step-by-step JBoss + MySQL configuration: http://www.ejbsolutions.com/products/obox/community/ch18.html Rod First of all, Rod, thank you for this link. However, this is a step-by-step on how to set JBoss to use mysql instead of hypersonic... I followed the steps trying to extrapolate whatever was needed to be done to use mysql without touching hypersonic or the defaultds, and I got is almost right: I've deployed a mysql-service.xml mapping jdbc:mysql://localhost:3306/jbossdb with a JNDI name of MySqlDS and a mysql-ecperf-service.xml mapping jdbc:mysql://localhost:3306/ecperfdb with a JNDI name of ECPerfDS No problem 'till now and I can deploy this and see they register and everything. However, as you state in the last section of the page you point out, to use mysql with CMP you need to configure something like this: datasourcejava:/DefaultDS/datasource datasource-mappingHypersonic SQL/datasource-mapping So I think I need the following lines somewhere: datasourcejava:/ECPerfDS/datasource datasource-mappingmySQL/datasource-mapping ... The question is ... where?? I think I cant put this in the place we find the defaultDS as that one is inside a default/default tag. Any tip? -- João Pedro Clemente - jpcl (at) rnl ist utl pt Why can't women put the toilet seat back up? --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] how to produce pdf files like jboss getting started guide?
You may find this diagram and description useful. It shows and tells how we generate all our documentation in multiple formats from a single DocBook XML source on the Out-of-the-Box project: http://www.ejbsolutions.com/xml-pub.html Below is a link to HTML generated from DocBook source, which just happens to show JBoss installation and configuration details: http://www.ejbsolutions.com/products/obox/community/ch17.html Sorry, I don't have a link to generated PDF from the same source. HTH, Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of James Higginbotham Sent: Wednesday, November 20, 2002 8:35 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] how to produce pdf files like jboss getting started guide? Couldn't you just do DocBook and a PDF FO using Xalan? I use DocBook for about everything, esp project docs and such... It's a little cumbersome doing XML rather than WYSIWYG, but I can be in Emacs and edit my document as well as go to my code easily, and I can target HTML or whatever. Just my $0.02 James -Original Message- From: linuxman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 8:02 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] how to produce pdf files like jboss getting started guide? Thanks jason! But I like latex or lyx, not m$ word:-). Any other tools? espcially open source software? Jason Essington wrote: they use ms word On Wednesday, November 20, 2002, at 05:26 PM, linuxman wrote: I's sorry out of the topic, but anyone would like to tell me how to produce perfect pdf files like jboss getting started guide book? Thanks in advance! linuxman --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss- user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] run JBoss 3.0.3 with MySQL
I just posted this link, but it seems to be called for again. Step-by-step JBoss + MySQL configuration: http://www.ejbsolutions.com/products/obox/community/ch18.html Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of David Jencks Sent: Wednesday, November 20, 2002 8:24 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] run JBoss 3.0.3 with MySQL On 2002.11.20 17:08:32 -0500 João Clemente wrote: What do i need to do to run JBoss 3.0.3 with MySQL ? To begin with, you need to read this http://prdownloads.sourceforge.net/jboss/ JBoss.3.0QuickStart.Draft3.pdf. I'm reading the quick start and I'm still confused... I've looked the example files under docs/examples/jca and found the mysql-service.xml. What I'm still not sure is: Do we really need to configure the Security Domain? no. I got messed up when reading the comments on that mysql-service.xml file. Sorry its so confusing. I should update all those docs, but it's not my favorite activity. What I'm trying to do is to run ECPerf with the files from JBoss's CVS, and I found a file that I think it needs to be deployed: ecperfdb-ds.xml that replaces a *-service.xml file in 3.2 and 4. It won't work in 3.0.x. But, in that file, we see a datasource definition, a jndi name, a connection-url, username, passwd, ... The info included seems similar to the one inside the mbeans that are deployed through mysql-service.xml I think that this ecperfdb-ds should somehow refer to the mysql mbean, but I'm somehow lost in the middle: a) If mysql-service mbean already define a connection string, why is it needed here again? b) If mysql-service needs a JAAS security domain (where you define the user/pass) why do you have it here again? Maybe I only need to get mysql-service and use it naming the jndi and name values to ECPerfDB ? yes. I haven't looked at the quickstart in a while. The examples are set up to use the default username and pw in the ManagedConnectionFactoryProperties attribute, and you don't need to set up a login module. david jencks -- João Pedro Clemente - jpcl (at) rnl ist utl pt Why can't women put the toilet seat back up? --- This sf.net email is sponsored by: Battle your brains against the best in the Thawte Crypto Challenge. Be the first to crack the code - register now: http://www.gothawte.com/rd521.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss featured in Out-of-the-Box
FYI, JBoss 3.0.3 is featured in Out-of-the-Box 1.0, a distribution of Open Source projects. Free Community Edition for Linux documentation on basic JBoss installation and configuration with MySQL can be found here: Installation: http://www.ejbsolutions.com/products/obox/community/ch17.html Basic Configuration (simple security, MySQL integration, etc.) http://www.ejbsolutions.com/products/obox/community/ch18.html