Re: [JBoss-user] EJB concurrency
Hmm... maybe some of the pool implementors can answer this one? > does the number of pool instances equate to the number of concurrent uses in > jboss? every "pool" i've worked with removes the object from the pool once > it's allocated (replacing it if the pool gets too small) and returns it when > it's available again. that traditional pool functionality helps the > scenario below not at all, since the service is more than willing to let 10k > concurrent threads grab EJB references while the pool itself only stuggles > to maintain its minimum count. > > chris > > -Original Message- > From: Michel & Anke [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 21, 2001 6:04 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] EJB concurrency > > Maybe limit the number of pool instances would work? > > Michel de Groot > > > Is there a way to limit the number of EJB instances used concurrently? > > > > An example scenario: > > > > Two message queues, Q1 and Q2. Two message beans, B1 and B2 handling > > messages from their respective queues. B1 receives a message, processes > it, > > and under certain conditions sends a message to Q2. B2 receives a > message, > > processes it, and sends multiple messages to Q1. (if this sounds odd, > think > > link handling in a web spider) One can easily see how this can quickly > lead > > to thread counts and VM sizes growing exponentially, the only throttling > > factor being B1's conditional logic. However, if the number of concurrent > > instances of B2 is limited then this setup can work quite efficiently. Is > > there a way to specify that in deployment? > > > > chris > > > > "Technology that remains a tool only for the elite few is a failed > > technology." > > - Douglas E. Welch > > <> > > ___ > 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] JBoss and Java Web Start
Hi, I think you need to set the option -Djavax.naming.initialcontext to the class that implements the initialcontext (f.e. javax.naming.InitialContext). I'm not sure I typed the right option name, so check the JNDI spec for this. Do you like Web Start? Michel de Groot > Hi ! > > We are trying to get a client application communicating with JBoss to work > with Java Web Start. > > When creating the InitialContext, > javax.naming.NoInitialContextException... > (Se stacktrace). > > When we directly run the application, there is no problem. > > We tried to unpack the jnp-client and jta-spec files and included them > into our own application jar file, and the same error occured ! > > It really looks like that the file isn't loaded into the Classpath.. but why > ? > > Anyone having any ideas ? > > Regards > // Johan > > ** System configuration > Win2k > JDK1.3 > JBoss 2.0 FINAL and JBoss 2.1 (Tried it both, same problem). > > ** The files that are included in the client classpath > jboss-client.jar > ejb.jar > jnp-client.jar > jta-spec1_0_1.jar > > ** Code for creating the InitialContext > ... > > Properties contextProps = new Properties(); > > > contextProps.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingC > ontextFactory"); > contextProps.put("java.naming.factory.url.pkgs", > "org.jboss.naming"); > > if (System.getProperty(Context.PROVIDER_URL) == null) { > contextProps.put(Context.PROVIDER_URL, "localhost"); > } > > iContext = new InitialContext( contextProps ); < Exception is > thrown > > ... > > ** Stack trace > 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(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source) > at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) > at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) > at javax.naming.InitialContext.init(Unknown Source) > at javax.naming.InitialContext.(Unknown Source) > at > se.speakup.kvalitid.jndi.InitialContextFactory.getInitialContext(InitialCont > extFactory.java:44) > > > johan.nordin > > SpeakUp DevCon AB > Nygatan 3, 803 20 Gävle > Tel +46-(0)26-600 690, Fax +46-(0)26-600 691 > Mobile +46-(0)70-778 17 70 > E-mail [EMAIL PROTECTED], Web www.speakup.se > > ___ > 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] X509 Client certificate authentication module?
Thanks, I will have a look at it. What's its location in the source tree? Michel > I have an LDAP based LoginModule just about ready for check in. It will be committed > tonight. The credentials are whatever you pass in and could be an X509 cert. > > - Original Message - > From: "Michel & Anke" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 21, 2001 2:42 PM > Subject: [JBoss-user] X509 Client certificate authentication module? > > > Does anyone know of or have a security pluging for Tomcat/JBoss that allows to > > authenticate using X509 client-side certificates? Anyone chance for an > > integration with LDAP tools? > > > > Can people provide some pointers to open source/free tools that could be > > useful? > > > > Michel de Groot > > > > > > > > ___ > > 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] X509 Client certificate authentication module?
Well, before I jump into it, it seems like a Good Idea to check that reuse is not an option. Before I start working on it, I need to know what tools are available. Michel > |[mailto:[EMAIL PROTECTED]]On Behalf Of Michel & > |Anke > |Sent: Wednesday, March 21, 2001 5:42 PM > |To: [EMAIL PROTECTED] > |Subject: [JBoss-user] X509 Client certificate authentication module? > | > | > |Does anyone know of or have a security pluging for Tomcat/JBoss > |that allows to > |authenticate using X509 client-side certificates? Anyone chance for an > |integration with LDAP tools? > | > |Can people provide some pointers to open source/free tools that could be > |useful? > > yeah and the pointers all go to you :) > > why don't you write that plugin? you have rw > marc > > | > |Michel de Groot > | > | > | > |___ > |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] EJB concurrency
Maybe limit the number of pool instances would work? Michel de Groot > Is there a way to limit the number of EJB instances used concurrently? > > An example scenario: > > Two message queues, Q1 and Q2. Two message beans, B1 and B2 handling > messages from their respective queues. B1 receives a message, processes it, > and under certain conditions sends a message to Q2. B2 receives a message, > processes it, and sends multiple messages to Q1. (if this sounds odd, think > link handling in a web spider) One can easily see how this can quickly lead > to thread counts and VM sizes growing exponentially, the only throttling > factor being B1's conditional logic. However, if the number of concurrent > instances of B2 is limited then this setup can work quite efficiently. Is > there a way to specify that in deployment? > > chris > > "Technology that remains a tool only for the elite few is a failed > technology." > - Douglas E. Welch > <> ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss+tomcat+cocoon anyone?
Hi Uno, move xerces.jar to the front of the classpath, like: CLASSPATH=xerces.jar:$CLASSPATH Works for me. Sincerely, Michel de Groot > Hi, I'm trying to install the cocoon servlet from xml.apache.org > on top of jboss with embedded tomcat. > However there seam to be some class path error. > > I suspect that some other XML package is loaded > before the Xerces package that is required by > the cocoon servlet. > > How can I avoid this class path collision? > Changing the CLASSPATH environment variable > doesn't seam to help. > > Regards > Uno Engborg > > ___ > 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] JBoss+tomcat+cocoon anyone?
If you want to add another XML parser than the JBoss default (Sun XML), f.e. Xerces, add it at the front of the classpath in run.sh Michel de Groot > hi, cocoon as been installed on top of jboss-tomcat by several people, > there has been several post explainning it. > have a look at the archive www.mail-archive.com. > > but basicly obne way to do it is to : > set your classpath to "" in run.bat > then add tools.jar,run.jar to it. > then add all the cocoon classes in it. > el. > > Uno Engborg wrote: > > > Hi, I'm trying to install the cocoon servlet from xml.apache.org > > on top of jboss with embedded tomcat. > > However there seam to be some class path error. > > > > I suspect that some other XML package is loaded > > before the Xerces package that is required by > > the cocoon servlet. > > > > How can I avoid this class path collision? > > Changing the CLASSPATH environment variable > > doesn't seam to help. > > > > > > > > Regards > > Uno Engborg > > > > > > > > > > ___ > > 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] Tools.jar replacement?
What free/open source replacements for tools.jar (especially the java compiler) exist? Jikes seems to do it. Any other alternatives? Michel de Groot > > > Yeah you still need to add tools.jar from the JDK 1.2 or 1.3 into your > classpath. > > Hope this helps > > Regards > > Scott Warren > Lead Internet Technologies Developer > > > > Phone: +61 3 5222 6240 > mailto: [EMAIL PROTECTED] > web: www.advancedresource.com.au > > > > -Original Message- > From: Fumiko Kutch [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 20 March 2001 11:31 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] JBOSS-Tomcat-2.1 beta, Error 500. > > Hi, > > I have installed Jboss-Tomcat-2.1 beta.- I tested servlets and it > works well. But with JSP I am getting > an Error: 500. Am I forgetting something? Any tips? > > - Thanks > Location: /examples/jsp/snp/snoop.jsp > Internal Servlet Error: > > javax.servlet.ServletException: sun/tools/javac/Main > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) > 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) > > Root cause: > java.lang.NoClassDefFoundError: sun/tools/javac/Main > at > org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) > > at > org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) > at > org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) > at > org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) > > at > org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) > at > >org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) > > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) > > 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) ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] DB to XML Project Exist?
___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] X509 Client certificate authentication module?
Does anyone know of or have a security pluging for Tomcat/JBoss that allows to authenticate using X509 client-side certificates? Anyone chance for an integration with LDAP tools? Can people provide some pointers to open source/free tools that could be useful? Michel de Groot ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Please clarify JBoss and Tomcat setup
Hi, for JBoss and Tomcat install you only need jboss-tomcat-2.1-beta.zip. Unzip the zip file. That's it. You're ready, it works. Try to deploy an EAR containing a WAR in the jboss21/deploy directory. Alternatively, you can modify the tomcat32/conf/serverl.xml and add a context pointing to a directory where you have a WAR or an unpacked web application. You always start jboss and the embedded tomcat using jboss21/bin/run.sh or run.bat (depending on your platform). Sincerely, Michel de Groot > Hello. > > I have downloaded jboss-2.1.zip and jboss-tomcat-2.1-beta.zip. I > extracted JBoss to C:\JBoss and Tomcat to C:\jboss-tomcat-2.1-beta > > So far so good. > Could someone please point me to the correct documentation on how to run > Tomcat with JBoss ? I've find instructions in the following places: > > 1. In the new JBOSS manual, in section Running Tomcat with JBOSS at: > http://www.jboss.org/documentation/HTML/ch09.html#N1d28). > 2. In the JBoss 2.0 manual (PRELIMINARY) at: > http://www.jboss.org/manual/third_party.html#tomcat > 3. In the How-To "Tomcat + JBoss (EJB,JSP, & Servlet)" at: > http://www.jboss.org/business/jboss-tomcat.html > > The three sets of instructions are not consistant. The instructions in #1 > and #2 are similar, but they refer to a package > org.jboss.tomcat.EmbeddedTomcatService When I look in the JBoss.jar file > I do not see this class. I see a class called TomcatService, but no > EmbeddedTomcatService. > The instructions in #3 are also different. > > I followed along with the instructions in #1/#2, and replaced > org.jboss.tomcat.EmbeddedTomcatService with org.jboss.tomcat.TomcatService > > When I start JBoss using run.bat in JBoss\dist\bin, I get the following > exceptions: > > [Service Control] Registered with server > java.lang.NoSuchMethodException: No such constructor > at > >com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.java:2207) > at > com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:761) > at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540) > at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369) > at org.jboss.Main.(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) > > [Tomcat] Starting > [Tomcat] Testing if Tomcat is present > [Tomcat] failed > [Tomcat] Tomcat wasn't found. Be sure to have your CLASSPATH correctly set > [Tomcat] Started > > I realize this is a long email, but if anyone can clarify the JBoss/Tomcat > setup please let me know. > > Thank you ! > > Wayne > > Wayne Leishman > > ___ > Do You Yahoo!? > Get your free @yahoo.ca address at http://mail.yahoo.ca > > ___ > 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