[JBoss-user] HELP: JBoss/CloudScape 5.0
Hello All, I am looking for some help with JBoss and IBM CloudScape 5.0. As far I know, there are two ways to integrate: a. Embedded inside jBoss?? Is this possible. Has somebody done this. b. Using rmijdbc server?? I have setup an rmijdbc server. Does anybody have a working cloudscape-service.xml? An XA version is also very welcome. Thanks in advance. Best Regards MS --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] 赛百威第77期项目管理课程介绍
Title: Èü°ÙÍþµÚ77Æڳɹ¦µÄÏîÄ¿¹ÜÀí¼¯Ñµ 30%¾«µä°¸Àý£¬30%Á·Ï°£¬40%ÀíÂÛ»ù´¡£¬ÊµÓÃÓëÈÏÖ¤²¢ÖØÖ®¼¯Ñµ ÖÐÎÄÊÚ¿ÎѧԱÂúÒâ¶È±ÈÍâ¼®½ÌʦÊڿθ߳ö5-10¸ö°Ù·Öµã£¬ÍƼöÂʸߴï98%ÒÔÉÏ ±¾¿Î³Ì¿É»ñµÃPMIµÄ18¸öPDU£¨×¨Òµ·¢Õ¹Ñ§·Ö£¬¿¼PMP±ØÐÞ֮ѧ·Ö£© ¸Ã¿Î³ÌÒѳɹ¦¾Ù°ìÁ˽ü80ÆÚ£¬½ü200¼Ò´óÐÍÆóÒµ£¬½ü3000È˴εÄѧԱͨ¹ý±¾¿Î³Ì£¬¸Ã¿Î³ÌÒÑ»ñ¹ú¼ÒרÀû¾Ö×¢²á Ä¿±êѧԱ£ºÖи߲ã¹ÜÀí¸É²¿¡¢ÆóÒµÖ°Äܲ¿ÃžÀí¡¢ÆóÒµµÄÏîÄ¿¾Àí¡¢ÏîÄ¿µÄ²ÎÓëÈËÔ±¡¢Õþ¸®²¿ÃŵĹÜÀíÈËÔ± ¿Î³ÌÄÚÈÝ£ºÒÔ¡¶PMBOK2000¡·9´ó֪ʶÌåϵ½á¹¹£¬×¢ÖØ5´óÏîÄ¿¹ÜÀí¹ý³ÌµÄÓ¦ÓÃ¿Î³Ì PM Tools ¡¡ Ö÷°ìµ¥Î»£ºÃÀ¹úÏîÄ¿¹ÜÀíлᣨPMI£© ³Ð°ìµ¥Î»£ºÈü°ÙÍþ£¨¹ú¼Ê£©ÁªÃ˽ÌÓý»ú¹¹£¨ÖйúÊ×¼ÒPMI Global¼¶×¢²á»ú¹¹£© ÔÞÖúµ¥Î»£ºÎ¢Èí£¨Öйú£©ÓÐÏÞ¹«Ë¾ÑÇÌ«×ܲ¿ ¡¡ ¿ª¿Îʱ¼ä£º 2002Äê12ÔÂ06¡¢07ÈÕ(ÖÜÎå¡¢Áù) 2002Äê12ÔÂ13¡¢14ÈÕ(ÖÜÎå¡¢Áù) 2002Äê12ÔÂ15¡¢16ÈÕ(ÖÜÈÕ¡¢Ò») 2002Äê12ÔÂ20¡¢21ÈÕ(ÖÜÎå¡¢Áù) 2002Äê12ÔÂ28¡¢29ÈÕ(ÖÜÁù¡¢ÈÕ) ¡¡ ³É¹¦°¸Àý²¿·ÖÈçÏ ¡¡ ½ðÈÚÐÐÒµ ½¨ÉèÒøÐÐ ¹¤ÉÌÒøÐÐ Å©ÒµÒøÐÐ ¡¡ ÄÜÔ´ÐÐÒµ ´óÑÇÍåºËµç Öйúº£ÑóʯÓÍ ÖйúʯÓÍÌìÈ»Æø ¡¡ ½¨ÖþÐÐÒµ Ïã¸ÛѸ½Ý½¨Öþ ºÍ¼Ç»ÆÆÒ(µØ²ú) Ñغ£ÎïÒµ ¡¡ µçÐÅÐÐÒµ ¹ã¶«µçÐÅ ¹ã¶«Òƶ¯ ¹ã¶«ÁªÍ¨ ¡¡ ´óÐÍITÐÐÒµ »ªÎª¼¼Êõ ÖÐÐËͨѶ °¬Ä¬Éú ¡¡ Õþ¸®»ú¹¹ ¹úÍÁ¾Ö ó·¢¾Ö »·±£¾Ö ¡¡ ¡¡ ÉϿεص㣺 ¹ãÖÝÊÐ »ã»ª´óÏûáÕ¹ÖÐÐÄ ±±¾©ÊÐ Õ×Áú·¹µê2Â¥ ÉϺ£ÊÐ ½ðï´óÏÃ1Â¥ ÉîÛÚÊÐ ÊÀó¹ã³¡B×ù14Â¥ ÇൺÊÐ Èí¼þ´óÏà Ë÷È¡Ïêϸ´ó¸Ù ¡¡ ÌØÊâÓÅ»Ý Ô¼Û5500Ôª/ÈË ÏÖ¼Û3800Ôª/ÈË Project 2002 500Ôª/ÈË
Re: [JBoss-user] Unusual datasource request
On Monday, December 16, 2002, at 10:36 PM, David Jencks wrote: Are you sure FileMakerPro supports transactions and setting autocommit off? If not you will have to use the NoTxConnectionManager with the LocalTx adapter. This seems to be the problem. Filemaker is pretty lame. If you get this working please submit your *-servie.xml file, I'll add it to the examples. This is working for me, so far. I stripped out the most of the comments, but I'm sure you could put them back in. filemaker-service.xml FilemakerRealm FilemakerDS jdbc:fmpro:http://192.168.1.10:8008 com.fmi.jdbc.JdbcDriver jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper 0 50 5000 15 ByContainer jboss.jca:service=CachedConnectionManager jboss.security:service=JaasSecurityMan ager jboss.jca:service=RARDeployer --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Virtual hosting question
Hi Gary, It would be great if you provide some more info. TIA, Saroj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Gary S. Cuozzo Sent: Tuesday, December 17, 2002 4:47 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Virtual hosting question i'm doing this right now and just got it working today. i have a single webapp "/global" that will serve all our virtual host customers a set of functionality. i'm using jboss 3.x series with embedded tomcat front-ended with apache. i just have a straight-up .war file right now, with no jboss-web file. just a bunch of servlets/jsp's. all i did was tell apache to pass all requests for "/global" to tomcat via the connector with the proper mount command in httpd.conf. i'm on my way out, but can send more detailed info tomorrow if you need it. hth, gary. poo wrote: > Hello, > > Is there a way to configure multiple virtual hosts to use the same > webapp? It appears that jboss-web only allows one virtual-host param. > > thanks > > S > > > Scott M Stark wrote: > >> I looked at the problem this morning and the problem is that you have >> to setup >> Host elements that matches the virtual host names used in the >> jboss-web.xml, >> for example: >> >> >> >> >> >> > verbosityLevel = "trace" category = >> "org.jboss.web.localhost.Engine"/> >> ... >> >> > "org.apache.catalina.valves.AccessLogValve" >> prefix = "a_access" suffix = ".log" >> pattern = "common" directory = >> "../server/default/log" /> >> > "true" override = "true" /> >> >> >> > "org.apache.catalina.valves.AccessLogValve" >> prefix = "b_access" suffix = ".log" >> pattern = "common" directory = >> "../server/default/log" /> >> > "true" override = "true" /> >> >> ... >> >> With this I can deploy two wars to the a.dom.com and b.dot.com >> virtual hosts >> with both using the root context: >> >> 14:34:03,706 INFO [MainDeployer] Starting deployment of package: >> file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/ >> 14:34:03,716 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=, >> warUrl=file:/C: >> /tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/ >> 14:34:03,786 INFO [Engine] WebappLoader[]: Deploying class >> repositories to work >> directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\a.dot.com\_ >> 14:34:03,786 INFO [Engine] StandardManager[]: Seeding random number >> generator class java.security.SecureRandom >> 14:34:03,786 INFO [Engine] StandardManager[]: Seeding of random >> number generator has been completed >> 14:34:04,828 INFO [Engine] ContextConfig[]: Added certificates -> >> request attribute Valve >> 14:34:05,048 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent >> classloader delegation: true >> 14:34:05,048 INFO [Engine] StandardWrapper[:default]: Loading >> container servlet default >> 14:34:05,048 INFO [Engine] StandardWrapper[:invoker]: Loading >> container servlet invoker >> 14:34:05,098 INFO [MainDeployer] Deployed package: >> file:/C:/tmp/JBoss/jboss-3.0 >> .3RC1/server/tomcat/deploy/a.war/ >> 14:34:05,098 INFO [MainDeployer] Starting deployment of package: >> file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/ >> 14:34:05,118 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=, >> warUrl=file:/C: >> /tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/ >> 14:34:05,128 INFO [Engine] WebappLoader[]: Deploying class >> repositories to work >> directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\b.dot.com\_ >> 14:34:05,128 INFO [Engine] StandardManager[]: Seeding random number >> generator class java.security.SecureRandom >> 14:34:05,128 INFO [Engine] StandardManager[]: Seeding of random >> number generator has been completed >> 14:34:05,198 INFO [Engine] ContextConfig[]: Added certificates -> >> request attribute Valve >> 14:34:05,268 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent >> classloader delegation: true >> 14:34:05,268 INFO [Engine] StandardWrapper[:default]: Loading >> container servlet default >> 14:34:05,268 INFO [Engine] StandardWrapper[:invoker]: Loading >> container servlet invoker >> 14:34:05,358 INFO [MainDeployer] Deployed package: >> file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/ >> >> testsuite 371>wget http://b.dot.com:8080/index.html >> --14:45:55-- http://b.dot.com:8080/index.html >> => `index.html.2' >> Resolving b.dot.com... done. >> Connecting to b.dot.com[127.0.0.1]:8080... connected. >> HTTP request sent, awaiting response... 200 OK >> Length: 64 [text/html] >> >> 100%[>] 6462.50K/s >> ETA 00:00 >> >> 14:45:55 (62.50 KB/s) - `index.html.2' saved [64/64] >> >> testsuite 372>wget http://a.dot.com:8
[JBoss-user] 赛百威第77期项目管理课程介绍
Title: Èü°ÙÍþµÚ77Æڳɹ¦µÄÏîÄ¿¹ÜÀí¼¯Ñµ 30%¾«µä°¸Àý£¬30%Á·Ï°£¬40%ÀíÂÛ»ù´¡£¬ÊµÓÃÓëÈÏÖ¤²¢ÖØÖ®¼¯Ñµ ÖÐÎÄÊÚ¿ÎѧԱÂúÒâ¶È±ÈÍâ¼®½ÌʦÊڿθ߳ö5-10¸ö°Ù·Öµã£¬ÍƼöÂʸߴï98%ÒÔÉÏ ±¾¿Î³Ì¿É»ñµÃPMIµÄ18¸öPDU£¨×¨Òµ·¢Õ¹Ñ§·Ö£¬¿¼PMP±ØÐÞ֮ѧ·Ö£© ¸Ã¿Î³ÌÒѳɹ¦¾Ù°ìÁ˽ü80ÆÚ£¬½ü200¼Ò´óÐÍÆóÒµ£¬½ü3000È˴εÄѧԱͨ¹ý±¾¿Î³Ì£¬¸Ã¿Î³ÌÒÑ»ñ¹ú¼ÒרÀû¾Ö×¢²á Ä¿±êѧԱ£ºÖи߲ã¹ÜÀí¸É²¿¡¢ÆóÒµÖ°Äܲ¿ÃžÀí¡¢ÆóÒµµÄÏîÄ¿¾Àí¡¢ÏîÄ¿µÄ²ÎÓëÈËÔ±¡¢Õþ¸®²¿ÃŵĹÜÀíÈËÔ± ¿Î³ÌÄÚÈÝ£ºÒÔ¡¶PMBOK2000¡·9´ó֪ʶÌåϵ½á¹¹£¬×¢ÖØ5´óÏîÄ¿¹ÜÀí¹ý³ÌµÄÓ¦ÓÃ¿Î³Ì PM Tools ¡¡ Ö÷°ìµ¥Î»£ºÃÀ¹úÏîÄ¿¹ÜÀíлᣨPMI£© ³Ð°ìµ¥Î»£ºÈü°ÙÍþ£¨¹ú¼Ê£©ÁªÃ˽ÌÓý»ú¹¹£¨ÖйúÊ×¼ÒPMI Global¼¶×¢²á»ú¹¹£© ÔÞÖúµ¥Î»£ºÎ¢Èí£¨Öйú£©ÓÐÏÞ¹«Ë¾ÑÇÌ«×ܲ¿ ¡¡ ¿ª¿Îʱ¼ä£º 2002Äê12ÔÂ06¡¢07ÈÕ(ÖÜÎå¡¢Áù) 2002Äê12ÔÂ13¡¢14ÈÕ(ÖÜÎå¡¢Áù) 2002Äê12ÔÂ15¡¢16ÈÕ(ÖÜÈÕ¡¢Ò») 2002Äê12ÔÂ20¡¢21ÈÕ(ÖÜÎå¡¢Áù) 2002Äê12ÔÂ28¡¢29ÈÕ(ÖÜÁù¡¢ÈÕ) ¡¡ ³É¹¦°¸Àý²¿·ÖÈçÏ ¡¡ ½ðÈÚÐÐÒµ ½¨ÉèÒøÐÐ ¹¤ÉÌÒøÐÐ Å©ÒµÒøÐÐ ¡¡ ÄÜÔ´ÐÐÒµ ´óÑÇÍåºËµç Öйúº£ÑóʯÓÍ ÖйúʯÓÍÌìÈ»Æø ¡¡ ½¨ÖþÐÐÒµ Ïã¸ÛѸ½Ý½¨Öþ ºÍ¼Ç»ÆÆÒ(µØ²ú) Ñغ£ÎïÒµ ¡¡ µçÐÅÐÐÒµ ¹ã¶«µçÐÅ ¹ã¶«Òƶ¯ ¹ã¶«ÁªÍ¨ ¡¡ ´óÐÍITÐÐÒµ »ªÎª¼¼Êõ ÖÐÐËͨѶ °¬Ä¬Éú ¡¡ Õþ¸®»ú¹¹ ¹úÍÁ¾Ö ó·¢¾Ö »·±£¾Ö ¡¡ ¡¡ ÉϿεص㣺 ¹ãÖÝÊÐ »ã»ª´óÏûáÕ¹ÖÐÐÄ ±±¾©ÊÐ Õ×Áú·¹µê2Â¥ ÉϺ£ÊÐ ½ðï´óÏÃ1Â¥ ÉîÛÚÊÐ ÊÀó¹ã³¡B×ù14Â¥ ÇൺÊÐ Èí¼þ´óÏà Ë÷È¡Ïêϸ´ó¸Ù ¡¡ ÌØÊâÓÅ»Ý Ô¼Û5500Ôª/ÈË ÏÖ¼Û3800Ôª/ÈË Project 2002 500Ôª/ÈË
RE: [JBoss-user] Oracle+CMP+Fixed length columns
Title: Oracle+CMP+Fixed length columns Thanks. This is really stupid behavior on Oracle's part, IMHO. Unfortunately, neither is a good option for us. VARCHARs incur unnecessary overhead, and BMP is a step backwards for us. I'll go back to plain DAOs first It's kind of a kludge, but what I have done for now is to use a rightPad on the value before calling the finder method (StringUtils.rightPad() from Jakarta-Commons for those interested). Dain/other CMP-dudes: comments? Mike -Original Message-From: Sasidharan, Manoj [mailto:[EMAIL PROTECTED]]Sent: Monday, December 16, 2002 4:42 PMTo: [EMAIL PROTECTED]Subject: RE: [JBoss-user] Oracle+CMP+Fixed length columns Hello All, We had seen this behaviour... The following are the possible workarounds: 1. Use Oracle specific syntax and BMP. CMP cannot handle this 2. Change the database schema to use VARCHAR instead of CHAR (we have adopted this as a short-term solution) If somebody else have a better idea, please let me know. HTH regards MS -Original Message-From: Finn, Michael [mailto:[EMAIL PROTECTED]]Sent: Monday, December 16, 2002 1:22 PMTo: Jboss-User (E-mail) (E-mail)Subject: [JBoss-user] Oracle+CMP+Fixed length columns Folks, In Oracle, there is a PITA problem with prepared statements that forces you to right pad the value in a where clause arg for fixed length fields. Example: create table SOMETABLE ( SOMECOLUMN char(10) ) // Assume this data insert into SOMETABLE("FOO"); // And this code PreparedStatement ps = conn.prepareStatement("select count(*) from SOMETABLE where SOMECOLUMN = ?"); ps.setString(1,"FOO"); ResultSet rs = ps.executeQuery(); << Will get count = 0 ps.setString(1,"FOO "); << Value rightpadded to size of DB col ResultSet rs = ps.executeQuery(); << Will get count = 1 // But this Statement st = conn.createStatement("select count(*) from SOMETABLE where SOMECOLUMN = 'FOO'"); ResultSet rs = st.executeQuery(); << Will get count = 1 Is there a provision for this (like a switch somewhere) in CMP, that allows one to pass a value (unmolested) to a finder method? TIA --- Mike Finn Frontier Communications Rochester, NY V: 585-777-8202 E: mailto:[EMAIL PROTECTED]
Re: [JBoss-user] Re: JBoss-user digest, Vol 1 #3502 - 5 msgs
On 2002.12.16 20:56:59 -0500 JD Brennan wrote: > So does JBoss guarantee that > if an .ear has both an ejb .jar and a .sar > then the .jar will get deployed first so the .sar >can assume that all the .jar's beans are available? No, but you can make mbeans depend on the ejb container mbeans (NOT the jsr77 mbeans) and then the mbeans won't be started until the ejbs are started. I think in jboss 4 you can also make an mbean depend on the DeploymentInfo mbean gor a package. david jencks > > Tx! > JD > > -Original Message- > From: Randy Shoup [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 5:18 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Re: JBoss-user digest, Vol 1 #3502 - 5 msgs > > > Thanks! I of course did not have this file :-). Adding 'jboss-app.xml' > to my EAR's META-INF, and moving the .sar to the top level of the EAR > worked like a charm. > > I had to hunt around in the JBoss source distribution to find an > example of jboss-app.xml (no examples or dtd in the binary > distribution), but the syntax was exactly what you have below. > > David Jencks wrote: > > Date: Mon, 16 Dec 2002 15:36:45 -0500 > > From: David Jencks <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-user] Scheduler > > Reply-To: [EMAIL PROTECTED] > > > > When you had the .sar in the .ear, did you include a jboss-app.xml file > to > > make he ear deployer deploy it? > > > > > > > > mystuff.sar > > > > > > > > if I remember correctly > > > > david jencks > > > > > > On 2002.12.16 14:47:52 -0500 Randy Shoup wrote: > > > >>I was not able to get a scheduler .sar to work if I deployed it > directly > >>in the EAR. However, it does work if I deploy it inside the *ejb-jar*, > > >>which is itself inside the EAR. > >> > >>My working theory is that there is some subtle difference between the > >>EAR deployer and the JAR deployer (maybe the EAR deployer only deploys > >>modules mentioned in the application.xml or in the classpaths of the > >>modules?). But I have not investigated further. > >> > >>For now, I am OK with this structure. But I would be interested to > >>understand why it behaves like this :-). > >> > >>JD Brennan wrote: > >> > >>>From: JD Brennan <[EMAIL PROTECTED]> > >>>To: "'[EMAIL PROTECTED]'" > >>><[EMAIL PROTECTED]> > >>>Subject: RE: [JBoss-user] Scheduler > >>>Date: Mon, 16 Dec 2002 09:57:56 -0800 > >>>Reply-To: [EMAIL PROTECTED] > >>> > >>>This message is in MIME format. Since your mail reader does not > >> > >>understand > >> > >>>this format, some or all of this message may not be legible. > >>> > >>>--_=_NextPart_001_01C2A52C.A9F142A0 > >>>Content-Type: text/plain; > >>> charset="iso-8859-1" > >>> > >>>Yep, we have the same problem. Your original post said you > >>>needed your scheduler to access a class in your .ear. If you > >>>need to access a bean, then you can't just put the .sar in the > >>>.ear - We solved this by just sleeping for 60 seconds and then > >>>starting - not ideal, but I couldn't find the MBean for > >>>the bean container to make the depends stuff work. If you get > >>>it working could you post a follow-up to the list? > >>> > >>>Tx! > >>>JD > >>> > >>>-Original Message- > >>>From: Glenn Lewis [mailto:[EMAIL PROTECTED]] > >>>Sent: Sunday, December 15, 2002 4:39 PM > >>>To: [EMAIL PROTECTED] > >>>Subject: Re: [JBoss-user] Scheduler > >>> > >>> > >>>Thanks for the advice. > >>> > >>>We can deploy the scheduler MBean by putting it inside a .sar, but we > >>>get a similar problem: the first time the scheduler is invoked it does > >> > >>a > >> > >>>findAll on a bean that is not deployed. An error message is printed by > > >>>the loginterceptor (so I'm not sure we can catch it). The next time > the > >> > >>>scheduler is invoked it works fine, since by that time everything is > >>>deployed. > >>> > >>>Any suggestions? > >>> > >>> > >>>JD Brennan wrote: > >>> > >>> > We deploy our MBean by putting it inside a .sar inside > our ejb .jar inside our .ear - there are probably other > better ways, but this works for us. > > JD > > -Original Message- > From: Glenn Lewis [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 8:45 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [JBoss-user] Scheduler > > > Hi all, > > Using the online docs at > http://www.jboss.org/online-manual/HTML/ch11s58.html#scheduler-usage > >>> > >>and > >> > JBoss3.0.3 we have created a scheduler mbean. We deploy it via a > timer > service.xml file. The scheduler mbean refers to a class > (au.com.xcomp.xvs.server.TimedObjectSchedulable) in our ear. > > The scheduler deploys fine provided we manually make sure the ear is > deployed before the service.xml. However, when we try to deploy the > service.xml file and ear file in the one ant task, the scheduler > >>> > >>deploys > >> >
Re: [JBoss-user] oracle-xa-service.xml vs oracle-xa-ds.xml?
On 2002.12.16 16:48:26 -0500 "Sasidharan, Manoj" wrote: > Hello All, > > Whats the difference b/w oracle-xa-service.xml and oracle-xa-ds.xml? *-service.xml is "low level" mbean configuration. *-ds.xml is a higher level configuration that is transformed during deployment to the *-service mbean configuration, then deployed. *-ds.xml is available only on 3.2 and later. Use it if you can: it is much simpler and eliminates some popular sources of errors. david jencks > > Thanks for your time. > > Best Regards > MS > > > --- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Re: JBoss-user digest, Vol 1 #3502 - 5 msgs
Title: RE: [JBoss-user] Re: JBoss-user digest, Vol 1 #3502 - 5 msgs So does JBoss guarantee that if an .ear has both an ejb .jar and a .sar then the .jar will get deployed first so the .sar can assume that all the .jar's beans are available? Tx! JD -Original Message- From: Randy Shoup [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 5:18 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Re: JBoss-user digest, Vol 1 #3502 - 5 msgs Thanks! I of course did not have this file :-). Adding 'jboss-app.xml' to my EAR's META-INF, and moving the .sar to the top level of the EAR worked like a charm. I had to hunt around in the JBoss source distribution to find an example of jboss-app.xml (no examples or dtd in the binary distribution), but the syntax was exactly what you have below. David Jencks wrote: > Date: Mon, 16 Dec 2002 15:36:45 -0500 > From: David Jencks <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Scheduler > Reply-To: [EMAIL PROTECTED] > > When you had the .sar in the .ear, did you include a jboss-app.xml file to > make he ear deployer deploy it? > > > > mystuff.sar > > > > if I remember correctly > > david jencks > > > On 2002.12.16 14:47:52 -0500 Randy Shoup wrote: > >>I was not able to get a scheduler .sar to work if I deployed it directly >>in the EAR. However, it does work if I deploy it inside the *ejb-jar*, >>which is itself inside the EAR. >> >>My working theory is that there is some subtle difference between the >>EAR deployer and the JAR deployer (maybe the EAR deployer only deploys >>modules mentioned in the application.xml or in the classpaths of the >>modules?). But I have not investigated further. >> >>For now, I am OK with this structure. But I would be interested to >>understand why it behaves like this :-). >> >>JD Brennan wrote: >> >>>From: JD Brennan <[EMAIL PROTECTED]> >>>To: "'[EMAIL PROTECTED]'" >>> <[EMAIL PROTECTED]> >>>Subject: RE: [JBoss-user] Scheduler >>>Date: Mon, 16 Dec 2002 09:57:56 -0800 >>>Reply-To: [EMAIL PROTECTED] >>> >>>This message is in MIME format. Since your mail reader does not >> >>understand >> >>>this format, some or all of this message may not be legible. >>> >>>--_=_NextPart_001_01C2A52C.A9F142A0 >>>Content-Type: text/plain; >>> charset="iso-8859-1" >>> >>>Yep, we have the same problem. Your original post said you >>>needed your scheduler to access a class in your .ear. If you >>>need to access a bean, then you can't just put the .sar in the >>>.ear - We solved this by just sleeping for 60 seconds and then >>>starting - not ideal, but I couldn't find the MBean for >>>the bean container to make the depends stuff work. If you get >>>it working could you post a follow-up to the list? >>> >>>Tx! >>>JD >>> >>>-Original Message- >>>From: Glenn Lewis [mailto:[EMAIL PROTECTED]] >>>Sent: Sunday, December 15, 2002 4:39 PM >>>To: [EMAIL PROTECTED] >>>Subject: Re: [JBoss-user] Scheduler >>> >>> >>>Thanks for the advice. >>> >>>We can deploy the scheduler MBean by putting it inside a .sar, but we >>>get a similar problem: the first time the scheduler is invoked it does >> >>a >> >>>findAll on a bean that is not deployed. An error message is printed by >>>the loginterceptor (so I'm not sure we can catch it). The next time the >> >>>scheduler is invoked it works fine, since by that time everything is >>>deployed. >>> >>>Any suggestions? >>> >>> >>>JD Brennan wrote: >>> >>> We deploy our MBean by putting it inside a .sar inside our ejb .jar inside our .ear - there are probably other better ways, but this works for us. JD -Original Message- From: Glenn Lewis [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 8:45 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [JBoss-user] Scheduler Hi all, Using the online docs at http://www.jboss.org/online-manual/HTML/ch11s58.html#scheduler-usage >>> >>and >> JBoss3.0.3 we have created a scheduler mbean. We deploy it via a timer service.xml file. The scheduler mbean refers to a class (au.com.xcomp.xvs.server.TimedObjectSchedulable) in our ear. The scheduler deploys fine provided we manually make sure the ear is deployed before the service.xml. However, when we try to deploy the service.xml file and ear file in the one ant task, the scheduler >>> >>deploys >> first and gives the error below. Someone else also reported this >>> >>problem >> a while ago >>> >>>(http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg23230.html) >>>. >>> >>> Any suggestions??? Cause: Incomplete Deployment listing: Packages waiting for a deployer: Incompletely deployed packages: MBeans waiting for classes: MBeans waiting for other MBeans: [ObjectName: jboss:schedule=CheckTimeoutDaemon,service=Scheduler state: FAILED >
Re: [JBoss-user] Same .war that I deploy perfectly in "default"throws exceptions in "all" ?!?
(Is there a mailing list max message size? This is the third time I try to send this. This time I zipped the log file. I think it can be it) > > Seems that my reply to this hasn't reached the mailing list for some > reason. I'll write this e-mail again, and I'm sorry if it happens to get > there twice. > > > OS -- Linux (RedHat) 2.4.18 > > JVM -- Sun J2SDK 1.4.1_01 > > Jetty or Tomcat --- Jetty > > JBoss Version - Jboss 3.0.5RC1 from +- 10Dec cvs > > Log --- I'll post it as attachment > > Stacktrace ? > > WAR ? > > Stacktrace and war are not attached as I think they will not help. > I can send you later if you want, togheter with the sources if needed. > > Ok, about the log attached: > The program is a webmail/frontend to imap. The exception occurs when > trying to log in the imap server. By the log trace it seems that it is > trying to open a preferences file, that I think it's stored locally (I am > not the developer, sorry, but I'm in contact with him) > This exception occurs when running in "all" configuration, with an > non-modified .war (no clustering tags were attached, so the package runs > on a "noCluster" configuration). > The weird thing is that in "default" configuration the application works > without a problem. > > I can't understand why the same package behaves differently in "all" or > "default" config, if no tags are changed. > > Thank you for the attention. > > ( About the INFO /warning messages reported by [org.jboss.ejb.EJBDeployer] > , I'll post a new topic right away ) > > > -- > Joao Pedro Clemente > jpcl @ rnl.ist.utl.pt > (when not working out) > (when not sleeping) > (when not surfing) > (when not ... ;) > > log_exception_webmailNoCluster_JbossAll.zip Description: Zip archive
[JBoss-user] Re: JBoss-user digest, Vol 1 #3502 - 5 msgs
Thanks! I of course did not have this file :-). Adding 'jboss-app.xml' to my EAR's META-INF, and moving the .sar to the top level of the EAR worked like a charm. I had to hunt around in the JBoss source distribution to find an example of jboss-app.xml (no examples or dtd in the binary distribution), but the syntax was exactly what you have below. David Jencks wrote: Date: Mon, 16 Dec 2002 15:36:45 -0500 From: David Jencks <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Scheduler Reply-To: [EMAIL PROTECTED] When you had the .sar in the .ear, did you include a jboss-app.xml file to make he ear deployer deploy it? mystuff.sar if I remember correctly david jencks On 2002.12.16 14:47:52 -0500 Randy Shoup wrote: I was not able to get a scheduler .sar to work if I deployed it directly in the EAR. However, it does work if I deploy it inside the *ejb-jar*, which is itself inside the EAR. My working theory is that there is some subtle difference between the EAR deployer and the JAR deployer (maybe the EAR deployer only deploys modules mentioned in the application.xml or in the classpaths of the modules?). But I have not investigated further. For now, I am OK with this structure. But I would be interested to understand why it behaves like this :-). JD Brennan wrote: From: JD Brennan <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] Scheduler Date: Mon, 16 Dec 2002 09:57:56 -0800 Reply-To: [EMAIL PROTECTED] This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --_=_NextPart_001_01C2A52C.A9F142A0 Content-Type: text/plain; charset="iso-8859-1" Yep, we have the same problem. Your original post said you needed your scheduler to access a class in your .ear. If you need to access a bean, then you can't just put the .sar in the .ear - We solved this by just sleeping for 60 seconds and then starting - not ideal, but I couldn't find the MBean for the bean container to make the depends stuff work. If you get it working could you post a follow-up to the list? Tx! JD -Original Message- From: Glenn Lewis [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 4:39 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Scheduler Thanks for the advice. We can deploy the scheduler MBean by putting it inside a .sar, but we get a similar problem: the first time the scheduler is invoked it does a findAll on a bean that is not deployed. An error message is printed by the loginterceptor (so I'm not sure we can catch it). The next time the scheduler is invoked it works fine, since by that time everything is deployed. Any suggestions? JD Brennan wrote: We deploy our MBean by putting it inside a .sar inside our ejb .jar inside our .ear - there are probably other better ways, but this works for us. JD -Original Message- From: Glenn Lewis [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 8:45 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [JBoss-user] Scheduler Hi all, Using the online docs at http://www.jboss.org/online-manual/HTML/ch11s58.html#scheduler-usage and JBoss3.0.3 we have created a scheduler mbean. We deploy it via a timer service.xml file. The scheduler mbean refers to a class (au.com.xcomp.xvs.server.TimedObjectSchedulable) in our ear. The scheduler deploys fine provided we manually make sure the ear is deployed before the service.xml. However, when we try to deploy the service.xml file and ear file in the one ant task, the scheduler deploys first and gives the error below. Someone else also reported this problem a while ago (http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg23230.html) . Any suggestions??? Cause: Incomplete Deployment listing: Packages waiting for a deployer: Incompletely deployed packages: MBeans waiting for classes: MBeans waiting for other MBeans: [ObjectName: jboss:schedule=CheckTimeoutDaemon,service=Scheduler state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@250ff2 on mbean jboss:schedule=CheckTimeoutDaemon,service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class au.com.xcomp.xvs.server.TimedObjectSchedulable is not valid or not found)] Thanks -- Glenn --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn
[JBoss-user] EJBDeployer: Different deploy messages deploying the same app ?!?
I'm facing this strange behaviour, that I'll post with the attached log. Two things happen that I think they shouldn't: Jboss+Jetty , Linux 2.4.18, Sun J2SDK 1.4.1_01 a) A app that deployes correctly withJboss 3.0.3 reports INFO lines with warning messages at the [org.jboss.ejb.EJBDeployer], if runned on JBoss >= 3.0.4 (tested on 3.0.4 and 3.0.5RC1 from cvs) b) Consecutive deployments / undeployments of the same package will origiate different messages from EJBDeployer. Sometimes it will deploy without a problem, others it will report some warning messages, and between diferent deployments the warning messages that appear refer to diofferent classes. See the attached log (this was taken with JBoss 3.0.5RC1 from 10Dec cvs) (Each time I deployed and then rm'ed the file before deploying it again) What is the cause of this random behavior from EJBDeployer? I've checked the code lines that it refers, but they seem ok. Should I post the code for you to check it out? As I stated before, 3.0.3 does not shows this warning messages from EJBDeployer. Thank you Joao Clemente -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt (when not working out) (when not sleeping) (when not surfing) (when not ... ;) Deployment 1: 2002-12-16 13:53:59,068 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/usr/local/jboss-3.0.5RC1/server/all/deploy/webmail_noCluster.ear 2002-12-16 13:53:59,341 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/usr/local/jboss-3.0.5RC1/server/all/deploy/webmail_noCluster.ear 2002-12-16 13:53:59,702 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/usr/local/jboss-3.0.5RC1/server/all/tmp/deploy/server/all/deploy/webmail_noCluster.ear/74.webmail_noCluster.ear-contents/library/jtextproc.jar 2002-12-16 13:53:59,710 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/usr/local/jboss-3.0.5RC1/server/all/tmp/deploy/server/all/deploy/webmail_noCluster.ear/74.webmail_noCluster.ear-contents/library/jtextproc.jar 2002-12-16 13:53:59,722 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/usr/local/jboss-3.0.5RC1/server/all/tmp/deploy/server/all/deploy/webmail_noCluster.ear/74.webmail_noCluster.ear-contents/library/xerces.jar 2002-12-16 13:53:59,912 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/usr/local/jboss-3.0.5RC1/server/all/tmp/deploy/server/all/deploy/webmail_noCluster.ear/74.webmail_noCluster.ear-contents/library/xerces.jar 2002-12-16 13:53:59,916 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/usr/local/jboss-3.0.5RC1/server/all/tmp/deploy/server/all/deploy/webmail_noCluster.ear/74.webmail_noCluster.ear-contents/library/jakarta-oro-2.0.3.jar 2002-12-16 13:53:59,955 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/usr/local/jboss-3.0.5RC1/server/all/tmp/deploy/server/all/deploy/webmail_noCluster.ear/74.webmail_noCluster.ear-contents/library/jakarta-oro-2.0.3.jar 2002-12-16 13:53:59,956 INFO [org.jboss.deployment.MainDeployer] Package: file:/usr/local/jboss-3.0.5RC1/server/all/tmp/deploy/server/all/deploy/webmail_noCluster.ear/74.webmail_noCluster.ear-contents/library/jtextproc.jar is already deployed 2002-12-16 13:53:59,957 INFO [org.jboss.deployment.MainDeployer] Package: file:/usr/local/jboss-3.0.5RC1/server/all/tmp/deploy/server/all/deploy/webmail_noCluster.ear/74.webmail_noCluster.ear-contents/library/xerces.jar is already deployed 2002-12-16 13:53:59,957 INFO [org.jboss.deployment.MainDeployer] Package: file:/usr/local/jboss-3.0.5RC1/server/all/tmp/deploy/server/all/deploy/webmail_noCluster.ear/74.webmail_noCluster.ear-contents/library/jakarta-oro-2.0.3.jar is already deployed 2002-12-16 13:54:00,432 INFO [org.jboss.ejb.EjbModule] Creating 2002-12-16 13:54:00,507 INFO [org.jboss.ejb.EjbModule] Deploying MailMessagePartEJB 2002-12-16 13:54:00,593 INFO [org.jboss.ejb.EjbModule] Created 2002-12-16 13:54:00,805 INFO [org.jboss.ejb.EjbModule] Creating 2002-12-16 13:54:00,850 INFO [org.jboss.ejb.EjbModule] Deploying MailComposeMessageEJB 2002-12-16 13:54:00,940 INFO [org.jboss.ejb.EjbModule] Created 2002-12-16 13:54:01,199 INFO [org.jboss.ejb.EjbModule] Creating 2002-12-16 13:54:01,225 INFO [org.jboss.ejb.EjbModule] Deploying MailFolderEJB 2002-12-16 13:54:01,352 INFO [org.jboss.ejb.EjbModule] Created 2002-12-16 13:54:01,496 INFO [org.jboss.ejb.EjbModule] Creating 2002-12-16 13:54:01,541 INFO [org.jboss.ejb.EjbModule] Deploying MailSessionEJB 2002-12-16 13:54:01,598 INFO [org.jboss.ejb.EjbModule] Created 2002-12-16 13:54:01,729 INFO [org.jboss.ejb.EjbModule] Creating 2002-12-16 13:54:01,753 INFO [org.jboss.ejb.EjbModule] Deplo
RE: [JBoss-user] MBeans, local EJBs and Authentication
Just curious -- is it particularly bad form to have your automated beans also log in? Perhaps create an account for these automated functions? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Randy Shoup Sent: Monday, December 16, 2002 6:23 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] MBeans, local EJBs and Authentication JBoss gurus -- I am using JBoss 3.0.4 - Tomcat 4.1.12 on Win2K. I want to get unauthenticated access to a local SLSB from an MBean, while still requiring authenticated access to my remote EJBs. I am trying to add to my application a scheduled "batch" operation which does some periodic cleanup. The scheduling part was straightforward to set up, thanks to the docs and the list. However, I am having some trouble with the authentication part. All of my remote session facades require authentication, with user/role information in an LDAP. The scheduled operation is a "system" operation, though, and so I would like to avoid requiring it to do any explicit authentication. I don't, for example, want to put a "system" or "internal" entry in the LDAP, which is intended to be just for real users. And I would like to avoid hard-coding any password anywhere. I have done the following: + created a local SLSB which does the real work + added a scheduler MBean, which periodically calls the local SLSB + added an 'unauthenticatedIdentity' entry in the login-config.xml: ... system + made all methods of the local SLSB 'unchecked': PackageExpireSession * + added no authentication calls in the MBean Still, whenever I call the SLSB from within the scheduler MBean, I get the famous "principal=null" exception: 15:05:43,431 INFO [PackageExpireTask] expirePackages(Mon Dec 16 15:05:40 PST 2002) 15:05:43,446 ERROR [SecurityInterceptor] Authentication exception, principal=null 15:05:43,446 ERROR [LogInterceptor] EJBException, causedBy: java.lang.SecurityException: Authentication exception, principal=null at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(Secur ityInterceptor.java:173) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor .java:94) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129) at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionConta iner.java:300) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLoc alContainerInvoker.java:230) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:11 0) at $Proxy38.create(Unknown Source) at com.tumbleweed.ime.ejb.scheduler.jboss3.PackageExpireTask.expirePackages (Unknown Source) at com.tumbleweed.ime.ejb.scheduler.jboss3.PackageExpireTask.perform(Unknow n Source) at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Schedule r.java:1046) at org.jboss.mx.server.NotificationListenerProxy.handleNotification(Notific ationListenerProxy.java:71) at javax.management.NotificationBroadcasterSupport.sendNotification(Notific ationBroadcasterSupport.java:84) at javax.management.timer.Timer.sendNotifications(Timer.java:441) at javax.management.timer.Timer.access$000(Timer.java:31) at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:612 ) at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164) at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:225) 15:05:43,446 ERROR [PackageExpireTask] Exception in PackageExpireTask: javax.ejb .EJBException: checkSecurityAssociation; CausedByException is: Authentication exception, principal=null BTW, if I do make an explicit login call to one of my (secured) remote facades from within the scheduler MBean, and use a valid user in my LDAP, it works fine. I have searched on the list, and taken a look at the JBoss security test cases, but I can't figure out how to get the results I want. Probably I have missed something. Any suggestions? -- Randy _ Randy Shoup (650)216-2038 Tumbleweed Communications Corporation [EMAIL PROTECTED] --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsi
Re: [JBoss-user] Clustered Http Session Locks
João Clemente wrote: This is all my stuff, I'm busy until the weekend. I will look at it then. Any news on this? I've runned the example some more times. One of two things happen: If it does not lock, it'll usually fail/throw exception to sync the sessions and the container will start with new sessions. I'm looking at it as we speak. I'll be back when we have something. Thanks for your patience, Jules --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MBeans, local EJBs and Authentication
JBoss gurus -- I am using JBoss 3.0.4 - Tomcat 4.1.12 on Win2K. I want to get unauthenticated access to a local SLSB from an MBean, while still requiring authenticated access to my remote EJBs. I am trying to add to my application a scheduled "batch" operation which does some periodic cleanup. The scheduling part was straightforward to set up, thanks to the docs and the list. However, I am having some trouble with the authentication part. All of my remote session facades require authentication, with user/role information in an LDAP. The scheduled operation is a "system" operation, though, and so I would like to avoid requiring it to do any explicit authentication. I don't, for example, want to put a "system" or "internal" entry in the LDAP, which is intended to be just for real users. And I would like to avoid hard-coding any password anywhere. I have done the following: + created a local SLSB which does the real work + added a scheduler MBean, which periodically calls the local SLSB + added an 'unauthenticatedIdentity' entry in the login-config.xml: flag = "required"> ... system + made all methods of the local SLSB 'unchecked': PackageExpireSession * + added no authentication calls in the MBean Still, whenever I call the SLSB from within the scheduler MBean, I get the famous "principal=null" exception: 15:05:43,431 INFO [PackageExpireTask] expirePackages(Mon Dec 16 15:05:40 PST 2002) 15:05:43,446 ERROR [SecurityInterceptor] Authentication exception, principal=null 15:05:43,446 ERROR [LogInterceptor] EJBException, causedBy: java.lang.SecurityException: Authentication exception, principal=null at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:173) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129) at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:230) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) at $Proxy38.create(Unknown Source) at com.tumbleweed.ime.ejb.scheduler.jboss3.PackageExpireTask.expirePackages(Unknown Source) at com.tumbleweed.ime.ejb.scheduler.jboss3.PackageExpireTask.perform(Unknown Source) at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1046) at org.jboss.mx.server.NotificationListenerProxy.handleNotification(NotificationListenerProxy.java:71) at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:84) at javax.management.timer.Timer.sendNotifications(Timer.java:441) at javax.management.timer.Timer.access$000(Timer.java:31) at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:612) at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164) at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:225) 15:05:43,446 ERROR [PackageExpireTask] Exception in PackageExpireTask: javax.ejb .EJBException: checkSecurityAssociation; CausedByException is: Authentication exception, principal=null BTW, if I do make an explicit login call to one of my (secured) remote facades from within the scheduler MBean, and use a valid user in my LDAP, it works fine. I have searched on the list, and taken a look at the JBoss security test cases, but I can't figure out how to get the results I want. Probably I have missed something. Any suggestions? -- Randy _ Randy Shoup (650)216-2038 Tumbleweed Communications Corporation [EMAIL PROTECTED] --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Virtual hosting question
i'm doing this right now and just got it working today. i have a single webapp "/global" that will serve all our virtual host customers a set of functionality. i'm using jboss 3.x series with embedded tomcat front-ended with apache. i just have a straight-up .war file right now, with no jboss-web file. just a bunch of servlets/jsp's. all i did was tell apache to pass all requests for "/global" to tomcat via the connector with the proper mount command in httpd.conf. i'm on my way out, but can send more detailed info tomorrow if you need it. hth, gary. poo wrote: Hello, Is there a way to configure multiple virtual hosts to use the same webapp? It appears that jboss-web only allows one virtual-host param. thanks S Scott M Stark wrote: I looked at the problem this morning and the problem is that you have to setup Host elements that matches the virtual host names used in the jboss-web.xml, for example: verbosityLevel = "trace" category = "org.jboss.web.localhost.Engine"/> ... prefix = "a_access" suffix = ".log" pattern = "common" directory = "../server/default/log" /> prefix = "b_access" suffix = ".log" pattern = "common" directory = "../server/default/log" /> ... With this I can deploy two wars to the a.dom.com and b.dot.com virtual hosts with both using the root context: 14:34:03,706 INFO [MainDeployer] Starting deployment of package: file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/ 14:34:03,716 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=, warUrl=file:/C: /tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/ 14:34:03,786 INFO [Engine] WebappLoader[]: Deploying class repositories to work directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\a.dot.com\_ 14:34:03,786 INFO [Engine] StandardManager[]: Seeding random number generator class java.security.SecureRandom 14:34:03,786 INFO [Engine] StandardManager[]: Seeding of random number generator has been completed 14:34:04,828 INFO [Engine] ContextConfig[]: Added certificates -> request attribute Valve 14:34:05,048 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true 14:34:05,048 INFO [Engine] StandardWrapper[:default]: Loading container servlet default 14:34:05,048 INFO [Engine] StandardWrapper[:invoker]: Loading container servlet invoker 14:34:05,098 INFO [MainDeployer] Deployed package: file:/C:/tmp/JBoss/jboss-3.0 .3RC1/server/tomcat/deploy/a.war/ 14:34:05,098 INFO [MainDeployer] Starting deployment of package: file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/ 14:34:05,118 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=, warUrl=file:/C: /tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/ 14:34:05,128 INFO [Engine] WebappLoader[]: Deploying class repositories to work directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\b.dot.com\_ 14:34:05,128 INFO [Engine] StandardManager[]: Seeding random number generator class java.security.SecureRandom 14:34:05,128 INFO [Engine] StandardManager[]: Seeding of random number generator has been completed 14:34:05,198 INFO [Engine] ContextConfig[]: Added certificates -> request attribute Valve 14:34:05,268 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true 14:34:05,268 INFO [Engine] StandardWrapper[:default]: Loading container servlet default 14:34:05,268 INFO [Engine] StandardWrapper[:invoker]: Loading container servlet invoker 14:34:05,358 INFO [MainDeployer] Deployed package: file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/ testsuite 371>wget http://b.dot.com:8080/index.html --14:45:55-- http://b.dot.com:8080/index.html => `index.html.2' Resolving b.dot.com... done. Connecting to b.dot.com[127.0.0.1]:8080... connected. HTTP request sent, awaiting response... 200 OK Length: 64 [text/html] 100%[>] 6462.50K/s ETA 00:00 14:45:55 (62.50 KB/s) - `index.html.2' saved [64/64] testsuite 372>wget http://a.dot.com:8080/index.html --14:46:01-- http://a.dot.com:8080/index.html => `index.html.3' Resolving a.dot.com... done. Connecting to a.dot.com[172.17.66.55]:8080... connected. HTTP request sent, awaiting response... 200 OK Length: 64 [text/html] 100%[>] 6462.50K/s ETA 00:00 Support for virtual hosting needs to be setup in the tomcat4-service.xml descriptor Config. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Brian Topping" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 6:40 PM Subject: RE: [JBoss-user] Virtual hosting
Re: [JBoss-user] Scheduler
The scheduler does a findAll() using the localHome for a bean. I tried making the scheduler mbean depend on the jboss.j2ee localHome mbean, but it made no difference. I traced it through a bit. The localHome can be looked up okay and is not null, however the findAll() fails with a null pointer exception. The first few lines of the stack trace are below. 09:43:35,313 ERROR [LogInterceptor] RuntimeException: java.lang.NullPointerException at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createBeanClassInstance(JDBCStoreManager.java:513) at org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersistenceManager.java:165) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:251) at org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:294) at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:209) Perhaps the best way get around this is to make the scheduler sleep for a while before it starts (as suggested by JD Brennan)? Though I'm not sure how we can do it so that it only sleeps when the scheduler mbean is deployed (?) David Jencks wrote: mmm, forgot about that one. That one's from the jsr-77 stuff and doesn't participate in the service lifecycle so you can't use it for dependencies. Look for a jboss.j2ee mbean for your ejb and try it. You are correct that you add the depends element to the scheduler. david jencks On 2002.12.16 01:05:19 -0500 Glenn Lewis wrote: I don't exactly know how the scheduler works, but if it is deployed as an mbean from a *-service.xml Yes. file you can include an anonymous depends element to the mbean that is created as the ejb's container (look in the jmx-console). Then the scheduler won't start until the ejb is also started and presumably availabke. The scheduler depends on a stateless session bean. The session bean calls several other beans. I can view the mbean for the session bean in the jmx-console, but how do I tell the session bean that the scheduler depends on it? My best guess was to try doing it the other way, that is tell the scheduler that it depends on the session bean. I tried adding the following line to the scheduler mbean: jboss.management.single:EJBModule=xvsserver-ejb.jar,J2EEApplication=xvsserver.ear,J2EEServer=Single,j2eeType=StatelessSessionBean,name=TaskManager But the scheduler failed to deploy reporting: MBeanException: Exception in MBean operation 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: Incompletely deployed packages: MBeans waiting for classes: MBeans waiting for other MBeans: [ObjectName: jboss:schedule=SliceAllocatorDaemon,service=Scheduler state: CONFIGURED I Depend On: jboss.management.single:EJBModule=xvsserver-ejb.jar,J2EEApplication=xvsserver.ear,J2EEServer=Single,j2eeType=StatelessSessionBean,name=TaskManager Thanks for any help! -- Glenn --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Virtual hosting question
Hello, Is there a way to configure multiple virtual hosts to use the same webapp? It appears that jboss-web only allows one virtual-host param. thanks S Scott M Stark wrote: I looked at the problem this morning and the problem is that you have to setup Host elements that matches the virtual host names used in the jboss-web.xml, for example: verbosityLevel = "trace" category = "org.jboss.web.localhost.Engine"/> ... prefix = "a_access" suffix = ".log" pattern = "common" directory = "../server/default/log" /> prefix = "b_access" suffix = ".log" pattern = "common" directory = "../server/default/log" /> ... With this I can deploy two wars to the a.dom.com and b.dot.com virtual hosts with both using the root context: 14:34:03,706 INFO [MainDeployer] Starting deployment of package: file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/ 14:34:03,716 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=, warUrl=file:/C: /tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/ 14:34:03,786 INFO [Engine] WebappLoader[]: Deploying class repositories to work directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\a.dot.com\_ 14:34:03,786 INFO [Engine] StandardManager[]: Seeding random number generator class java.security.SecureRandom 14:34:03,786 INFO [Engine] StandardManager[]: Seeding of random number generator has been completed 14:34:04,828 INFO [Engine] ContextConfig[]: Added certificates -> request attribute Valve 14:34:05,048 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true 14:34:05,048 INFO [Engine] StandardWrapper[:default]: Loading container servlet default 14:34:05,048 INFO [Engine] StandardWrapper[:invoker]: Loading container servlet invoker 14:34:05,098 INFO [MainDeployer] Deployed package: file:/C:/tmp/JBoss/jboss-3.0 .3RC1/server/tomcat/deploy/a.war/ 14:34:05,098 INFO [MainDeployer] Starting deployment of package: file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/ 14:34:05,118 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=, warUrl=file:/C: /tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/ 14:34:05,128 INFO [Engine] WebappLoader[]: Deploying class repositories to work directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\b.dot.com\_ 14:34:05,128 INFO [Engine] StandardManager[]: Seeding random number generator class java.security.SecureRandom 14:34:05,128 INFO [Engine] StandardManager[]: Seeding of random number generator has been completed 14:34:05,198 INFO [Engine] ContextConfig[]: Added certificates -> request attribute Valve 14:34:05,268 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true 14:34:05,268 INFO [Engine] StandardWrapper[:default]: Loading container servlet default 14:34:05,268 INFO [Engine] StandardWrapper[:invoker]: Loading container servlet invoker 14:34:05,358 INFO [MainDeployer] Deployed package: file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/ testsuite 371>wget http://b.dot.com:8080/index.html --14:45:55-- http://b.dot.com:8080/index.html => `index.html.2' Resolving b.dot.com... done. Connecting to b.dot.com[127.0.0.1]:8080... connected. HTTP request sent, awaiting response... 200 OK Length: 64 [text/html] 100%[>] 6462.50K/sETA 00:00 14:45:55 (62.50 KB/s) - `index.html.2' saved [64/64] testsuite 372>wget http://a.dot.com:8080/index.html --14:46:01-- http://a.dot.com:8080/index.html => `index.html.3' Resolving a.dot.com... done. Connecting to a.dot.com[172.17.66.55]:8080... connected. HTTP request sent, awaiting response... 200 OK Length: 64 [text/html] 100%[>] 6462.50K/sETA 00:00 Support for virtual hosting needs to be setup in the tomcat4-service.xml descriptor Config. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Brian Topping" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 6:40 PM Subject: RE: [JBoss-user] Virtual hosting question I took a look at this but don't know what to do next. EmbeddedCatalina.findHost() is returning the default host in the engine for both queries, each with the correct different virtual host names. When StandardHost.addChild() is called the first time, of course it works fine, dies on the second time, since the empty context root is trying to be added to the same StandardHost (the default host) twice. Should EmbeddedCatalina.findHost() be returning two different StandardHosts? It seems like it, but where should they get created, before the call to EmbeddedCatalina.findHost() or inside it? T
[JBoss-user] (no subject)
__ André Bezerra [EMAIL PROTECTED] ICQ 161820985 _ Where you'll find everything under the Sun for the Sun...www.SunGuru.com _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Oracle+CMP+Fixed length columns
Title: Oracle+CMP+Fixed length columns Hello All, We had seen this behaviour... The following are the possible workarounds: 1. Use Oracle specific syntax and BMP. CMP cannot handle this 2. Change the database schema to use VARCHAR instead of CHAR (we have adopted this as a short-term solution) If somebody else have a better idea, please let me know. HTH regards MS -Original Message-From: Finn, Michael [mailto:[EMAIL PROTECTED]]Sent: Monday, December 16, 2002 1:22 PMTo: Jboss-User (E-mail) (E-mail)Subject: [JBoss-user] Oracle+CMP+Fixed length columns Folks, In Oracle, there is a PITA problem with prepared statements that forces you to right pad the value in a where clause arg for fixed length fields. Example: create table SOMETABLE ( SOMECOLUMN char(10) ) // Assume this data insert into SOMETABLE("FOO"); // And this code PreparedStatement ps = conn.prepareStatement("select count(*) from SOMETABLE where SOMECOLUMN = ?"); ps.setString(1,"FOO"); ResultSet rs = ps.executeQuery(); << Will get count = 0 ps.setString(1,"FOO "); << Value rightpadded to size of DB col ResultSet rs = ps.executeQuery(); << Will get count = 1 // But this Statement st = conn.createStatement("select count(*) from SOMETABLE where SOMECOLUMN = 'FOO'"); ResultSet rs = st.executeQuery(); << Will get count = 1 Is there a provision for this (like a switch somewhere) in CMP, that allows one to pass a value (unmolested) to a finder method? TIA --- Mike Finn Frontier Communications Rochester, NY V: 585-777-8202 E: mailto:[EMAIL PROTECTED]
[JBoss-user] oracle-xa-service.xml vs oracle-xa-ds.xml?
Hello All, Whats the difference b/w oracle-xa-service.xml and oracle-xa-ds.xml? Thanks for your time. Best Regards MS --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Oracle+CMP+Fixed length columns
Title: Oracle+CMP+Fixed length columns Folks, In Oracle, there is a PITA problem with prepared statements that forces you to right pad the value in a where clause arg for fixed length fields. Example: create table SOMETABLE ( SOMECOLUMN char(10) ) // Assume this data insert into SOMETABLE("FOO"); // And this code PreparedStatement ps = conn.prepareStatement("select count(*) from SOMETABLE where SOMECOLUMN = ?"); ps.setString(1,"FOO"); ResultSet rs = ps.executeQuery(); << Will get count = 0 ps.setString(1,"FOO "); << Value rightpadded to size of DB col ResultSet rs = ps.executeQuery(); << Will get count = 1 // But this Statement st = conn.createStatement("select count(*) from SOMETABLE where SOMECOLUMN = 'FOO'"); ResultSet rs = st.executeQuery(); << Will get count = 1 Is there a provision for this (like a switch somewhere) in CMP, that allows one to pass a value (unmolested) to a finder method? TIA --- Mike Finn Frontier Communications Rochester, NY V: 585-777-8202 E: mailto:[EMAIL PROTECTED]
Re: [JBoss-user] Scheduler
When you had the .sar in the .ear, did you include a jboss-app.xml file to make he ear deployer deploy it? mystuff.sar if I remember correctly david jencks On 2002.12.16 14:47:52 -0500 Randy Shoup wrote: > I was not able to get a scheduler .sar to work if I deployed it directly > in the EAR. However, it does work if I deploy it inside the *ejb-jar*, > which is itself inside the EAR. > > My working theory is that there is some subtle difference between the > EAR deployer and the JAR deployer (maybe the EAR deployer only deploys > modules mentioned in the application.xml or in the classpaths of the > modules?). But I have not investigated further. > > For now, I am OK with this structure. But I would be interested to > understand why it behaves like this :-). > > JD Brennan wrote: > > > > From: JD Brennan <[EMAIL PROTECTED]> > > To: "'[EMAIL PROTECTED]'" > > <[EMAIL PROTECTED]> > > Subject: RE: [JBoss-user] Scheduler > > Date: Mon, 16 Dec 2002 09:57:56 -0800 > > Reply-To: [EMAIL PROTECTED] > > > > This message is in MIME format. Since your mail reader does not > understand > > this format, some or all of this message may not be legible. > > > > --_=_NextPart_001_01C2A52C.A9F142A0 > > Content-Type: text/plain; > > charset="iso-8859-1" > > > > Yep, we have the same problem. Your original post said you > > needed your scheduler to access a class in your .ear. If you > > need to access a bean, then you can't just put the .sar in the > > .ear - We solved this by just sleeping for 60 seconds and then > > starting - not ideal, but I couldn't find the MBean for > > the bean container to make the depends stuff work. If you get > > it working could you post a follow-up to the list? > > > > Tx! > > JD > > > > -Original Message- > > From: Glenn Lewis [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, December 15, 2002 4:39 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-user] Scheduler > > > > > > Thanks for the advice. > > > > We can deploy the scheduler MBean by putting it inside a .sar, but we > > get a similar problem: the first time the scheduler is invoked it does > a > > findAll on a bean that is not deployed. An error message is printed by > > the loginterceptor (so I'm not sure we can catch it). The next time the > > > scheduler is invoked it works fine, since by that time everything is > > deployed. > > > > Any suggestions? > > > > > > JD Brennan wrote: > > > >>We deploy our MBean by putting it inside a .sar inside > >>our ejb .jar inside our .ear - there are probably other > >>better ways, but this works for us. > >> > >>JD > >> > >>-Original Message- > >>From: Glenn Lewis [mailto:[EMAIL PROTECTED]] > >>Sent: Thursday, December 12, 2002 8:45 PM > >>To: [EMAIL PROTECTED] > >>Cc: [EMAIL PROTECTED] > >>Subject: [JBoss-user] Scheduler > >> > >> > >>Hi all, > >> > >>Using the online docs at > >>http://www.jboss.org/online-manual/HTML/ch11s58.html#scheduler-usage > and > >>JBoss3.0.3 we have created a scheduler mbean. We deploy it via a timer > >>service.xml file. The scheduler mbean refers to a class > >>(au.com.xcomp.xvs.server.TimedObjectSchedulable) in our ear. > >> > >>The scheduler deploys fine provided we manually make sure the ear is > >>deployed before the service.xml. However, when we try to deploy the > >>service.xml file and ear file in the one ant task, the scheduler > deploys > >>first and gives the error below. Someone else also reported this > problem > >>a while ago > >> > > > > (http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg23230.html) > > . > > > >> > >> > >>Any suggestions??? > >> > >>Cause: Incomplete Deployment listing: > >>Packages waiting for a deployer: > >> > >>Incompletely deployed packages: > >> > >>MBeans waiting for classes: > >> > >>MBeans waiting for other MBeans: > >>[ObjectName: jboss:schedule=CheckTimeoutDaemon,service=Scheduler > >> state: FAILED > >> I Depend On: > >> Depends On Me: org.jboss.deployment.DeploymentException: Exception > >>setting attribute javax.management.Attribute@250ff2 on mbean > >>jboss:schedule=CheckTimeoutDaemon,service=Scheduler; - nested > throwable: > >>(java.security.InvalidParameterException: Given class > >>au.com.xcomp.xvs.server.TimedObjectSchedulable is not valid or not > found)] > >> > >> > >>Thanks > >> > >>-- > >>Glenn > >> > >> > >> > >>--- > >>This sf.net email is sponsored by: > >>With Great Power, Comes Great Responsibility > >>Learn to use your power at OSDN's High Performance Computing Channel > >>http://hpc.devchannel.org/ > >>___ > >>JBoss-user mailing list > >>[EMAIL PROTECTED] > >>https://lists.sourceforge.net/lists/listinfo/jboss-user > >> > > > > > > > > > > > > --- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use yo
Re: [JBoss-user] Clustered Http Session Locks
> This is all my stuff, > > I'm busy until the weekend. I will look at it then. Any news on this? I've runned the example some more times. One of two things happen: If it does not lock, it'll usually fail/throw exception to sync the sessions and the container will start with new sessions. -- João Pedro Clemente - jpcl (at) rnl ist utl pt " Why can't women put the toilet seat back up? " --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ClassCircularityError in org.jboss.mq.server.BasicQueue$1$RestoreMessageTask
Can someone pls shed light on the following stack trace? It's an intermittant problem on the app server we've seen, jboss 3.0.0. Around the same time, we get an error on the client. This is jdk1.4 on win2k. jboss and client running on the same machine. JBoss log w exception 2002-12-16 14:42:42,163 ERROR [STDERR] java.lang.ClassCircularityError: org/jboss/mq/server/BasicQueue$1$RestoreMessageTask 2002-12-16 14:42:42,163 ERROR [STDERR] at org.jboss.mq.server.BasicQueue.acknowledge(BasicQueue.java:309) 2002-12-16 14:42:42,163 ERROR [STDERR] at org.jboss.mq.server.JMSTopic.acknowledge(JMSTopic.java:205) 2002-12-16 14:42:42,163 ERROR [STDERR] at org.jboss.mq.server.ClientConsumer.acknowledge(ClientConsumer.java:323) 2002-12-16 14:42:42,163 ERROR [STDERR] at org.jboss.mq.server.JMSDestinationManager.acknowledge(JMSDestinationManager. java:522) 2002-12-16 14:42:42,163 ERROR [STDERR] at org.jboss.mq.server.JMSDestinationManager.acknowledge(JMSDestinationManager. java:506) 2002-12-16 14:42:42,163 ERROR [STDERR] at org.jboss.mq.server.JMSServerInterceptorSupport.acknowledge(JMSServerInterce ptorSupport.java:197) 2002-12-16 14:42:42,163 ERROR [STDERR] at org.jboss.mq.server.TracingInterceptor.acknowledge(TracingInterceptor.java:3 57) 2002-12-16 14:42:42,173 ERROR [STDERR] at org.jboss.mq.server.JMSServerInvoker.acknowledge(JMSServerInvoker.java:199) 2002-12-16 14:42:42,173 ERROR [STDERR] at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:22 9) 2002-12-16 14:42:42,173 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536) Client exception 2002-12-16 14:43:02,763 WARN [MessageListenerThread - pool] Message consumer cl osing due to error in listening thread. org.jboss.mq.SpyJMSException: Cannot acknowlege a message at org.jboss.mq.Connection.send(Connection.java:790) at org.jboss.mq.SpyMessage.doAcknowledge(SpyMessage.java:537) at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:493) at java.lang.Thread.run(Thread.java:536) linked exception is: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt ream.java:2591) at java.io.ObjectInputStream.readByte(ObjectInputStream.java:837) at org.jboss.mq.il.oil.OILServerIL.waitAnswer(OILServerIL.java:521) at org.jboss.mq.il.oil.OILServerIL.acknowledge(OILServerIL.java:180) at org.jboss.mq.Connection.send(Connection.java:786) at org.jboss.mq.SpyMessage.doAcknowledge(SpyMessage.java:537) at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:493) at java.lang.Thread.run(Thread.java:536) 2002-12-16 14:43:02,763 WARN [MessageListenerThread - pool] Message consumer cl osing due to error in listening thread. org.jboss.mq.SpyJMSException: Cannot acknowlege a message at org.jboss.mq.Connection.send(Connection.java:790) at org.jboss.mq.SpyMessage.doAcknowledge(SpyMessage.java:537) at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:493) at java.lang.Thread.run(Thread.java:536) linked exception is: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt ream.java:2591) at java.io.ObjectInputStream.readByte(ObjectInputStream.java:837) at org.jboss.mq.il.oil.OILServerIL.waitAnswer(OILServerIL.java:521) at org.jboss.mq.il.oil.OILServerIL.acknowledge(OILServerIL.java:180) at org.jboss.mq.Connection.send(Connection.java:786) at org.jboss.mq.SpyMessage.doAcknowledge(SpyMessage.java:537) at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:493) at java.lang.Thread.run(Thread.java:536) 2002-12-16 14:43:02,763 WARN [MessageListenerThread - pool] Message consumer cl osing due to error in listening thread. org.jboss.mq.SpyJMSException: Cannot acknowlege a message at org.jboss.mq.Connection.send(Connection.java:790) at org.jboss.mq.SpyMessage.doAcknowledge(SpyMessage.java:537) at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:493) at java.lang.Thread.run(Thread.java:536) linked exception is: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt ream.java:2591) at java.io.ObjectInputStream.readByte(ObjectInputStream.java:837) at org.jboss.mq.il.oil.OILServerIL.waitAnswer(OILServerIL.java:521) at org.jboss.mq.il.oil.OILServerIL.acknowledge(OILServerIL.java:180) at org.jboss.mq.Connection.send(Connection.java:786) at org.jboss.mq.SpyMessage.doAcknowledge(SpyMessage.java:537) at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:493) at java.lang.Thread.run(Thread.java:536) 2002-12-16 14:43:02,763 WARN [MessageListenerThread - pool] Message consumer cl osing due to error in listening thread. org.jboss.mq.SpyJMSException: Cannot acknowlege a message at org.jboss.mq.Connection.send(Connection.
Re: [JBoss-user] INFO: JBoss/Oracle XA Datasource Configuration
Sasidharan, Manoj wrote: Hello All, I have been struggling hard to get my JBoss/Oracle XA to work. Finally its up and running. Here is a list of TODOs to get JBoss/Oracle XA datasource: 1. Use JDK 1.4 2. Oracle server requires JVM to be installed $ORACLE_HOME/javavm/install/initjvm.sql should be run as sys Oracle user. 3. Make sure you have the correct oracle-xa-service.xml. The default file seems to be faulty. I would appreciate if any corrections/suggestions can be added to this posting by other users. You must use JBoss 3.2RC1 or 4.0. I hope that I fixed sample oracle-xa-service.xml and oracle-xa-ds.xml. Could you please double check this? -- Igor Fedorenko Think smart. Think automated. Think Dynamics. www.thinkdynamics.com --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Oracle JMS Issue.
I seem to have it working now (I had to view the persistance manager source to find what blob types were supported and how). I used these settings: BLOB_TYPE=BINARYSTREAM_BLOB INSERT_TX = INSERT INTO JMS_TRANSACTIONS (TXID) values(?) INSERT_MESSAGE = INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?) SELECT_ALL_UNCOMMITED_TXS = SELECT TXID FROM JMS_TRANSACTIONS SELECT_MAX_TX = SELECT MAX(TXID) FROM JMS_MESSAGES SELECT_MESSAGES_IN_DEST = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE DESTINATION=? SELECT_MESSAGE = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=? MARK_MESSAGE = UPDATE JMS_MESSAGES SET (TXID, TXOP) VALUES(?,?) WHERE MESSAGEID=? AND DESTINATION=? DELETE_ALL_MESSAGE_WITH_TX = DELETE FROM JMS_MESSAGES WHERE TXID=? DELETE_TX = DELETE FROM JMS_TRANSACTIONS WHERE TXID = ? DELETE_MARKED_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXID=? AND TXOP=? DELETE_MESSAGE = DELETE FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=? CREATE_MESSAGE_TABLE = CREATE TABLE JMS_MESSAGES ( MESSAGEID INTEGER NOT NULL, \ DESTINATION VARCHAR2(50) NOT NULL, TXID INTEGER, TXOP CHAR(1), \ MESSAGEBLOB BLOB, PRIMARY KEY (MESSAGEID, DESTINATION) ) CREATE_TX_TABLE = CREATE TABLE JMS_TRANSACTIONS ( TXID INTEGER ) However I'm still getting an issue with the transaction not committing after the bean executes. I still have entries left in the JMS_Message queue table. Is this normal?? I get this exception if it helps: javax.transaction.xa.XAException at org.jboss.mq.SpyXAResource.prepare(SpyXAResource.java:173) at org.jboss.tm.TxCapsule.prepareResources(TxCapsule.java:1619) at org.jboss.tm.TxCapsule.commit(TxCapsule.java:402) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:73) at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:319) at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageCons umer.java:603) at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:417) at org.jboss.mq.SpySession.run(SpySession.java:259) at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:177) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja va:642) at java.lang.Thread.run(Thread.java:536) 19:34:42,781 ERROR [StdServerSession] failed to commit/rollback javax.transaction.RollbackException: Unable to commit, tx=XidImpl [FormatId=257, GlobalId=Developer2//412, BranchQual=] status=STATUS_ROLLEDBACK at org.jboss.tm.TxCapsule.commit(TxCapsule.java:425) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:73) at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:319) at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageCons umer.java:603) at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:417) at org.jboss.mq.SpySession.run(SpySession.java:259) at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:177) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja va:642) at java.lang.Thread.run(Thread.java:536) Best Regards, Anthony Geoghegan. J2EE Developer CPS Ireland Ltd. --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] INFO: JBoss/Oracle XA Datasource Configuration
Manoj Could you include this correct oracle-xa-service.xml? Regards Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sasidharan, Manoj Sent: Monday, December 16, 2002 1:56 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] INFO: JBoss/Oracle XA Datasource Configuration Hello All, I have been struggling hard to get my JBoss/Oracle XA to work. Finally its up and running. Here is a list of TODOs to get JBoss/Oracle XA datasource: 1. Use JDK 1.4 2. Oracle server requires JVM to be installed $ORACLE_HOME/javavm/install/initjvm.sql should be run as sys Oracle user. 3. Make sure you have the correct oracle-xa-service.xml. The default file seems to be faulty. I would appreciate if any corrections/suggestions can be added to this posting by other users. HTH regards MS --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Struggling with authorisation injboss-3.0.4_tomcat-4.0.6
Scott, I've spent some time studying the testsuite examples you mentioned, and I'm afraid I still don't know where I'm going wrong, or how precisely the examples work. One vital item that I haven't managed to deduce is how, in the testsuite example, the SecuredEJB is associated with the appropriate in login-connfig.xml. If you could give me a hint it may help me to understand what's happening. Thanks, David On Sun, 2002-11-24 at 02:26, Scott M Stark wrote: > The security unit tests illustrate the setup of secured EJBs. See the following in > the source code: > > testsuite/src/main/org/jboss/test/security/test/EJBSpecUnitTestCase.java > testsuite/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java > testsuite/build.xml > > to see how the security-spec.jar and jbosstest-web.ear are using secured EJBs. > > > Scott Stark > Chief Technology Officer > JBoss Group, LLC > > > - Original Message - > From: "David Whitmarsh" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 22, 2002 1:34 PM > Subject: [JBoss-user] Struggling with authorisation in jboss-3.0.4_tomcat-4.0.6 > > > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- David Whitmarsh Sparkle Computer Co Ltd Systems Development and Consultancy UNIX/LINUX/Windows, C/C++/perl/java Sybase Internet, Intranet, Security web: www.sparkle-cc.co.uk mob: +44 (0)7802 537097 == signature.asc Description: This is a digitally signed message part
Re: [JBoss-user] Scheduler
I was not able to get a scheduler .sar to work if I deployed it directly in the EAR. However, it does work if I deploy it inside the *ejb-jar*, which is itself inside the EAR. My working theory is that there is some subtle difference between the EAR deployer and the JAR deployer (maybe the EAR deployer only deploys modules mentioned in the application.xml or in the classpaths of the modules?). But I have not investigated further. For now, I am OK with this structure. But I would be interested to understand why it behaves like this :-). JD Brennan wrote: From: JD Brennan <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] Scheduler Date: Mon, 16 Dec 2002 09:57:56 -0800 Reply-To: [EMAIL PROTECTED] This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --_=_NextPart_001_01C2A52C.A9F142A0 Content-Type: text/plain; charset="iso-8859-1" Yep, we have the same problem. Your original post said you needed your scheduler to access a class in your .ear. If you need to access a bean, then you can't just put the .sar in the .ear - We solved this by just sleeping for 60 seconds and then starting - not ideal, but I couldn't find the MBean for the bean container to make the depends stuff work. If you get it working could you post a follow-up to the list? Tx! JD -Original Message- From: Glenn Lewis [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 4:39 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Scheduler Thanks for the advice. We can deploy the scheduler MBean by putting it inside a .sar, but we get a similar problem: the first time the scheduler is invoked it does a findAll on a bean that is not deployed. An error message is printed by the loginterceptor (so I'm not sure we can catch it). The next time the scheduler is invoked it works fine, since by that time everything is deployed. Any suggestions? JD Brennan wrote: We deploy our MBean by putting it inside a .sar inside our ejb .jar inside our .ear - there are probably other better ways, but this works for us. JD -Original Message- From: Glenn Lewis [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 8:45 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [JBoss-user] Scheduler Hi all, Using the online docs at http://www.jboss.org/online-manual/HTML/ch11s58.html#scheduler-usage and JBoss3.0.3 we have created a scheduler mbean. We deploy it via a timer service.xml file. The scheduler mbean refers to a class (au.com.xcomp.xvs.server.TimedObjectSchedulable) in our ear. The scheduler deploys fine provided we manually make sure the ear is deployed before the service.xml. However, when we try to deploy the service.xml file and ear file in the one ant task, the scheduler deploys first and gives the error below. Someone else also reported this problem a while ago (http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg23230.html) . Any suggestions??? Cause: Incomplete Deployment listing: Packages waiting for a deployer: Incompletely deployed packages: MBeans waiting for classes: MBeans waiting for other MBeans: [ObjectName: jboss:schedule=CheckTimeoutDaemon,service=Scheduler state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@250ff2 on mbean jboss:schedule=CheckTimeoutDaemon,service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class au.com.xcomp.xvs.server.TimedObjectSchedulable is not valid or not found)] Thanks -- Glenn --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --_=_NextPart_001_01C2A52C.A9F142A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable charset=3Diso-8859-1"> 5.5.2653.12"> RE: [JBoss-user] Scheduler Yep, we have the same problem. Your original = post said you needed your scheduler to access a class in your = .ear. If you need to access a bean, then you can't just put the = .sar in the .ear - We solved this by just sleeping for 60 = seconds and then starting - not ideal, but I couldn't find the MBean = for the bean container to make the depen
[JBoss-user] INFO: JBoss/Oracle XA Datasource Configuration
Hello All, I have been struggling hard to get my JBoss/Oracle XA to work. Finally its up and running. Here is a list of TODOs to get JBoss/Oracle XA datasource: 1. Use JDK 1.4 2. Oracle server requires JVM to be installed $ORACLE_HOME/javavm/install/initjvm.sql should be run as sys Oracle user. 3. Make sure you have the correct oracle-xa-service.xml. The default file seems to be faulty. I would appreciate if any corrections/suggestions can be added to this posting by other users. HTH regards MS --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] INFO: How to setup a datasource in JBoss?
Hello All, Here are some tips to setup a datasource in JBoss: JBOSS 3.0.4 Oracle 8.1.7 (I am taking Oracle as an example) Platform is WinNT 1. Put Oracle JDBC driver zip file classes12.zip in $JBOSS_HOME/server/default/lib. If you are using some other RDBMS, use the appropriate JDBC driver file for this purpose. 2. Modified oracle-service.xml from $JBOSS/docs/examples/jca There are separate templates available in this directory for different RDBMS/datasources. Modify the template and put appropriate information. Things that can be changed may differ. Here are a few for RDBMSes: a. URL b. UserName c. Password 3. Copied oracle-service.xml to $JBOSS_HOME/server/default/deploy Copy the modified file to the directory. I had to spending lot of time finding information and sorting things out before things started working. Hope this posting helps save some of your precious time. For more insight into Oracle XA configuration, see my posting on the same. Best of Luck. MS --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMS JDBC Persistence Manager bug or limitation
Hello , I noticed this problem: My application generates messages for a queue faster than the MDB can consume them. So a lot messages get stored in the database, as I am using JDBC persisten manager. I shut down and restarted Jboss when I had about 1600 rows in the JMS table in the database. Jboss did not start properly --I get an exception that I list at the bottom. I want to know if this is a known limitation of persistence manager and if there is a work around ? (Currently , I delete all messages i the JMS_MESSAGES table and restart jboss successfully but clearly thats not acceptable in production.). I will deeply appreciate any help! regards -manish This is my setup : Jboss 3.04 on Win2K, SAPDB 7.3 on Linux. This is my configuration : name="jboss.mq:service=MessageCache"> 100 200 jboss.mq:service=PersistenceManager name="jboss.mq:service=PersistenceManager"> jboss.mq:service=MessageCache jboss.jca:service=LocalTxDS,name=SapdbDS jboss.jca:service=LocalTxCM,name=SapdbDS BLOB_TYPE=BYTES_BLOB INSERT_TX = INSERT INTO JMS_TRANSACTIONS (TXID) values(?) INSERT_MESSAGE = INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?) SELECT_ALL_UNCOMMITED_TXS = SELECT TXID FROM JMS_TRANSACTIONS SELECT_MAX_TX = SELECT MAX(TXID) FROM JMS_MESSAGES SELECT_MESSAGES_IN_DEST = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE DESTINATION=? SELECT_MESSAGE = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=? MARK_MESSAGE = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE MESSAGEID=? AND DESTINATION=? DELETE_ALL_MESSAGE_WITH_TX = DELETE FROM JMS_MESSAGES WHERE TXID=? DELETE_TX = DELETE FROM JMS_TRANSACTIONS WHERE TXID = ? DELETE_MARKED_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXID=? AND TXOP=? DELETE_MESSAGE = DELETE FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=? CREATE_MESSAGE_TABLE = CREATE TABLE JMS_MESSAGES ( MESSAGEID INTEGER NOT NULL, \ DESTINATION VARCHAR(50) NOT NULL, TXID INTEGER, TXOP CHAR(1), \ MESSAGEBLOB LONG BYTE, PRIMARY KEY (MESSAGEID, DESTINATION) ) CREATE_TX_TABLE = CREATE TABLE JMS_TRANSACTIONS ( TXID INTEGER ) Please note that if I allow my MDB to consume all the messages, then Jboss starts up ok. This is the Exception: 2002-12-16 12:54:13,545 INFO [org.jboss.mq.server.jmx.Queue.validatorQueue] Starting 2002-12-16 12:59:13,636 WARN [org.jboss.tm.TxCapsule] Transaction XidImpl [FormatId=257, GlobalId=transeth-canada//17, BranchQual=] timed out. status=STATUS_ACTIVE 2002-12-16 12:59:34,837 ERROR [org.jboss.mq.server.jmx.Queue.validatorQueue] Starting failed org.jboss.mq.SpyJMSException: Could not restore messages to destination : QUEUE.validatorQueue; - nested throwable: (org.jboss.util.NestedSQLException: Interrupted while requesting permit!; - nested throwable: (javax.resource.ResourceException: Interrupted while requesting permit!)) at org.jboss.mq.pm.jdbc2.PersistenceManager.restoreQueue(PersistenceManager.java:397) at org.jboss.mq.server.JMSDestinationManager.addDestination(JMSDestinationManager.java:786) at org.jboss.mq.server.jmx.Queue.startService(Queue.java:66) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy5.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:398) at org.jboss.system.ServiceController.start(ServiceController.java:418) at org.jboss.system.ServiceController.start(ServiceController.java:418) at org.jboss.system.ServiceController.start(ServiceController.java:418) at org.jboss.system.ServiceController.start(ServiceController.java:418) at org.jboss.system.ServiceController.start(ServiceController.java:418) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) at $Proxy6.start(Unknown Source) at org.jboss.resource.RARDeployer.start(RARDeployer.java:212) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621) at org.jboss.deployment.MainDeployer.d
RE: [JBoss-user] Scheduler
Title: RE: [JBoss-user] Scheduler Yep, we have the same problem. Your original post said you needed your scheduler to access a class in your .ear. If you need to access a bean, then you can't just put the .sar in the .ear - We solved this by just sleeping for 60 seconds and then starting - not ideal, but I couldn't find the MBean for the bean container to make the depends stuff work. If you get it working could you post a follow-up to the list? Tx! JD -Original Message- From: Glenn Lewis [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 4:39 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Scheduler Thanks for the advice. We can deploy the scheduler MBean by putting it inside a .sar, but we get a similar problem: the first time the scheduler is invoked it does a findAll on a bean that is not deployed. An error message is printed by the loginterceptor (so I'm not sure we can catch it). The next time the scheduler is invoked it works fine, since by that time everything is deployed. Any suggestions? JD Brennan wrote: > We deploy our MBean by putting it inside a .sar inside > our ejb .jar inside our .ear - there are probably other > better ways, but this works for us. > > JD > > -Original Message- > From: Glenn Lewis [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 8:45 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [JBoss-user] Scheduler > > > Hi all, > > Using the online docs at > http://www.jboss.org/online-manual/HTML/ch11s58.html#scheduler-usage and > JBoss3.0.3 we have created a scheduler mbean. We deploy it via a timer > service.xml file. The scheduler mbean refers to a class > (au.com.xcomp.xvs.server.TimedObjectSchedulable) in our ear. > > The scheduler deploys fine provided we manually make sure the ear is > deployed before the service.xml. However, when we try to deploy the > service.xml file and ear file in the one ant task, the scheduler deploys > first and gives the error below. Someone else also reported this problem > a while ago > (http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg23230.html). > > > > Any suggestions??? > > Cause: Incomplete Deployment listing: > Packages waiting for a deployer: > > Incompletely deployed packages: > > MBeans waiting for classes: > > MBeans waiting for other MBeans: > [ObjectName: jboss:schedule=CheckTimeoutDaemon,service=Scheduler > state: FAILED > I Depend On: > Depends On Me: org.jboss.deployment.DeploymentException: Exception > setting attribute javax.management.Attribute@250ff2 on mbean > jboss:schedule=CheckTimeoutDaemon,service=Scheduler; - nested throwable: > (java.security.InvalidParameterException: Given class > au.com.xcomp.xvs.server.TimedObjectSchedulable is not valid or not found)] > > > Thanks > > -- > Glenn > > > > --- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Sample SQL Properties for Oracle implementation in JMS
Does anyone have a sample set of SQL properties used for Oracle 8i for JMS persistence Layer implementation? Best Regards, Anthony Geoghegan. J2EE Developer CPS Ireland Ltd. --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] UML2EJB code generator
Hello, this may be interesting for you, as many of you use the XDoclet tool: The new release of UML2EJB is out! UML2EJB is a code generator - it takes a Unified Modeling Language (UML) model from a CASE-tool in XMI format and generates Enterprise JavaBeans classes with tags for the XDoclet tool. You will get EJBs that can readily be deployed into JBoss and other app servers. One of the interesting features: It translates UML relationships into CMP 2.0/CMR using the correct [EMAIL PROTECTED] or @ejb.target-relation tags automatically. The new release contains a completely revamped sample application that shows the power of model-driven, automatic EJB generation. It is a web based J2EE app that models a car rental company. The company has customers and an inventory of cars that can be rented. Visit http://sf.net/projects/uml2ejb or http://uml2ejb.sourceforge.net to get the new release of generator and sample app. Have fun! Matthias Matthias Bohlen "Consulting that helps project teams to succeed..." http://www.mbohlen.de/ --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] SQL Exception
I forgot to mention that I have already added: TRANSACTION_SERIALIZABLE in my oracle-service.xml file... Vassilis -Original Message- From: saroj kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 4:29 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] SQL Exception Hi Vassilis, I think this post may be of your use: http://p2p.wrox.com/archive/enterprise_java_beans/2002-09/1.asp Oracle uses optimistic concurrency. As a consequence, even with a setting of TRANSACTION_SERIALIZABLE, Oracle does not detect serialization problems until commit time. Hence the message : java.sql.SQLException: ORA-08177: can't serialize access for this transaction Even if you use the TRANSACTION_SERIALIZABLE setting for an EJB, you may receive exceptions or rollbacks in the EJB client if contention occurs between clients for the same rows. To avoid these problems, make sure that the code in your client application catches and examines the SQL exceptions, and take you take the appropriate action to resolve the exceptions, such as restarting the transaction. -Saroj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mokas Vassilis ([EMAIL PROTECTED]) Sent: Monday, December 16, 2002 7:38 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] SQL Exception Hi all, I am running an application (Session EJB) that adds some entries in an OracleDB through entity beans. When I execute only one client of me application, there is no problem at all. However when I execute 300 clients concurrently for the same application a message "java.sql.SQLException: can't serialize access for this transaction" appears. Any help? Thanks Vassilis --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Remote JMX management and notifications
Hi, I am using JBoss 3.0.1, and am using the remote JMX to manage and monitor applications running on JBoss. I am doing this via the RMIConnector and RMIAdaptor. I can use the JMX successfully to invoke, register and add notification listeners across JVMs. My problem starts if my remote client goes down in an uncontrolled way ( eg. network problem, reboot, crash ) - my agent on the JBoss server does not receive a removeNotificationListener message, and continues to send notifications to the listener. This causes the NotificationBroadcaster.sendNotification method to throw a java.net.ConnectException, and leaves an orphaned NotificationListener that can never be removed. I need a way to handle the exception and unregister this notification listener, but there doesn't seem to be a way with the 3.0.1 code; you need either the instance of the listener ( which is on a different JVM and accessed via a proxy, therefore not useable ) or the ObjectName ( and I don't know how to get this from a NotificationListener registered with the MBeanServer.) I believe that there are plans to upgrade the remote JMX, and when that comes along I will use that, but in the meantime I need some sort of remote management. I would like to know if there is a way around this problem. If not I am happy to investigate a fix myself. rgds, Steve Wink. --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: Re[2]: [JBoss-user] cmp mapping question
Thanks to both of you for picking up this issue. I'm glad to know there are other people dealing with the same thing. I'll look into both these things more closely. If I have other thoughts, I'll post them. Regards Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Loubyansky Sent: Monday, December 16, 2002 6:59 AM To: Brian Topping Subject: Re[2]: [JBoss-user] cmp mapping question BT> Is it possible to synthesize a first-class Java Bean at runtime? A proxy to BT> the DynaBean generated by BCEL maybe? check http://www.csg.is.titech.ac.jp/~chiba/javassist/ JBoss AOP framework is based on it. alex BT> DynaBeans are almost there, but they BT> are accessed via bean->get("attribute"). If there was a way to generate a BT> bean at runtime that could be configured from a configuration descriptor to respond to bean->>getAttribute(), it might be possible to support both worlds BT> transparently with a substitute CMP container. BT> Would this synthetic static typing buy anything? Maybe in the end, it would BT> just be sugar... BT> -b --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] SQL Exception
Hi Vassilis, I think this post may be of your use: http://p2p.wrox.com/archive/enterprise_java_beans/2002-09/1.asp Oracle uses optimistic concurrency. As a consequence, even with a setting of TRANSACTION_SERIALIZABLE, Oracle does not detect serialization problems until commit time. Hence the message : java.sql.SQLException: ORA-08177: can't serialize access for this transaction Even if you use the TRANSACTION_SERIALIZABLE setting for an EJB, you may receive exceptions or rollbacks in the EJB client if contention occurs between clients for the same rows. To avoid these problems, make sure that the code in your client application catches and examines the SQL exceptions, and take you take the appropriate action to resolve the exceptions, such as restarting the transaction. -Saroj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mokas Vassilis ([EMAIL PROTECTED]) Sent: Monday, December 16, 2002 7:38 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] SQL Exception Hi all, I am running an application (Session EJB) that adds some entries in an OracleDB through entity beans. When I execute only one client of me application, there is no problem at all. However when I execute 300 clients concurrently for the same application a message "java.sql.SQLException: can't serialize access for this transaction" appears. Any help? Thanks Vassilis --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SQL Exception
Hi all, I am running an application (Session EJB) that adds some entries in an OracleDB through entity beans. When I execute only one client of me application, there is no problem at all. However when I execute 300 clients concurrently for the same application a message "java.sql.SQLException: can't serialize access for this transaction" appears. Any help? Thanks Vassilis --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Unusual datasource request
A quick look at the localtx wrapper begin() code looks like the only way to get an SQLException is if the driver throws it when you call con.setAutoCommit(false). Are you sure FileMakerPro supports transactions and setting autocommit off? If not you will have to use the NoTxConnectionManager with the LocalTx adapter. If you get this working please submit your *-servie.xml file, I'll add it to the examples. thanks david jencks On 2002.12.16 01:00:50 -0500 Matthew Van Horn wrote: > Is there anyone out there that could give me a pointer or two towards > setting up Filemaker Pro as a DataSource in JBoss. > Please don't ask "Why Filemaker?", as I'm not too keen on using it > myself, but I have no choice. > Sorry for the long post, but maybe someone can give me a clue here as > to what I need to change. I don't really know what any of this means. > Thanks in advance, > Matt > > The stacktrace: > 14:56:54,991 WARN [TxCapsule] XAException: tx=XidImpl [FormatId=257, > GlobalId=mattvan.local.//0, BranchQual=] errorCode=XA_UNKNOWN(0) > javax.transaction.xa.XAException: Error trying to start local tx: > javax.resource.ResourceException: SQLException > at > org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConne > ctionEventListener.start(LocalTxConnectionManager.java:506) > at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1232) > at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:726) > at > org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:102) > at > org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConne > ctionEventListener.enlist(LocalTxConnectionManager.java:320) > at > org.jboss.resource.connectionmanager.LocalTxConnectionManager.managedCon > nectionReconnected(LocalTxConnectionManager.java:255) > at > org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConn > ection(BaseConnectionManager2.java:534) > at > org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionMa > nagerProxy.allocateConnection(BaseConnectionManager2.java:814) > at > org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(Loca > lDataSource.java:102) > at > viperfishenterprise.ATJ_CandidateBean.makeConnection(ATJ_CandidateBean.j > ava:112) > at > viperfishenterprise.ATJ_CandidateBean.setEntityContext(ATJ_CandidateBean > .java:80) > at > org.jboss.ejb.EntityEnterpriseContext.(EntityEnterpriseContext.jav > a:76) > at > org.jboss.ejb.plugins.EntityInstancePool.create(EntityInstancePool.java: > 86) > at > org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java > :209) > at > org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanc > eInterceptor.java:78) > at > org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterce > ptor.java:79) > at > org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreatio > nInterceptor.java:44) > at > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce > ptor.java:111) > at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor > CMT.java:178) > at > org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java: > 52) > at > org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor > .java:105) > at > org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129) > at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487) > at org.jboss.ejb.Container.invoke(Container.java:730) > at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058) > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) > at > org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382 > ) > at java.lang.reflect.Method.invoke(Native Method) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236) > at sun.rmi.transport.Transport$1.run(Transport.java:147) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:143) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja > va:701) > at java.lang.Thread.run(Thread.java:491) > 14:56:55,240 WARN [TxCapsule] XAException: tx=XidImpl [FormatId=257, > GlobalId=mattvan.local.//0, BranchQual=] errorCode=XA_UNKNOWN(0) > javax.transaction.xa.XAException: wrong xid in commit: expected: null, > got: XidImpl [FormatId=257, GlobalId=mattvan.local.//0, BranchQual=1] > at > org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConne > ctionEventListener.commit(LocalTxConnectionManager.java:548) > at org.jboss.tm.TxCapsule.com
Re: [JBoss-user] Client-JAR to Swing Application
and and make sure you have jndi.properties on your client to point to your jboss server. /L måndagen den 16 december 2002 kl 13.47 skrev Jean-Christophe Pazzaglia: Edgar Silva wrote: Hi Folks... When I tested my application in the same machine where JBoss is running it´s ok. I would like to know which files I need to execute this client in other machine from my netowork, because nowadays i have fail in remote calls to my ejbs located in server. since now...thanks... Edgar cf. jboss\client jc --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Client-JAR to Swing Application
Edgar Silva wrote: Hi Folks... When I tested my application in the same machine where JBoss is running it´s ok. I would like to know which files I need to execute this client in other machine from my netowork, because nowadays i have fail in remote calls to my ejbs located in server. since now...thanks... Edgar cf. jboss\client jc --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Client-JAR to Swing Application
Hi Folks... When I tested my application in the same machine where JBoss is running it´s ok. I would like to know which files I need to execute this client in other machine from my netowork, because nowadays i have fail in remote calls to my ejbs located in server. since now...thanks... Edgar --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] cmp mapping question
BT> Is it possible to synthesize a first-class Java Bean at runtime? A proxy to BT> the DynaBean generated by BCEL maybe? check http://www.csg.is.titech.ac.jp/~chiba/javassist/ JBoss AOP framework is based on it. alex BT> DynaBeans are almost there, but they BT> are accessed via bean->get("attribute"). If there was a way to generate a BT> bean at runtime that could be configured from a configuration descriptor to respond to bean->>getAttribute(), it might be possible to support both worlds BT> transparently with a substitute CMP container. BT> Would this synthetic static typing buy anything? Maybe in the end, it would BT> just be sugar... BT> -b --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] cmp mapping question
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Eric Kaplan > Sent: Sunday, December 15, 2002 12:24 PM > To: Jboss-User > Subject: [JBoss-user] cmp mapping question > > > 1. I've only seen cmp beans specify mapping to individual > data members (instance variables), not to keys in a map. Is > there a technology available to do such a mapping? If memory serves, keyed maps are the manner by which "Repositories" in ATG Dynamo represent persistent data. Based on the marketecture document at http://www.atg.com/en/products/core_technology/data_anywhere.jhtml, they are calling this "Data Anywhere Architecture" now. After a fair bit of thought about it back in the day, I started to wonder to myself why raw JDBC with distributed cache invalidation wouldn't net the same thing, at least for SQL persistence. Craig McClanahan wrote something for Struts (and has since moved it into Commons) called DynaBeans. These are basically Maps that have strong dynamic typing based on key, configured by XML descriptors via Digester (although I'm sure they could be configured by the same manner in which Digester operates by client code as well.) It seems like a fusion of a CMP container around DynaBeans would be pretty powerful. I'd use it, one of my projects needs a dynamic store that is similar to what Eric has described. Is it possible to synthesize a first-class Java Bean at runtime? A proxy to the DynaBean generated by BCEL maybe? DynaBeans are almost there, but they are accessed via bean->get("attribute"). If there was a way to generate a bean at runtime that could be configured from a configuration descriptor to respond to bean->getAttribute(), it might be possible to support both worlds transparently with a substitute CMP container. Would this synthetic static typing buy anything? Maybe in the end, it would just be sugar... -b --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] error deploying wsr -- resolution
At 17:41 13/12/2002 -0500, you wrote: All of my errors seemed to be linked to: - not listing the fully-qualified classname in my web-service.xml - using * in the allowedMethods tag. After changing these in the web-service.xml file, I am able to view http://localhost:8080/jboss-net/servlet/AxisServlet and my service creates wsdl. Glad to hear it's sorted. cheers, Bruce Dr. Bruce Scharlau Dept. of Computing Science University of Aberdeen Aberdeen AB24 3UE 01224 272193 http://www.csd.abdn.ac.uk/~bscharla mailto:[EMAIL PROTECTED] --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Same .war that I deploy perfectly in "default" throws exceptions in "all" ?!?
OS ? JVM ? Jetty or Tomcat ? JBoss Version ? Log ? Stacktrace ? WAR ? Jules João Clemente wrote: Hi. I have an web application (a .war) that I can deploy in "default" configuration under JBoss's CVS. (This application will eventually get deployed as clustered.) BEFORE I do any changes to the .war, I tryed to deploy it in "all" configuration. The result is that sometimes it throws exception right there in deployment. If I undepploy and redeploy, if it goes through the deployment without complaints (and states "sucessfully deployed") it throws exceptions during usage. But... nothing like this happens with "default" ?!? I can't understand the difference between the 2 configurations that will make this happen, not the unknown behavior (sometimes throws exceptions during deploymnent, others not) Any info on this? Thank you This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com --- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMS-JDBC-Performance
When using JBossMQ with the JDBC2 persistence manager for storing large amounts of persistent messages it is a good idea to put an index on the TXID+TXOP fields of JMS_MESSAGES table . There is no index creation in the default jbossmq-service.xml. It gave us a performance boost of factor 2,4 in a complex topic/queue store and forward scenario with multiple durable subscribers and high message counts. Regards, Ulf Schroeter