[JBoss-user] "The art of EJB deployment"
Hi, This JavaWorld article covers EJB deployment on WebLogic, WebSphere and JBoss: http://www.javaworld.com/javaworld/jw-08-2001/jw-0803-ejb.html Regards -Laurens ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem with Handle.getObject() and Resin
Hi, I'm going to use JBoss/Tomcat for production but want to use Resin for development because Resin is much easier to test and develop servlets with. However, I get an error when I call Handle.getEJBObject(). (Looking up, and working with, Home interfaces works fine.) This is the code in my test JSP: Object ref=new javax.naming.InitialContext().lookup("java:comp/env/HelloEJB"); HelloHome home=(HelloHome)ref; // Should use PortableRemoteObject.narrow(), but casting also works with JBoss Hello hello=home.create(); // This works. The session bean is created. hello.getHandle().getEJBObject(); // This yields an error, see the stacktrace below This is the exception stacktrace: java.rmi.ServerException: Could not get EJBObject; nested exception is: com.caucho.naming.NamingExceptionWrapper: java.lang.ClassNotFoundException: com.sun.jndi.url.HelloEJB.HelloEJBURLContextFactory java.lang.ClassNotFoundException: com.sun.jndi.url.HelloEJB.HelloEJBURLContextFactory at com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:390) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:195) at com.caucho.util.CauchoSystem.loadClass(CauchoSystem.java:359) at com.caucho.naming.SchemeContext.getURLObject(SchemeContext.java:286) at com.caucho.naming.SchemeContext.lookup(SchemeContext.java:116) at javax.naming.InitialContext.lookup(InitialContext.java:350) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessHandleImpl.getEJBObject(State lessHandleImpl.java:48) at _hello__jsp._jspService(/hello.jsp:18) at com.caucho.jsp.JavaPage.service(JavaPage.java:87) at com.caucho.jsp.JavaPage.subservice(JavaPage.java:81) at com.caucho.jsp.Page.service(Page.java:398) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:166) at com.caucho.server.http.Invocation.service(Invocation.java:272) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158) at com.caucho.server.TcpConnection.run(TcpConnection.java:140) at java.lang.Thread.run(Thread.java:484) JBoss is linked to Resin's JNDI context this way: (This is Resin-specific configuration.) java:comp/env org.jnp.interfaces.NamingContextFactory I sent a posting to the Resin interest list over a week ago and didn't get any replies. Perhaps someone on this list help me out. Invoking Handle.getEJBObject() in a standalone application works fine, BTW. Regards -Laurens ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Saving HttpSession attributes between EAR deployments
Hi, I'm using JBoss 2.2.2 + Tomcat 3.2.2. Is it possible to save the HttpSession attributes between EAR deployments? The objects I'm storing in the session are all serializable. However, when an EAR is redeployed the session is invalidated. Regards -Laurens ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] When will EJB 2.0 CMP be implemented?
Hi, When will JBoss offer EJB 2.0 CMP? I just found out that CMP is greatly improved in the 2.0 spec and the features are very interesting. Will it be implemented in JBoss 3? Thanks -Laurens ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Opta2000/Minerva pool combination, hang at startup
Hi, I solved the problem. I must make sure SQL Server is running (I have it running on my development machine). If SQL Server is not running the Minerva pool driver hangs during startup. Thanks for reading -Laurens -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Laurens M. Fridael Sent: zondag 17 juni 2001 19:01 To: Jboss-User Subject: [JBoss-user] Opta2000/Minerva pool combination, hang at startup Hi, I'm having trouble with the Opta2000 (version 2.05) driver in conjunction with the Minerva pool. JBoss *sometimes* hangs at startup on my Windows98 development machine. Other times it runs fine. The logs on the console say this: [SQLServer] Starting [SQLServer] XA Connection pool SQLServer bound to java:/SQLServer and then there is no message of SQLServer having been "started". There are no further messages about the applications being deployed and services being started and so forth. The SQLServer pool is configured this way in jboss.jcml: SQLServer org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l jdbc:inetdae:127.0.0.1?database=musicstore 120 sa 1 10 false false false true 12 180 false false 1.0 I'm using the Minerva pool with the standard Opta2000 driver because I couldn't get a Opta2000 DataSource implementation to work. The version 2.05 drivers do not support transactions. When I try to use a CMP bean the logs in the console explicitly state that the com.inet.tds.XDataSource does not support transactions. Anyway, sometimes it works fine and other times it hangs. The configuration files are identical. I know Windows98 is probably not a good choice for deployment but it should work fine for development. Thanks -Laurens ___ 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] Opta2000/Minerva pool combination, hang at startup
Hi, I'm having trouble with the Opta2000 (version 2.05) driver in conjunction with the Minerva pool. JBoss *sometimes* hangs at startup on my Windows98 development machine. Other times it runs fine. The logs on the console say this: [SQLServer] Starting [SQLServer] XA Connection pool SQLServer bound to java:/SQLServer and then there is no message of SQLServer having been "started". There are no further messages about the applications being deployed and services being started and so forth. The SQLServer pool is configured this way in jboss.jcml: SQLServer org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l jdbc:inetdae:127.0.0.1?database=musicstore 120 sa 1 10 false false false true 12 180 false false 1.0 I'm using the Minerva pool with the standard Opta2000 driver because I couldn't get a Opta2000 DataSource implementation to work. The version 2.05 drivers do not support transactions. When I try to use a CMP bean the logs in the console explicitly state that the com.inet.tds.XDataSource does not support transactions. Anyway, sometimes it works fine and other times it hangs. The configuration files are identical. I know Windows98 is probably not a good choice for deployment but it should work fine for development. Thanks -Laurens ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user