Re: [JBoss-user] Register Login User In One Step
James Ward wrote: Has anyone figured out a cool way with JBoss and JAAS to make it so that when a user registers on a web page (ie. creates an account) they get automatically logged in? Assuming you have a servlet, or servlet-like class where you receive the HTTP request that creates the new account (such as a Struts Action), why not just include a redirect at the end of the class that auto-submits the login using the newly-created username/password? Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Register Login User In One Step
James Ward wrote: Erik, Thanks for the response. I am just not sure how to do this with form based auth and the j_security_check stuff. Any help would be greatly appreciated. Hmm Well, if form-based auth didn't expect a POST request with the login credentials, you could just call sendRedirect with GET parameters in a URL like server.com/j_security_check?J_USERNAME=jwardJ_PASSWORD=secret. The only way I can think of doing it would be kind of an ugly hack, but it might work. You can open a socket directly connecting to the server and hand-create a string-based HTTP POST request yourself by typing in the headers, followed by two newlines, followed by J_USERNAME=jwardJ_PASSWORD=secret. The problem is that I don't know how you would capture the response -- in fact, I don't this would work after all. It would submit the POST request but the browser wouldn't be updated that it is now privileged to access the protected resources. So I don't know if it's possible using CMA after all... I take it all back. Apologies, Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [GWAVA:18k7caob] Attachment filter message notification
Now the spam that this list gets is generating bounce message spam? That's like, a double-shot, or something... GWAVA wrote: This is an automated Notification e-mail message from GWAVA. The message you sent, from the address [EMAIL PROTECTED] to [No To Addresses] Concerning: [JBoss-user] MUCH BIGGER PENIS?238451 Was not delivered because it contained content not accepted by the e-mail system in use at the intended recipient's organization. The message contained the following text: %%FilterContent --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Transaction Problems
Nikolay Ganev wrote: hi all, I solved my problem!! the problem was in the database - i use MySQL 4.1. I tried the same example using MSSQL2000 and it works!! can anybody tell me what to do in order to run transaction on MySQL??? You need to use InnoDB table type, not MyISAM. http://www.mysql.com/doc/en/ANSI_diff_Transactions.html Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] Tx lock detection not possible even as i enabledEntityLockMonitor
Janardhan, You probably want to raise the logging level for the org.jboss.mx.loading category as well if you don't want to see these debug statements. Do it the same way as you did for the org.jboss.ejb.plugins.jaws.jdbc category. Erik Janardhan Burugupalli wrote: Thanks Scott, That worked !! it was a great tip ..i dont know in spite of reading the documentation many times we miss some things but thanks ... and i have one more question that i see a lot of debug stmts as below 2003-07-23 07:55:54,933 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null 2003-07-23 07:55:55,074 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null 2003-07-23 07:55:55,074 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null in my server.log can any one tell me why they are often coming up i deploy two ear files with separate loaders and three war files and also in these two ear files there are two more war files. Using Jbos-3.2.1-Tomcat-4.1.24 SAPDB j2sdk1.4.1_03 regards jani -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Scott M Stark Gesendet: Mittwoch, 23. Juli 2003 01:56 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] Tx lock detection not possible even as i enabled EntityLockMonitor To turn off debugging for a particular category, set its priority to the level at which msgs should be logged in the conf/log4j.xml: category name=org.jboss.ejb.plugins.jaws.jdbc priority value=INFO/ /category -- Scott Stark Chief Technology Officer JBoss Group, LLC Bill Burke wrote: Does the TX eventually time out and give you a stack trace? There is one deadlock scenario that we don't detect All this is in the same thread. 1. begin tx1 2. access entity bean A (does lock for tx1 3. suspend tx1 (a RequiresNew or something similar) 4. begin tx2 5. access entity bean A How to turn off debugging? Go to server/default/conf/log4j.xml In the FILE appender add a threshhold of WARN or INFO: param name=Threshold value=INFO/ Bill --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Database JNDI Name Not Found
Rod Macpherson wrote: I tried the oracle-ds.xml approach previously but it too failed. Tried it again this morning only this time I preserved the name oracle-ds.xml and it worked. Renamed it to oracle-service.xml and it failed again. Renamed it to banana-ds.xml and sure enough that works. I take it the -ds segment of the basename is now important? The 3.2.1 Admin/Devel doc says that the org.jboss.deployment.XSLSubDeployer searches for *-ds.xml files. (page 356). Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ClassLoading, dom4j, xerces,
Stefan Groschupf wrote: Hi Jboss community. Im sorry the class loading issue is discussed many times in this list, but I still have trouble to find my problem. I use dom 4j in my webfrontend for xslt transformation. The dom4j version require an pacht of the jdk. As described by dom4j I had patched my jdk 1.4.1 and put xalan.jar, xml-apis.jar and xercesImpl.jar in the jdk/jre/lib/endorsed folder. Now I have a component I want to use in my application that require the old versions of the libraries. Put the older versions of the libraries in a the lib folder of my component ear dont fix the problem. ;/ Putting the new libraries only in the lib folder of my application ear dont fix the problem as well not. ;( Can someone point me to an resource that can help me understand where my problem can be, or someone has any hint for me? Here is a decent brief introduction to how the class loader hierarchy works -- although the description is specific to Tomcat, the information holds true for all Java classloader concepts: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html#Overview It sounds like the endorsed libs you are using are hiding the webapp-specific libs. Erik --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] ClassLoading, dom4j, xerces,
Stefan Groschupf wrote: Hi Eric, thanks for your fast replay! http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html#Ov erview It sounds like the endorsed libs you are using are hiding the webapp-specific libs. So far I understand the java classloading concept. My question where I have to store my libaries in jboss for both ear's ( that need different versions ) - without patching my jdk. Well, the patch of the JDK is simply to tell your Java runtime to use a more modern XML parser (I forget the specific versions of Xerces that are at issue). Using the endorsed directory is an easy way to do it because the runtime classloaders will check there first. However, what you are saying suggests that you need the older parser for some reason -- in that case you should probably remove the libraries from the endorsed directory and manually specify which parser library should be used using system properties. However I think that the system property is global to the particular JVM, so if your two different ClassLoader instances are sharing the same JVM, I am not sure if this will help you. This is a snip from the JWSDP release notes that explains how to do it, however if it doesn't work then I do not have any suggestions... classloader issues can be very tricky and I don't know much about it. From http://java.sun.com/webservices/docs/1.1/ReleaseNotes.html#issues: Overriding the J2SE SDK 1.4.x JAXP Endorsed Classes To use the JAXP v1.2.2 component from the Java WSDP in a J2SE SDK v1.4.x environment, you need to create the directory JAVA_HOME/jre/lib/endorsed. Then, copy the dom.jar, sax.jar, xalan.jar, xercesImpl.jar, and xsltc.jar files from the JWSDP_HOME/jaxp-1.2.2/lib/endorsed directory to the directory JAVA_HOME/jre/lib/endorsed. Alternatively, you could set the java.endorsed.dirs system property to point to the JWSDP_HOME/jaxp-1.2.2/lib/endorsed directory. Good luck, Erik --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JNDI no longer working?
Last week I had a very simple stateless session bean running in JBoss, and I was able to access it perfectly using a simple client program. Now the client program does not find JNDI and I cannot figure out why. I have not changed any of the default JBoss settings (to the best of my knowledge). I even removed the JBoss installation and unzipped a new copy, to ensure that any configuration changes I may have accidentally made would be forgotten. I am running both client and JBoss (3.2.1) on localhost. I have appended the error to this email. Can anyone give me a suggestion as to what might be causing this problem? I have tried everything. Thank you, Erik $ ant client Buildfile: build.xml init: client: [java] javax.naming.CommunicationException: Receive timed out. Root exception is java.net.Sock etTimeoutException: Receive timed out [java] at java.net.PlainDatagramSocketImpl.receive(Native Method) [java] at java.net.DatagramSocket.receive(DatagramSocket.java:671) [java] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038) [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1127) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471) [java] at javax.naming.InitialContext.lookup(InitialContext.java:347) [java] at examples.CountClient.main(CountClient.java:27) --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JNDI no longer working?
Bill Burke wrote: It looks like you do not have any provider url set. When this is true, JBoss will try to discover the JNDI service via multicast. Multicast may not be running on your machine. Are you running unplugged from network? Hm... no, the machine has a dedicated network connection. Do you mean the java.naming.provider.url? I am running the client from within an Ant build file, and have defined it as a system property. Here is an example: java classname=examples.${client.class} failonerror=true fork=true classpath refid=compile.classpath/ classpath refid=client.classpath/ sysproperty key=java.naming.factory.initial value=org.jnp.interfaces.NamingContextFactory / sysproperty key=java.naming.provider.url value=localhost:1099 / /java and just to make sure that the system properties are indeed being passed into my simple client program, I have even hardcoded these values like so: try { java.util.Properties props = new java.util.Properties(); props.setProperty( java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); props.setProperty( java.naming.provider.url, localhost:1099); Context ctx = // new InitialContext(System.getProperties()); new InitialContext(props); Object obj = ctx.lookup(Account); AccountHome home = (AccountHome)PortableRemoteObject.narrow( obj, AccountHome.class); And in addition to localhost:1099, I've tried jnp://localhost:1099, as shown in the 3.2.x docs (p. 180). I'm really bewildered. I've made no changes to the network settings of this box (Win2K w/Cygwin), and since I'm using a freshly-downloaded JBoss 3.2.1, I can't think of a single configuration within JBoss that may have caused the problem. It's just like the client program can't find an InitialContext or something. Erik --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JNDI no longer working?
Hm. After spending a lot of time trying to figure out what went wrong, I finally tried rebooting the machine -- which I hate doing only because it doesn't explain anything -- and now I am able to communicate with JNDI (I do not get that infernal CommunicationException). Thanks anyways for your input, Steven and Bill. Erik Steven Harris wrote: The jndi.properties file that comes with the examples for the Admin and Development guide loks like this: ### JBossNS properties java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=jnp://localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces This works for us with ant. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 3:20 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JNDI no longer working? Bill Burke wrote: It looks like you do not have any provider url set. When this is true, JBoss will try to discover the JNDI service via multicast. Multicast may not be running on your machine. Are you running unplugged from network? Hm... no, the machine has a dedicated network connection. Do you mean the java.naming.provider.url? I am running the client from within an Ant build file, and have defined it as a system property. Here is an example: java classname=examples.${client.class} failonerror=true fork=true classpath refid=compile.classpath/ classpath refid=client.classpath/ sysproperty key=java.naming.factory.initial value=org.jnp.interfaces.NamingContextFactory / sysproperty key=java.naming.provider.url value=localhost:1099 / /java and just to make sure that the system properties are indeed being passed into my simple client program, I have even hardcoded these values like so: try { java.util.Properties props = new java.util.Properties(); props.setProperty( java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); props.setProperty( java.naming.provider.url, localhost:1099); Context ctx = // new InitialContext(System.getProperties()); new InitialContext(props); Object obj = ctx.lookup(Account); AccountHome home = (AccountHome)PortableRemoteObject.narrow( obj, AccountHome.class); And in addition to localhost:1099, I've tried jnp://localhost:1099, as shown in the 3.2.x docs (p. 180). I'm really bewildered. I've made no changes to the network settings of this box (Win2K w/Cygwin), and since I'm using a freshly-downloaded JBoss 3.2.1, I can't think of a single configuration within JBoss that may have caused the problem. It's just like the client program can't find an InitialContext or something. Erik --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] configure JBoss for Postgres
Scott M Stark wrote: Drop the postgresql-ds.xml in the deploy directory like any other deployable and then use the corresponding JNDI name to lookup the datasource. If you are getting hsqldb you are looking up its datasource binding, which in the example is PostgresDS, so lookup java:/PostgresDS Scott, thank you for clarifying that for me. I guess that I hadn't really grasped what a deployable is, but now it makes perfect sense. Deployables go in the deploy directory, duh. Not the ejb jar's META-INF. After rebooting to get rid of the mysterious JNDI problem (mentioned in another thread), I dropped it into deploy, and it works great now. Thanks again. Erik --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] configure JBoss for Postgres
Hi, I have deployed the simple BMP entity bean from Mastering EJB on JBoss 3.2.1, and it deploys fine. However, the bean managed persistence code requires Connections from a javax.sql.DataSource, and although I have configured the DataSource in my ejb-jar.xml (see below) so that I can access it through JNDI, I am unsure of where to instruct JBoss of the JDBC connection information. Specifically, the JDBC URL:PORT/database name, the username to connect as, and the password. I have the 3.2.x docs if someone can point me in the right direction so I can see where this is set up. I have pored over chapter 3, JNDI, and although it describes ejb-jar.xml DataSource configuration, I can't find the description that explains where to specify database connection parameters like this (in a JBoss-specific manner). Thank you, Erik snipped from my ejb-jar.xml: [...] enterprise-beans entity [...] resource-ref res-ref-namejdbc/ejbPool/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /entity /enterprise-beans [...] --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] configure JBoss for Postgres
Scott M Stark wrote: Chapter 7 on the JCA layer as well as the datasource config excerpt on sourceforge. Scott, thanks for the pointer. After reading the JCA chapter, I have copied the $JBOSS_HOME/docs/examples/jca/postgresql-ds.xml file into my META-INF directory and modified it for accessing my Postgres database. (The configuration works fine from a standard JDBC Connection.) However, I suspect that I'm not deploying this file correctly -- can you clarify what is meant by deployed the same as other deployable components in this excerpt from page 356 of the 3.2.x docs? The simplified configuration descriptor is deployed the same as other deployable components. The descriptor must be named using a *-ds.xml pattern in order to be recognized by the XSLSubDeployer. I note that in the stack trace (appended to this email) it seems like HSQLDB driver classes are being used to access this DataSource, which is why I suspect that I am not deploying postgres-ds.xml correctly. Thanks, Erik 14:48:18,145 ERROR [STDERR] java.sql.SQLException: Table not found: ACCOUNTS in statement [SELECT SUM(balance) AS total FROM accounts] 14:48:18,145 ERROR [STDERR] at org.hsqldb.Trace.getError(Unknown Source) 14:48:18,145 ERROR [STDERR] at org.hsqldb.Result.init(Unknown Source) 14:48:18,145 ERROR [STDERR] at org.hsqldb.jdbcConnection.executeHSQL(Unknown Source) 14:48:18,145 ERROR [STDERR] at org.hsqldb.jdbcConnection.execute(Unknown Sou rce) 14:48:18,160 ERROR [STDERR] at org.hsqldb.jdbcStatement.fetchResult(Unknown Source) 14:48:18,160 ERROR [STDERR] at org.hsqldb.jdbcStatement.executeQuery(Unknown Source) 14:48:18,160 ERROR [STDERR] at org.hsqldb.jdbcPreparedStatement.executeQuery (Unknown Source) 14:48:18,176 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrappedPrepar edStatement.executeQuery(WrappedPreparedStatement.java:289) 14:48:18,176 ERROR [STDERR] at examples.AccountBean.ejbHomeGetTotalBankValue (AccountBean.java:120) 14:48:18,176 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) 14:48:18,176 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39) 14:48:18,191 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25) 14:48:18,191 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:3 24) 14:48:18,191 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterc eptor.invokeHome(EntityContainer.java:1009) 14:48:18,207 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationIn terceptor.invokeHome(EntitySynchronizationInterceptor.java:188) 14:48:18,207 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedCo nnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215) 14:48:18,207 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.inv okeHome(AbstractInterceptor.java:88) 14:48:18,223 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceIntercept or.invokeHome(EntityInstanceInterceptor.java:91) 14:48:18,254 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.i nvokeHome(EntityLockInterceptor.java:61) 14:48:18,254 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationIntercept or.invokeHome(EntityCreationInterceptor.java:28) 14:48:18,254 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.i nvokeNext(AbstractTxInterceptor.java:88) 14:48:18,270 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWit hTransactions(TxInterceptorCMT.java:243) 14:48:18,270 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke Home(TxInterceptorCMT.java:74) 14:48:18,270 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.inv okeHome(SecurityInterceptor.java:92) 14:48:18,270 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHo me(LogInterceptor.java:120) 14:48:18,285 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInter ceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) 14:48:18,285 ERROR [STDERR] at org.jboss.ejb.EntityContainer.internalInvokeH ome(EntityContainer.java:477) 14:48:18,285 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java :694) 14:48:18,301 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) 14:48:18,301 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39) 14:48:18,301 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25) 14:48:18,316 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:3 24) 14:48:18,316 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatc her.invoke(ReflectedMBeanDispatcher.java:284) 14:48:18,316 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB eanServerImpl.java:549) 14:48:18,316 ERROR [STDERR] at
[JBoss-user] question about 3.2.x docs
Hi, On page 197 of the 3.2.x JBoss docs (JBoss Administration and Development, 3rd Edition), the description of jboss-web.xml says that within the resource-ref element, an optional res-type element can appear. However, the jboss-web_3_2.dtd doesn't seem to allow this element to appear. Is this just a technical mistake, or am I using the wrong DTD? !DOCTYPE jboss-web PUBLIC PUBLIC -//JBoss//DTD Web Application 2.3V2//EN http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd; Basically, I'm not sure where to specify my JDBC connection parameters for a BMP that makes some DB calls. I feel like I'm reading the right part of the docs but I guess I'm just not seeing it. Thanks, Erik --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] constraining session bean pool
Brian Wallis wrote: On Wed, 9 Jul 2003 10:44, Bill Burke wrote: there is a strict max size setting. Forget the config name. I think it is StrictMaxSizetrue/StrictMaxSize Thanks everyone, I do appreciate the help. However, it doesn't seem to have the effect I was hoping for: When I couldn't find StrictMaxSize in the DTD, I figured it must be in JBoss 3.2.x (I was using 3.0.x) and sure enough there is strictMaximumSize. I upgraded to 3.2.x and changed my jboss.xml file appropriately. I've put some simple System.out.println statements in the ejbCreate(), ejbRemove(), ejbActivate(), and ejbPassivate() methods so that I can watch as each of these methods is called by the container. Then I run a simple client that creates 3 EJB objects (each corresponds to a stateful SessionBean). By using MaximumSize2/MaximumSize strictMaximumSizeTrue/strictMaximumSize I had hoped that this would limit the pool of available Session beans to 2, so that the container would be forced to passivate and then activate one of the beans to service the third EJB object. The ejbCreate() and ejbDestroy() methods output log messages as expected, but the ejbPassivate() and ejbActivate() methods don't appear to be getting called by the container. Does anyone know if I am misusing the container-pool-conf or misunderstanding something? Thanks, Erik --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] constraining session bean pool
Scott M Stark wrote: This is only working for stateless beans and mdbs currently. Its a known issue as there is a unit test which fails because of this. Its on my todo to fix for the 3.2.2RC2 release. No problem! It's just a learning exercise. Thanks for sparing me a bug hunt, Scott. Nevertheless, I learned quite a bit about JBoss bean pool configuration from this thread. Thanks to everyone who helped. Erik --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] where to purchase 3.x docs
Scott M Stark wrote: Apparently they are only allowing purchases through our web site. Okay thanks Scott. I'll reconfigure my prefs and try again thru jboss.org. Erik --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] where to purchase 3.x docs
Erik Price wrote: Scott M Stark wrote: Apparently they are only allowing purchases through our web site. Okay thanks Scott. I'll reconfigure my prefs and try again thru jboss.org. This worked, btw, if anyone runs into this problem in the future. You need to have your browser to accept cookies from sites other than the originating web site (original HTTP req). Also note that it seems you will need to be using Windows, as ComponentSource.com downloads a .exe to your system which then downloads the PDF. Not sure if a Java app or similar is offered for non-Win32 systems.* Thanks again for the pointers everyone. Erik * Maybe JBoss will become more popular with MacOSX-using developers when 10.3 ships with JBoss embedded by default: http://maccentral.macworld.com/news/2003/07/08/jboss/ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] constraining session bean pool
Scott M Stark wrote: You can't define such a minimal container configuration without extending an existing one. Use: jboss container-configurations container-configuration extends=Standard Stateful SessionBean container-nameStateful Session Bean MasteringEJB/container-name Great, my JAR deployed successfully when I copied it into $JBOSS_HOME/server/default/deploy. I was then able to run a simple client application which uses 3 separate EJB objects (each of which is a simple stateful session bean) and does a simple task. However, what I was trying to do is limit the pool of available stateful session beans to 2, so that the ejbPassivate() and ejbActivate() methods would be called. I also adjusted my jboss.xml to include an enterprise-beans element with a session element whose ejb-name is the same as the ejb-name I have in my ejb-jar.xml, and whose configuration-name is the same as the container-name element in my container-configuration. I have appended the updated contents of the jboss.xml file to the end of this email in case it is of any use. I am guessing that this is what Brian Wallis was referring to when he said that setting a container-pool-conf MaximumSize is not a hard limit. Does anyone know of another way to constrain the number of session beans? I don't have to do this, but I wanted to see this in action (self-education). Thanks again Brian and Scott for pointing me in the right direction on this. Erik (my jboss.xml:) ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.0//EN http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd; jboss enterprise-beans session ejb-nameCount/ejb-name configuration-name Stateful Session Bean MasteringEJB /configuration-name /session /enterprise-beans container-configurations container-configuration extends=Standard Stateful SessionBean container-name Stateful Session Bean MasteringEJB /container-name container-pool-conf MaximumSize2/MaximumSize feeder-policy org.jboss.ejb.plugins.TimedInstancePoolFeeder /feeder-policy feeder-policy-conf increment0/increment period0/period /feeder-policy-conf /container-pool-conf /container-configuration /container-configurations /jboss --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] where to purchase 3.x docs
Hi, Following the link from the JBoss.org web site to purchse 3.x base documentation leads to a no results found in the ComponentSource frame. I have emailed them but not heard back yet, does anyone have a direct link to the catalog entry for this item? Thank you, Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] where to purchase 3.x docs
Scott M Stark wrote: Use this direct link: http://www.componentsource.com/product.asp?SC=EJBOSPO=513502grc=JBOSSGRC=BACPPOS=PL Thanks. That took me right to the correct page, where I found both the Windows and the Unix versions for $10.00 each. I decided to purchase it on the spot, and was pleased to see that ComponentSource offered a telephone service where I could give my credit card information over the phone. However, when I called ComponentSource (1-888-850-9911), I was informed by the person I spoke with (whose name I forget) that they don't sell JBoss. I tried to explain that I wasn't interested in purchasing JBoss itself but rather the documentation which was listed on their site as an item for sale, but he steadfastly insisted that they don't sell JBoss. He said that the only way to purchase JBoss is directly from the JBoss.org web site. I even explained that I had a reference code, presumably pointing to the fact that ComponentSource does indeed list the JBoss documentation on their site, but he didn't want to even hear the code. He said that they only handle renewals, and offered little else to the situation. [In my opinion he could benefit from some customer service training; I had a more helpful attitude than that ten years ago when I worked in a fast food restaurant.] So, if this is not where to purchase JBoss documentation from, can someone clue me in on how it's supposed to work? The JBoss.org web site doesn't seem to have anything except the ComponentSource frame. Thanks, Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] constraining session bean pool
Brian Wallis wrote: On Fri, 4 Jul 2003 07:40, Erik Price wrote: How to configure JBoss 3.0 to constrain the session bean pool to only a certain number of session beans? (For stateful beans.) I wish to test ejbPassivate() and ejbActivate() in action. You will need to define your own session bean container configuration. The default ones are in conf/standardjboss.xml and you are probably currently using the Standard Stateful SessionBean one from that file which has a max pool size of 100. You can copy this configuration from there into your bean's jboss.xml file into the container-configuration section (see the jboss_3_0.dtd file for details) then adapt it to your needs. Change the container-pool-confMaximumSize from 100 to whatever you need. I've read the jboss.xml DTD (http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd) and constructed my jboss.xml per its requirements (I think), but I still get errors when I deploy the JAR file. Here are the contents of my jboss.xml, can anyone tell me what is wrong with it? I wasn't sure what to use as the value for the required element feeder-policy, so I just used the one suggested in the DTD's comments. ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.0//EN http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd; jboss container-configurations container-configuration container-nameStateful Session Bean MasteringEJB/container-name container-pool-conf MaximumSize2/MaximumSize feeder-policyorg.jboss.ejb.plugins.TimedInstancePoolFeeder/feeder-policy feeder-policy-conf increment0/increment period0/period /feeder-policy-conf /container-pool-conf /container-configuration /container-configurations /jboss The error messages I get are appended below. Thanks, Erik 19:14:07,468 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss /jboss-3.0.7_jakarta-tomcat-4.1.24/server/default/deploy/Count.jar 19:14:07,796 ERROR [MainDeployer] could not create deployment: file:/C:/jboss/jb oss-3.0.7_jakarta-tomcat-4.1.24/server/default/deploy/Count.jar org.jboss.deployment.DeploymentException: Failed to load metadata; - nested thro wable: (java.lang.NullPointerException) at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:326) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) at $Proxy3.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen tScanner.java:435) at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe ploymentScanner.java:656) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:507) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:217) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. loop(AbstractDeploymentScanner.java:230) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. run(AbstractDeploymentScanner.java:207) Caused by: java.lang.NullPointerException at org.jboss.metadata.ConfigurationMetaData.importJbossXml(Configuration MetaData.java:236) at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMeta Data.java:524) at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:184) at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:321) ... 16 more 19:14:07,890 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment [EMAIL PROTECTED] url=file:/C:/jboss/jboss-3.0 .7_jakarta-tomcat-4.1.24/server/default/deploy/Count.jar, deployedLastModified=0 } org.jboss.deployment.DeploymentException: Failed to load metadata; - nested thro wable: (java.lang.NullPointerException) at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:326) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke
Re: [JBoss-user] JBossDO page is on the site
Pete Beck wrote: I think the confusion arises where people people assume EJB's were designed for object persistance. They weren't, and in fact the persistance stuff was probably added more as an afterthought than anything. [...] However, as CMP was the only standard that offered a way of doing O/R mapping, naturally a lot of people started using it for this job. [...] Thank you for posting this, as I have not yet learned enough about EJB (or JDO for that matter) to have an opinion on this subject. But it seems that what you suggest is at odds with some of the writings of Marc Fleury. I am trying to reconcile all of these different perspectives somewhat. I wonder if this means that Sun is going to put less emphasis on CMP and encourage that EJBs use JDO BMP ? Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] constraining session bean pool
How to configure JBoss 3.0 to constrain the session bean pool to only a certain number of session beans? (For stateful beans.) I wish to test ejbPassivate() and ejbActivate() in action. Thanks and regards, Erik --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user