Re: [JBoss-user] SQLJ in EJB connecting to Oracle
Hi Toby, Toby Allsopp wrote: I'm still concerned about this variable "c". It's not declared in that bit of code, so it looks like it's a member field of the bean class. I'd make it a local variable unless you have a really good reason. Yes, that variable is a local variable, but it is defined before the try-catch block where I make the connection. But its local to every method of the EJB. Now, we have succsefully deployed and working several EJBs with SQLJ. Jose R. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tomcat authentication problem
This problen is most probably caused by the inability of tomcat services to pass on the credential properly to the jBoss. The solution is to update your tomcat-services.jar with the latest code in contrib module. good luck ~jm Hein Saris wrote: Hi, I have successfully installed jBoss2.2+Tomcat and have deployed an application. I have secured my EJB beans with JAAS. When I access my beans with a Java client, I can use my ejb beans without any problem after logging in. If I try to access my beans from within a jsp (through a bean), I get the following error: [PersonBean] javax.security.auth.login.LoginException: java.lang.NullPointerException at org.jboss.security.auth.SecurityAssociationHandler.getPassword(SecurityAssociationHandler.java:125) at org.jboss.security.auth.SecurityAssociationHandler.handle(SecurityAssociationHandler.java:83) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:731) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:727) at org.jboss.security.plugins.samples.UsernamePasswordLoginModule.getUsernameAndPassword(UsernamePasswordLoginModule.java:133) at org.jboss.security.plugins.samples.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:76) at org.jboss.security.plugins.samples.JaasServerLoginModule.login(JaasServerLoginModule.java:105) at java.lang.reflect.Method.invoke(Native Method) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125) at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528) at javax.security.auth.login.LoginContext.login(LoginContext.java:449) at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:332) at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:301) at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:193) at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:209) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:144) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106) at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:436) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212) at $Proxy62.findByPrimaryKey(Unknown Source) at be.idewe.planning.bean.PersonBean.processRequest(PersonBean.java:68) at planning._0002fplanning_0002fperson_0002ejspperson_jsp_1._jspService(_0002fplanning_0002fperson_0002ejspperson_jsp_1.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) [PersonBean]at javax.security.auth.login.LoginContext.invoke(LoginContext.java:650) [PersonBean]at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125) [PersonBean]at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531) [PersonBean]at java.security.AccessController.doPrivileged(Native Method) [PersonBean]at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528) [PersonBean]at javax.security.auth.login.LoginContext.login(LoginContext.java:449) [PersonBean]at
[JBoss-user] Adding new connection pool during runtime
Hi, I still have not found a way to add a connection pool to a new database at runtime. Can this be done with JBoss ? How ? Thanks, Avi. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] BindException when starting Jboss-tomcat2.2
Are you sure you do not have any other instance runing at the same time using the same address. ?? ~jm Arun wrote: when i start jboss using run.sh im getting this error [EmbeddedTomcat] Starting [EmbeddedTomcat] Starting EmbeddedTomcat 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /examples ) 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /admin ) [EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error messages 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( ) 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /test ) [EmbeddedTomcat] java.net.BindException: Address already in use finally JBoss is started... Is there any problem thanx Arun ___ 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] Problem with JBoss+Tomcat+Posgresql
Hi everybody, I'm using Tomcat3.2, jdk1.2.2(or Jdk1.3), Postgreql7.0.2 under linux mandrake 7.2. After configuring jboss.jcml and jboss.conf, I try to start jboss and I've got nothing. Jboss begin to start using default config file and then it frozen and I've to do Ctrl-c. Have you got an idea ? Marc -- Jusqu'à 60 heures gratuites pour toute souscription à l'un des nouveaux Forfaits Liberty Surf http://register.libertysurf.fr/subscribe_fr/signup.php3 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Naming: IOException
Hi all, Once started JBoss 2.2, it raises the next exception after a few seconds: These are the messages in the console: Any ideas?? [Service Control] Started 17 services [Default] JBoss 2.2.0 FINAL Started in 0m:5s [Naming] java.io.IOException: Broken pipe [Naming]at java.net.SocketOutputStream.socketWrite(Native Method) [Naming]at java.net.SocketOutputStream.socketWrite(Compiled Code) [Naming]at java.net.SocketOutputStream.write(Compiled Code) [Naming]at java.io.ObjectOutputStream.drain(Compiled Code) [Naming]at java.io.ObjectOutputStream.setBlockData(Compiled Code) [Naming]at java.io.ObjectOutputStream.writeObject(Compiled Code) [Naming]at org.jnp.server.Main.run(Main.java:160) [Naming]at java.lang.Thread.run(Thread.java:479) Thanks... Jose R. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Naming: IOException - NETSTAT
Hi, We have discovered it. This happens when netsaint, a program to validate the status of applications, makes a ping to the JNDI port 1099. Is possible to show the status of JBoss in other way from a remote system? Cheers Jose R. Jose Ramon Diaz wrote: Hi all, Once started JBoss 2.2, it raises the next exception after a few seconds: These are the messages in the console: Any ideas?? [Service Control] Started 17 services [Default] JBoss 2.2.0 FINAL Started in 0m:5s [Naming] java.io.IOException: Broken pipe [Naming]at java.net.SocketOutputStream.socketWrite(Native Method) [Naming]at java.net.SocketOutputStream.socketWrite(Compiled Code) [Naming]at java.net.SocketOutputStream.write(Compiled Code) [Naming]at java.io.ObjectOutputStream.drain(Compiled Code) [Naming]at java.io.ObjectOutputStream.setBlockData(Compiled Code) [Naming]at java.io.ObjectOutputStream.writeObject(Compiled Code) [Naming]at org.jnp.server.Main.run(Main.java:160) [Naming]at java.lang.Thread.run(Thread.java:479) Thanks... Jose R. ___ 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] How to configure jboss-tomcat embbeded with IIS
Hi all, could anybody tell me how I can configure jboss-tomcat embbeded with IIS? Thanks in advance Antonio ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Help deploying Interest EJB from jboss docs.
Hi i am getting javax.naming.NameNotFoundException, when trying to run the InterestClient. I have followed the ejb docs exactlly. Packaged the ejb jar, putting it in the deploy dir,then running the client with; java -classpath jboss-client.jar;jbosssx-client.jar;jnp-client.jar; InterestClient What am i doing wrong? im on windows 2000. is it a classpath problem? Thanks alot for any help you can give! Harley Rana. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] problems starting jboss on win2k-box
Hi to all, I searched the list archive, but cant find any solution to my problem. I hope somebody can help me. If I start the run.bat I get the following Exception: Using configuration "default" javax.management.ServiceNotFoundException: Problems while parsing URL file:/D:/Tools/jboss/dist/conf/default/jboss.conf at javax.management.loading.MLet.getMBeansFromURL(MLet.java:410) at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369) at org.jboss.Main.init(Main.java:160) at org.jboss.Main$1.run(Main.java:94) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:90) JBoss PRE-2.1 Started in 0m:0s I am using jdk1.3.0_02 OS: win2k I started jboss succesfully on NT 4.0 with the same jboss-distribution. Thank you all. king regards Osman ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss
Is the latest version of jboss mature enough for commercial use? Other than the documentations that I can find from jboss.org, where else I can find jboss documentations, is there any downloadable version in pdf? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to configure jboss-tomcat embbeded with IIS
Sure... instructions are at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l -- Dewayne Hi all, could anybody tell me how I can configure jboss-tomcat embbeded with IIS? Thanks in advance Antonio ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Error getting InitialContext when running Tomcat separate from JBoss
The key jar file is jnp-client.jar and the key directory to place it is webapp/WEB-INF/lib. Looks like one of these is not happening. jim - Original Message - From: "Brett Palmer" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 5:59 PM Subject: [JBoss-user] Error getting InitialContext when running Tomcat separate from JBoss We are having problems connecting to a JBoss EJB from a servlet when running Tomcat in its own JVM. The error occurs when we try to get an InitialContext, and we get a org.jnp.interfaces.NamingContextFactory class not found exception. I believe we have put all the necessary Jboss libraries in the "webapps/myapp/lib" directory. This error does not occur when we try to access the EJB from a regular test client (JUnit test) or when we run Tomcat embedded with JBoss. The following is an output of our error. Any suggestions would be greatly appreciated. Thanks, Brett 28491 [Thread-7] INFO- get new ContainerContext() 28521 [Thread-7] INFO ContainerContext - ContainerContext - Getting TheUserSesion 28541 [Thread-7] ERROR ContainerContext - ContainerContext - Error with connect() javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory. Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) _ _ Get your FREE download of MSN Explorer at http://explorer.msn.com ___ 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] How to configure jboss-tomcat embbeded with IIS
Hi Dewayne, I think that doc, it`s only to Tomcat.My problem is that I don`t know which is the directory where the IIS has to point to.In a Tomcat + IIS configuration that directory is the application directory, but in a Jboss+Tomcat+IIS with an ".ear file" deployed in jboss\deploy, which is the directory? Thanks -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de Dewayne McNair Enviado el: jueves, 19 de abril de 2001 14:39 Para: [EMAIL PROTECTED] Asunto: Re: [JBoss-user] How to configure jboss-tomcat embbeded with IIS Sure... instructions are at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l -- Dewayne Hi all, could anybody tell me how I can configure jboss-tomcat embbeded with IIS? Thanks in advance Antonio ___ 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] How to configure jboss-tomcat embbeded with IIS
I'm not sure I understand the second sentence "... I don't know which is the directory...". Can you explain what you're trying to do? For the most part, configuring IIS+JBoss+Tomcat should be no different than configuring IIS+Tomcat. But, maybe I'm missing something... I think that doc, it`s only to Tomcat.My problem is that I don`t know which is the directory where the IIS has to point to.In a Tomcat + IIS configuration that directory is the application directory, but in a Jboss+Tomcat+IIS with an ".ear file" deployed in jboss\deploy, which is the directory? Thanks ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jBoss-Multiple Instances-LDAP Sharing
Hi, A couple of basic questions regarding running jBoss in a production environment a) Can I run multiple instances of jBoss on a single server? If so what changes are needed in the configuration? b) Can jBoss integrate with external LDAP products like ADS or Netcape LDAP? If this is possible can multiple jBoss servers share the same JNDI namespace? Would appreciate if anyone could some light on this. Regards, Vinay Menon ___ Get 100% private, FREE email for life from Excite UK Visit http://inbox.excite.co.uk/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tomcat authentication problem 2
I'm not a Tomcat expert, but I believe that on your client side (in JSPs and servlets, that is) you should be using Tomcat style login interceptors. There is a JBoss interceptor that picks up the Tomcat principal and credential and assigns the SecurityAssociation to the thread. This way, as long as you have the JBoss security interceptor after the Tomcat interceptor, JBoss will get the principal and credential that are associated with that user's session. -danch Tobias Seelinger wrote: Hi, I am using JBoss 2.2 with embedded Tomcat and I have written my own LoginModules for JAAS authentication. Calling secure Beans from a Java client seems to work, but calling them from embedded Tomcat leads to a Authentication exception. The exception gets thrown by the JBoss SecurityInterceptor, because the Principal delivered by the MethodInvocation is null. But: it is not always null (which may be easy to debug). The Tomcat JSP is calling a secure bean two times and sometimes the first call is succesfully handled by my LoginModule and the second call has a null Principal. Sometimes the first call leads to the exception... I am using a modified org.jboss.security.ClientLoginModule and it stores the Principal in a SecurityAssociation object (ThreadLocal). Doesn't Tomcat using several Threads to process requests from the same client/session ? If I store the Principal in one Thread and the session opens a new Thread, how does the Principal get updated ? This may be a reason for the behaviour described above. Tobias. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user 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
Re: [JBoss-user] DataSource, JDBC, and stuffs
Hi, I have exactly the same problem (please see email with subject: JNDI and Connection Pool, etc. From Pellegrini, John. Posted on Sun, 01 Apr 2001 06:49:56 -0700). Please, does anybody know the answer to this problem. thanks a lot, Raka --- Cokorda Raka Angga Jananuraga [EMAIL PROTECTED] wrote: Hi, I'm a newbie to EJB and JBoss. Now, I'm entering creating BMP entity bean chapter in my EJB book. I have trouble in deploying the bean, especially mapping a jndi name to a connection pool (?). Which files to configure, and how ? I can't find enough clues in JBoss documentation. I've searched the maillist archive, but found little reference. Any hints would be very appriciated. Thanks a lot, Raka __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] (no subject)
Help, I need a document for install jboss and petstore, before the patch jps1.1.1 go to srs/petstore/src/ modify build.xml and change my directory o jboss. before run sh build.sh and I get.. ... Copying 1 files to /usr/local/jps1.1.1/src/petstore/build/classes Compiling 97 source files to /usr/local/jps1.1.1/src/petstore/build/classes /usr/local/jps1.1.1/src/petstore/src/com/sun/j2ee/blueprints/petstore/util/JBossSecurityAdapter.java:12: Class org.jboss.security.SecurityAssociation not found in import. import org.jboss.security.SecurityAssociation; ^ /usr/local/jps1.1.1/src/petstore/src/com/sun/j2ee/blueprints/petstore/util/JBossSecurityAdapter.java:13: Class org.jboss.security.SimplePrincipal not found in import. import org.jboss.security.SimplePrincipal; ^ Note: /usr/local/jps1.1.1/src/petstore/src/com/sun/j2ee/blueprints/petstore/util/Calendar.java uses or overrides a deprecated API. Recompile with "-deprecation" for details. 2 errors, 1 warning BUILD FATAL ERROR: Compile failed, messages should have been provided. Please HELP Dario ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Finder method question
I'm wondering if it is possible to create a finder method for an attribute which is nested in another object attribute of my bean. For example, say I have an Employee bean with an attribute of type Person (non bean) which has an attribute of last and first name, and I want to make a method findByFirstName. Is this possible? And if so how is it done? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ?
Hi, I'm trying to authenticate servlets against a a JBoss realm. I've got the servlets and JSP authenticating against the org.apache.tomcat.request.SimpleRealm and tomcat-users.xml file. This works fine. But I know want to go to the next step and authenticate against a Jboss realm. Hence I've commented out the Tomcat security realm request interceptor from server.xml: !-- RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" /-- !-- JBoss, Map the current web user to the SecurityAssociation principal. -- RequestInterceptor className="org.jboss.tomcat.security.JbossRealm" / I have changed my jboss.properties to point to tomcat/auth.conf : java.security.auth.login.config==file:../conf/tomcat/auth.conf My auth.conf looks as follows: simple { org.jboss.security.plugins.samples.SimpleServerLoginModule required;}; other { org.jboss.security.plugins.samples.JaasServerLoginModule required; }; The security secions in my jboss.jcml file look as follows: !-- Security -- !-- Uncomment to enable the sample SRPVerifierStore service mbean code="org.jboss.security.plugins.SRPVerifierStoreService" name="Security:name=SRPVerifierStoreService" attribute name="JndiName"SRPDefaultVerifierSource/attribute attribute name="StoreFile"SRPVerifierStore.ser/attribute /mbean-- !-- Uncomment to enable the SRP login service mbean code="org.jboss.security.plugins.SRPService" name="service:name=SRPService" attribute name="JndiName"SRPServerInterface/attribute attribute name="VerifierSourceJndiName"SRPDefaultVerifierSource/attribute attribute name="AuthenticationCacheJndiName"SRPAuthenticationCache/attribute attribute name="ServerPort"10099/attribute /mbean-- !-- JAAS security manager and realm mapping -- mbean code="org.jboss.security.plugins.JaasSecurityManagerService" name="Security:name=JaasSecurityManager" attribute name="SecurityManagerClassName"org.jboss.security.plugins.JaasSecurityManager/attribute /mbean !-- Uncomment to enable the XML implementation of the JAAS policy mbean code="org.jboss.security.plugins.SecurityPolicyService" name="Security:name=SecurityPolicyService" attribute name="JndiName"DefaultSecurityPolicy/attribute attribute name="PolicyFile"sample_policy.xml/attribute /mbean-- As you can see fairly standard stuff a la the JAAS Howto. Finally my web.xml that configures my servlets has the following section which worked under the SimpleRealm authentication provided by Tomcat: security-constraint web-resource-collection web-resource-nameServ-C/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameUser/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameother/realm-name /login-config security-role role-nameUser/role-name /security-role security-role role-nameSuperuser/role-name /security-role I would expect , upon accessing the default page, a dialogue box to appeat asking for username and password, which would then be authenticated against the roles.properties and user.properties files. Where am I going wrong ? Cheers, Ijonas.
RE: [JBoss-user] jBoss-Multiple Instances-LDAP Sharing
I am interested in others comments as well. We have the same interest. I have had good luck in using the command line parameter settings for starting JBoss and I can actually get multiple instances running. Things get more complicated as one adds their own code. a) I found that the default in starting JBoss usings both conf and conf/default as the configuration directories. Simply start by making an exact copy of default using any other name (i.e. default2). Then you need to resolve all single global resources on the machine such that you don't collide with the first instance of JBoss (unless that is what you wanted). An example is the admin web page port. When starting JBoss, just add default2 as the first parameter. There is also a second parameter called the patchDir which I believe extends the classpath, however, I have not yet had a need for this nor have I figured this out yet. b) I am currently using iPlanet(Netscape) Directory Server 5.0beta. I can indeed share the same JNDI name space. The java.sun.com tutorial on JNDI covers LDAP setup. The examples all involve Netscape DirectoryServer so I was not surprized that everything I've tried works. Hope this helps. Sam -Original Message- From: K.V. Vinay Menon [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 7:24 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] jBoss-Multiple Instances-LDAP Sharing Hi, A couple of basic questions regarding running jBoss in a production environment a) Can I run multiple instances of jBoss on a single server? If so what changes are needed in the configuration? b) Can jBoss integrate with external LDAP products like ADS or Netcape LDAP? If this is possible can multiple jBoss servers share the same JNDI namespace? Would appreciate if anyone could some light on this. Regards, Vinay Menon ___ Get 100% private, FREE email for life from Excite UK Visit http://inbox.excite.co.uk/ ___ 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] jboss-jetty EAR
Hi, I have developed a couple of EJB's for some kind of shared calendar for which I have a web interface and a Java client. I run the servlets in JServ/Apache, which works very well, but for "prettyness" reasons and enhanced configurability, I'd like to package the whole thing in an EAR archive. I just installed jboss-jetty on my Linux box without problems (demos are ok). Does anybody know how to run an ear archive under jboss-jetty ? Thanks in advance. Candide Kemmler ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ?
You have to have a Tomcat realm ahead of the JbossRealm as the JbossRealm just mpas the credentials obtained by the Tomcat Realm onto the JBoss notion of the thread user. - Original Message - From: Ijonas Kisselbach To: jbUser Sent: Thursday, April 19, 2001 10:01 AM Subject: [JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ? Hi, I'm trying to authenticate servlets against a a JBoss realm. I've got the servlets and JSP authenticating against the org.apache.tomcat.request.SimpleRealm and tomcat-users.xml file. This works fine. But I know want to go to the next step and authenticate against a Jboss realm. Hence I've commented out the Tomcat security realm request interceptor from server.xml: !-- RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] ResultSet or minerva.ResultSetInPool
getUnderLyingResultSet returns a java.sql.ResultSet, and if you are using racle then it returns oracle.jdbc.ResultSet or something like that, you have to look up the exact class. you get a classcast exception because you think it is a Minerva resultset. getUnderLyingResultSet returns the actual driver's result set, not minervas filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jose Ramon Diaz Sent: Thursday, April 19, 2001 10:42 AM To: JBOSS Mail List Subject: [JBoss-user] ResultSet or minerva.ResultSetInPool Hi, We are trying to obtain a ResultSet from an Oracle database. We find a trouble with Minerva types, We are using JBoss 2.2, with JDBC 2.0 and Oracle 8.1.7. We are using MinervaPool driver for the JDBC. In our configuration files, - jboss.jcml: We use 'org.jboss.minerva.xa.XADataSourceImpl' in the Pool configuration - jboss.properties: #jboss.xa.xidclass=oracle.jdbc.xa.OracleXid First, is OraclePool (oracle.jdbc.xa.client.OracleXADataSource) better than MinervaPool (org.jboss.minerva.xa.XADataSourceImpl) ? Second, When we try to execute a ResultSet from the EJB it throws: [noticiasAccesoBD] Exception in noticiasAccesoBD::obtenerNoticiasBoletin() [noticiasAccesoBD] java.lang.ClassCastException: org.opentools.minerva.jdbc.ResultSetInPool [noticiasAccesoBD] at es.westlaw.noticiasAccesoBDBean.obtenerNoticiasBoletin(Compiled Code) The code we use: l_query= "SELECT noticia FROM noticias"; l_pstmt = l_con.prepareStatement(l_query); l_rst = l_pstmt.executeQuery(); // which of the next two lines should be here?? // l_rst2 = ((org.jboss.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingResultSet() ; // JBOSS l_rst2 = ((org.opentools.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingR esultSet() ; // JBOSS while (l_rst2.next()) { l_noticiasCLOB = ((OracleResultSet)l_rst2).getCLOB(1); } Any help would be appreciated... Thanks in advance... Jose R. Juan ___ 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] ResultSet or minerva.ResultSetInPool
He's casting what was returned from executeQuery so that he can call getUnderLyingResultSet. Filip Hanik wrote: getUnderLyingResultSet returns a java.sql.ResultSet, and if you are using racle then it returns oracle.jdbc.ResultSet or something like that, you have to look up the exact class. you get a classcast exception because you think it is a Minerva resultset. getUnderLyingResultSet returns the actual driver's result set, not minervas filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jose Ramon Diaz Sent: Thursday, April 19, 2001 10:42 AM To: JBOSS Mail List Subject: [JBoss-user] ResultSet or minerva.ResultSetInPool Hi, We are trying to obtain a ResultSet from an Oracle database. We find a trouble with Minerva types, We are using JBoss 2.2, with JDBC 2.0 and Oracle 8.1.7. We are using MinervaPool driver for the JDBC. In our configuration files, - jboss.jcml: We use 'org.jboss.minerva.xa.XADataSourceImpl' in the Pool configuration - jboss.properties: #jboss.xa.xidclass=oracle.jdbc.xa.OracleXid First, is OraclePool (oracle.jdbc.xa.client.OracleXADataSource) better than MinervaPool (org.jboss.minerva.xa.XADataSourceImpl) ? Second, When we try to execute a ResultSet from the EJB it throws: [noticiasAccesoBD] Exception in noticiasAccesoBD::obtenerNoticiasBoletin() [noticiasAccesoBD] java.lang.ClassCastException: org.opentools.minerva.jdbc.ResultSetInPool [noticiasAccesoBD] at es.westlaw.noticiasAccesoBDBean.obtenerNoticiasBoletin(Compiled Code) The code we use: l_query= "SELECT noticia FROM noticias"; l_pstmt = l_con.prepareStatement(l_query); l_rst = l_pstmt.executeQuery(); // which of the next two lines should be here?? // l_rst2 = ((org.jboss.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingResultSet() ; // JBOSS l_rst2 = ((org.opentools.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingR esultSet() ; // JBOSS while (l_rst2.next()) { l_noticiasCLOB = ((OracleResultSet)l_rst2).getCLOB(1); } Any help would be appreciated... Thanks in advance... Jose R. Juan ___ 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 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] different datasources for differnet entity beans
Is it possible to configure the datasource that an entity bean uses on a per-bean basis? I have entity beans (container managed) that represent tables in different databases. I would like to avoid packaging them in different jar files. Is there any way to do this? Thanks, Carles __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] PostgreSQL 7.1 Datasource setup
I have the following coded in my jboss.jcml and I have included postgresql.jar in my lib/ext folder, but JBoss hangs on startup. postmaster is running with the -i option when I try this and I have a database setup named ejb with ejbUser as a user and ejbUserPassword as the account password. My environment is: JBoss 2.2 PostgreSQL 7.1RC4 Redhat Linux 6.2 JBoss startup ends with the following output: [jdbc/PostgresDB] Starting [jdbc/PostgresDB] XA connection pool jdbc/PostgreDB bound to java:/jdbc/PostgresDB then it hangs... Does anyone have Postgres7.1 working with JBoss? mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=PostgreSQL" attribute name="PoolName"jdbc/PostgresDB/attribute attribute name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name="Properties"/attribute attribute name="URL"jdbc:postgresql://localhost:5432/ejb/attribute attribute name="GCMinIdleTime"120/attribute attribute name="JDBCUser"ejbUser/attribute attribute name="MaxSize"10/attribute attribute name="Password"ejbUserPassword/attribute attribute name="GCEnabled"false/attribute attribute name="InvalidateOnError"false/attribute attribute name="TimestampUsed"false/attribute attribute name="Blocking"true/attribute attribute name="GCInterval"12/attribute attribute name="IdleTimeout"180/attribute attribute name="IdleTimeoutEnabled"false/attribute attribute name="LoggingEnabled"false/attribute attribute name="MaxIdleTimeoutPercent"1.0/attribute attribute name="MinSize"0/attribute /mbean ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ?
So let me get this right. First I authenticate within Tomcat, using the usual means This then sets ups credentials which will be passed onto JBoss for further handling. But always authenticate in Tomcat first... ?? This makes sense if this is the case. Can you confirm ? Cheers, Ijonas. - Original Message - From: "Scott M Stark" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 6:53 PM Subject: Re: [JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ? You have to have a Tomcat realm ahead of the JbossRealm as the JbossRealm just mpas the credentials obtained by the Tomcat Realm onto the JBoss notion of the thread user. - Original Message - From: Ijonas Kisselbach To: jbUser Sent: Thursday, April 19, 2001 10:01 AM Subject: [JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ? Hi, I'm trying to authenticate servlets against a a JBoss realm. I've got the servlets and JSP authenticating against the org.apache.tomcat.request.SimpleRealm and tomcat-users.xml file. This works fine. But I know want to go to the next step and authenticate against a Jboss realm. Hence I've commented out the Tomcat security realm request interceptor from server.xml: !-- RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- ___ 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] PostgreSQL 7.1 Datasource setup
I can't say for sure, because I don't use Postgresql... but AFAIK, you should use the same values for the PoolName and the Name under the XADataSource service. ie: mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=jdbc/PostgresDB" attribute name="PoolName"jdbc/PostgresDB/attribute instead of mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=PostgreSQL" attribute name="PoolName"jdbc/PostgresDB/attribute When JBoss hangs on the datasource binding, from my experience, it indicates a connection to the datasource could not be established, either because the name is incorrect or the database is not reachable. HTH, Daniel -Message d'origine- De : John Menke [mailto:[EMAIL PROTECTED]] Envoy : 19 avril, 2001 14:38 : jboss Objet : [JBoss-user] PostgreSQL 7.1 Datasource setup I have the following coded in my jboss.jcml and I have included postgresql.jar in my lib/ext folder, but JBoss hangs on startup. postmaster is running with the -i option when I try this and I have a database setup named ejb with ejbUser as a user and ejbUserPassword as the account password. My environment is: JBoss 2.2 PostgreSQL 7.1RC4 Redhat Linux 6.2 JBoss startup ends with the following output: [jdbc/PostgresDB] Starting [jdbc/PostgresDB] XA connection pool jdbc/PostgreDB bound to java:/jdbc/PostgresDB then it hangs... Does anyone have Postgres7.1 working with JBoss? mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=PostgreSQL" attribute name="PoolName"jdbc/PostgresDB/attribute attribute name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourc eImp l/attribute attribute name="Properties"/attribute attribute name="URL"jdbc:postgresql://localhost:5432/ejb/attribute attribute name="GCMinIdleTime"120/attribute attribute name="JDBCUser"ejbUser/attribute attribute name="MaxSize"10/attribute attribute name="Password"ejbUserPassword/attribute attribute name="GCEnabled"false/attribute attribute name="InvalidateOnError"false/attribute attribute name="TimestampUsed"false/attribute attribute name="Blocking"true/attribute attribute name="GCInterval"12/attribute attribute name="IdleTimeout"180/attribute attribute name="IdleTimeoutEnabled"false/attribute attribute name="LoggingEnabled"false/attribute attribute name="MaxIdleTimeoutPercent"1.0/attribute attribute name="MinSize"0/attribute /mbean ___ 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] different datasources for differnet entity beans
Yeah no problem what so ever. The following works for BMP as well as CMP beans. Basically, all you need to do is specify different datasource resource references in your ejb-jar.xml and jboss.xml files, e.g.: ejb-jar.xml - entity ejb-nameBean1/ejb-name homeBean1Home/home remoteBean1/remote ejb-classBean1Bean/ejb-class persistence-typeBean/persistence-type prim-key-classjava.lang.String/prim-key-class reentrantFalse/reentrant resource-ref res-ref-namejdbc/DB1/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /entity entity ejb-nameBean2/ejb-name homeBean2Home/home remoteBean2/remote ejb-classBean2Bean/ejb-class persistence-typeBean/persistence-type prim-key-classjava.lang.String/prim-key-class reentrantFalse/reentrant resource-ref res-ref-namejdbc/DB2/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /entity jboss.xml -- resource-managers resource-manager res-class="org.jboss.ejb.deployment.JDBCResource" res-namejdbc/DB1/res-name res-jndi-namejava:/OracleDBPoolName/res-jndi-name /resource-manager resource-manager res-class="org.jboss.ejb.deployment.JDBCResource" res-namejdbc/DB2/res-name res-jndi-namejava:/SybaseDBPoolName/res-jndi-name /resource-manager /resource-managers entity ejb-nameBean1/ejb-name jndi-nameapp/Bean1/jndi-name configuration-name/configuration-name resource-ref res-ref-namejdbc/DB1/res-ref-name resource-namejdbc/access1/resource-name /resource-ref /entity entity ejb-nameBean2/ejb-name jndi-nameapp/Bean2/jndi-name configuration-name/configuration-name resource-ref res-ref-namejdbc/DB2/res-ref-name resource-namejdbc/access2/resource-name /resource-ref /entity - Original Message - From: "Carles Pi-Sunyer" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 7:25 PM Subject: [JBoss-user] different datasources for differnet entity beans Is it possible to configure the datasource that an entity bean uses on a per-bean basis? I have entity beans (container managed) that represent tables in different databases. I would like to avoid packaging them in different jar files. Is there any way to do this? Thanks, Carles __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ 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] Question about custom finders for compound objects
I found a place in my EJB book (O'Reilly 2nd ed. pg. 159) that talks about having a compound key as a primary key. It says that you have to map the keys to corresponding fields in the bean class. Ex. If 'Component' is a compound primary key and 'id' is an attribute of 'Component' which findByPrimaryKey(Integer key) is to search for. It says the Component.id field must map to a XYZBean.id field of type int in the XYZBean class. But it doesn't talk about mapping. Is this something you must setup in the jaws.xml file? Or does it just mean that for the attributes for which you want to execute searches on (ie. write findBy methods for), you must maintain duplicate copies of them in bean class? If so isn't there a cleaner way to do this? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ?
Correct. - Original Message - From: "Ijonas Kisselbach" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 11:44 AM Subject: Re: [JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ? So let me get this right. First I authenticate within Tomcat, using the usual means This then sets ups credentials which will be passed onto JBoss for further handling. But always authenticate in Tomcat first... ?? This makes sense if this is the case. Can you confirm ? Cheers, Ijonas. - Original Message - From: "Scott M Stark" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 6:53 PM Subject: Re: [JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ? You have to have a Tomcat realm ahead of the JbossRealm as the JbossRealm just mpas the credentials obtained by the Tomcat Realm onto the JBoss notion of the thread user. - Original Message - From: Ijonas Kisselbach To: jbUser Sent: Thursday, April 19, 2001 10:01 AM Subject: [JBoss-user] JBoss 2.2: Servlet Authentication against JBoss realms. How ? Hi, I'm trying to authenticate servlets against a a JBoss realm. I've got the servlets and JSP authenticating against the org.apache.tomcat.request.SimpleRealm and tomcat-users.xml file. This works fine. But I know want to go to the next step and authenticate against a Jboss realm. Hence I've commented out the Tomcat security realm request interceptor from server.xml: !-- RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- ___ 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 mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Unsubscribe me !
Please unsubscribe me. Thanks Rajeev ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] PostgreSQL 7.1 Datasource setup
I just tried that and it still doesn't work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Cardin Sent: Thursday, April 19, 2001 2:52 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] PostgreSQL 7.1 Datasource setup I can't say for sure, because I don't use Postgresql... but AFAIK, you should use the same values for the PoolName and the Name under the XADataSource service. ie: mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=jdbc/PostgresDB" attribute name="PoolName"jdbc/PostgresDB/attribute instead of mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=PostgreSQL" attribute name="PoolName"jdbc/PostgresDB/attribute When JBoss hangs on the datasource binding, from my experience, it indicates a connection to the datasource could not be established, either because the name is incorrect or the database is not reachable. HTH, Daniel -Message d'origine- De : John Menke [mailto:[EMAIL PROTECTED]] Envoy : 19 avril, 2001 14:38 : jboss Objet : [JBoss-user] PostgreSQL 7.1 Datasource setup I have the following coded in my jboss.jcml and I have included postgresql.jar in my lib/ext folder, but JBoss hangs on startup. postmaster is running with the -i option when I try this and I have a database setup named ejb with ejbUser as a user and ejbUserPassword as the account password. My environment is: JBoss 2.2 PostgreSQL 7.1RC4 Redhat Linux 6.2 JBoss startup ends with the following output: [jdbc/PostgresDB] Starting [jdbc/PostgresDB] XA connection pool jdbc/PostgreDB bound to java:/jdbc/PostgresDB then it hangs... Does anyone have Postgres7.1 working with JBoss? mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=PostgreSQL" attribute name="PoolName"jdbc/PostgresDB/attribute attribute name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourc eImp l/attribute attribute name="Properties"/attribute attribute name="URL"jdbc:postgresql://localhost:5432/ejb/attribute attribute name="GCMinIdleTime"120/attribute attribute name="JDBCUser"ejbUser/attribute attribute name="MaxSize"10/attribute attribute name="Password"ejbUserPassword/attribute attribute name="GCEnabled"false/attribute attribute name="InvalidateOnError"false/attribute attribute name="TimestampUsed"false/attribute attribute name="Blocking"true/attribute attribute name="GCInterval"12/attribute attribute name="IdleTimeout"180/attribute attribute name="IdleTimeoutEnabled"false/attribute attribute name="LoggingEnabled"false/attribute attribute name="MaxIdleTimeoutPercent"1.0/attribute attribute name="MinSize"0/attribute /mbean ___ 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 mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Arbitrary object persistence
Does any one know of a production quality library that integrates into JBoss that can provide persistence of arbitrary objects into a RDBMS? I have looked a bit at Castor, but it *looks* like this requires some extra metadata for the object. Any ways, if someone happens to know of something that could do this I would sure like to know. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] PostgreSQL 7.1 Datasource setup
My only thought is if you have pg_hba.conf set up to allow TCP from localhost? -danch John Menke wrote: I just tried that and it still doesn't work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Cardin Sent: Thursday, April 19, 2001 2:52 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] PostgreSQL 7.1 Datasource setup I can't say for sure, because I don't use Postgresql... but AFAIK, you should use the same values for the PoolName and the Name under the XADataSource service. ie: mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=jdbc/PostgresDB" attribute name="PoolName"jdbc/PostgresDB/attribute instead of mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=PostgreSQL" attribute name="PoolName"jdbc/PostgresDB/attribute When JBoss hangs on the datasource binding, from my experience, it indicates a connection to the datasource could not be established, either because the name is incorrect or the database is not reachable. HTH, Daniel -Message d'origine- De : John Menke [mailto:[EMAIL PROTECTED]] Envoy : 19 avril, 2001 14:38 : jboss Objet : [JBoss-user] PostgreSQL 7.1 Datasource setup I have the following coded in my jboss.jcml and I have included postgresql.jar in my lib/ext folder, but JBoss hangs on startup. postmaster is running with the -i option when I try this and I have a database setup named ejb with ejbUser as a user and ejbUserPassword as the account password. My environment is: JBoss 2.2 PostgreSQL 7.1RC4 Redhat Linux 6.2 JBoss startup ends with the following output: [jdbc/PostgresDB] Starting [jdbc/PostgresDB] XA connection pool jdbc/PostgreDB bound to java:/jdbc/PostgresDB then it hangs... Does anyone have Postgres7.1 working with JBoss? mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=PostgreSQL" attribute name="PoolName"jdbc/PostgresDB/attribute attribute name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourc eImp l/attribute attribute name="Properties"/attribute attribute name="URL"jdbc:postgresql://localhost:5432/ejb/attribute attribute name="GCMinIdleTime"120/attribute attribute name="JDBCUser"ejbUser/attribute attribute name="MaxSize"10/attribute attribute name="Password"ejbUserPassword/attribute attribute name="GCEnabled"false/attribute attribute name="InvalidateOnError"false/attribute attribute name="TimestampUsed"false/attribute attribute name="Blocking"true/attribute attribute name="GCInterval"12/attribute attribute name="IdleTimeout"180/attribute attribute name="IdleTimeoutEnabled"false/attribute attribute name="LoggingEnabled"false/attribute attribute name="MaxIdleTimeoutPercent"1.0/attribute attribute name="MinSize"0/attribute /mbean ___ 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 mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user 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] mod_jk.conf-auto file not being rewritten
I am running JBoss w/ Embedded Tomcat + Apache (all the latest versions) on a RedHat 7.0 box. I have followed on the instructions on jakarta.apache.org to configure Apache and Tomcat. However, this setup depends on Tomcat rewriting the mod_jk.conf-auto file each time it starts. For whatever reason, when JBoss starts Tomcat, the mod_jk.conf-auto file does not get rewritten, so Apache cannot correctly forward requests to Tomcat. Is there something I'm missing? Ryan Partridge ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] InstantDB vs. HypersonicSQL
Does any one know what the basic differences are between these two databases? Is one better suited for production usage? --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mod_jk.conf-auto file not being rewritten
You shouldn't be using mod_jk.conf-auto. If you do, any changes you make get overwritten each time you start Tomcat. mod_jk.conf-auto is only an example. Make a copy of it, make any changes you need, and then use this new file as your include from Apache. -- Dewayne - Original Message - From: "Ryan Partridge" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 3:32 PM Subject: [JBoss-user] mod_jk.conf-auto file not being rewritten I am running JBoss w/ Embedded Tomcat + Apache (all the latest versions) on a RedHat 7.0 box. I have followed on the instructions on jakarta.apache.org to configure Apache and Tomcat. However, this setup depends on Tomcat rewriting the mod_jk.conf-auto file each time it starts. For whatever reason, when JBoss starts Tomcat, the mod_jk.conf-auto file does not get rewritten, so Apache cannot correctly forward requests to Tomcat. Is there something I'm missing? Ryan Partridge ___ 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] mod_jk.conf-auto file not being rewritten
Thanks for the quick response. That leads me to my next question: Since JBoss dynamically creates directories to unpack .ear files (e.g. /usr/local/jboss/tmp/deploy/Default/adb.ear/web1001) how can I tell Apache what paths to use? Each time I redeploy my ear file, the location changes (web1001, web1002, etc.). Any thoughts? Ryan [EMAIL PROTECTED] 04/19/01 03:05PM You shouldn't be using mod_jk.conf-auto. If you do, any changes you make get overwritten each time you start Tomcat. mod_jk.conf-auto is only an example. Make a copy of it, make any changes you need, and then use this new file as your include from Apache. -- Dewayne - Original Message - From: "Ryan Partridge" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 3:32 PM Subject: [JBoss-user] mod_jk.conf-auto file not being rewritten I am running JBoss w/ Embedded Tomcat + Apache (all the latest versions) on a RedHat 7.0 box. I have followed on the instructions on jakarta.apache.org to configure Apache and Tomcat. However, this setup depends on Tomcat rewriting the mod_jk.conf-auto file each time it starts. For whatever reason, when JBoss starts Tomcat, the mod_jk.conf-auto file does not get rewritten, so Apache cannot correctly forward requests to Tomcat. Is there something I'm missing? Ryan Partridge ___ 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 mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] PostgreSQL 7.1 Datasource setup
It was related to that. (pg_hba.conf) I had an entry for localhost in the pg_hba.conf. For some reason Postgresql was seeing the JBoss connection coming from my local network IP address instead of localhost. I determined this by trying to connect to a JSP page that uses the database from Tomcat. It gave an error pointing to the local address. I added the local address in the pg_hba.conf and Tomcat worked. So then I tried the Jboss startup again. It seemed to work as it printed that the PostgreDB pool was created in the log, BUT... at the very end of the log, I get the same message as before... Very strange. I have included both the JBOSS.jcml and the log file below: THIS IS THE JBOSS.JCML FILE ?xml version="1.0" encoding="UTF-8"? !-- This is where you can add and configure your MBeans ATTENTION: The order of the listing here is the same order as the MBeans are loaded. Therefore if a MBean depends on another MBean to be loaded and started it has to be listed after all the MBeans it depends on. -- server !-- Classloading -- mbean code="org.jboss.web.WebService" name="DefaultDomain:service=Webserver" attribute name="Port"8083/attribute /mbean !-- JNDI -- mbean code="org.jboss.naming.NamingService" name="DefaultDomain:service=Naming" attribute name="Port"1099/attribute /mbean mbean code="org.jboss.naming.JNDIView" name="DefaultDomain:service=JNDIView" / !-- Transactions -- mbean code="org.jboss.tm.TransactionManagerService" name="DefaultDomain:service=TransactionManager" attribute name="TransactionTimeout"300/attribute /mbean !-- Security -- !-- Uncomment to enable the sample SRPVerifierStore service mbean code="org.jboss.security.plugins.SRPVerifierStoreService" name="Security:name=SRPVerifierStoreService" attribute name="JndiName"SRPDefaultVerifierSource/attribute attribute name="StoreFile"SRPVerifierStore.ser/attribute /mbean -- !-- Uncomment to enable the SRP login service mbean code="org.jboss.security.plugins.SRPService" name="service:name=SRPService" attribute name="JndiName"SRPServerInterface/attribute attribute name="VerifierSourceJndiName"SRPDefaultVerifierSource/attribute attribute name="AuthenticationCacheJndiName"SRPAuthenticationCache/attribute attribute name="ServerPort"10099/attribute /mbean -- !-- JAAS security manager and realm mapping -- mbean code="org.jboss.security.plugins.JaasSecurityManagerService" name="Security:name=JaasSecurityManager" attribute name="SecurityManagerClassName"org.jboss.security.plugins.JaasSecurityManag er/attribute /mbean !-- Uncomment to enable the XML implementation of the JAAS policy mbean code="org.jboss.security.plugins.SecurityPolicyService" name="Security:name=SecurityPolicyService" attribute name="JndiName"DefaultSecurityPolicy/attribute attribute name="PolicyFile"sample_policy.xml/attribute /mbean -- !-- JDBC -- mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider" attribute name="Drivers"org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org. postgresql.Driver/attribute /mbean mbean code="org.jboss.jdbc.HypersonicDatabase" name="DefaultDomain:service=Hypersonic" attribute name="Port"1476/attribute attribute name="Silent"true/attribute attribute name="Database"default/attribute attribute name="Trace"false/attribute /mbean mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=InstantDB" attribute name="PoolName"InstantDB/attribute attribute name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name="Properties"/attribute attribute name="URL"jdbc:idb:../conf/default/instantdb.properties/attribute attribute name="GCMinIdleTime"120/attribute attribute name="JDBCUser" / attribute name="MaxSize"10/attribute attribute name="Password" / attribute name="GCEnabled"false/attribute attribute name="InvalidateOnError"false/attribute attribute name="TimestampUsed"false/attribute attribute name="Blocking"true/attribute attribute name="GCInterval"12/attribute attribute name="IdleTimeout"180/attribute attribute name="IdleTimeoutEnabled"false/attribute attribute name="LoggingEnabled"false/attribute attribute name="MaxIdleTimeoutPercent"1.0/attribute attribute name="MinSize"0/attribute /mbean mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=DefaultDS" attribute name="PoolName"DefaultDS/attribute attribute name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name="Properties"/attribute attribute name="URL"jdbc:HypersonicSQL:hsql://localhost:1476/attribute attribute name="GCMinIdleTime"120/attribute attribute name="JDBCUser"sa/attribute attribute name="MaxSize"10/attribute attribute
[JBoss-user] cocoon + jetty
Title: cocoon + jetty I have followed the instructions posted here to get cocoon working with jboss/jetty. It works as specified. My question is if I want to have the xml/xsl files in the ear file how do I do the configuration. -Bob
Re: [JBoss-user] mod_jk.conf-auto file not being rewritten
i ran into this problem also. I ran tomcat.bat first which generated the mod_jk.conf-auto, then killed off tomcat, and ran jboss with embedded tomcat after. hope this helps, dave - Original Message - From: "Ryan Partridge" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 4:32 PM Subject: [JBoss-user] mod_jk.conf-auto file not being rewritten I am running JBoss w/ Embedded Tomcat + Apache (all the latest versions) on a RedHat 7.0 box. I have followed on the instructions on jakarta.apache.org to configure Apache and Tomcat. However, this setup depends on Tomcat rewriting the mod_jk.conf-auto file each time it starts. For whatever reason, when JBoss starts Tomcat, the mod_jk.conf-auto file does not get rewritten, so Apache cannot correctly forward requests to Tomcat. Is there something I'm missing? Ryan Partridge ___ 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] ResultSet or minerva.ResultSetInPool
The code we use: l_query= "SELECT noticia FROM noticias"; l_pstmt = l_con.prepareStatement(l_query); l_rst = l_pstmt.executeQuery(); // which of the next two lines should be here?? a) l_rst2 = ((org.jboss.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingResultSet(); // JBOSS b) l_rst2 = ((org.opentools.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingResultSet() ; // JBOSS while (l_rst2.next()) the easiest way to find out is to add this line System.out.println( l_rst2.getClass().getName() ); ^^ before line a) and b) I couldn't tell you on top of my head which one it is, but this will tell you Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of danch Sent: Thursday, April 19, 2001 11:17 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] ResultSet or minerva.ResultSetInPool He's casting what was returned from executeQuery so that he can call getUnderLyingResultSet. Filip Hanik wrote: getUnderLyingResultSet returns a java.sql.ResultSet, and if you are using ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 2.2.1 release available at sourceforge
Hi, That is really great that *binary* release is bundled with sources now. But, maybe, build directory should be also included in this case? Scott M Stark wrote: A new 2.2.1 release is available from the jboss.org page at sourceforge along with a JBoss2.2.1/Tomcat3.2.1 bundle. See http://sourceforge.net/projects/jboss/ An new JBoss2.2.1/Jetty bundle will be released later today. See the Change Notes with Group=v2.2.1 for the changes relative to the 2.2.0 release. A JBoss_2_2_1 tag has been added to the jboss, jbosssx and contrib/tomcat cvs modules for the source/libs that went into the 2.2.1 release. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user -- __ Alexander Kogan PTC www.ptc.com [EMAIL PROTECTED]140 Kendrick St. Needham MA 02494 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] InstantDB vs. HypersonicSQL
Jason, I know that InstantDB is in use by hundreds of commercial products so I guess that says a lot! Also, InstantDB, unlike Hypersonic is fully JDBC2.0 compliant and even supports the XA protocol for distributed transactions. More often than not, InstantDB is used with the Enhydra Enterprise J2EE application server at http://www.enhydra.org/ In fact it is integrated as a service into the Enhydra Services Architecture so shares the same JVM as the rest of the server yet is completely isolated. Enjoy... - Paul. - Original Message - From: "Jason Dillon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 2:10 PM Subject: [JBoss-user] InstantDB vs. HypersonicSQL Does any one know what the basic differences are between these two databases? Is one better suited for production usage? --jason ___ 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 Postgres and Booleans
I had this problem aswell, and i belive that the postgres JDBC2 driver is to blame. A quick fix to the problem is to edit the ResultSet.java file in the Postgres driver source. Change the line: return ((c == 't') || (c == 'T')); int the getBoolean function on line 184:ish to: return ((c == 't') || (c == 'T') (c == '1')); This solved the problem for me... thank god for OpenSource. /christofer On 09 Apr 2001 12:00:14 -0700, Philip Craven wrote: I have a CMP bean that has a boolean variable. Before jboss is started, the value in the postgres database is 1 (true), after I start postgres and the bean is loaded, the value goes to false, and the database is updated to reflect this. What do I have misconfigured? __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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] Example: Interest in the JBoss Doc
I am running JBoss 2.2 on Window 2000. I started jboss server and copied interest.jar to the deploy directory and get [Auto deploy] Auto deploy of file:/C:/Install/JBoss/deploy/interest.jar [J2EE Deployer Default] Stopping module interest.jar [Container factory] Undeploying:file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar [Container factory] Undeployed application: file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar [J2EE Deployer Default] Destroying application interest.jar [J2EE Deployer Default] Deploy J2EE application: file:/C:/Install/JBoss/deploy/interest.jar [J2EE Deployer Default] Create application interest.jar [J2EE Deployer Default] install module interest.jar [Container factory] Deploying:file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar/ [Verifier] Verifying file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar/ejb1002.jar [Container factory] Deploying Interest [Container factory] Deployed application: file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar/ [J2EE Deployer Default] J2EE application: file:/C:/Install/JBoss/deploy/interest.jar is deployed. It seems to be working. Then I started InterestClient using: java -classpath C:\Install\JBoss\client\jboss-client.jar;C:\Install\JBoss\client\jbossx-clien t.jar;C:\Install\JBoss\client\jnp-client.jar;. InterestClient And I got the following: Got context Then InterestClient is hunging there and doesn't do anything. No exception is thrown. I don't know what to do. Please help me with this. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Example: Interest in the JBoss Doc
I am running JBoss 2.2 on Window 2000. I started jboss server and copied interest.jar to the deploy directory and get [Auto deploy] Auto deploy of file:/C:/Install/JBoss/deploy/interest.jar [J2EE Deployer Default] Stopping module interest.jar [Container factory] Undeploying:file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar [Container factory] Undeployed application: file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar [J2EE Deployer Default] Destroying application interest.jar [J2EE Deployer Default] Deploy J2EE application: file:/C:/Install/JBoss/deploy/interest.jar [J2EE Deployer Default] Create application interest.jar [J2EE Deployer Default] install module interest.jar [Container factory] Deploying:file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar/ [Verifier] Verifying file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar/ejb1002.jar [Container factory] Deploying Interest [Container factory] Deployed application: file:/C:/Install/JBoss/tmp/deploy/Default/interest.jar/ [J2EE Deployer Default] J2EE application: file:/C:/Install/JBoss/deploy/interest.jar is deployed. It seems to be working. Then I started InterestClient using: java -classpath C:\Install\JBoss\client\jboss-client.jar;C:\Install\JBoss\client\jbossx-clien t.jar;C:\Install\JBoss\client\jnp-client.jar;. InterestClient And I got the following: Got context Then InterestClient is hunging there and doesn't do anything. No exception is thrown. I don't know what to do. Please help me with this. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] InstantDB vs. HypersonicSQL
Straight from the horses mouth I see. Thanks for the info. --jason On Thu, 19 Apr 2001, Paul A Morgan wrote: Jason, I know that InstantDB is in use by hundreds of commercial products so I guess that says a lot! Also, InstantDB, unlike Hypersonic is fully JDBC2.0 compliant and even supports the XA protocol for distributed transactions. More often than not, InstantDB is used with the Enhydra Enterprise J2EE application server at http://www.enhydra.org/ In fact it is integrated as a service into the Enhydra Services Architecture so shares the same JVM as the rest of the server yet is completely isolated. Enjoy... - Paul. - Original Message - From: "Jason Dillon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 2:10 PM Subject: [JBoss-user] InstantDB vs. HypersonicSQL Does any one know what the basic differences are between these two databases? Is one better suited for production usage? --jason ___ 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 mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] PostgreSQL 7.1 Datasource setup
We run RH7.0 with jBoss2.2 and Postgres7.1b5 - works like a dream. Attached is out jboss.conf and jboss.jcml - have look at it. Will not fit your need exactly, as we don't use tomcat and I also ripped other MBeans which we don't need, but the postgres stuff should be the same (change connection info) - just diff the files to see what's different. For testing, just put host all 0.0.0.0 0.0.0.0 trust in pg_hba.conf. Hope this helps! Cheers, Robert. -Original Message- From: John Menke [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 April 2001 7:20 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] PostgreSQL 7.1 Datasource setup It was related to that. (pg_hba.conf) I had an entry for localhost in the pg_hba.conf. For some reason Postgresql was seeing the JBoss connection coming from my local network IP address instead of localhost. I determined this by trying to connect to a JSP page that uses the database from Tomcat. It gave an error pointing to the local address. I added the local address in the pg_hba.conf and Tomcat worked. So then I tried the Jboss startup again. It seemed to work as it printed that the PostgreDB pool was created in the log, BUT... at the very end of the log, I get the same message as before... Very strange. I have included both the JBOSS.jcml and the log file below: THIS IS THE JBOSS.JCML FILE ?xml version="1.0" encoding="UTF-8"? !-- This is where you can add and configure your MBeans ATTENTION: The order of the listing here is the same order as the MBeans are loaded. Therefore if a MBean depends on another MBean to be loaded and started it has to be listed after all the MBeans it depends on. -- server !-- Classloading -- mbean code="org.jboss.web.WebService" name="DefaultDomain:service=Webserver" attribute name="Port"8083/attribute /mbean !-- JNDI -- mbean code="org.jboss.naming.NamingService" name="DefaultDomain:service=Naming" attribute name="Port"1099/attribute /mbean mbean code="org.jboss.naming.JNDIView" name="DefaultDomain:service=JNDIView" / !-- Transactions -- mbean code="org.jboss.tm.TransactionManagerService" name="DefaultDomain:service=TransactionManager" attribute name="TransactionTimeout"300/attribute /mbean !-- Security -- !-- Uncomment to enable the sample SRPVerifierStore service mbean code="org.jboss.security.plugins.SRPVerifierStoreService" name="Security:name=SRPVerifierStoreService" attribute name="JndiName"SRPDefaultVerifierSource/attribute attribute name="StoreFile"SRPVerifierStore.ser/attribute /mbean -- !-- Uncomment to enable the SRP login service mbean code="org.jboss.security.plugins.SRPService" name="service:name=SRPService" attribute name="JndiName"SRPServerInterface/attribute attribute name="VerifierSourceJndiName"SRPDefaultVerifierSource/attribute attribute name="AuthenticationCacheJndiName"SRPAuthenticationCache/attribute attribute name="ServerPort"10099/attribute /mbean -- !-- JAAS security manager and realm mapping -- mbean code="org.jboss.security.plugins.JaasSecurityManagerService" name="Security:name=JaasSecurityManager" attribute name="SecurityManagerClassName"org.jboss.security.plugins.Jaa sSecurityManag er/attribute /mbean !-- Uncomment to enable the XML implementation of the JAAS policy mbean code="org.jboss.security.plugins.SecurityPolicyService" name="Security:name=SecurityPolicyService" attribute name="JndiName"DefaultSecurityPolicy/attribute attribute name="PolicyFile"sample_policy.xml/attribute /mbean -- !-- JDBC -- mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider" attribute name="Drivers"org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc. idbDriver,org. postgresql.Driver/attribute /mbean mbean code="org.jboss.jdbc.HypersonicDatabase" name="DefaultDomain:service=Hypersonic" attribute name="Port"1476/attribute attribute name="Silent"true/attribute attribute name="Database"default/attribute attribute name="Trace"false/attribute /mbean mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=InstantDB" attribute name="PoolName"InstantDB/attribute attribute name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.X ADataSourceImp l/attribute attribute name="Properties"/attribute attribute name="URL"jdbc:idb:../conf/default/instantdb.properties/attribute attribute name="GCMinIdleTime"120/attribute attribute name="JDBCUser" / attribute name="MaxSize"10/attribute attribute name="Password" / attribute name="GCEnabled"false/attribute attribute name="InvalidateOnError"false/attribute attribute name="TimestampUsed"false/attribute attribute name="Blocking"true/attribute
Re: [JBoss-user] 2.2.1 release available at sourceforge
Negative. - Original Message - From: "Alexander Kogan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 2:48 PM Subject: Re: [JBoss-user] 2.2.1 release available at sourceforge Hi, That is really great that *binary* release is bundled with sources now. But, maybe, build directory should be also included in this case? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mod_jk.conf-auto file not being rewritten
This was answered a few days ago -- search the list archives if you can for full details. But, in summary, if you really need Apache to serve your static content instead of Tomcat serving it, the answer is "put static content in a static place" (i.e., not in your .ear file). -- Dewayne From: "Ryan Partridge" [EMAIL PROTECTED] Thanks for the quick response. That leads me to my next question: Since JBoss dynamically creates directories to unpack .ear files (e.g. /usr/local/jboss/tmp/deploy/Default/adb.ear/web1001) how can I tell Apache what paths to use? Each time I redeploy my ear file, the location changes (web1001, web1002, etc.). Any thoughts? Ryan [EMAIL PROTECTED] 04/19/01 03:05PM You shouldn't be using mod_jk.conf-auto. If you do, any changes you make get overwritten each time you start Tomcat. mod_jk.conf-auto is only an example. Make a copy of it, make any changes you need, and then use this new file as your include from Apache. -- Dewayne - Original Message - From: "Ryan Partridge" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 3:32 PM Subject: [JBoss-user] mod_jk.conf-auto file not being rewritten I am running JBoss w/ Embedded Tomcat + Apache (all the latest versions) on a RedHat 7.0 box. I have followed on the instructions on jakarta.apache.org to configure Apache and Tomcat. However, this setup depends on Tomcat rewriting the mod_jk.conf-auto file each time it starts. For whatever reason, when JBoss starts Tomcat, the mod_jk.conf-auto file does not get rewritten, so Apache cannot correctly forward requests to Tomcat. Is there something I'm missing? Ryan Partridge ___ 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 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] PostgreSQL 7.1 Datasource setup
Set loggingEnabled to true in your jcml. God willing, that will allow you to see the damned SQLException that's being thrown and eaten. -danch John Menke wrote: It was related to that. (pg_hba.conf) I had an entry for localhost in the pg_hba.conf. For some reason Postgresql was seeing the JBoss connection coming from my local network IP address instead of localhost. I determined this by trying to connect to a JSP page that uses the database from Tomcat. It gave an error pointing to the local address. I added the local address in the pg_hba.conf and Tomcat worked. So then I tried the Jboss startup again. It seemed to work as it printed that the PostgreDB pool was created in the log, BUT... at the very end of the log, I get the same message as before... Very strange. I have included both the JBOSS.jcml and the log file below: ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Starting JBOSS with previously deployed beans
JBOSS 2.0 Final on Linux: Here the situation, I start JBOSS without any beans deployed. I deploy my beans (three for what it's worth.) Every thing is fine, test programs work, jndiView class shows the home interfaces. I stop JBOSS. I start JBOSS. The beans "seem" to be redeployed, however only one of the three home interfaces is available (I base this on the fact that the test programs cannot locate the home interfaces and that the JNDIView class only shows one of the home interfaces.) Is there something I need to do to have the beans "ready" for JBOSS to start? I can't believe that I need to redeploy them after each start. Brian Farrar
[JBoss-user] Beans calling Beans
I have a service bean (stateless session) which maintains metadata on my system (call it MSB.)MSB is used by other beans (call themWorker Beans.) It appears that I must deploy the MSB first (which I would expect.) However when I deploy the Worker Beans that use the MSB they give an error at deployment because the MSB is unknown (apparently the prior deployment of the MSB does not make it available.) I figure I have two choices, bundle the necessary MSB classes (probably just the home interface) in with the Worker Beans or put these definitions in the JBOSS CLASSPATH so it will be available at deployment of the Worker Beans. I chose the second choice, this does give the appearance of working (one never knows if it is for the right or wrong reason though.) What I am wondering is Should my deployment of the MSB allow for the deployment of the Worker Beans without me forcing the MSB in the JBOSS CLASSPATH (or in the Worker Beans jar file)? What is the proper manner to bundle and deploy beans which are used by or are using other beans? Brian Farrar
[JBoss-user] How can I use a properties file?
Hi, In ejb project(include .war file), Can i use a properties file? because I think properties file is convenient. if i can use a properties file, where can i put it? and how can i use it in a java file? thanks, Sam Liu. http://lists.sourceforge.net/lists/listinfo/jboss-user ,x%I,+-.aX(~zwXb?,
RE: [JBoss-user] PostgreSQL 7.1 Datasource setup
Robert, I used your versions of jboss.conf and jboss.jcml with the adjustments for jdbc url. (Thanks:)) It looks like it ran well. Take a look at the log though. I have this phantom datasource at the bottom again!! Where is DefaultDB coming from?? For that matter where is BlackBoxDB coming from? It is not mentioned in jboss.jcml!!? CLASSPATH=/usr/tomcat/webapps/cocoon/WEB-INF/lib:/usr/local/jCVS-5.2.2/jars/ jcvsii.jar:run.jar:../lib/crimson.jar jboss.home = /usr/local/jboss Using configuration "default" [Info] Java version: 1.3.0,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Server VM 1.3.0,Sun Microsystems Inc. [Info] System: Linux 2.2.14-5.0,i386 [Shutdown] Shutdown hook added [Service Control] Registered with server [Service Control] Initializing 26 MBeans [Webserver] Initializing [Webserver] Initialized [Naming] Initializing [Naming] Initialized [JNDIView] Initializing [JNDIView] Initialized [Transaction manager] Initializing [Transaction manager] Initialized [JDBC provider] Initializing [JDBC provider] Loaded JDBC-driver:org.postgresql.Driver [JDBC provider] Initialized [PostgresDB] Initializing [PostgresDB] Initialized [Container factory] Initializing [Container factory] Initialized [J2EE Deployer Default] Initializing [J2EE Deployer Default] Initialized [Auto deploy] Initializing [Auto deploy] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaXACMFactory] Initialized [JMX RMI Adaptor] Initializing [JMX RMI Adaptor] Initialized [JMX RMI Connector] Initializing [JMX RMI Connector] Initialized [ConnectionFactoryLoader] Initializing [BlackBoxDS] Initialized [DefaultDS] Initializing [DefaultDS] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaNoTransCMFactory] Initialized [InstantDB] Initializing [InstantDB] Initialized [RARDeployer] Initializing [RARDeployer] Initialized [JBossMQ] Initializing [JBossMQ] Initialized [JAAS Security Manager] Initializing [JAAS Security Manager] Initialized [jdbc/PostgresDB] Initializing [jdbc/PostgresDB] Initialized [StdJMSPool] Initializing [StdJMSPool] Initialized [DefaultJMSProvider] Initializing [DefaultJMSProvider] Initialized [Mail Service] Initializing [Mail Service] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaSharedLocalCMFactory] Initialized [Hypersonic] Initializing [Hypersonic] Initialized [Service Control] Initialized 26 services [Service Control] Starting 26 MBeans [Webserver] Starting [Webserver] Codebase set to http://remote:8083/ [Webserver] Started webserver on port 8083 [Webserver] Started [Naming] Starting [Naming] Naming started on port 1099 [Naming] Started [JNDIView] Starting [JNDIView] Started [Transaction manager] Starting [Transaction manager] Started [JDBC provider] Starting [JDBC provider] Started [PostgresDB] Starting [PostgresDB] XA Connection pool PostgresDB bound to java:/PostgresDB [PostgresDB] org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl created new Connection (org.postgresql.jdbc2.Connection) with XAResource org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl and XAConnection org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl. [PostgresDB] No transaction right now. [PostgresDB] Pool PostgresDB [0/0/20] gave out new object: org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@23e5d1 [PostgresDB] Pool PostgresDB [0/1/20] returned object org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@23e5d1 to the pool. [PostgresDB] Started [Container factory] Starting [Container factory] Started [J2EE Deployer Default] Starting [J2EE Deployer Default] No web container found - only EJB deployment available... [J2EE Deployer Default] Cleaning up deployment directory [J2EE Deployer Default] Started [Auto deploy] Starting [Auto deploy] Watching /usr/local/jboss/deploy [Auto deploy] Started [MinervaXACMFactory] Starting [MinervaXACMFactory] Connection manager factory 'MinervaXACMFactory bound to 'java:/MinervaXACMFactory' [MinervaXACMFactory] Started [JMX RMI Adaptor] Starting [JMX RMI Adaptor] Started [JMX RMI Connector] Starting [JMX RMI Connector] Started [BlackBoxDS] Starting [BlackBoxDS] Started [DefaultDS] Starting [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS Below is the jboss.jcml file. I used your jboss.conf exactly. ?xml version="1.0" encoding="UTF-8"? server !-- Classloading -- mbean code="org.jboss.web.WebService" name="DefaultDomain:service=Webserver" attribute name="Port"8083/attribute /mbean !-- JNDI -- mbean code="org.jboss.naming.NamingService" name="DefaultDomain:service=Naming" attribute name="Port"1099/attribute /mbean mbean code="org.jboss.naming.JNDIView" name="DefaultDomain:service=JNDIView" / !-- Transactions -- mbean code="org.jboss.tm.TransactionManagerService" name="DefaultDomain:service=TransactionManager" attribute name="TransactionTimeout"300/attribute /mbean !-- JDBC -- mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider" attribute
[JBoss-user] Jetty vs. Tomcat
Does anyone have any opinions as to which contain is more robust, easier to use and such? --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jetty vs. Tomcat
Tomcat is more robust and extensible. Jetty is lightweight and fast. Alvin Jason Dillon wrote: Does anyone have any opinions as to which contain is more robust, easier to use and such? --jason ___ 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] How can I use a properties file?
Hi. Please don't reply to a random message when you're starting a new thread. On Fri, Apr 20, 2001 at 10:17:33AM +0800, Sam Liu wrote: In ejb project(include .war file), Can i use a properties file? because I think properties file is convenient. if i can use a properties file, where can i put it? and how can i use it You can put your properties file in the same place as your classes and then access it using getClass().getClassLoader().getResourceAsStream(). You could pass the resulting InputStrean to Properties.load. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Tomcat-JBoss ClassNotFoundException (again)
Has anyone successfully deployed a non trivial .ear (ie something other than the example ear) under the integrated Tomcat-JBoss binary? I've read the docs. I've reviewed the working sample. I've tried what seems to be every concievable permutation of .jcml, .conf, manifest settings that I can come up with. I cannot get the damn thing (my servlet) to see my home interface class file. It throws a ClassNotFoundException every time. Offer me a setting. I'll try it (if I haven't already). Tell me where to put my ejb interface files (in or out of a client.jar, doesn't matter, I've tried it). Any last words of advice before I give up? I'd love to hear from someone who has this working and see the configuration. Thanks, Bill Pfeiffer ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)
In addition to the tomcat+jboss howto, you should read the "Deployment on JBoss" section. Also, get the tomcat-test.ear app from the contrib suite to see how it's done. It does work. Victor - Original Message - From: "Bill Pfeiffer" [EMAIL PROTECTED] Date: Thursday, April 19, 2001 11:37 pm Subject: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again) Has anyone successfully deployed a non trivial .ear (ie something other than the example ear) under the integrated Tomcat-JBoss binary? I've read the docs. I've reviewed the working sample. I've tried whatseems to be every concievable permutation of .jcml, .conf, manifest settings that I can come up with. I cannot get the damn thing (my servlet) to see my home interface class file. It throws a ClassNotFoundException every time. Offer me a setting. I'll try it (if I haven't already). Tell me where to put my ejb interface files (in or out of a client.jar, doesn't matter, I've tried it). Any last words of advice before I give up? I'd love to hear from someonewho has this working and see the configuration. Thanks, Bill Pfeiffer ___ 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] ResultSet or minerva.ResultSetInPool
Just use a simple ResultSet: Connection connection = ((DataSource)new InitialContext().lookup("java:comp/env/jdbc/DefaultDS")).getConnection(); Statement stmt = connection.createStatement(); ResultSet rs = stmt.executeQuery("SELECT count(*) from account"); - Original Message - From: "Jose Ramon Diaz" [EMAIL PROTECTED] To: "JBOSS Mail List" [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 1:41 PM Subject: [JBoss-user] ResultSet or minerva.ResultSetInPool Hi, We are trying to obtain a ResultSet from an Oracle database. We find a trouble with Minerva types, We are using JBoss 2.2, with JDBC 2.0 and Oracle 8.1.7. We are using MinervaPool driver for the JDBC. In our configuration files, - jboss.jcml: We use 'org.jboss.minerva.xa.XADataSourceImpl' in the Pool configuration - jboss.properties: #jboss.xa.xidclass=oracle.jdbc.xa.OracleXid First, is OraclePool (oracle.jdbc.xa.client.OracleXADataSource) better than MinervaPool (org.jboss.minerva.xa.XADataSourceImpl) ? Second, When we try to execute a ResultSet from the EJB it throws: [noticiasAccesoBD] Exception in noticiasAccesoBD::obtenerNoticiasBoletin() [noticiasAccesoBD] java.lang.ClassCastException: org.opentools.minerva.jdbc.ResultSetInPool [noticiasAccesoBD] at es.westlaw.noticiasAccesoBDBean.obtenerNoticiasBoletin(Compiled Code) The code we use: l_query= "SELECT noticia FROM noticias"; l_pstmt = l_con.prepareStatement(l_query); l_rst = l_pstmt.executeQuery(); // which of the next two lines should be here?? // l_rst2 = ((org.jboss.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingResultSet() ; // JBOSS l_rst2 = ((org.opentools.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingResultSet() ; // JBOSS while (l_rst2.next()) { l_noticiasCLOB = ((OracleResultSet)l_rst2).getCLOB(1); } Any help would be appreciated... Thanks in advance... Jose R. Juan ___ 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] j2ee app client support
Does jBoss support running a j2ee app client within a container? Something like "runclient.bat" in the J2EE reference implementation? Victor ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] PostgreSQL 7.1 Datasource setup
I haven't been following your thread but if you leave jboss-auto.jcml lying around ( and aren't using the -very- latest ( i think 2.3, maybe 2.2.1) sources you will keep getting all the mbeans from your previous runs even though you removed them from jboss.jcml. Delete jboss-auto.jcml and these extras should go away. david jencks On 2001.04.19 22:11:36 -0400 John Menke wrote: Robert, I used your versions of jboss.conf and jboss.jcml with the adjustments for jdbc url. (Thanks:)) It looks like it ran well. Take a look at the log though. I have this phantom datasource at the bottom again!! Where is DefaultDB coming from?? For that matter where is BlackBoxDB coming from? It is not mentioned in jboss.jcml!!? CLASSPATH=/usr/tomcat/webapps/cocoon/WEB-INF/lib:/usr/local/jCVS-5.2.2/jars/ jcvsii.jar:run.jar:../lib/crimson.jar jboss.home = /usr/local/jboss Using configuration "default" [Info] Java version: 1.3.0,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Server VM 1.3.0,Sun Microsystems Inc. [Info] System: Linux 2.2.14-5.0,i386 [Shutdown] Shutdown hook added [Service Control] Registered with server [Service Control] Initializing 26 MBeans [Webserver] Initializing [Webserver] Initialized [Naming] Initializing [Naming] Initialized [JNDIView] Initializing [JNDIView] Initialized [Transaction manager] Initializing [Transaction manager] Initialized [JDBC provider] Initializing [JDBC provider] Loaded JDBC-driver:org.postgresql.Driver [JDBC provider] Initialized [PostgresDB] Initializing [PostgresDB] Initialized [Container factory] Initializing [Container factory] Initialized [J2EE Deployer Default] Initializing [J2EE Deployer Default] Initialized [Auto deploy] Initializing [Auto deploy] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaXACMFactory] Initialized [JMX RMI Adaptor] Initializing [JMX RMI Adaptor] Initialized [JMX RMI Connector] Initializing [JMX RMI Connector] Initialized [ConnectionFactoryLoader] Initializing [BlackBoxDS] Initialized [DefaultDS] Initializing [DefaultDS] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaNoTransCMFactory] Initialized [InstantDB] Initializing [InstantDB] Initialized [RARDeployer] Initializing [RARDeployer] Initialized [JBossMQ] Initializing [JBossMQ] Initialized [JAAS Security Manager] Initializing [JAAS Security Manager] Initialized [jdbc/PostgresDB] Initializing [jdbc/PostgresDB] Initialized [StdJMSPool] Initializing [StdJMSPool] Initialized [DefaultJMSProvider] Initializing [DefaultJMSProvider] Initialized [Mail Service] Initializing [Mail Service] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaSharedLocalCMFactory] Initialized [Hypersonic] Initializing [Hypersonic] Initialized [Service Control] Initialized 26 services [Service Control] Starting 26 MBeans [Webserver] Starting [Webserver] Codebase set to http://remote:8083/ [Webserver] Started webserver on port 8083 [Webserver] Started [Naming] Starting [Naming] Naming started on port 1099 [Naming] Started [JNDIView] Starting [JNDIView] Started [Transaction manager] Starting [Transaction manager] Started [JDBC provider] Starting [JDBC provider] Started [PostgresDB] Starting [PostgresDB] XA Connection pool PostgresDB bound to java:/PostgresDB [PostgresDB] org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl created new Connection (org.postgresql.jdbc2.Connection) with XAResource org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl and XAConnection org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl. [PostgresDB] No transaction right now. [PostgresDB] Pool PostgresDB [0/0/20] gave out new object: org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@23e5d1 [PostgresDB] Pool PostgresDB [0/1/20] returned object org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@23e5d1 to the pool. [PostgresDB] Started [Container factory] Starting [Container factory] Started [J2EE Deployer Default] Starting [J2EE Deployer Default] No web container found - only EJB deployment available... [J2EE Deployer Default] Cleaning up deployment directory [J2EE Deployer Default] Started [Auto deploy] Starting [Auto deploy] Watching /usr/local/jboss/deploy [Auto deploy] Started [MinervaXACMFactory] Starting [MinervaXACMFactory] Connection manager factory 'MinervaXACMFactory bound to 'java:/MinervaXACMFactory' [MinervaXACMFactory] Started [JMX RMI Adaptor] Starting [JMX RMI Adaptor] Started [JMX RMI Connector] Starting [JMX RMI Connector] Started [BlackBoxDS] Starting [BlackBoxDS] Started [DefaultDS] Starting [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS Below is the jboss.jcml file. I used your jboss.conf exactly. ?xml version="1.0" encoding="UTF-8"? server !-- Classloading -- mbean code="org.jboss.web.WebService" name="DefaultDomain:service=Webserver" attribute name="Port"8083/attribute /mbean !-- JNDI --
[JBoss-user] 2.2.1 release available at sourceforge
A new 2.2.1 release is available from the jboss.org page at sourceforge along with a JBoss2.2.1/Tomcat3.2.1 bundle. See http://sourceforge.net/projects/jboss/ An new JBoss2.2.1/Jetty bundle will be released later today. See the Change Notes with Group=v2.2.1 for the changes relative to the 2.2.0 release. A JBoss_2_2_1 tag has been added to the jboss, jbosssx and contrib/tomcat cvs modules for the source/libs that went into the 2.2.1 release. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Session Validation
Hi, Is there a way to check if a user's session is valid in JBoss? Is there a JBossmethod or function that I can call. Outside of that there is always the session time out. Southin ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Flushing Cache (For Simone ?)
On the topic of flushing the EJB cache Francois Archambault said... |So we created our own LRUEnterpriseContextCachePolicy class to be able |to passivate beans with JMS messages. We actually call the ageOut |method with the beans key we want to flush by going through the LRUList |obtains from getList() method. But there is still a problem, the beans |that are in a transaction don't get passivated. Simone Bordet added... Anyway, what you really need is not a passivation IMHO, but a complete reload of the beans that are in the cache from the underlying DB. Normally you can do this using commit options B or C, but you still want to have A and only sometimes (upon JMS message) a behavior like B or C. IMHO best solution will be mark all the cached beans for reload, instead of passivating them, and this can be done by a custom TimerTask simply extending LRUEnterpriseContextCachePolicy with your cache. Check the EntitySynchronizationInterceptor for informations about the flag that marks a bean for reload. Marc Fleury replied... I believe it is a brilliant idea with the wrong implementation, it belongs at the Option A/B/C that informs the container that he should be updating the state of the beans. In other words, passivating is the wrong thing to do you want to be working in the synchronization interceptor. After reading Simone's and Marc's posts, I agree that passivation is the wrong way to go. But I don't agree that we want a behavior like B/C as Simone interprets it. It's really just a matter or reloading the fresh data when it has been changed... And we know exactly when data was changed because we control the other application. I think Simone nailed the real solution when he wrote we should simply mark beans for reload. background What we are facing is an interesting challenge. Our company believes in J2EE and is willing to transform our fat-client VB 6 based architecture to a distributed architecture built on J2EE. That's a good thing (TM). But our software is very large and cannot be converted in a one-shot operation. There will be an overlap during which the VB app will poke at the repository while JBoss serves EJBs. That's not such a good thing! :) Commit options B/C _would_ support this architecture, but with a heavy price IMO... no caching of entities, even ones that are _unlikely_ to change. But, life being what it is, they _will_ change and we have to make sure the changes are propagated to JBoss. /background So we are implementing the approach recommended by Simone and will keep you guys posted with our results. Our follow-up discussions will be made on JBoss-dev as we face (probably) more technical challenges ;-) pat-on-the-back Francois and I come from the Orion server world, and quite frankly, made the move to JBoss mainly because of a lack of support on the discussion list from Orion. It is a very refreshing change to see the energy and drive of people involved with JBoss. You guys have created a strong community and it's exciting to be part of this venture with the rest of you. Keep up the excellent work! /pat-on-the-back Daniel ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] DataSource, JDBC, and stuffs
Hi, Step 1. You should have a getConnection() method that returns a java.sql.Connection object, which is retrieved through Context.lookup(). We use a base class with the following method: protected Connection getConnection() throws SQLException { Connection conn = null; Object o; String url = "java:comp/env/jdbc/MyDB"; if (ds == null) { try { o = ctx.lookup(url); ds = (javax.sql.DataSource) o; } catch (NamingException e) { throw new SQLException("Cannot find "+url+"\n"+e.getMessage()); } } return ds.getConnection(); } Your ejb-jar.xml should look like this: entity ejb-nameMyBean/ejb-name homeMyBeanHome/home remoteMyBean/remote ejb-classMyBean/ejb-class persistence-typeBean/persistence-type prim-key-classjava.lang.String/prim-key-class reentrantFalse/reentrant resource-ref res-ref-namejdbc/MyDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /entity The url used in getConnection() refes to the res-ref-name entry in your ejb-jar.xml The res-ref-name is then further used in your jboss.xml resource-managers resource-manager res-class="org.jboss.ejb.deployment.JDBCResource" res-namejdbc/access/res-name res-jndi-namejava:/MyDB/res-jndi-name/resource-manager /resource-managers enterprise-beans entity ejb-nameMyBean/ejb-name jndi-namemy/MyBeanHome/jndi-name configuration-name/configuration-name resource-ref res-ref-namejdbc/MyDB/res-ref-name resource-namejdbc/access/resource-name /resource-ref /entity /enterprise-beans Eventually, we end up with the res-jndi-name in jboss.xmlreferring to the connection pool name specified in jboss.jcml mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=MyDB" attribute name="PoolName"MyDB/attribute attribute name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl/attribute attribute name="Properties"URL=jdbc:oracle:thin:servsoft/servsoft@pluto:1521:servsoft/attribute attribute name="URL"jdbc:oracle:thin:@pluto:1521:servsoft/attribute attribute name="JDBCUser"user/attribute attribute name="Password"pwd/attribute /mbean Hope this helps. Let me know if you need more. Regs, Ijonas. - Original Message - From: "Cokorda Raka Angga Jananuraga" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 3:38 PM Subject: Re: [JBoss-user] DataSource, JDBC, and stuffs Hi, I have exactly the same problem (please see email with subject: JNDI and Connection Pool, etc. From Pellegrini, John. Posted on Sun, 01 Apr 2001 06:49:56 -0700). Please, does anybody know the answer to this problem. thanks a lot, Raka --- Cokorda Raka Angga Jananuraga [EMAIL PROTECTED] wrote: Hi, I'm a newbie to EJB and JBoss. Now, I'm entering creating BMP entity bean chapter in my EJB book. I have trouble in deploying the bean, especially mapping a jndi name to a connection pool (?). Which files to configure, and how ? I can't find enough clues in JBoss documentation. I've searched the maillist archive, but found little reference. Any hints would be very appriciated. Thanks a lot, Raka __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user