[JBoss-user] Porting to and from JBoss experiences...
I am giving a talk at the New England Java Users Group in the near future on portability of EJB 1.1 code. I have had some experience with this with WebLogic and JBoss but I very interested to hear other peoples experiences and thoughts on the subject. TIA, Ian. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JSP compilation error (JBoss+Tomcat)
I had a problem just like this recently. I ended up hacking around it by putting a second copy of common.jar in WEB-INF/lib. As far as the ejb1.jar - create a client version of the jar (home and remote i/f classes only) and put that in WEB-INF/lib. Sorry this isn't more helpful! - Original Message - From: "Adison" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 26, 2001 2:59 AM Subject: [JBoss-user] JSP compilation error (JBoss+Tomcat) > Hi all, > > I am deploying an EAR that contains EJB and WAR. > The EJB and WAR both uses some common classes (stored in a JAR file, say > common.jar) > > So here's the structure of the EAR file: > > example.ear > META-INF/ > application.xml > web.war > META-INF/ > MANIFEST.MF (Class-Path: lib/common.jar ejb1.jar) > (some jsp files) > ejb1.jar > META-INF/ > MANIFEST.MF (Class-Path: lib/common.jar) > lib/ > common.jar > > > The EAR deploys just fine. However, when I tried to run the JSP (Apache > Jasper), it complains about not finding the classes in both common.jar > and ejb1.jar. > > BTW, the application.xml specifies both the web.war and ejb1.jar modules > (but no common.jar). > > Have I packaged it right? > > Thanks for any help. > > Adison > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jikes with embedded tomcat service
Hi, I would like to speed up our jsp compilations so I have been trying to get Tomcat to use Jikes. I have search the usual places and I've tried to uncomment the section in tomcat\conf\web.xml to allow jikes to compile the jsps. This doesn't seem to have made the difference I would have imagined so I suspect that this setting isn't taking effect. My setup is jboss+tomcat 222 on Windows 2k with Oracle on the back end. Has anyone successfully managed to configure jboss+tomcat to work with jikes to compile jsps? TIA Ian. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 2.2.1 / Oracle 8i Transaction Problem : URGENT
Doug, Are you closing your JDBC connections in each method that you use them? i.e. public remote1() { Connection con; try { // get Connection do inserts or whatever; } catch ( SQLException e ) { } finally { // also close any open statement objects if ( con != null ) con.close() } } Ian. - Original Message - From: "Doug Newton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 30, 2001 5:34 PM Subject: [JBoss-user] JBoss 2.2.1 / Oracle 8i Transaction Problem : URGENT > We are using a simple Stateless Session EJB architecture that utilizes > Container Managed Transactions and Connection Pools set up by JBoss. > > When we use an Oracle 8i database, transactions appear to be committed from > the point of view of the Application (data added or updated appears in new > queries), BUT, the same queries done by command-line against the Oracle > database show that the new/updated data has not been committed yet. > > Only after JBoss is shut down properly, does the new/updated data get > committed. (This had some disastrous results when a power failure took down > the server without a proper shutdown of JBoss...) > > We are using exactly the configuration given in the JBoss documentation on > the website to create the Oracle connection pool. > > Furthermore, when we switch to MySQL, again using exactly the configuration > given in the JBoss documentation on the website, there is no problem. > Everything works as it should. > > Does anyone know what the problem here is? I am new to JBoss, and don't > know much about Oracle, so I assume I have a configuration error with one of > the two applications. > > I went searching through the JBoss docs and the mailing-list archive with no > luck... > > Any help ASAP will be greatly appreciated. If someone needs any addition > info to make a diagnosis, just let me know. > > Thanks in advance for your time and help. > > --Doug Newton > [EMAIL PROTECTED] > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Oracle Trigger Problem
I am doing something similar to this except that I am directly getting the sequence.nextval in the ejbCreate (rather than using a trigger) and setting my primary key data field in the bean to this value: ejbCreate ... { this.id = // get next value from sequence } This seems to work great. Ian. - Original Message - From: "danch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 5:13 PM Subject: Re: [JBoss-user] Oracle Trigger Problem > What do you return from ejbCreate? this should be an instance of your > primary key class, but if you generate the key value based on a trigger, > i don't see how you can do this. > > -danch > > > Creighton Kirkendall wrote: > > > > I have a table that has a primary key. I have setup a trigger to > > auto-increment with a sequence in oracle. When I call my ejb-create > > method everything seem to work fine. The record is inserted. However > > if I then try to call the getPrimaryID() method (this is the primary > > key an int) it returns 0 no matter what. And if I try to set any > > field it looks like it works however nothing is actually changed in > > the database. I hope someone out there can help me. > > > > > > Creighton Kirkendall > Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. > If you have received this message in error, please notify the sender immediately by reply e-mail > and destroy the original communication. > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP vs BMP
Candide, If you are using CMP JBoss provides finder methods (for free!) for all of the bean attributes. Example: public class MyBean implements EntityBean { public String name; public Integer height; ... } In your home i/f you can just declare methods: public collection findByName () throws FinderException, RemoteException; public collection findByHeight () throws FinderException, RemoteException; The naming convention is significant - there is documentation on the web site regarding this. This is one of the really nice featues about JBoss. Ian. - Original Message - From: "fractals" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 8:08 AM Subject: [JBoss-user] CMP vs BMP > > First of all, thanks to Sacha Labourey and Chris Kimpton: everything works > fine now, and fast. I just had to understand that ejb's don't necesseraly > HAVE TO be used everywhere. > Now, another performance-related question: > > I've read somewhere in the JBoss tutorial that the default behavior of the > container when asked to search for a specific information concerning an > ejb's field is to instantiate all the beans and do a lookup inside the > fields of each object. I wrote myself a couple of finder methods which > return primary keys. Why in the world can't JBoss write the trivial SQL > itself for such things as a "field lookup" (say for something like: select > id from users where firstname='Candide') ? > > However, I can always write the trivial SQL myself, but what a pitty, don't > you think ? > > Candide Kemmler > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] war files
Yes you can deploy war files in jboss just put them in the deploy directory. - Original Message - From: "toby cabot" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 04, 2001 4:04 PM Subject: Re: [JBoss-user] war files > > Is it possible to deploy war files with Jboss? Are there special > > deployment descriptors necessary? Do one have to package them in > > ear files or is it possible to deploy them as raw war files? Where > > would they go? And where would you define the context? > > Christian, > > Not a complete answer, but in the jboss-tomcat 2.0 distribution there's > a file called: > > jboss-tomcat-2.0/jboss-2.0-FINAL/deploy/tomcat-test.ear > > It's got a jar and a war in it. > > HTH, > Toby > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ServerException: Load failure - passivation problem?
Hi,I am a 'first time caller - long time listener' and would like to say thatJBoss is a great product - I spent over a year working with WLS and JBossbeats it in may ways - well done everyone everyone who works on it.I am encountering a problem which has been seen before with JBoss 2.0 - i.e.the server working fine then after being left unattended/unused for a whilethrows a ServerException: Load failed. I did a pretty comprehensive searchof the old mailing list archive and Marc Fleury said that this was fixed onNovember 13 2000. I noticed that quite a few files in the JBoss-tomcat.ziparchive (the FINAL-2.0 release) are dated November 14 2000 (although someare earlier). I am wondering if this fix ever got into the final release?Is this fixed in 2.1? I downloaded the jboss-tomcat.zip for the 2.1-beta,but I've noticed that that there aren't all the usual helpful scripts andpre-build conf directories. Before I go racing off installing 2.1-beta Iwould like to know if it is necessary.Incidentally I noticed that when I re-run my servlet which calls the(stateless) session bean (which calls a bunch of entities in a for loop) itcroaks on the 50th iteration of the for loop (which is suspiciously the samenumber as the min cache size for the beans in the standardjboss.xml) - Idon't know exactly the significance of this.TIA,Ian.ps I am using JBoss 2.0 Final on Red Hat 7 with Postgresql as the back end.*** STACK TRACE:[Bean Cache] Passivated overaged bean ConfigurationSet with id = null[Bean Cache] Passivated overaged bean ConfigurationSet with id = null[Bean Cache] Passivated overaged bean ConfigurationSet with id = null[Bean Cache] Resized cache for bean ConfigurationSet: old size = 78, newsize = 50[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ProfileBuilder] ** after creating renderer[ConfigurationSet] TRANSACTION ROLLBACK EXCEPTION:Load failed; nestedexception is:java.lang.NullPointerException; nested exception is:java.rmi.ServerException: Load failed; nested exception is:java.lang.NullPointerException[ConfigurationSet] java.rmi.ServerException: Load failed; nested exceptionis:[ConfigurationSet] java.lang.NullPointerException[ConfigurationSet] java.lang.NullPointerException[ConfigurationSet] at java.lang.reflect.Field.get(Native Method)[ConfigurationSet] atorg.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getPkFieldValue(JDBCCommand.java:598)[ConfigurationSet] atorg.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setPrimaryKeyParameters(JDBCCommand.java:344)[ConfigurationSet] atorg.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.setParameters(JDBCLoadEntityCommand.java:92)[ConfigurationSet] atorg.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:157)[ConfigurationSet] atorg.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:77)[ConfigurationSet] atorg.jboss.ejb.plugins.jaws.JAWSPersistenceManager.lo
[JBoss-user] Passivation problem? java.rmi.ServerException: Load failed...
Hi, I am a 'first time caller - long time listener' and would like to say that JBoss is a great product - I spent over a year working with WLS and JBoss beats it in may ways - well done everyone. I am encountering a problem which has been seen before with JBoss 2.0 - i.e. the server working fine then after being left unattended/unused for a while throws a ServerException: Load failed. I did a pretty comprehensive search of the old mailing list archive and Marc Fleury said that this was fixed on November 13 2000. I noticed that quite a few files in the JBoss-tomcat.zip archive (the FINAL-2.0 release) are dated November 14 2000 (although some are earlier). I am wondering if this fix ever got into the final release? Is this fixed in 2.1? I downloaded the jboss-tomcat.zip for the 2.1-beta, but I've noticed that that there aren't all the usual helpful scripts and pre-build conf directories. Before I go racing off installing 2.1-beta I would like to know if it is necessary. Incidentally I noticed that when I re-run my servlet which calls the (stateless) session bean (which calls a bunch of entities in a for loop) it croaks on the 50th iteration of the for loop (which is suspiciously the same number as the min cache size for the beans in the standardjboss.xml) - I don't know exactly the significance of this. TIA, Ian. ps I am using JBoss 2.0 Final on Red Hat 7 with Postgresql as the back end. *** STACK TRACE: [Bean Cache] Passivated overaged bean ConfigurationSet with id = null [Bean Cache] Passivated overaged bean ConfigurationSet with id = null [Bean Cache] Passivated overaged bean ConfigurationSet with id = null [Bean Cache] Resized cache for bean ConfigurationSet: old size = 78, new size = 50 [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ProfileBuilder] ** after creating renderer [ConfigurationSet] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is: java.lang.NullPointerException; nested exception is: java.rmi.ServerException: Load failed; nested exception is: java.lang.NullPointerException [ConfigurationSet] java.rmi.ServerException: Load failed; nested exception is: [ConfigurationSet] java.lang.NullPointerException [ConfigurationSet] java.lang.NullPointerException [ConfigurationSet] at java.lang.reflect.Field.get(Native Method) [ConfigurationSet] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getPkFieldValue(JDBCCommand.java :598) [ConfigurationSet] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setPrimaryKeyParameters(JDBCComm and.java:344) [ConfigurationSet] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.setParameters(JDBCLoad EntityCommand.java:92) [ConfigurationSet] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:157 ) [ConfigurationSet] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntity Command.java:77) [Configur