[Bug 1464917] Re: reboot hangs at 'Reached target Shutdown'
Since there hasn't been an answer for a month, I'll ask the question again... Is there any chance that this will be backported for Xenial? At the moment, folks on an LTS release are struggling to cleanly shut their machines down. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1464917 Title: reboot hangs at 'Reached target Shutdown' To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/1464917/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Touch-packages] [Bug 1464917] Re: reboot hangs at 'Reached target Shutdown'
Since there hasn't been an answer for a month, I'll ask the question again... Is there any chance that this will be backported for Xenial? At the moment, folks on an LTS release are struggling to cleanly shut their machines down. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1464917 Title: reboot hangs at 'Reached target Shutdown' Status in systemd: Invalid Status in systemd package in Ubuntu: Fix Released Bug description: This bug is resolved. Do not follow up to this bug. Shutdown bugs are specific to the software installed and its configuration. If you are experiencing a shutdown hang, please file a separate bug report and follow the debugging instructions described in the "Debugging boot/shutdown problems" section of /usr/share/doc/systemd/README.Debian.gz to check if there are any hanging jobs at shutdown. Capturing a screen photo of "journalctl -b" in the rescue shell might be enlightening. [Original report] I rebooted my 15.04 system, and found it hanging indefinitely at the plymouth shutdown screen. Hitting esc to reveal the console showed a normal set of shutdown messages, ending with 'Reached target Shutdown' (paraphrased from memory). The system never rebooted on its own. I had to use SysRq to finish the shutdown. ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: systemd 219-7ubuntu6 ProcVersionSignature: Ubuntu 3.19.0-20.20-generic 3.19.8 Uname: Linux 3.19.0-20-generic x86_64 ApportVersion: 2.17.2-0ubuntu1.1 Architecture: amd64 CurrentDesktop: Unity Date: Sat Jun 13 11:53:10 2015 InstallationDate: Installed on 2010-09-24 (1723 days ago) InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1) MachineType: LENOVO 2306CTO ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.19.0-20-generic root=/dev/mapper/hostname-root ro quiet splash vt.handoff=7 SourcePackage: systemd UpgradeStatus: Upgraded to vivid on 2014-12-06 (189 days ago) dmi.bios.date: 10/25/2013 dmi.bios.vendor: LENOVO dmi.bios.version: G2ET97WW (2.57 ) dmi.board.asset.tag: Not Available dmi.board.name: 2306CTO dmi.board.vendor: LENOVO dmi.board.version: Not Defined dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvrG2ET97WW(2.57):bd10/25/2013:svnLENOVO:pn2306CTO:pvrThinkPadX230:rvnLENOVO:rn2306CTO:rvrNotDefined:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 2306CTO dmi.product.version: ThinkPad X230 dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/1464917/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
Cluster sizing for recommendations
Hi, I'm having trouble building a recommender and would appreciate a few pointers. I have 350,000,000 events which are stored in roughly 500,000 S3 files and are formatted as semi-structured JSON. These events are not all relevant to making recommendations. My code is (roughly): case class Event(id: String, eventType: String, line: JsonNode) val raw = sc.textFile(s3n://bucket/path/dt=*/*) // Files stored by Hive-style daily partitions val parsed = raw.map(json = { val obj = (new ObjectMapper()).readTree(json); Event(obj.get(_id).asText, obj.get(event).asText, obj); // Parse events into Event objects, keeping parse JSON around for later step }) val downloads = parsed.filter(_.eventType == download) val ratings = downloads.map(event = { // ... extract userid and assetid (product) from JSON - code elided for brevity ... Rating(userId, assetId, 1) }).repartition(2048) ratings.cache val model = ALS.trainImplicit(ratings, 10, 10, 0.1, 0.8) This gets me to a model in around 20-25 minutes, which is actually pretty impressive. But, to get this far in a reasonable time I need to use a fair amount of compute power. I've found I need something like 16 x c3.4xl AWS instances for the workers (16 cores, 30 GB, SSD storage) and an r3.2xl (8 cores, 60 GB, SSD storage) for the master. Oddly, the cached Rating objects only take a bit under 2GB of RAM. I'm developing in a shell at the moment, started like this: spark-shell --master yarn-client --executor-cores 16 --executor-memory 23G --driver-memory 48G --executor-cores: 16 because workers have 16 cores --executor-memory: 23GB because that's about the most I can safely allocate on a 30GB machine --driver-memory: 48GB to make use of the memory on the driver I found that if I didn't put the driver/master on a big box with lots of RAM I had issues calculating the model, even though the ratings are only taking about 2GB of RAM. I'm also setting spark.driver.maxResultSize to 40GB. If I don't repartition, I end up with 500,000 or so partitions (= number of S3 files) and the model doesn't build in any reasonable timescale. Now I've got a model, I'm trying (using 1.4.0-rc1 - I can't upgrade to 1.4.0 yet): val recommendations = model.recommendProductsForUsers(5) recommendations.cache recommendations.first This invariably crashes with various memory errors - typically GC errors, or errors saying that I'm exceeding the spark.akka.frameSize. Increasing this seems to only prolong my agony. I would appreciate any advice you can offer. Whilst I appreciate this requires a fair amount of CPU, it also seems to need an infeasible amount of RAM. To be honest, I probably have far too much because of limitations around how I can size EC2 instances in order to get the CPU I need. But I've been at this for 3 days now and still haven't actually managed to build any recommendations... Thanks in advance, Danny
ETL process design
Hi, My apologies for what has ended up as quite a long email with a lot of open-ended questions, but, as you can see, I'm really struggling to get started and would appreciate some guidance from people with more experience. I'm new to Spark and big data in general, and I'm struggling with what I suspect is actually a fairly simple problem. For background, this process will run on an EMR cluster in AWS. My files are all in S3, but the S3 access is pretty straightforward in that environment, so I'm not overly concerned about that at the moment. I have a process (or rather, a number of processes) which drop JSON events into files in directories in S3 structured by the date the events arrived. I say JSON because they're one JSON message per line, rather than one per file. That is, they are amenable to being loaded with sc.jsonFile(). The directory structure is s3://bucket/path/-mm-dd/many-files-here, where -mm-dd is the received date of the events. Depending on the environment, there could be 4,000 - 5,000 files in each directory, each having up to 3,000 lines (events) in. So plenty of scope for parallelism. In general, there will be something like 2,000,000 events per day initially. The incoming events are of different types (page views, item purchases, etc.) but are currently all bundled into the same set of input files. So the JSON is not uniform across different lines within each file. I'm amenable to changing this if that's helpful and having the events broken out into different files by event type. Oh, and there could be duplicates too, which will need removing. :-) My challenge is to take these files and transfer them into a more long-term storage format suitable for both overnight analytics and also ad-hoc querying. I'm happy for this process to just happen once a day - say, at 1am and process the whole of the previous day's received data. I'm thing that having Parquet files stored in Hive-like partitions would be a sensible way forward: s3://bucket/different-path/t=type/y=/m=mm/d=dd/whatever.parquet. Here, , mm and dd represent the time the event happened, rather than the time it arrived. Does that sound sensible? Do you have any other recommendations? So I need to read each line, parse the JSON, deduplicate the data, decided which event type it is, and output it to the right file in the right directory. I'm struggling with... well... most of it, if I'm honest. Here's what I have so far. val data = sc.textFile(s3:///-mm-dd/*) // load all files for given received date // Deduplicate val dedupe = data.map(line = { val json = new com.fasterxml.jackson.databind.ObjectMapper().readTree(line); val _id = json.get(_id).asText(); // _id is a key that can be used to dedupe val event = json.get(event).asText();// event is the event type val ts = json.get(timestamp).asText();// timestamp is the when the event happened (_id, (event, ts, line)) // I figure having event, ts and line at this point will save time later }).reduceByKey((a, b) = a) // For any given pair of lines with the same _id, pick one arbitrarily At this point, I guess I'm going to have to split this apart by event type (I'm happy to have a priori knowledge of the event types) and formally parse each line using a schema to get a SchemaRDD so I can write out Parquet files. I have exactly zero idea how to approach this part. The other wrinkle here is that Spark seems to want to own the directory it writes to. But it's possible that on any given run we might pick up a few left-over events for a previous day, so we need to be able to handle the situation where we're adding events for a day we've already processed. Many thanks, Danny.
Can Spark benefit from Hive-like partitions?
Hi, I've got a bunch of data stored in S3 under directories like this: s3n://blah/y=2015/m=01/d=25/lots-of-files.csv In Hive, if I issue a query WHERE y=2015 AND m=01, I get the benefit that it only scans the necessary directories for files to read. As far as I can tell from searching and reading the docs, the right way of loading this data into Spark is to use sc.textFile(s3n://blah/*/*/*/) 1) Is there any way in Spark to access y, m and d as fields? In Hive, you declare them in the schema, but you don't put them in the CSV files - their values are extracted from the path. 2) Is there any way to get Spark to use the y, m and d fields to minimise the files it transfers from S3? Thanks, Danny.
Re: Can Spark benefit from Hive-like partitions?
Thanks Michael. I'm not actually using Hive at the moment - in fact, I'm trying to avoid it if I can. I'm just wondering whether Spark has anything similar I can leverage? Thanks
Re: Can Spark benefit from Hive-like partitions?
Ah, well that is interesting. I'll experiment further tomorrow. Thank you for the info! - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org
[Bug 1353429] [NEW] Lenovo X1 Carbon 2nd Gen internal display dims when disconnecting external display
Public bug reported: I was asked to file this report by penalvch in https://bugs.launchpad.net/ubuntu/trusty/+source/linux/+bug/1313830 to track my hardware ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: linux-image-3.13.0-32-generic 3.13.0-32.57 ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4 Uname: Linux 3.13.0-32-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.2 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC1: danny 2870 F pulseaudio /dev/snd/controlC0: danny 2870 F pulseaudio CurrentDesktop: Unity Date: Wed Aug 6 12:23:08 2014 HibernationDevice: RESUME=UUID=07e8a9ba-65a6-4341-b00f-44c6ab3c856d InstallationDate: Installed on 2014-06-12 (54 days ago) InstallationMedia: Ubuntu 14.04 LTS Trusty Tahr - Release amd64 (20140417) MachineType: LENOVO 20A7CTO1WW ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-32-generic.efi.signed root=UUID=f9961064-98b2-413f-a6f7-11932f51eac7 ro quiet splash vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-3.13.0-32-generic N/A linux-backports-modules-3.13.0-32-generic N/A linux-firmware 1.127.5 SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 05/08/2014 dmi.bios.vendor: LENOVO dmi.bios.version: GRET37WW (1.14 ) dmi.board.asset.tag: Not Available dmi.board.name: 20A7CTO1WW dmi.board.vendor: LENOVO dmi.board.version: SDK0E50512 Std dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvrGRET37WW(1.14):bd05/08/2014:svnLENOVO:pn20A7CTO1WW:pvrThinkPadX1Carbon2nd:rvnLENOVO:rn20A7CTO1WW:rvrSDK0E50512Std:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 20A7CTO1WW dmi.product.version: ThinkPad X1 Carbon 2nd dmi.sys.vendor: LENOVO ** Affects: linux (Ubuntu) Importance: Undecided Status: Confirmed ** Tags: amd64 apport-bug trusty -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1353429 Title: Lenovo X1 Carbon 2nd Gen internal display dims when disconnecting external display To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1353429/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1313830] Re: [Lenovo ThinkPad X230] LCD Backlight dims completely when disconnecting external monitor
Hi Christopher. Sorry for the delay, but it turned out I wasn't subscribed to this bug. I have created a new bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1353429 to track my hardware and subscribed you to it as requested. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1313830 Title: [Lenovo ThinkPad X230] LCD Backlight dims completely when disconnecting external monitor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1313830/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Kernel-packages] [Bug 1353429] [NEW] Lenovo X1 Carbon 2nd Gen internal display dims when disconnecting external display
Public bug reported: I was asked to file this report by penalvch in https://bugs.launchpad.net/ubuntu/trusty/+source/linux/+bug/1313830 to track my hardware ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: linux-image-3.13.0-32-generic 3.13.0-32.57 ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4 Uname: Linux 3.13.0-32-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.2 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC1: danny 2870 F pulseaudio /dev/snd/controlC0: danny 2870 F pulseaudio CurrentDesktop: Unity Date: Wed Aug 6 12:23:08 2014 HibernationDevice: RESUME=UUID=07e8a9ba-65a6-4341-b00f-44c6ab3c856d InstallationDate: Installed on 2014-06-12 (54 days ago) InstallationMedia: Ubuntu 14.04 LTS Trusty Tahr - Release amd64 (20140417) MachineType: LENOVO 20A7CTO1WW ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-32-generic.efi.signed root=UUID=f9961064-98b2-413f-a6f7-11932f51eac7 ro quiet splash vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-3.13.0-32-generic N/A linux-backports-modules-3.13.0-32-generic N/A linux-firmware 1.127.5 SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 05/08/2014 dmi.bios.vendor: LENOVO dmi.bios.version: GRET37WW (1.14 ) dmi.board.asset.tag: Not Available dmi.board.name: 20A7CTO1WW dmi.board.vendor: LENOVO dmi.board.version: SDK0E50512 Std dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvrGRET37WW(1.14):bd05/08/2014:svnLENOVO:pn20A7CTO1WW:pvrThinkPadX1Carbon2nd:rvnLENOVO:rn20A7CTO1WW:rvrSDK0E50512Std:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 20A7CTO1WW dmi.product.version: ThinkPad X1 Carbon 2nd dmi.sys.vendor: LENOVO ** Affects: linux (Ubuntu) Importance: Undecided Status: Confirmed ** Tags: amd64 apport-bug trusty -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1353429 Title: Lenovo X1 Carbon 2nd Gen internal display dims when disconnecting external display Status in “linux” package in Ubuntu: Confirmed Bug description: I was asked to file this report by penalvch in https://bugs.launchpad.net/ubuntu/trusty/+source/linux/+bug/1313830 to track my hardware ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: linux-image-3.13.0-32-generic 3.13.0-32.57 ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4 Uname: Linux 3.13.0-32-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.2 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC1: danny 2870 F pulseaudio /dev/snd/controlC0: danny 2870 F pulseaudio CurrentDesktop: Unity Date: Wed Aug 6 12:23:08 2014 HibernationDevice: RESUME=UUID=07e8a9ba-65a6-4341-b00f-44c6ab3c856d InstallationDate: Installed on 2014-06-12 (54 days ago) InstallationMedia: Ubuntu 14.04 LTS Trusty Tahr - Release amd64 (20140417) MachineType: LENOVO 20A7CTO1WW ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-32-generic.efi.signed root=UUID=f9961064-98b2-413f-a6f7-11932f51eac7 ro quiet splash vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-3.13.0-32-generic N/A linux-backports-modules-3.13.0-32-generic N/A linux-firmware 1.127.5 SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 05/08/2014 dmi.bios.vendor: LENOVO dmi.bios.version: GRET37WW (1.14 ) dmi.board.asset.tag: Not Available dmi.board.name: 20A7CTO1WW dmi.board.vendor: LENOVO dmi.board.version: SDK0E50512 Std dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvrGRET37WW(1.14):bd05/08/2014:svnLENOVO:pn20A7CTO1WW:pvrThinkPadX1Carbon2nd:rvnLENOVO:rn20A7CTO1WW:rvrSDK0E50512Std:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 20A7CTO1WW dmi.product.version: ThinkPad X1 Carbon 2nd dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1353429/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1313830] Re: [Lenovo ThinkPad X230] LCD Backlight dims completely when disconnecting external monitor
Hi Christopher. Sorry for the delay, but it turned out I wasn't subscribed to this bug. I have created a new bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1353429 to track my hardware and subscribed you to it as requested. Thanks. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1313830 Title: [Lenovo ThinkPad X230] LCD Backlight dims completely when disconnecting external monitor Status in “linux” package in Ubuntu: Fix Released Status in “linux” source package in Trusty: Confirmed Bug description: After undocking with external DVI monitor connected to dock the laptop's internal LCD dims all the way (backlight still on, but as dim as it goes). Keyboard backlight controls cause OSD indicator to show backlight changing but no affect on LCD brightness. Issue also reported for RedHat here: https://bugzilla.redhat.com/show_bug.cgi?id=1067071 ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: linux-image-3.13.0-24-generic 3.13.0-24.46 ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9 Uname: Linux 3.13.0-24-generic x86_64 ApportVersion: 2.14.1-0ubuntu3 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC0: dustin 2683 F pulseaudio CurrentDesktop: Unity Date: Mon Apr 28 10:13:42 2014 EcryptfsInUse: Yes HibernationDevice: RESUME=UUID=79c0f3ac-bda7-4a28-9ae1-6bb19ab0fd0d InstallationDate: Installed on 2013-10-08 (201 days ago) InstallationMedia: Ubuntu 13.10 Saucy Salamander - Beta amd64 (20130925.1) MachineType: LENOVO 2306CTO ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-24-generic.efi.signed root=UUID=2f1bbe89-ca2f-4884-8fc6-8a476dd1a475 ro RelatedPackageVersions: linux-restricted-modules-3.13.0-24-generic N/A linux-backports-modules-3.13.0-24-generic N/A linux-firmware 1.127 SourcePackage: linux UpgradeStatus: Upgraded to trusty on 2014-01-08 (109 days ago) dmi.bios.date: 03/05/2013 dmi.bios.vendor: LENOVO dmi.bios.version: G2ETA0WW (2.60 ) dmi.board.asset.tag: Not Available dmi.board.name: 2306CTO dmi.board.vendor: LENOVO dmi.board.version: Not Defined dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvrG2ETA0WW(2.60):bd03/05/2013:svnLENOVO:pn2306CTO:pvrThinkPadX230:rvnLENOVO:rn2306CTO:rvrNotDefined:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 2306CTO dmi.product.version: ThinkPad X230 dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1313830/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Bug 1313830] Re: [Lenovo ThinkPad X230] LCD Backlight dims completely when disconnecting external monitor
This also affects 2nd generation (Haswell) X1 Carbons when unplugging a DisplayPort monitor. Kernel version 3.13.0-32-generic. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1313830 Title: [Lenovo ThinkPad X230] LCD Backlight dims completely when disconnecting external monitor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1313830/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Kernel-packages] [Bug 1313830] Re: [Lenovo ThinkPad X230] LCD Backlight dims completely when disconnecting external monitor
This also affects 2nd generation (Haswell) X1 Carbons when unplugging a DisplayPort monitor. Kernel version 3.13.0-32-generic. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1313830 Title: [Lenovo ThinkPad X230] LCD Backlight dims completely when disconnecting external monitor Status in “linux” package in Ubuntu: Fix Released Status in “linux” source package in Trusty: Confirmed Bug description: After undocking with external DVI monitor connected to dock the laptop's internal LCD dims all the way (backlight still on, but as dim as it goes). Keyboard backlight controls cause OSD indicator to show backlight changing but no affect on LCD brightness. Issue also reported for RedHat here: https://bugzilla.redhat.com/show_bug.cgi?id=1067071 ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: linux-image-3.13.0-24-generic 3.13.0-24.46 ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9 Uname: Linux 3.13.0-24-generic x86_64 ApportVersion: 2.14.1-0ubuntu3 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC0: dustin 2683 F pulseaudio CurrentDesktop: Unity Date: Mon Apr 28 10:13:42 2014 EcryptfsInUse: Yes HibernationDevice: RESUME=UUID=79c0f3ac-bda7-4a28-9ae1-6bb19ab0fd0d InstallationDate: Installed on 2013-10-08 (201 days ago) InstallationMedia: Ubuntu 13.10 Saucy Salamander - Beta amd64 (20130925.1) MachineType: LENOVO 2306CTO ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-24-generic.efi.signed root=UUID=2f1bbe89-ca2f-4884-8fc6-8a476dd1a475 ro RelatedPackageVersions: linux-restricted-modules-3.13.0-24-generic N/A linux-backports-modules-3.13.0-24-generic N/A linux-firmware 1.127 SourcePackage: linux UpgradeStatus: Upgraded to trusty on 2014-01-08 (109 days ago) dmi.bios.date: 03/05/2013 dmi.bios.vendor: LENOVO dmi.bios.version: G2ETA0WW (2.60 ) dmi.board.asset.tag: Not Available dmi.board.name: 2306CTO dmi.board.vendor: LENOVO dmi.board.version: Not Defined dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvrG2ETA0WW(2.60):bd03/05/2013:svnLENOVO:pn2306CTO:pvrThinkPadX230:rvnLENOVO:rn2306CTO:rvrNotDefined:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 2306CTO dmi.product.version: ThinkPad X230 dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1313830/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Bug 1091464] Re: Unable to chainload Windows 8 with Secure Boot enabled
Any chance of an update on this? Like the previous poster, I too have 14.04 x64 and Windows 8.1 on an X1 Carbon. And like other posters, without booting via the UEFI menu, the only way of getting into Windows is to disable secure boot. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1091464 Title: Unable to chainload Windows 8 with Secure Boot enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1091464/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 790183] Re: [138a:0011] Fingerprint reader Validity Sensors not recognized
Any idea when this fix will be released for Ubuntu? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/790183 Title: [138a:0011] Fingerprint reader Validity Sensors not recognized To manage notifications about this bug go to: https://bugs.launchpad.net/libfprint/+bug/790183/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 790183] Re: [138a:0011] Fingerprint reader Validity Sensors not recognized
** Tags added: lenovo x1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/790183 Title: [138a:0011] Fingerprint reader Validity Sensors not recognized To manage notifications about this bug go to: https://bugs.launchpad.net/libfprint/+bug/790183/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: Where should git-prompt.sh be installed?
Would that not give the impression of git sh-prompt being a core command? If so, that would be poor, IMHO. When I was investigating this last night, I expected to find it (git-prompt.sh) in contrib, although that doesn't make an enormous amount of sense. Ideally, the full path to wherever it's installed should be mentioned in the bash completion file (which is where I went to look when __git_ps1 stopped working), but that would mean modifying a file from upstream and I'm not sure if that's easy/the done thing. Danny. On 25 Oct 2012, at 01:51, Jonathan Nieder jrnie...@gmail.com wrote: Hi, In olden days the admin would copy contrib/completion/git-completion.sh to /etc/bash_completion.d/git and mortals could source /etc/bash_completion or /etc/bash_completion.d/git in their ~/.bashrc (possibly shared among multiple machines) so that the bash completion and __git_ps1 helpers could work. With Git 1.7.12 __git_ps1 has been split into a separate file, to help users who only want __git_ps1 to avoid the overhead of loading the entire completion script (and allow the completion script to be loaded by bash-completion magic on the fly!). Now the sysadmin should copy contrib/completion/git-completion.sh to /usr/share/bash-completion/completions/git and contrib/completion/git-prompt.sh to /usr/share/git-core/contrib/?? (somewhere?) Mortals source /etc/bash_completion in their ~/.bashrc (possibly shared among multiple machines) and expect bash completion to work. For __git_ps1, users should source that ?? path. Questions: 1) what path is appropriate for ?? above? 2) is this documented anywhere? Possible answers: 1) Fedora uses /etc/profile.d/git-prompt.sh. Gentoo uses /usr/share/bash-completion/git-prompt. Maybe others use some other path. 2) The scripts themselves suggest copying to ~/.git-completion.sh and ~/.git-prompt.sh. Proposal: 1) /usr/lib/git-core/git-sh-prompt 2) git-sh-prompt(1) Sensible? Thanks, Jonathan -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 797190] Re: Ubuntu 11.04 Natty upgrade underclocks and disables CPU scaling
This is still happening for me on: Linux xxx.xxx.org 3.0.0-24-generic #40-Ubuntu SMP Tue Jul 24 15:38:25 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux # service loadcpufreq start * Loading cpufreq kernel modules... FATAL: Error inserting p4_clockmod (/lib/modules/3.0.0-24-generic/kernel/drivers/cpufreq/p4-clockmod.ko): Invalid argument FATAL: Error inserting pcc_cpufreq (/lib/modules/3.0.0-24-generic/kernel/drivers/cpufreq/pcc-cpufreq.ko): No such device [fail] # cpufreq-info cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009 Report errors and bugs to cpuf...@vger.kernel.org, please. analyzing CPU 0: no or unknown cpufreq driver is active on this CPU maximum transition latency: 4294.55 ms. analyzing CPU 1: no or unknown cpufreq driver is active on this CPU maximum transition latency: 4294.55 ms. analyzing CPU 2: no or unknown cpufreq driver is active on this CPU maximum transition latency: 4294.55 ms. analyzing CPU 3: no or unknown cpufreq driver is active on this CPU maximum transition latency: 4294.55 ms. # lshw -class cpu *-cpu description: CPU product: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz vendor: Intel Corp. physical id: 40 bus info: cpu@0 version: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz slot: SOCKET 0 size: 3400MHz capacity: 3800MHz width: 64 bits clock: 100MHz capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms configuration: cores=4 enabledcores=4 threads=4 # dmesg | grep -i cpu [0.00] Initializing cgroup subsys cpuset [0.00] Initializing cgroup subsys cpu [0.00] KERNEL supported cpus: [0.00] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106 [0.00] ACPI: SSDT ddd430f0 005CC (v01 PmRef Cpu0Ist 3000 INTL 20051117) [0.00] ACPI: SSDT ddd436c0 00A92 (v01 PmRefCpuPm 3000 INTL 20051117) [0.00] SMP: Allowing 4 CPUs, 0 hotplug CPUs [0.00] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:4 nr_node_ids:1 [0.00] PERCPU: Embedded 27 pages/cpu @88041ec0 s79616 r8192 d22784 u524288 [0.00] pcpu-alloc: s79616 r8192 d22784 u524288 alloc=1*2097152 [0.00] pcpu-alloc: [0] 0 1 2 3 [0.00] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [0.004588] Initializing cgroup subsys cpuacct [0.004617] CPU: Physical Processor ID: 0 [0.004618] CPU: Processor Core ID: 0 [0.004623] mce: CPU supports 9 MCE banks [0.004632] CPU0: Thermal monitoring enabled (TM1) [0.064404] CPU0: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz stepping 09 [0.169804] smpboot cpu 1: start_ip = 98000 [0.277588] smpboot cpu 2: start_ip = 98000 [0.385569] smpboot cpu 3: start_ip = 98000 [0.493397] Brought up 4 CPUs [0.541557] ACPI: SSDT ddbdf018 0083B (v01 PmRef Cpu0Cst 3001 INTL 20051117) [0.541756] ACPI: SSDT (null) 0083B (v01 PmRef Cpu0Cst 3001 INTL 20051117) [0.625278] Switched to NOHz mode on CPU #0 [0.625319] Switched to NOHz mode on CPU #1 [0.625321] Switched to NOHz mode on CPU #3 [0.625370] Switched to NOHz mode on CPU #2 [0.695683] ACPI: acpi_idle registered with cpuidle [0.927400] cpuidle: using governor ladder [0.927445] cpuidle: using governor menu [ 14.422362] p4-clockmod: Warning: EST-capable CPU detected. The acpi-cpufreq module offers voltage scaling in addition to frequency scaling. You should use that instead of p4-clockmod, if possible. [10784.296962] p4-clockmod: Warning: EST-capable CPU detected. The acpi-cpufreq module offers voltage scaling in addition to frequency scaling. You should use that instead of p4-clockmod, if possible. [16729.275060] p4-clockmod: Warning: EST-capable CPU detected. The acpi-cpufreq module offers voltage scaling in addition to frequency scaling. You should use that instead of p4-clockmod, if possible. # -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/797190 Title: Ubuntu 11.04 Natty upgrade underclocks and disables CPU scaling To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/797190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com
[Bug 797190] Re: Ubuntu 11.04 Natty upgrade underclocks and disables CPU scaling
Changing to new to try and increase visibility ** Changed in: linux (Ubuntu) Status: Expired = New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/797190 Title: Ubuntu 11.04 Natty upgrade underclocks and disables CPU scaling To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/797190/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[jira] [Commented] (IVY-1371) Incorrect artifact resolution when using nested conf elements
[ https://issues.apache.org/jira/browse/IVY-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13437315#comment-13437315 ] Danny Yates commented on IVY-1371: -- Our real use-case on this has a defaultconfmapping of %-default (which we neglected to test when reproducing, sorry) which should preclude the need for a mapped attribute in most cases, no? The real question here is, when trying to resolve the transitive conf, why are dependencies that aren't even in that conf resolved? Especially given that this appears to work fine when using the abridged form (a conf attribute with ';' separators). This suggests that it's just a parsing bug whereby the two different syntaxes generate different state for the internal model. See also my other bug report (1369) which is similar -- works using the abridged from, doesn't work using the long form. We're working on migrating an enterprise application which uses all the open source in a giant unmanaged lib directory to Ivy. Our Ivy file is, literally, hundreds of lines long. Having to add a mapped attribute to each dependency is going to be painful! Thanks, Danny. Incorrect artifact resolution when using nested conf elements --- Key: IVY-1371 URL: https://issues.apache.org/jira/browse/IVY-1371 Project: Ivy Issue Type: Bug Components: Core Affects Versions: 2.2.0, 2.3.0-RC1 Reporter: Danny Yates Attachments: build.xml, ivy.xml Please see attached build.xml and ivy.xml When resolving the 'transitive' conf, Ivy pulls down Mina, which is not in that conf, and it additionally pulls down Mina's transitive dependencies even though the conf that Mina is in has transitivity turned off. If you use the alternative inline syntax for conf mapping, this bug doesn't happen. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (IVY-1371) Incorrect artifact resolution when using nested conf elements
[ https://issues.apache.org/jira/browse/IVY-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13437428#comment-13437428 ] Danny Yates commented on IVY-1371: -- Thanks Maarten. My understanding was that break an inline conf mapping into conf elements was essentially the same as splitting on ';', and then getting the name and mapped attrs was the same as splitting on '-'. Does that make sense? So dependency conf='a-b;c;d-e' ... / would be the same as dependency ... conf name='a' mapped='b'/ conf name='c' conf name='d' mapped='e'/ No? But in the former case the defaultconfmapping would get applied to conf 'c' but it wouldn't in the latter? Incorrect artifact resolution when using nested conf elements --- Key: IVY-1371 URL: https://issues.apache.org/jira/browse/IVY-1371 Project: Ivy Issue Type: Bug Components: Core Affects Versions: 2.2.0, 2.3.0-RC1 Reporter: Danny Yates Attachments: build.xml, ivy.xml Please see attached build.xml and ivy.xml When resolving the 'transitive' conf, Ivy pulls down Mina, which is not in that conf, and it additionally pulls down Mina's transitive dependencies even though the conf that Mina is in has transitivity turned off. If you use the alternative inline syntax for conf mapping, this bug doesn't happen. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (IVY-1371) Incorrect artifact resolution when using nested conf elements
[ https://issues.apache.org/jira/browse/IVY-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13437428#comment-13437428 ] Danny Yates edited comment on IVY-1371 at 8/19/12 9:45 AM: --- Thanks Maarten. My understanding was that breaking an inline conf mapping into conf elements was essentially the same as splitting on ';', and then getting the name and mapped attrs was the same as splitting on '-'. Does that make sense? So dependency conf='a-b;c;d-e' ... / would be the same as dependency ... conf name='a' mapped='b'/ conf name='c' conf name='d' mapped='e'/ No? But in the former case the defaultconfmapping would get applied to conf 'c' but it wouldn't in the latter? It seems to me that the two syntaxes should be semantically identical. We use the latter because we have a lot of confs for building our code. But it does seem to behave logically - at least in my small brain! Thanks for your time on this. was (Author: dty): Thanks Maarten. My understanding was that break an inline conf mapping into conf elements was essentially the same as splitting on ';', and then getting the name and mapped attrs was the same as splitting on '-'. Does that make sense? So dependency conf='a-b;c;d-e' ... / would be the same as dependency ... conf name='a' mapped='b'/ conf name='c' conf name='d' mapped='e'/ No? But in the former case the defaultconfmapping would get applied to conf 'c' but it wouldn't in the latter? Incorrect artifact resolution when using nested conf elements --- Key: IVY-1371 URL: https://issues.apache.org/jira/browse/IVY-1371 Project: Ivy Issue Type: Bug Components: Core Affects Versions: 2.2.0, 2.3.0-RC1 Reporter: Danny Yates Attachments: build.xml, ivy.xml Please see attached build.xml and ivy.xml When resolving the 'transitive' conf, Ivy pulls down Mina, which is not in that conf, and it additionally pulls down Mina's transitive dependencies even though the conf that Mina is in has transitivity turned off. If you use the alternative inline syntax for conf mapping, this bug doesn't happen. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1371) Incorrect artifact resolution when using nested conf elements
[ https://issues.apache.org/jira/browse/IVY-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Danny Yates updated IVY-1371: - Attachment: ivy.xml build.xml Incorrect artifact resolution when using nested conf elements --- Key: IVY-1371 URL: https://issues.apache.org/jira/browse/IVY-1371 Project: Ivy Issue Type: Bug Components: Core Affects Versions: 2.2.0, 2.3.0-RC1 Reporter: Danny Yates Attachments: build.xml, ivy.xml Please see attached build.xml and ivy.xml When resolving the 'transitive' conf, Ivy pulls down Mina, which is not in that conf, and it additionally pulls down Mina's transitive dependencies even though the conf that Mina is in has transitivity turned off. If you use the alternative inline syntax for conf mapping, this bug doesn't happen. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (IVY-1371) Incorrect artifact resolution when using nested conf elements
Danny Yates created IVY-1371: Summary: Incorrect artifact resolution when using nested conf elements Key: IVY-1371 URL: https://issues.apache.org/jira/browse/IVY-1371 Project: Ivy Issue Type: Bug Components: Core Affects Versions: 2.2.0 Reporter: Danny Yates Fix For: 2.3.0-RC1 Attachments: build.xml, ivy.xml Please see attached build.xml and ivy.xml When resolving the 'transitive' conf, Ivy pulls down Mina, which is not in that conf, and it additionally pulls down Mina's transitive dependencies even though the conf that Mina is in has transitivity turned off. If you use the alternative inline syntax for conf mapping, this bug doesn't happen. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1371) Incorrect artifact resolution when using nested conf elements
[ https://issues.apache.org/jira/browse/IVY-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Danny Yates updated IVY-1371: - Fix Version/s: (was: 2.3.0-RC1) Affects Version/s: 2.3.0-RC1 Incorrect artifact resolution when using nested conf elements --- Key: IVY-1371 URL: https://issues.apache.org/jira/browse/IVY-1371 Project: Ivy Issue Type: Bug Components: Core Affects Versions: 2.2.0, 2.3.0-RC1 Reporter: Danny Yates Attachments: build.xml, ivy.xml Please see attached build.xml and ivy.xml When resolving the 'transitive' conf, Ivy pulls down Mina, which is not in that conf, and it additionally pulls down Mina's transitive dependencies even though the conf that Mina is in has transitivity turned off. If you use the alternative inline syntax for conf mapping, this bug doesn't happen. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
Ivy bugs
Hi, I've just raised a couple of Ivy bugs which strike me as quite serious. They both involve declaring dependencies using the nested conf element syntax and ending up with either the wrong dependencies delivered or no dependencies at all! https://issues.apache.org/jira/browse/IVY-1369 https://issues.apache.org/jira/browse/IVY-1371 Is there any chance of getting them looked at in the 2.3.0 timeframe? Thanks, Danny.
[jira] [Created] (IVY-1369) Artifacts not delivered when using nested conf elements
Danny Yates created IVY-1369: Summary: Artifacts not delivered when using nested conf elements Key: IVY-1369 URL: https://issues.apache.org/jira/browse/IVY-1369 Project: Ivy Issue Type: Bug Components: Core Affects Versions: 2.2.0, 2.3.0-RC1 Reporter: Danny Yates Priority: Minor Given the following: dependency org=org.aspectj name=aspectj rev=1.6.10 conf name=x conf name=y mapped=tools /dependency * defaultconfmapping of %-default,sources() * using the packager resolver to resolve against Ivy Roundup When resolving conf x, no artifacts are delivered. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[augeas-devel] [PATCH] new options for vsftpd
Hi, I've recently needed to use Augeas to modify the vsftpd conf file (/etc/vsftpd.conf), and found the 'require_ssl_reuse' option missing from the lens. Attached is a patch which adds it. Thanks, Danny. vsftpd.patch Description: Binary data ___ augeas-devel mailing list augeas-devel@redhat.com https://www.redhat.com/mailman/listinfo/augeas-devel
[augeas-devel] Squid (and squid-deb-proxy) lens
Hi, I've recently set up a package called squid-deb-proxy on Ubuntu. This is essentially a Squid instance pre-configured to cache Debian .deb files. In doing so, 2 things came up: 1) The default Squid lens doesn't know about the squid-deb-proxy conf file (which is a Squid conf file in a non-standard location) 2) The cache_access_log setting was missing I made a whole new lens file to deal with this, but I suspect that a better approach would be to add the cache_access_log setting to the regular Squid lens, and also make the lens understands the location of the squid-deb-proxy conf file. Attached is a diff between the Squid lens in trunk (commit 8012a34a) and my custom lens. As you can, all I've done is added the new setting and changed the path to the conf file. Since I'm not sure how to make a lens understand multiple locations for conf files, I haven't submitted a patch. Thanks, Danny. squid.diff Description: Binary data ___ augeas-devel mailing list augeas-devel@redhat.com https://www.redhat.com/mailman/listinfo/augeas-devel
[augeas-devel] Squid lens missing configuration options
Hi guys, I asked a question over on ServerFault about using Augeas to modify a Squid configuration, and it seems as though the Squid lens in incomplete for the current version of Squid: http://serverfault.com/questions/382207/using-augeas-to-modify-squid-configuration I had a look at the bug tracker, and it seems as though I need to create Yet Another User Account just to raise a bug report, and I'm afraid I really can't face Yet Another User Account, so I hope this mail will suffice. Thanks, Danny. ___ augeas-devel mailing list augeas-devel@redhat.com https://www.redhat.com/mailman/listinfo/augeas-devel
[Bug 802626] Re: vgchange may deadlock in initramfs when VG present that's not used for rootfs
Can anyone give me an idea of when I can expect this fix to be available for Oneiric without using proposed? Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/802626 Title: vgchange may deadlock in initramfs when VG present that's not used for rootfs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/802626/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 938286] [NEW] [needs-packaging] LessFS
Public bug reported: LessFS is a de-duplicating FUSE filesystem URL: http://www.lessfs.com/wordpress/ Licence: GPLv3 ** Affects: ubuntu Importance: Wishlist Status: New ** Tags: needs-packaging -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/938286 Title: [needs-packaging] LessFS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/938286/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: Testlistener Events in JUnit Slows Down Forked Tests in 1.8.x
Why does the StreamPumper poll like that? Surely it should just block reading the InputStream? To deal with InterruptedException, you can just do a timed read and test the interrupted flag before looping back to the blocking read. Danny. On 10 August 2010 20:00, Stefan Bodewig bode...@apache.org wrote: On 2010-08-10, Jesse Glick wrote: On 08/09/2010 03:42 AM, Stefan Bodewig wrote: I plan to add an disableTestListenerEvents First I would like to hear an explanation of why printing a few lines to System.out causes such a big performance hit and why this cannot be fixed. such a big is just the accumulation of many small hits. A test that takes a few miliseconds without the lines to System.out may be unfortunate enough to always print lines just after the StreamPumper has entered the sleep call and then must wait until StreamPumper wakes up before it can proceed. There is one such line before and after each test method and each stands a chance to hit the POLL_TIMEOUT which is 100ms. In the very simple test case Laura provided all test together finish in less than 10ms and just one of them hitting the sleep is enough to make the entire runtime 10 times as much. In reality each such line is pretty likely to be written while the pumper is sleeping, each line is pretty likely to be delayed by up to 100ms, even though it will be a lot shorter than that in most cases. If you have many test, the times sum up. This isn't anything you notice in a testsuite where individual tests take long - like Ant's own testsuite whose runtime is dominated by test methods that take many seconds - but in setups with very many very small test. Does the problem only occur on Windows? In 1.8.0, yes. In theory the fix for Bug 48746 has ported the effect to any OS with Ant 1.8.1 but I've been unable to see the effect on Linux - at least with Laura's small testcase. I must admit I haven't tried it again on any OS but Windows after I figured out what was going on. And can it be avoided by just removing calls to flush(), No, that doesn't have any effect. Thinking of it, buffering on the testrunner side would help but at the same time make the lines unusable for the test listener events that must happen in step with the test to be useful. possibly using System.err? Uses a different StreamPumper instance but would suffer from the same effect. We could add a YAMP (yet another magic property) ... This would be much preferable IMHO. The property would just be set by any container which wants to listen to junit progress. (An attribute in the build script is useless for this purpose, even if the default is on - since the user might turn it off for speed of builds in other environments!) You mean the magic property would enable the events even if the user wants to turn them off? Or do you want to turn events off by default and enable them based on the magic property? The later would break backwards compatibility. Stefan - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Re: Testlistener Events in JUnit Slows Down Forked Tests in 1.8.x
Sorry, I didn't make myself clear. I was actually thinking of using a read timeout so that the read call returns periodically and you can test interrupted(), but on reflection, you can only do that with sockets. I'll get my coat... ;-) On 10 August 2010 20:45, Stefan Bodewig bode...@apache.org wrote: On 2010-08-10, Danny Yates wrote: Why does the StreamPumper poll like that? So it can be interrupted. Surely it should just block reading the InputStream? It used to do just that. On Windows if a process spawns children (grandchildren of Ant in this case) they inherit the streams of their parent. In cases where a process forked by Ant spawns new processes and then finishs Ant would wait for the grandchildren which is not desired. Instead we want Ant to go on once the forked process is done. To deal with InterruptedException, you can just do a timed read and test the interrupted flag before looping back to the blocking read. I'm not sure I follow you here. Are you talking about NIO's Selector with timed read? When Ant was changed to use polling we still lived in Java 1.3 API land and so never looked at NIO options. I'm afraid the InputStreams provided by the Process class won't provide SelectableChannels, though. Stefan - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Re: [Proposal] Capture attributes in unknown namespaces
Yes, I nabbed an alternative logger from a similar project :-) Basically, it outputs when a target starts and when it finishes, and for each task it outputs [target/task] instead of just [task] so you can see what's going on. I can't claim any responsibility for it though! On 25 June 2010 11:48, jan.mate...@rzf.fin-nrw.de wrote: btw - when using parallel executors the problem of parallel logging output must be resolved ;-) Jan -Ursprüngliche Nachricht- Von: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de] Gesendet: Freitag, 25. Juni 2010 12:46 An: dev@ant.apache.org Betreff: AW: [Proposal] Capture attributes in unknown namespaces Other point: we have an implementation in the sandbox https://svn.apache.org/repos/asf/ant/sandbox/parallelexecutor Maybe you could use some code ;-) Jan -Ursprüngliche Nachricht- Von: Dominique Devienne [mailto:ddevie...@gmail.com] Gesendet: Donnerstag, 24. Juni 2010 23:12 An: Ant Developers List Betreff: Re: [Proposal] Capture attributes in unknown namespaces On Thu, Jun 24, 2010 at 2:50 PM, Danny Yates da...@codeaholics.org wrote: What would be kind of cool would be that if the parser encounters attributes in a namespace that it doesn't recognise, then instead of ignoring them (as it does now), it records them and makes them available through an API on the Project and Target objects. This would allow the executor to inspect them. Something related to that was discussed in the past to allow arbitrary cross-cutting attributes to be added to tasks which wouldn't normally support them, typically in the context of adding global ant:if and ant:unless attributes (or maybe I just thought about it, I'm no longer sure ;) I realise this is very specific to my parallel executor project, but I think adding it would be a non-breaking change that wouldn't have any impact on existing consumers of the API. True. But I'd be more in favor of an opt-in framework, where you explicitly tell Ant to record attributes from specific namespaces. From the list, I think other people also use extra markup in their builds for external tools, so in their case they don't need to record those attributes for examples. What do you folks think? I think it's a good idea. There are design considerations like, should it be free form string=string recorded as-is, or should these attributes be processed like ordinary attributes Ant deals with to do property expansion and conversion to Java types (like boolean accepting true/on/yes as a true). For example, imagine you group your extra attributes into a DataType part of an AntLib bound to that extra namespace, the DataType could be instantiated as usual by Ant provided it looked at the UnknownElement specifically for a given namespace, and then the DataType is bound somehow to the task or type or target. That way everything is typed as usual, and could be made to reuse a lot of the existing code/facilities. See what I mean? --DD - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Re: [Proposal] Capture attributes in unknown namespaces
By the way, if you're interested in taking a look at my work, you can find it here: http://parallel-ant.googlecode.com/svn/trunk/ On 25 June 2010 11:59, Danny Yates da...@codeaholics.org wrote: Yes, I nabbed an alternative logger from a similar project :-) Basically, it outputs when a target starts and when it finishes, and for each task it outputs [target/task] instead of just [task] so you can see what's going on. I can't claim any responsibility for it though! On 25 June 2010 11:48, jan.mate...@rzf.fin-nrw.de wrote: btw - when using parallel executors the problem of parallel logging output must be resolved ;-) Jan -Ursprüngliche Nachricht- Von: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de] Gesendet: Freitag, 25. Juni 2010 12:46 An: dev@ant.apache.org Betreff: AW: [Proposal] Capture attributes in unknown namespaces Other point: we have an implementation in the sandbox https://svn.apache.org/repos/asf/ant/sandbox/parallelexecutor Maybe you could use some code ;-) Jan -Ursprüngliche Nachricht- Von: Dominique Devienne [mailto:ddevie...@gmail.com] Gesendet: Donnerstag, 24. Juni 2010 23:12 An: Ant Developers List Betreff: Re: [Proposal] Capture attributes in unknown namespaces On Thu, Jun 24, 2010 at 2:50 PM, Danny Yates da...@codeaholics.org wrote: What would be kind of cool would be that if the parser encounters attributes in a namespace that it doesn't recognise, then instead of ignoring them (as it does now), it records them and makes them available through an API on the Project and Target objects. This would allow the executor to inspect them. Something related to that was discussed in the past to allow arbitrary cross-cutting attributes to be added to tasks which wouldn't normally support them, typically in the context of adding global ant:if and ant:unless attributes (or maybe I just thought about it, I'm no longer sure ;) I realise this is very specific to my parallel executor project, but I think adding it would be a non-breaking change that wouldn't have any impact on existing consumers of the API. True. But I'd be more in favor of an opt-in framework, where you explicitly tell Ant to record attributes from specific namespaces. From the list, I think other people also use extra markup in their builds for external tools, so in their case they don't need to record those attributes for examples. What do you folks think? I think it's a good idea. There are design considerations like, should it be free form string=string recorded as-is, or should these attributes be processed like ordinary attributes Ant deals with to do property expansion and conversion to Java types (like boolean accepting true/on/yes as a true). For example, imagine you group your extra attributes into a DataType part of an AntLib bound to that extra namespace, the DataType could be instantiated as usual by Ant provided it looked at the UnknownElement specifically for a given namespace, and then the DataType is bound somehow to the task or type or target. That way everything is typed as usual, and could be made to reuse a lot of the existing code/facilities. See what I mean? --DD - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
[Proposal] Capture attributes in unknown namespaces
Hi guys, Me again! I have some more functionality that I'm interested in, but I fear it may be quite specific to my requirements, so I thought I'd run it past you all before getting to work on it. I'm developing a custom executor which can execute targets in parallel, and as an extension of that, it would be kind of cool to be able to mark individual targets as CPU-bound or IO-bound so that the executor can be a bit smarter about scheduling them. However, I can't find any sensible way to communicate this information to the executor. What would be kind of cool would be that if the parser encounters attributes in a namespace that it doesn't recognise, then instead of ignoring them (as it does now), it records them and makes them available through an API on the Project and Target objects. This would allow the executor to inspect them. I realise this is very specific to my parallel executor project, but I think adding it would be a non-breaking change that wouldn't have any impact on existing consumers of the API. What do you folks think? Cheers, Danny.
Re: [Proposal] Capture attributes in unknown namespaces
Hmm... that's interesting. I hadn't discovered that before. It's not clear to me what that does - it appears to manipulate the DOM somehow. Could you explain what it's for and how to use it and then I can see if it will help me solve my current problem. Many thanks, Danny. On 24 June 2010 20:58, Matt Benson gudnabr...@gmail.com wrote: Like org.apache.tools.ant.Dynamic*NS? -Matt On Jun 24, 2010, at 2:50 PM, Danny Yates wrote: Hi guys, Me again! I have some more functionality that I'm interested in, but I fear it may be quite specific to my requirements, so I thought I'd run it past you all before getting to work on it. I'm developing a custom executor which can execute targets in parallel, and as an extension of that, it would be kind of cool to be able to mark individual targets as CPU-bound or IO-bound so that the executor can be a bit smarter about scheduling them. However, I can't find any sensible way to communicate this information to the executor. What would be kind of cool would be that if the parser encounters attributes in a namespace that it doesn't recognise, then instead of ignoring them (as it does now), it records them and makes them available through an API on the Project and Target objects. This would allow the executor to inspect them. I realise this is very specific to my parallel executor project, but I think adding it would be a non-breaking change that wouldn't have any impact on existing consumers of the API. What do you folks think? Cheers, Danny. - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Re: missing extension-point behaviour
That's awesome. Thanks Stefan. I take it this will be in 1.8.2 then? Is there a schedule for release? On 23 June 2010 11:34, Stefan Bodewig bode...@apache.org wrote: On 2010-06-22, Danny Yates wrote: OK, so no feedback. Consider this to be me nagging :-) Consider me nagged. I've taken your patch and modified it locally so the attribute is now named onMissingExtensionPoint (and the value error has been renamed to fail). I've also added constants for the three possible attribute values to ProjectHelper. All of this is still open for debate. It should pop up inside Ant's svn trunk once the current infrastructure hickups have been resolved (the European svn server seems to be in trouble right now). Many thanks for the very complete patch which even addressed the antstructure task. Stefan - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Re: missing extension-point behaviour
So, we have two top-level Ant scripts: build.xml and deploy.xml. Our system consists of a number of services and, right now, details of how to build, package, deploy and start those services is scattered around these files (and a handful of include/macro files too) which makes adding new services and updating existing ones quite tricky. In an effort to rationalise some of this, I am working on the concept of service descriptors which will describe services - how to build, package, deploy, start, etc. To get this working, in both deploy.xml and build.xml we have: import fileset dir=${basedir} includes=service-descriptors/*-descriptor.xml / /import And then we define a set of extension points (compile-services build-jars in build.xml and deploy-services start-services in deploy.xml) that the service descriptors can extend. Of course, we're asking the service descriptors to extend extension points from two different master scripts here, and that's where our trouble starts. We cannot reverse the relationship such that the service descriptors include/import the master scripts for two reasons: 1) On a deployed system outside of the dev environment, build.xml won't be present 2) We don't want to just be able to start/stop/package a single service; instead we want the master script(s) to import all descriptors that they find and allow the descriptors to hook into points in the build/deploy process. We could, of course, write two descriptors for each service - one for build and one for deploy, but there is a lot of shared stuff between the two - properties, paths, etc. and that would lead us to having a third file for each service which represents the common bits, and then we're getting away from having a centralised definition of a service and not really gaining/saving anything. Hence my request to be able to say that if an extension point doesn't exist, we just ignore that fact. When we're running the build, none of the deploy extension points will be available, so, as things stand right now, the build fails. Ditto the build extension points won't be available during a deployment. In essence, you describe the build file which uses extensionOf importing/including the build file which has the extension-points, but we're trying to work the other way around and throwing two master build files into the mix! I hope that's a bit clearer? Thanks, Danny. On 23 June 2010 15:07, Dominique Devienne ddevie...@gmail.com wrote: On Wed, Jun 23, 2010 at 5:34 AM, Stefan Bodewig bode...@apache.org wrote: I've taken your patch and modified it locally so the attribute is now named onMissingExtensionPoint (and the value error has been renamed to fail). I've also added constants for the three possible attribute values to ProjectHelper. All of this is still open for debate. I'm not sure I understand the problem at hand, and thus the need for the proposed solution. When a build file declares extensionOf=foo on a target, it is in control and can easily make sure it imports the build file that does declare the foo extension. I don't see why a build wouldn't in fact, since it makes no sense IMHO to write extensionOf=foo if you don't. What am I missing? I can't see the situation that would warrant such a new feature, that a little refactoring of the builds couldn't solve by splitting into separate common+build+deploy specific parts. Thanks, --DD - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Re: missing extension-point behaviour
Thanks for the pointer ref fileset I'm not sure that merging the two builds is possible for various reasons. Technically, yes; but for security reasons, no. Also, I'd really like it so that I don't have to subant (or ant or antcall or whetever) into the service-specific scripts, because there are (will be) a large number of touch points, and I don't want to have to go and find each of them whenever a new service is added. As I have it now, adding a new service is as simple as dropping in a new service descriptor. Cheers, Danny. On 23 June 2010 20:46, Dominique Devienne ddevie...@gmail.com wrote: On Wed, Jun 23, 2010 at 2:17 PM, Danny Yates da...@codeaholics.org wrote: [...] In essence, you describe the build file which uses extensionOf importing/including the build file which has the extension-points, but we're trying to work the other way around and throwing two master build files into the mix! I hope that's a bit clearer? That is clearer indeed, and the reason why I didn't get it, because what you are trying to achieve is upside-down compared to my thinking and I suspect the way extension-point where designed to be used. I kinda understand your rational for doing it that way though, even though I think I would have gone for a different design, possibly: 1) merge build.xml and deploy.xml and be done with it. Somehow I suspect the target sets are mostly orthogonal and the merge is possible. 2) do exactly what you say you didn't want to do :) i.e. do it right-side-up by having each service script import (now helper as opposed to master) build(er).xml and deploy(er).xml. To build all services, you'd subant into each service-specific script. So I guess now I'm more +/-0 on this new feature, rather than plain -0.5. --DD PS: You want fileset dir=service-descriptors includes=*-descriptor.xml / to ensure you don't scan the whole of ${basedir}. Antoine's optimization probably recognize that case, but it's always better to be as specific with the fileset's dir attribute as you can. - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Re: missing extension-point behaviour
OK, so no feedback. Consider this to be me nagging :-) On 21 June 2010 13:37, Stefan Bodewig bode...@apache.org wrote: On 2010-06-21, Danny Yates wrote: Anything I can do to assist? Wait and answer questions/concerns as they arrise (if they arrise). Nag and become annoying if you feel it takes too long ;-) Stefan - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Re: missing extension-point behaviour
Thanks Stefan. Anything I can do to assist? Cheers, Danny. On 21 June 2010 07:59, Stefan Bodewig bode...@apache.org wrote: On 2010-06-19, Danny Yates wrote: I've made some changes to add an extension-point-missing attribute which takes values: - error - the current behaviour (and default if the attribute is missing) - warn - log a warning and ignore (see next) - ignore - don't stop or warn, and don't add the extension target as a dependency of the (non-existent) extension point Sounds reasonable - one could argue about the name and see whether there is anything that better matches existing names in Ant, but that's a different issue. I'd like to submit this patch for consideration for Ant 1.8.2. How do I go about doing that? You've done everything exactly the way it should be: Prepare a patch against svn trunk, ideally containing test cases and documentation, open a bugzilla issue and attach it there. Discuss your proposal on this list. Now let's wait to see whether any of the other developers has an opinion on it as well. Stefan - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
missing extension-point behaviour
Hi guys, I'm loving the new 1.8 extension point functionality. I'm working on a project which has multiple deployable components (services) and has separate build and deploy scripts. I'd like to use extension points to be able to write a single descriptor for any given service in order to centralise the definitions of services which are currently sprinkled liberally throughout the build and deploy scripts. The problem I have is that some of the targets in the descriptor are extensions of extension points in the build script (and are only used during build) and some are extensions of extension points in the deploy script (and are only used during deployment). Of course, this doesn't work because ProjectHelper2 tries to verify the existence of an extension point during project file parsing and which extension points are present is a function of whether the importing script is the build script or the deploy script. I've made some changes to add an extension-point-missing attribute which takes values: - error - the current behaviour (and default if the attribute is missing) - warn - log a warning and ignore (see next) - ignore - don't stop or warn, and don't add the extension target as a dependency of the (non-existent) extension point I'd like to submit this patch for consideration for Ant 1.8.2. How do I go about doing that? Thanks, Danny.
RE: [JBoss-user] Pre compile jsps on jboss server
In WebLogic, there's a setting to make the container compile all the JSPs as they are deployed (rather than when they are first hit). Could a simple setting like this be introducted in JBoss? Rgds, Dan. -- Danny Yates -Original Message- From: Rod Macpherson [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 19:03 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Pre compile jsps on jboss server This is one of my pet peeves. It is true that you can precompile your JSPs and configure them as servlets and that is a reasonable approach in most circumstances. Having said that, if you have several hundred that you are dynamically updating during development the preference is to use JSPs as they were designed: update as-needed on a running server. The servlet approach is a bit of a hack (IMHO) when the container is perfectly capable of compiling the whole mess on its own with no intervention on your part. Where a compiled JSP goes and what its called is not part of the specification so it would be nice to have the container do that for you. Here's a link to an ANT script that precompiles for Tomcat. Haven't tried it but at least it avoids the servlet approach and the script looks very simple. http://cvs.apache.org/~fhanik/precompile.html -Original Message- From: JD Brennan [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 10:24 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Pre compile jsps on jboss server I think the Ant jspc target can generate a web XML fragment that Ant can then substitute into your web.xml automatically. Haven't tried this myself ... yet - just read about it. JD -Original Message- From: Balakrishnan, Vijay [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 8:29 AM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Pre compile jsps on jboss server Hi, I tried looking through the archives but found nothing substantial.I want to precompile jsps on the server before deploying them to improve performance.I saw 1 mthod using the web.xml but that would mean putting all my zillions of jsp's under it- a nightmare scenario for maintenance.Is there any other way to do that on the server side.(jspc does not seem to work on the server side). My apologies if this question has been answered before. Thanks, Vijay --- 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 --- 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 --- 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 _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- 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
RE: [JBoss-user] mbean question
Where do you set running = false? Change running to a member (and probably mark it 'volatile' too) and then set it to false in stopService(). -- Danny Yates -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 25 September 2003 09:09 To: jboss mailing list Subject: [JBoss-user] mbean question Hi all, I'm trying to write a basic MBean. This Mean runs a Thread which checks the file system for new files. If a new file is found it should perform some action. My problem however is that whenever I undeploy, or stop the MBean using the jmx-console application, the MBean keeps running. I have no idea what I'm doing wrong here. Below is my code. Could somebody please tell me what it is that I'm doing wrong here? Thanks a lot, Harm de Laat Informatiefabriek The Netherlands package nl.informatiefabriek.jmxlizard; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Vector; import org.jboss.system.ServiceMBeanSupport; /** * @author harm */ public class JBossLizard extends ServiceMBeanSupport implements JBossLizardMBean, Runnable { private Thread lizard; public JBossLizard() { } public String getName() { return JBossJMXLizard; } /* (non-Javadoc) * @see java.lang.Runnable#run() */ public void run() { boolean running = true; while (running) { /* wait for interval milliseconds */ sleep(interval); /* do some checking */ File checkDir = new File(absoluteCheckPath); if (!checkDir.exists()) { log.warn( Directory does not exist: + checkDir.getAbsolutePath()); sleep(1000 * 5); // we wait for five seconds to avoid a huge system load continue; } if (!checkDir.isDirectory()) { log.warn( Directory: + checkDir.getAbsolutePath() + is not a directory.); sleep(1000 * 5); continue; } /* retrieve the listing */ String[] dirlist1 = checkDir.list(); for (int i = 0; i dirlist1.length; i++) { /* don't touch hidden files */ if (dirlist1[i].startsWith(.)) { // System.out.println(Hidden file... Leaving it untouched: + dirlist1[i]); break; } /* get file extension */ int index = dirlist1[i].lastIndexOf('.'); String checkFileExtension = dirlist1[i] .substring(index + 1, dirlist1[i].length()) .toLowerCase(); System.out.println( File extension is: + checkFileExtension); /* see if it is a file we should process */ if (checkFileExtension .equals(this .getFileExtension().toLowerCase())) { System.out.println( This is the correct file extension.); /* Create a file handler */ File f = new File(checkDir, dirlist1[i]); // process the file here! } } } System.out.println(Lizard stopped...); } private void sleep(long howlong) { try { Thread.sleep(howlong); } catch (Exception e) { } } /* MBean methods */ protected void startService() throws Exception { // Create a new thread with this monitor lizard = new Thread(this, JBossMonitor); // Set it as a daemon lizard.setDaemon(true); // start the thread lizard.start(); } protected void stopService() { lizard.interrupt
RE: [JBoss-user] mbean question
Not true. Marking a thread as a daemon simply tells the JVM how to handle the thread at shutdown. Once the JVM gets to a state where the only threads running are ALL daemon threads, it will shut down. The thread which calls main() is NOT a daemon thread, so this situation can only occur once main() has returned. Essentially, once main() has returned, the JVM waits for all NON-daemon threads to complete before terminating all the remaining daemon threads and then exiting. A thread can be stopped regardless of whether it is a daemon or not. (Strictly, a thread cannot be forcibly stopped - it must stop itself by returning from its run() method). Besides, Harm does do setDaemon(true) immediately before starting the thread. Dan. -- Danny Yates -Original Message- From: Andreas Mecky [mailto:[EMAIL PROTECTED] Sent: 25 September 2003 11:20 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] mbean question You must use setDaemon(true); Now your thread is generated as a child process of your thread and can be stopped by the JVM. Default is false and then the thread just lives on. HTH Andreas - Original Message - From: [EMAIL PROTECTED] To: jboss mailing list [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:08 AM Subject: [JBoss-user] mbean question Hi all, I'm trying to write a basic MBean. This Mean runs a Thread which checks the file system for new files. If a new file is found it should perform some action. My problem however is that whenever I undeploy, or stop the MBean using the jmx-console application, the MBean keeps running. I have no idea what I'm doing wrong here. Below is my code. Could somebody please tell me what it is that I'm doing wrong here? Thanks a lot, Harm de Laat Informatiefabriek The Netherlands package nl.informatiefabriek.jmxlizard; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Vector; import org.jboss.system.ServiceMBeanSupport; /** * @author harm */ public class JBossLizard extends ServiceMBeanSupport implements JBossLizardMBean, Runnable { private Thread lizard; public JBossLizard() { } public String getName() { return JBossJMXLizard; } /* (non-Javadoc) * @see java.lang.Runnable#run() */ public void run() { boolean running = true; while (running) { /* wait for interval milliseconds */ sleep(interval); /* do some checking */ File checkDir = new File(absoluteCheckPath); if (!checkDir.exists()) { log.warn( Directory does not exist: + checkDir.getAbsolutePath()); sleep(1000 * 5); // we wait for five seconds to avoid a huge system load continue; } if (!checkDir.isDirectory()) { log.warn( Directory: + checkDir.getAbsolutePath() + is not a directory.); sleep(1000 * 5); continue; } /* retrieve the listing */ String[] dirlist1 = checkDir.list(); for (int i = 0; i dirlist1.length; i++) { /* don't touch hidden files */ if (dirlist1[i].startsWith(.)) { // System.out.println(Hidden file... Leaving it untouched: + dirlist1[i]); break; } /* get file extension */ int index = dirlist1[i].lastIndexOf('.'); String checkFileExtension = dirlist1[i] .substring(index + 1, dirlist1[i].length()) .toLowerCase(); System.out.println( File extension is: + checkFileExtension); /* see if it is a file we should process */ if (checkFileExtension .equals(this .getFileExtension().toLowerCase())) { System.out.println( This is the correct file
RE: [JBoss-user] could not be found: jar in .ear file
Title: Message I don't think you need the "./" in the path. Just the JAR names. -- Danny Yates -Original Message-From: Bill Milbratz [mailto:[EMAIL PROTECTED] Sent: 22 September 2003 18:00To: '[EMAIL PROTECTED]'Subject: [JBoss-user] "could not be found": jar in .ear file Hi, How do you tell Jboss3 to refer to a jar within an ear file? This works fine on Jboss2 and Weblogic 6 and 7. I've searched the documentation and archives, but don't see an obvious way to get past this problem, aside from copying the jars into the 'deploy' directory. (The section "Deployers and Classloaders" in the 3.2.1 documentation seems to point to an answer...but doesn't discuss how the jars are loaded from the file system JBOSS_DIST/server/config/deploy directory .) We're upgrading from jboss 2.4.6 to Jboss 3.2.1. Our ear file contains several jars and a manifest that points to those .jars. The log has several "could not be opened" Manifest entry (this has the required newline at the end): Class-Path: ./activation.jar ./commons-beanutils.jar Server log: 2003-09-22 10:11:21,327 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at pe.ear entry is activation.jar 2003-09-22 10:11:21,327 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/projects/devtools/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/pe.ear references URL file:/C:/projects/devtools/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/activation.jar which could not be opened, entry ignored thanks, bill milbratz _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _
RE: Can we create a Action class object
Why? This sounds like bad design. Why not just refactor the common code out into a helper class and call that from both actions? -- Danny Yates -Original Message- From: Ashok.D [mailto:[EMAIL PROTECTED] Sent: 04 September 2003 14:42 To: Struts Users Mailing List Subject: Can we create a Action class object Hi, Can we create a Action class object. I need to access the perform method from another Action class. If we access this Action class by using *.do, I have some limiations in my application. I don't want to use action.do. But I need to execute another action class perform method. Pls put some light on this issue. Thanks Regards, Ashok.D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[JBoss-user] RE: [JBoss-user]mssql-ds.xml,mssql-service.xml,mssql-xa-ds.xml,mssql-xa-service.xml; What touse?
Hi, The -service files are obsolete, and you should now be using the -ds files. Not sure when this change occurred. The xa files are presumably configured to use the MSSQL XA JDBC driver (instead of the plain JDBC driver). Whether you need to use XA or not is another question. And which bits of the MS JDBC drivers you need to install is not something I am able to answer. So, in summary, use: * mssql-ds.xml - if you don't need XA * mssql-xa-ds.xml - if you DO need XA Rgds, Dan. -- Danny Yates -Original Message- From: Carsten Hammer [mailto:[EMAIL PROTECTED] Sent: 02 September 2003 13:33 To: [EMAIL PROTECTED] Subject: [JBoss-user]mssql-ds.xml,mssql-service.xml,mssql-xa-ds.xml,mssql-xa-service. xml; What touse? Hi, what is the difference between these mssql usages (for CMP, if that matters..) and what should I use? When do I need to install the SQLServer JTA part of the Microsoft jdbc driver? Does JBoss work using the jfreetds jdbc driver? Best regards, Carsten --- 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 _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- 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
RE: [OT] Invoking a Task.
Hi, I don't think there are any options. When I last looked (a while back), the J2EE1.4 spec didn't provide any means to set up timers through configuration files, deployment descriptors, etc. Specifically, the only way you could start a timer was through the API, which meant that you needed some kind of event to fire first in order to make your code run to set the timer, etc. A bit catch 22. The only solution as I see it is to use a startup servlet, or else use some kind of external scheduling approach (using Unix cron or Windows at) as detailed by other over the last couple of days. Rgds, Dan. -- Danny Yates -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02 September 2003 06:42 To: [EMAIL PROTECTED] Subject: [OT] Invoking a Task. Hi All, I have defined a task using Timer and TimerTask. I am running a Web Application in Weblogic domain. I want to invoke this Task program fom somewhere. I don't want to use WL start up class and cannot put it in a load on startup. Please let me know what other options i have ? thanks -raj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [JBoss-user] Disabling hot deployment to limit open file handles
Today's lesson... never colo with a company that has different national holidays (and hence, different time priorities) to you! :-) -- Danny Yates -Original Message- From: Sheldon Hearn [mailto:[EMAIL PROTECTED] Sent: 01 September 2003 15:20 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Disabling hot deployment to limit open file handles On (2003/09/01 14:29), Adrian Brock wrote: Dead sure, although that'll be true for _some_ of them. Every jar and xml file deployed by JBoss (even with jbossweb-tomcat.sar disabled) consumes an open NT File Handle for the lifetime of the JBoss process. I'll try ScanEnabled=false and see if that changes the behaviour. Report back, sounds like something not closing something and leaving it to the gc? Which JBoss version are you using? jboss-3.2.1_tomcat-4.1.24 jdk-1.4.2_01 Windows 2000 Server SP4 I'm using ProcessExporer (http://www.sysinternals.com/) to inspect the handles. It's possible that ProcessExplorer is just plain wrong. Can't try ScanEnabled until the mobo swapout happens, and it's a national holiday for the colo guys. All the luck, I tell you. :-) Ciao, Sheldon. --- 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 _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- 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
RE: Display img from DB
Write an HTML img tag which passes an image ID to a custom servlet which retrieves the image from the database: img src=/context/ImageServlet?imgid=02349872 / -- Danny Yates -Original Message- From: Sloan Seaman [mailto:[EMAIL PROTECTED] Sent: 28 August 2003 14:05 To: Struts Users Mailing List Subject: Display img from DB I've got some img files stored in a database as byte[]'s. Is there any easy way to get display the images in an HTML page? I figure I will have to write a custom tag for the img retrieval, but I can't just dump the byte[]. How do you go about doing this? Thanks! -- Sloan This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [JBoss-user] JNDI Name
Title: Message The java:/ context is only available within the same VM as the server. -- Danny Yates -Original Message-From: Rod Macpherson [mailto:[EMAIL PROTECTED] Sent: 27 August 2003 00:12To: [EMAIL PROTECTED]Subject: [JBoss-user] JNDI Name JBoss is binding my datasource just fine and my webapp works but trying to connect from a stand-alone client outside of the server fails: 14:25:52,704 INFO [FoobarDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=FoobarDS to JNDI name 'java:/FoobarDS' The datasource is FoobarDS and we lookup the string java:/FoobarDS and that works fine within our J2EE application. Only fails from a remote client (fabled option D did not work either:) TIA, Rod _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _
RE: J2EE IDE
I've tried to avoid getting sucked in, but here I go... Isn't IntelliJ a commercial product? From what I can work out form their web site, it's a $500 licence for version 3.0 (cheaper if you qualify for an academic licence). Eclipse is free. One thing that Eclipse does lack (surprisingly) is support for XML (although the XMLBuddy plug-in does an OK job), and J2EE. Having said that, most of my development work is done with XDoclet, so the lack of J2EE support is not a big issue. The thing that really makes Eclipse appeal to me is that it integrates with CVS and ClearCase (among others), so I can check in/out within the environment, has various SQL plug-ins so I can work with the db, JBoss IDE so I can start/stop/ debug into my app server, etc. Dan. PS These comments are personal and do not reflect the views or opinions of my employer, whose standard disclaimer undoubtedly appears below... -- Danny Yates _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] RE: mesage message account
Woah! There's a Sarcasm Detection Kit? Gimme gimme... :-) -- Danny Yates -Original Message- From: Bill Chmura [mailto:[EMAIL PROTECTED] Sent: 26 August 2003 16:44 To: 'Struts Users Mailing List' Subject: RE: [OT] RE: mesage message account No it was this thing I invented called sarcasm... Its really cool, I can send you the SDK sometime Bill -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 7:04 AM To: 'Struts Users Mailing List' Subject: RE: [OT] RE: mesage message account laughter type=ROARING DUDE You actually believe that?!?!? Anyone who believes that should be banned for stupidity. /laughter -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Bill Chmura [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 5:09 AM To: 'Struts Users Mailing List' Subject: [OT] RE: mesage message account Is the list banning colored people? That's bad. +1 for ending this horrid policy -Original Message- From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 3:12 AM To: 'Struts Users Mailing List' Subject: RE: mesage message account Don't think that you are a colored person message message. Get a life. Amin -Original Message- From: James Childers [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 2:25 AM To: Struts Users Mailing List Subject: RE: mesage message account Hi! You are not special. There is not a conspiracy to get you because of your skin color, religion, or political beliefs. Your paranoid is unjustified, because you just aren't that important. You are simply a rude person, and most mailing lists have a low tolerance for rudeness. This one is no different. Thanks for playing! Hope you learn to be nice to people and to not get your feelings so easily hurt. Buh-bye! -= J -Original Message- From: object worlds [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: mesage message account Did you take my message message account off the list ? Is that because that white shit Mark Galbreath said so and that shit Craig Mclanahan agreed. _ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America
RE: [JBoss-user] Issue with the DQLHandler and multiple DLQs
I'm just guessing, but are the 'retries' cumulative? That is, when the message comes off the second queue (FlowErrorDLQ), does it already have a retry count of 3? -- Danny Yates -Original Message- From: Barlow, Dustin [mailto:[EMAIL PROTECTED] Sent: 20 August 2003 18:34 To: [EMAIL PROTECTED] Subject: [JBoss-user] Issue with the DQLHandler and multiple DLQs The setup: queue/A - QueueA_MDB - CMT SSB Business Logic | | 3 retries, go to FlowErrorDLQ \ / * queue/FlowErrorDLQ - FlowErrorDLQ_MDB - CMT SSB Failure Logic | | 3 retries, go to DLQ \ / * queue/DLQ - QueueA_MDB is configured with it's own invoker-proxy-binding that has .. MDBConfig ReconnectIntervalSec10/ReconnectIntervalSec DLQConfig DestinationQueuequeue/FlowErrorDLQ/DestinationQueue MaxTimesRedelivered3/MaxTimesRedelivered TimeToLive0/TimeToLive /DLQConfig /MDBConfig ... After 3 failed retries, the message should be pushed by the DLQHandler to queue/FlowErrorDLQ. - FlowErrorDLQ_MDB uses the standard invoker-proxy-binding message-driven-bean. After 3 failed retries, the message should be pushed by the DLQHandler to queue/DLQ. - queue/DLQ has NO MDB or MessageListener attached. The scenario: My test was to force both the MDBs to rollback the CMT in the onMessage() in order to test if the message ultimately arrives on the queue/DLQ in the event of catastrophic failure of both the business logic, and the failure handling logic layers. The test flow I expected to occur is as follows: 1. Message arrives on queue/A 2. QueueA_MDB-onMessage() fires 3. QueueA_MDB-log a message 4. QueueA_MDB-ctx.setRollbackOnly() 5. retry steps 2-4 3 times. 6. DLQHandler pushes message to queue/FlowErrorDLQ 7. Message arrives on queue/FlowErrorDLQ 8. FlowErrorDLQ_MDB-onMessage() fires 9. FlowErrorDLQ_MDB-log a message 10. FlowErrorDLQ_MDB-ctx.setRollbackOnly() 11. retry steps 8-10 3 times. 12. DLQHandler pushes message to queue/DLQ The flow up to step 7 works as expected. However, what happens after step 7 is as follows: 8. Error occurs prior to FlowErrorDLQ_MDB-onMessage() being invoked (no stack trace though) 9. DLQHandler trace logging shows an internal retry of 3 times 10. DLQHandler pushes message to queue/DLQ Here's the strange part. If I configure the retry count of the FlowErrorDLQ_MDB to be 6 instead of 3 the following flow occurs: 8. Error occurs prior to FlowErrorDLQ_MDB-onMessage() being invoked (no stack trace though) 9. DLQHandler trace logging shows an internal retry of 3 times 10. On retry attempt 4, FlowErrorDLQ_MDB-onMessage() fires 11. FlowErrorDLQ_MDB-log a message 12. FlowErrorDLQ_MDB-ctx.setRollbackOnly() 13. retry (10-12) ** 3 ** times (ie the 4 - 6 retries out of 6) 14. DLQHandler pushes message to queue/DLQ If I set the FlowErrorDLQ_DMB to retry 10 times, the same behaviour occurs with the exception that step 13 invokes the FlowErrorDLQ_MDB-onMessage() 7 times. Any ideas on what could be going wrong with the MDB retry mechanism when using multiple MDBs and DLQ destinations? Dustin --- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from the best hiring companies. http://www.dice.com/index.epl?rel_code=104 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix
RE: [JBoss-user] Entity Context Error
As the exception says: Deprecated According to the documentation, EJBContext.getEnvironment() is deprecated (and, IIRC, it has been for some time). Deprecated. Use the JNDI naming context java:comp/env to access enterprise bean's environment. Dan. -- Danny Yates -Original Message- From: David McLoughlin [mailto:[EMAIL PROTECTED] Sent: 18 August 2003 12:44 To: [EMAIL PROTECTED] Subject: [JBoss-user] Entity Context Error When I call the following method I get the following error. This is a method in my Entity Bean public void setEntityContext(EntityContext ctx) throws RemoteException { public void setEntityContext(EntityContext ctx) throws RemoteException { this.ctx = ctx; env = ctx.getEnvironment(); } Client file: Properties prop = System.getProperties(); prop.put(java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); prop.put(java.naming.provider.url, jnp://192.168.1.70:1099); prop.put(java.naming.factory.url.pkgs, org.jboss.naming:org.jnp.interfaces); //for (Enumeration e = prop.propertyNames(); e.hasMoreElements();) //System.out.println(e.nextElement() + : +prop.getProperty((String)e.nextElement())); Context ctx = new InitialContext(prop); //InitialContext ctx = new InitialContext(); AccountHome home = (AccountHome) ctx.lookup(ejb/Account); THIS IS THE ERROR FROM THE JBOSS SERVER javax.ejb.EJBException: Deprecated at org.jboss.ejb.EnterpriseContext$EJBContextImpl.getEnvironment(EnterpriseCont ext.java:340) at AccountBean.setEntityContext(AccountBean.java:210) at org.jboss.ejb.EntityEnterpriseContext.init(EntityEnterpriseContext.java: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(EntityInstanceInt erceptor.java:78) THIS IS FROM THE CLIENT java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: Deprecated at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7 01) at java.lang.Thread.run(Thread.java:536) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC all.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx y.java:138) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy0.create(Unknown Source) at Client.main(Client.java:27) Caused by: java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: Deprecated at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:357 ) any help would be appreciated thanks D __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any
RE: [JBoss-user] MDB Singleton retry semantics
Ah, of course. I forgot you can do this in JBoss! I was going to suggest that JBoss was creating multiple MDB instances and you were just seeing the effect of having them both process the incoming messages, but given your config and what Adrian has been saying it seems I would have been wrong. Rgds, Dan. -- Danny Yates -Original Message- From: Barlow, Dustin [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 21:14 To: '[EMAIL PROTECTED] ' Subject: RE: [JBoss-user] MDB Singleton retry semantics In conf/standardjboss.xml I setup a new invoker-proxy-binding and a container-configuration. Part of the container-configuration includes the following stanzas: container-pool-conf MaximumSize1/MaximumSize MinimumSize1/MinimumSize strictMaximumSizetrue/strictMaximumSize /container-pool-conf The MDB is deployed using the new invoker-proxy-binding and container-configuration and does only consume one message at a time as long as there isn't a container transaction rollback. BTW: I'm using JBoss 3.2.2RC2. Dustin -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 8/14/2003 2:27 PM Subject: RE: [JBoss-user] MDB Singleton retry semantics How are you enforcing the singleton? -- Danny Yates -Original Message- From: Barlow, Dustin [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 19:00 To: [EMAIL PROTECTED] Subject: [JBoss-user] MDB Singleton retry semantics I have a singleton CMT MDB consuming on a JMS queue with a retry threshold set to 3 attempts. I made the assumption that no other messages on the queue would be consumed until the current message being processed either finishes and is consumed, or in the event of a container transaction rollback and the retry threshold is reached, the message is consumed off the source queue and pushed to the DLQ. However, the behaviour I'm seeing is that on the retry, other messages sitting on the queue are consumed prior to the retry occurring. The singleton is working in terms of only one message at a time being processed, however the retry semantic seems odd to me in that it appears like the implementation of the retry logic is just simply pushing the message back on the queue to be consumed again in a different thread later on. Is this correct? If so, how do I change that behaviour so that no other messages on the queue are triggered until the message completes its processing either by consumed normally, or by being consumed and pushed to the DLQ once the retry threshold is reached? Dustin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01 /01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01 /01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https
RE: [JBoss-user] Gracefully shutdown JBoss
If you run it with no parameters, it tells you the correct syntax: shutdown -S (note that it doesn't appear to work if you are running the 'minimal' server - you get a javax.naming.NameNotFoundException) -- Danny Yates -Original Message- From: Magesh Prabhu [mailto:[EMAIL PROTECTED] Sent: 07 August 2003 16:01 To: [EMAIL PROTECTED] Subject: [JBoss-user] Gracefully shutdown JBoss I tried to use the shutdown script in JBoss... but could'nt get it working. Could somebody please tell me how to use it. I'm running 3.2.1 JBoss. Thanks in advance, Magesh ** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] MDB Singleton retry semantics
How are you enforcing the singleton? -- Danny Yates -Original Message- From: Barlow, Dustin [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 19:00 To: [EMAIL PROTECTED] Subject: [JBoss-user] MDB Singleton retry semantics I have a singleton CMT MDB consuming on a JMS queue with a retry threshold set to 3 attempts. I made the assumption that no other messages on the queue would be consumed until the current message being processed either finishes and is consumed, or in the event of a container transaction rollback and the retry threshold is reached, the message is consumed off the source queue and pushed to the DLQ. However, the behaviour I'm seeing is that on the retry, other messages sitting on the queue are consumed prior to the retry occurring. The singleton is working in terms of only one message at a time being processed, however the retry semantic seems odd to me in that it appears like the implementation of the retry logic is just simply pushing the message back on the queue to be consumed again in a different thread later on. Is this correct? If so, how do I change that behaviour so that no other messages on the queue are triggered until the message completes its processing either by consumed normally, or by being consumed and pushed to the DLQ once the retry threshold is reached? Dustin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Adrian Brock's info on xa datasource for prepare()
Hypersonic does not support XA. You need to use one of the commercial databases or Firebird. Rgds, Dan. -- Danny Yates -Original Message- From: Philipp W. Kutter [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 14:55 To: [EMAIL PROTECTED] Cc: Philipp W. Kutter Subject: [JBoss-user] Adrian Brock's info on xa datasource for prepare() On 7/6/03 Magehs Prabhu asked about a warning: WARN [TxConnectionManager$LocalXAResource] Prepare called on a local tx. Use of localtransactions on a jta transaction with more than one branch may result in inconsistent data in some cases of failure. And Adrian Brock answerd: It is telling you your local-tx-datasource doesn't have a prepare(), the commit() could fail leaving your data in an inconsistent state. And later explained that one needs a xa datasource for prepare() I am playing with an example derived from the Gangster example of the JBoss 3.2.1. documentation. Thus I never did set up a datasource, I am just using the built in Hypersonic one. I get the very same warning. How can I avoid this warning? How can I get a xa datasource for prepare() for the built in datasource? If anyone who knows could help me would be great! I understand that adding a xa datasource for prepare() should be simple for someone settting up datasources, but I wanted to take advantage of the fact that a datasource is built in and I do not need to set one up. Best Regards, Philipp Kutter From: Adrian Brock [EMAIL PROTECTED] Re: WARN [...] what they mean... 2003-07-06 16:10 On Sun, 2003-07-06 at 16:40, Magesh Prabhu wrote: I could'nt understand this Adrian, I'm using Oracle 8.1.6 database with the following datasource configuration: datasources local-tx-datasource jndi-nameOracleDS/jndi-name connection-urljdbc:oracle:thin:@193.16.18.126:1521:clipper/connection-url driver-classoracle.jdbc.driver.OracleDriver/driver-class user-nametest/user-name passwordtest/password exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleEx ceptionSorter/exception-sorter-class-name /local-tx-datasource /datasources Could you please give more explanation on your comment.. Should my jdbc driver support this prepare() method My transaction is all Container managed and I run on Commit Option 'B' You need the xa datasource for prepare() --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CachedConnectionManager and JMS (3.2.2RC2 v. 3.2.2RC1)
It would make sense if closing the connection closed all the sessions created from that connection. After all, I guess the sessions are useless once the connection has been closed? Rgds, Dan. -- Danny Yates -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 01 August 2003 07:33 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] CachedConnectionManager and JMS (3.2.2RC2 v. 3.2.2RC1) What about the QueueSession which is what the message is indicating that it closed? It could be argued that this is a bug in that 1.0.2b jms spec says that closing a connection is sufficient, but it was not addressing a JCA resource provider. -- Scott Stark Chief Technology Officer JBoss Group, LLC paul morgan wrote: I just moved from 3.2.2RC1 to RC2 and am now receiving the following message (I've included the stack trace at the end): 10:51:25,608 INFO [CachedConnectionManager] Successfully closed a connection for you. Please close them yourself: [EMAIL PROTECTED] Has far as I can tell, I'm closing the connection. Following is a code snippet: QueueConnection connection = null; try { connection = (this.getQueueConnectionFactory()).createQueueConnection(); QueueSession session = connection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE); MapMessage message = session.createMapMessage(); // The code to set the message. (session.createSender( this.getNotificationQueue() )).send( message ); } catch( JMSException exception ) { throw new NotificationFailedException( NotifierBean#forwardToNotifier -- , exception ); } finally { if (connection != (QueueConnection) null) { try { connection.close(); connection = (QueueConnection) null; } catch( JMSException exception ) { System.err.println( NotifierBean#forwardToSMSNotifier -- + exception ); } } } Anyone have any idea what I might be doing wrong (the normal case), or might this be a JBoss bug? Thanks, Paul 10:51:25,608 INFO [CachedConnectionManager] Successfully closed a connection for you. Please close them yourself: [EMAIL PROTECTED] java.lang.Exception: Stack Trace at org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(Cached ConnectionManager.java:376) at org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObj ect(CachedConnectionManager.java:199) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach edConnectionInterceptor.java:190) --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JNDI lookup failure, ... not bound.
Give or take a '/', yes. -- Danny Yates -Original Message- From: Rob Tomlin [mailto:[EMAIL PROTECTED] Sent: 25 July 2003 18:33 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JNDI lookup failure, ... not bound. That's because your code looks up java:comp/env/MyDS, not java:/MyDS. Yes, I see that know... Would you expect the following to work correctly: Context initCtx = new InitialContext(); DataSource ds = (DataSource)initCtx.lookup(java:MyDS); Cheers Rob Tomlin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Database JNDI Name Not Found
Sorry, I was unclear. What I meant was to leave everything as it is now in respect of non-XML files, so the log4j and security deployers will continue to work. However, rather than making the file name of the XML files important, you could deploy them based on their DOCTYPE. You could employ a mechanism similar to JDBC where each registered driver (or XML sub-deployer) would be offered the file in turn. This way, you could even decide which sub-deployer to used based on content other than the DOCTYPE. Anyway, it was just a suggestion! :-) Dan. -- Danny Yates -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 24 July 2003 19:49 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Database JNDI Name Not Found That is simply a restriction of the current architecture. If deployers want to base recognition off of the doctype they may do so. However, it is to restrictive. The JARDeployer in fact works by NOT finding an xml file that could be considered a deployment descriptor. A log4j configuration deployer may work off a log4j.properties file. A security configuration deployer may work off of the legacy auth.conf file. You are suffering from an overdose of xml exposure. -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: But it raises an interesting design point. Why not simply have an XML deployer which picks up all *.xml files, inspects the DOCTYPE and then uses that to delegate to the correct sub-deployer. Would that not be a cleaner design? Rgds, Dan. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JNDI lookup failure, ... not bound.
That's because your code looks up java:comp/env/MyDS, not java:/MyDS. -- Danny Yates -Original Message- From: Rob Tomlin [mailto:[EMAIL PROTECTED] Sent: 25 July 2003 17:23 To: [EMAIL PROTECTED] Sourceforge. Net (E-mail) Subject: [JBoss-user] JNDI lookup failure, ... not bound. Hi, I am trying to access a MS Sql server DataSource. I have done the following: 1. Modified mssql-ds.xml to refer to my server. 2. Placed mssql-ds.xml in the server/default/deploy directory 3. Copied the SQL server jars to the server/default/lib directory I get messages back from jboss saying the following: [MyDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=MyDS to JNDI name 'java:/MyDS' When I use JNDIView from the jmx-console I get the following: MyDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) However when I try and use this data source with the following code I get a NamingException - MyDS not bound: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource)envCtx.lookup(MyDS); -- Exception here Cheers Rob Tomlin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss Transaction Problems
What, you mean like the line immediately above where he threw the exception? :-) -- Danny Yates -Original Message- From: Dan Christopherson [mailto:[EMAIL PROTECTED] Sent: 24 July 2003 15:27 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JBoss Transaction Problems Per the EJB spec, throwing an application exception doesn't cause a rollback. call setRollbackOnly on the bean's context object. Nikolay Ganev wrote: hi all, I tried to test CMT using JBoss. I made simple example using Session Statefull Bean updating the database... there is method that intentionally throwing exception - and i hoped that all changes will be rollback but they didnt i send u some code and XML settings: method: . updateChecking(checkingBalance); if (checkingBalance 0.00) { context.setRollbackOnly(); throw new InsufficientBalanceException(); } . in ejb-jar.xml container-transaction method description / ejb-nameBank/ejb-name method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction could anyone help me why this transaction doesnt work? --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Database JNDI Name Not Found
But it raises an interesting design point. Why not simply have an XML deployer which picks up all *.xml files, inspects the DOCTYPE and then uses that to delegate to the correct sub-deployer. Would that not be a cleaner design? Rgds, Dan. -- Danny Yates -Original Message- From: Rupp, Heiko [mailto:[EMAIL PROTECTED] Sent: 24 July 2003 16:11 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Database JNDI Name Not Found Renamed it to banana-ds.xml and sure enough that works. I take it the -ds segment of the basename is now important? Yes. *-service.xml and *-ds.xml have completely different contents (even if they might server the same purpose). --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [urgent] CMR relationship between JAR inside an EAR
Your bean only has a local interface. AFAIK, it will not be visible to other bean JARs - even within the same EAR. -- Danny Yates -Original Message- From: Ionel Gardais [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 13:09 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [JBoss-user] [urgent] CMR relationship between JAR inside an EAR Hi, I have a serious problem with CMR relationship inside 2 bean packages deployed inside the same EAR. Using Xdoclet-1.3dev and JBoss3.2.1-Tomcat4.1.24. Here are my questions : - does CMR works between bean packages inside an EAR ? - the two beans of my relationship are Person and Project. It's a unidirectionnal M:N relationship (Project manage the relationship and Person is not aware of it). Beans are stored in separate packages. Both packages are loaded inside the application.xml. I use a relation-table to manage this relationship. In my Project bean, I declare this CMR field : code /** * @ejb.relation * name=PROJECT-TO-MANAGERS-RELATION * role-name=project-ismanagedby-persons * target-ejb=PersonEJB * target-role-name=persons-manage-project * target-multiple=yes * @ejb.interface-method * view-type=local * @jboss.relation-mapping * style=relation-table * @jboss.relation-table * table-name=P2M * create-table=true * remove-table=false * @jboss.relation * related-pk-field=id * fk-column=IdM * @jboss.target-relation * related-pk-field=id * fk-column=IdP * [EMAIL PROTECTED] * --aggregate=techadvantage.beans.PersonValue * --aggregate-name=Manager * --members=techadvantage.beans.PersonLocal * --members-name=Manager * --relation=external * --type=Collection */ public abstract java.util.Collection getManagers(); /** * @ejb.interface-method * view-type=local */ public abstract void setManagers(java.util.Collection personnes); /code But when I deploy this under JBoss, I get a DeploymentException : exception Xdoclet parse it well.13:24:51,708 ERROR [EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Entity: PersonEJB not found for: [EMAIL PROTECTED] at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.init( JDBCRelationshipRoleMetaData.java:103) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.init(JDBCRela tionMetaData.java:127) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.init(JDBCA pplicationMetaData.java:154) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLo ader.java:52) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCS toreManager.java:737) ... /exception I look at the JNDI tree and PersonEJB have been deployed well. I also tryed to add an @ejb.ejb-external-ref in the Project bean but it doesn't solve anything. code * @ejb.ejb-external-ref * view-type=local * type=Entity * home=techadvantage.beans.PersonLocalHome * business=techadvantage.beans.PersonLocal * --link=PersonEJB * ref-name=ejb/qualite/PersonneLocal /code Why does it fail ? Is there a solution ? - As you can see, the @ejb.value-object is commented out because else, I get file not found in source tree Is it possible to use external relationship within value-objects ? I am in a hurry and I can't find out what is going on. thanks for helping, ionel --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority
RE: [JBoss-user] Scheduler MBean
Hi, I don't know the answer to your question! But if there is no answer, you could use an algorithm such as the following: (Please excuse the pseudo-code, I've never written an MBean, so don't actually know the interface) class MyMBean extends MBean { private boolean runToday = false; public void trigger() { // Triggered every minute, or whatever if (getCurrentHour() == 1) { if (runToday == false) { runDailyTaskNow(); runToday = true; } } else { runToday = false; } } } The overhead of running this every minute should be pretty minimal. Depending on how precisely at 1am you have to run, you could schedule your trigger every 30 seconds, or 5 seconds, or 5 mintues, or whatever. Hope that helps, Rgds, Dan. -- Danny Yates -Original Message- From: Phil Shrimpton [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 13:21 To: [EMAIL PROTECTED] Subject: [JBoss-user] Scheduler MBean Hi, I have implemented a schedualed MBean, and all works fine, I can get it 'triggering' every minute, every 10 etc., but I need it to 'trigger' at 1am every day, and can't find the correct combination of attributes. Has anyone got any ideas on the best values for.. InitialStartDate SchedulePeriod ..to achieve this. Many Thanks Phil -- 12:17pm up 93 days, 1:10, 1 user, load average: 0.10, 0.05, 0.01 ICQ: 760757 AIM: pjshrimpton Y!: pjshrimpton --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JMS usage and EJB rollback question
Hi, If you make sure that you are using an XA connection factory for your JMS (and, I guess, your database) then this should all happen automatically. Rgds, Dan. -- Danny Yates -Original Message- From: Michael Klem [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 22:31 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JMS usage and EJB rollback question I found a better solution. Use JMS transactions and commit the messages. At 10:32 AM -0700 7/16/03, Michael Klem wrote: I am using JMS to send a message from within an EJB and I have this question. Inside my EJB I do the following: Add a row to table A Send a JMS message that table A has been modified Add a row to table B Add a row to table C The problem is that if when adding data to tables B or C fails I rollback the entire transaction but the JMS message is still sent. Is there a way I can keep the messaging code in the same method that modifies table A and have it rollback too or should I just use flags and test them after all the db access is finished? In that case my EJB code would look like this: Add a row to table A Set flag to send a message that table A has been modified Add a row to table B Add a row to table C if the table A flag is true Send a JMS message that table A has been modified This way the message only get sent if all db access succeeds but my code is a little bit more complicated. Suggestions? -- Michael Klem [EMAIL PROTECTED]626-296-3027 --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Michael Klem [EMAIL PROTECTED]626-296-3027 --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Maximum length of class name/package?
Hi, Without giving away too many commercial details, we have a bean implementation class: com.x.x.xxx.x.impl.x Bean So I don't think absolute length is an issue. However, there may be an issue with the depth of the package names, but I doubt it. Rgds, Dan. -- Danny Yates -Original Message- From: Robert HALL [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 23:00 To: [EMAIL PROTECTED] Subject: [JBoss-user] Maximum length of class name/package? I seem to recall running into an issue of this sort with Weblogic. Is there a known upper length limit on a fully qualified class name in JBOSS (or is this more of a JVM-specific issue)? i.e. the length of a class name like com.foo.bar.package1.package2.package3.ejb.SampleBean Thanks.. --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Error debugging 3.2.0
Thanks Scott. I think I'll leave it chalked up to the JDK bug for now. Rgds, Dan. -- Danny Yates -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 05:44 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Error debugging 3.2.0 I'm going to have to see a trace log of the class loading layer when this occurs to try to see where this is coming from. It could be this JDK bug showing up since java.lang.NumberFormatException cannot be causing cicularity problem: http://developer.java.sun.com/developer/bugParade/bugs/4699981.html If you want to try to create a trace log see the class loading debugging instructions on the sourceforge project page under the docs section. -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: Hi Scott, Seems I'm not having a good day! It turns out that this error is actually only intermittent. The relevant bits of log file are copied below (apologies for the size): 2003-07-14 16:53:59,759 WARN [org.jboss.system.ServiceController] Problem starting service jboss.jca:service=ManagedConnectionFactory,name=DefaultDS java.lang.ClassCircularityError: java/lang/NumberFormatException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.newInstance0(Class.java:276) at java.lang.Class.newInstance(Class.java:259) at --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Rollback with side-effects, but /without/ a UserTransaction
Hi, You can achieve this one of two ways: 1) Throw a system exception from your method (not an application exception as that will not cause a rollback). See section 14.6 (page 433 in my edition) 2) Use context.setRollbackOnly(). See last few paragraphs of section 14.5 (also page 433 in my edition) Dan. -- Danny Yates -Original Message- From: Joseph Barillari [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 08:50 To: jboss-user Subject: [JBoss-user] Rollback with side-effects, but /without/ a UserTransaction Hi. I've read (namely in the O'Reilly /Enterprise Java Beans/ book, 3rd ed.), that: ...it is strongly recommended that you do not attempt to manage transactions explicitly. Through transaction attributes, Enterprise JavaBeans provides a comprehensive and simple mechanism for delimiting transactions at the method level and propagating transactions automatically. Only developers with a thorough understanding of transactional systems should attempt to use JTA with EJB. (Chap 14.5) Consequently, I'm curious if it is possible to write the following code without using a UserTransaction (e.g., using only transaction attributes). I have an entity bean, Foo. I would like to write an interface method of Foo, update(). update() that adjusts some of Foo's fields, then calls an internal validation method, validate(), that checks the validity of those new field values. validate() returns null on success, and a string explaining any failures if it fails. If validate() succeeds, I'd like to commit the changes to Foo. If validate() fails, I'd like to roll back the changes, and return the error message to the caller. In pseudo-Java, public String update(int val1, String val2, float val3) { setVal1(val1); setVal2(val2); setVal3(val3); String result = validate(); if (result != null) { rollback(); } else { commit(); } return result; } I'm curious: is this possible to do using only method-level transaction attributes? Or do I need a UserTransaction? Any advice would be much appreciated. Thanks in advance, --Joe -- Joseph Barillari -- http://barillari.org --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error debugging 3.2.0
Hi all, I'm debugging my code using the following: JBoss 3.2.0 Eclipse 2.1.1 JBoss IDE 1.1.0 Every 10 seconds, I get the following console output: 14:54:35,603 INFO [DLQHandler] Destroying 14:54:35,603 INFO [DLQHandler] Destroyed 14:54:35,613 INFO [DLQHandler] Creating 14:54:35,613 ERROR [DLQHandler] Initialization failed javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,613 INFO [JMSContainerInvoker] Reconnected to JMS provider 14:54:35,633 WARN [JMSContainerInvoker] JMS provider failure detected: javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,633 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider This only occurs when I debug, NOT when I do a normal start/stop of the server. Does anybody have any ideas? Thanks, Dan. _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Error debugging 3.2.0
javax.ejb.Handle) | +- jmx (class: org.jnp.interfaces.NamingContext) | | +- ejb (class: org.jnp.interfaces.NamingContext) | | | +- Adaptor (proxy: $Proxy32 implements interface org.jboss.jmx.adaptor.interfaces.AdaptorHome,interface javax.ejb.Handle) | +- feedmanager (class: org.jnp.interfaces.NamingContext) | | +- [commercially sensitive stuff deleted] +- OIL2ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory) As I mentioned previously, none of this occurs when I don't use debug. I also forgot to mention that I am using JDK 1.4.1_01. Rgds, Dan. -- Danny Yates -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 15:56 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Error debugging 3.2.0 What does the JNDI namespace show in terms of bound jms factories? What does the jms invocation layer service associated with XAConnectionFactory show in terms of starting up? -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: Hi all, I'm debugging my code using the following: JBoss 3.2.0 Eclipse 2.1.1 JBoss IDE 1.1.0 Every 10 seconds, I get the following console output: 14:54:35,603 INFO [DLQHandler] Destroying 14:54:35,603 INFO [DLQHandler] Destroyed 14:54:35,613 INFO [DLQHandler] Creating 14:54:35,613 ERROR [DLQHandler] Initialization failed javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,613 INFO [JMSContainerInvoker] Reconnected to JMS provider 14:54:35,633 WARN [JMSContainerInvoker] JMS provider failure detected: javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,633 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider This only occurs when I debug, NOT when I do a normal start/stop of the server. Does anybody have any ideas? Thanks, Dan. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Error debugging 3.2.0
I wrote: As I mentioned previously, none of this occurs when I don't use debug. Sorry, that was a slightly misleading statement. The specific startup warnings I refered to in my previous e-mail DO occur during a normal startup. It's the JMS messages every 10 seconds which only occur during a debug. Rgds, Dan. -- Danny Yates -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 15:56 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Error debugging 3.2.0 What does the JNDI namespace show in terms of bound jms factories? What does the jms invocation layer service associated with XAConnectionFactory show in terms of starting up? -- Scott Stark Chief Technology Officer JBoss Group, LLC [EMAIL PROTECTED] wrote: Hi all, I'm debugging my code using the following: JBoss 3.2.0 Eclipse 2.1.1 JBoss IDE 1.1.0 Every 10 seconds, I get the following console output: 14:54:35,603 INFO [DLQHandler] Destroying 14:54:35,603 INFO [DLQHandler] Destroyed 14:54:35,613 INFO [DLQHandler] Creating 14:54:35,613 ERROR [DLQHandler] Initialization failed javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,613 INFO [JMSContainerInvoker] Reconnected to JMS provider 14:54:35,633 WARN [JMSContainerInvoker] JMS provider failure detected: javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke r.java:394) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok er.java:553) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onExcept ion(JMSContainerInvoker.java:1053) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java :565) 14:54:35,633 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider This only occurs when I debug, NOT when I do a normal start/stop of the server. Does anybody have any ideas? Thanks, Dan. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying
RE: [JBoss-user] Error debugging 3.2.0
=DestinationManager Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=[commercially sensitive] state: CREATED I Depend On: jboss.mq:service=DestinationManager Depends On Me: , ObjectName: jboss.j2ee:jndiName=ejb/[commercially sensitive],service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: Error: can't find data source: java:/DefaultDS; - nested throwable: (javax.naming.NameNotFoundException: DefaultDS not bound), ObjectName: jboss.j2ee:jndiName=ejb/[commercially sensitive],service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: Error: can't find data source: java:/DefaultDS; - nested throwable: (javax.naming.NameNotFoundException: DefaultDS not bound), ObjectName: jboss.j2ee:jndiName=ejb/[commercially sensitive],service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: Error: can't find data source: java:/DefaultDS; - nested throwable: (javax.naming.NameNotFoundException: DefaultDS not bound)] So, it actually looks as though the underlying failure is due to a class circularity error causing the DefaultDS not to deploy. This has knock-on effects on many components, including the JMS provider (I'm using the default [Hypersonic] config). So I guess the question is, what causes the class circularity error? The only thing I can see which comes close is: 2003-07-14 16:53:57,936 WARN [org.jboss.mx.loading.ClassLoadingTask] Duplicate class found: org.jboss.jmx.connector.invoker.InvokerAdaptorService Current CS: (file:/C:/java/jboss-3.2.0/server/default/deploy/jmx-invoker-adaptor-server. sar/ no certificates) Duplicate CS: (file:/C:/java/jboss-3.2.0/server/default/tmp/deploy/server/default/deploy/j mx-ejb-connector-server.sar/9.jmx-ejb-connector-server.sar no certificates) 2003-07-14 16:53:57,936 DEBUG [org.jboss.mx.loading.ClassLoadingTask] Ignoring source of: org.jboss.jmx.connector.invoker.InvokerAdaptorService from CodeSource: (file:/C:/java/jboss-3.2.0/server/default/tmp/deploy/server/default/deploy/j mx-ejb-connector-server.sar/9.jmx-ejb-connector-server.sar no certificates), due to order(0=0), accepted CodeSource: (file:/C:/java/jboss-3.2.0/server/default/deploy/jmx-invoker-adaptor-server. sar/ no certificates) Needless to say, the JNDI namespaces are all but empty now! Thanks, -- Danny Yates -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 15:56 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Error debugging 3.2.0 What does the JNDI namespace show in terms of bound jms factories? What does the jms invocation layer service associated with XAConnectionFactory show in terms of starting up? -- Scott Stark Chief Technology Officer JBoss Group, LLC _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Strange log message
Title: Message Hi guys, I've left JBoss running (idle) overnight, and I've come back to find this on the console: 18:10:54,448 INFO [Manager] local scavenging...18:20:53,995 INFO [Manager] local scavenging...18:23:20,246 ERROR [SubscribingInterceptor] could not get AbstractReplicatedStore18:23:20,476 WARN [Server] ClassNotFoundException $Proxy2218:23:20,847 WARN [Server] ClassNotFoundException $Proxy2818:23:20,967 WARN [Server] Throwable java.lang.ClassCastException18:30:54,001 INFO [Manager] local scavenging...18:40:53,998 INFO [Manager] local scavenging...18:50:53,996 INFO [Manager] local scavenging...19:00:53,995 INFO [Manager] local scavenging...19:10:53,994 INFO [Manager] local scavenging... I'm using 3.2.0. Any ideas? Dan. -- Danny Yates _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _
RE: [JBoss-user] Linkage error
Hi, By default, JBoss uses a slightly confusing concept called the UnifiedClassLoader. Package your JAR file inside an EAR file and then add a line to your jboss-app.xml to create a private classloader and get the behaviour you are expecting. The line to add is: loader-repositorysome-unique-jmx-name-here/loader-repository for example: loader-repositorycom.company.project:loader=earfile.ear/loader-repository Note that the loader repository has to be unique for each of your EAR files, but since you obviously have slightly different build processes in order to capture different descriptors, this should not be a problem for you. In my (humble, personal, not work-sponsored) opinion, this default classloading behaviour is very confusing, especially if you run a shared J2EE server for different teams, and they all wish to build with different versions of Struts, Cocoon, log4j, Xerces, Xalan, etc. It rather defeats the purpose of the EAR file being a completely standalone deployable unit. That said, it doesn't break the spec! Rgds, Dan. -- Danny Yates -Original Message- From: Oisin Kim [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 15:23 To: [EMAIL PROTECTED] Subject: [JBoss-user] Linkage error Hello all, I have the same ejb-jar file deployed at different jndi locations: context_test1 and context_test2. Bascially the ejb jar files contain the same classes but have modified xml descriptors and separate databases. They deploy fine and I can see both applications using the web-console, I see no exceptions at all and database tables are created perfectly. However when I start to allow clients to connect and call methods on either applications façade methods I get : java.lang.LinkageError: duplicate class definition: net/aurium/util/UUIDv4 thrown. or java.lang.LinkageError: duplicate class definition: net/aurium/mis/services/ContextModelEvents thrown. These are classes used to generate uuids and record events, other classes used by both ejb jar files throw similar exceptions, but not all. I can't find why this is! Is there a reason why it wouldn't throw this same exception when the ejb class files are the same? Why is it ok to have the same ejb classes but not others? I was under the impression that each ejb jar would search its own class loader which would find files in the jar and not bother with the other jar, so each ejb application would be self contained. Is there something I'm doing wrong here or is the only solution to put all classes which are shared in to a lib jar? Thanks in advance for any help - we're putting together a small doc which describes what you need to do to deply multiple versions of the same ejb aplication on the same jboss instance, Oisin The server stack trace is : 15:57:45,319 WARN [ClassLoadingTask] Duplicate class found: net.aurium.mis.services.ContextModelEvents Current CS: (file:/usr/local/install/jboss-3.2.2RC1/server/default/tmp/deploy/tmp626 39context_test1.jar no certificates) Duplicate CS: (file:/usr/local/install/jboss-3.2.2RC1/server/default/tmp/deploy/tmp626 38context_test2.jar no certificates) 15:57:45,320 ERROR [LogInterceptor] Unexpected Error: java.lang.LinkageError: duplicate class definition: net/aurium/mis/services/ContextModelEvents at net.aurium.context.facades.ejb.ContextModelEJB.getAssociationWithSubject PredicateAndObject(ContextModelEJB.java:587) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stat elessSessionContainer.java:646) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke( CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Statele ssSessionInstanceInterceptor.java:72) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce ptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor CMT.java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav a:117) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryF inderInterceptor.java:122) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionC ontainer.java:323) at org.jboss.ejb.Container.invoke(Container.java:673) at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25
RE: [JBoss-user] WARN [...] what they mean...
Interesting! The warning message is pretty annoying (if, for example, you don't want to/can't shell out for Sybase's Distributed Transaction Manager, or if you're using the built-in Hypersonic db). Could there be a config option (presumably as part of the MDB/MDB containter config) to turn the warning off? Dan. -- Danny Yates -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 10:27 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] WARN [...] what they mean... On Mon, 2003-07-07 at 09:45, [EMAIL PROTECTED] wrote: Hi Adrian, Does your statement imply that any work done either directly or indirectly by an MDB (such as, for example, accessing Entity Beans) requries an XA datasource? I would use should rather than requires. If you want the acknowledgement of the message receipt to be in sync with the db commit, yes. Of course, you can use BMT to separate them into two different transactions or just ignore the warning about the prepare() on local. Rgds, Dan. -- Danny Yates -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [JBoss-user]Container Transacted MDB ?
The only valid transaction settings for an MDB are requires and not supported. Change requires new to requires and see what happens. I'm surprised this is not picked up by the bean validator. Rgds, Dan. -- Danny Yates -Original Message- From: Magesh Prabhu [mailto:[EMAIL PROTECTED] Sent: 04 July 2003 11:12 To: jboss-user Subject: [JBoss-user] [JBoss-user]Container Transacted MDB ? Guys, I want my Message Driven Bean under Transaction boundaries. Transaction should start when onMessage() call is received. Here's my deployment descriptor which says my MDB is ContainerTransacted and It requires a New Transaction. message-driven description![CDATA[This is reponsible for prioritising requests and dispatching them accordingly.]]/description ejb-nameQueueDispatcherMDBBean/ejb-name ejb-classcom.pindartech.imageprocessing.manager.queuemanager.QueueDispatch erBean/ejb-class message-selector/message-selector transaction-typeContainer/transaction-type acknowledge-modeAuto-acknowledge/acknowledge-mode message-driven-destination destination-typejavax.jms.Queue/destination-type /message-driven-destination /message-driven container-transaction method ejb-nameQueueDispatcherMDBBean/ejb-name method-name*/method-name /method trans-attributeRequiresNew/trans-attribute /container-transaction This MDB calls an helper class which inturn calls a bunch of Entity Beans and updates the database. In Exceptional scenario when I want to rollback the whole Transaction, I use this.context.setRollbackOnly(); public void onMessage(javax.jms.Message message) { try { ... do the business } catch(Exception e) { this.context.setRollbackOnly(); } } When Exception occours, I get a message saying setRollbackOnly() must be called only from a Transacted Bean. Why does the container think that my MDB is not Container Transacted. Please advice me If I'm missing out on anything. [ERROR] - [LogInterceptor].handleException() RuntimeException: java.lang.IllegalStateException: setRollbackOnly must only be called in the context of a transaction (EJB 2.0 - 15.5.1) at org.jboss.ejb.MessageDrivenEnterpriseContext$MessageDrivenContextImpl.setRol lbackOnly(MessageDrivenEnterpriseContext.java:214) at com.pindartech.imageprocessing.manager.queuemanager.QueueDispatcherBean.onMe ssage(QueueDispatcherBean.java:139) ... Thanks in advance, Magesh ** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority
RE: [JBoss-user] Finder generating wrong SQL statement in Jboss-3.2.1
I'm guessing here, but: 1) Can you remove the query/ element? Does this stop JBoss from generating the where clause? 2) Can you set the query to something like 1=1? Dan. -- Danny Yates -Original Message- From: Janardhan Burugupalli [mailto:[EMAIL PROTECTED] Sent: 01 July 2003 10:04 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Finder generating wrong SQL statement in Jboss-3.2.1 Hi All, I have a finder defined in the jwas.xml like this below finder namefindAllOrdered/name query/ orderCREATINGTIME DESC/order /finder i dont have any query because i want all results only in the Creating time desc format but jboss is generating the following sql query 2003-07-01 10:55:24,007 DEBUG [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] findAllOrdered command executing: SELECT PeerTask.OID, CREATINGTIME FROM PeerTask where ORDER BY CREATINGTIME DESC in the above sql statement there should not be a where condition as the query has nothing in it which is generated by Jboss can any one help me urgently how to fix this thanks janardhan --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] EJBQL = for dates
Or... you didn't notice that I flipped x and y around in the righthand side... -- Danny Yates -Original Message- From: Marcin Gryszkalis [mailto:[EMAIL PROTECTED] Sent: 29 June 2003 16:28 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] EJBQL = for dates On 2003-06-25 15:03, [EMAIL PROTECTED] wrote: Another option would be to reverse the sense of your comparison: (x = y) == (y x) Then you can use the standard operator. You're wrong (or just made mistake), it should be: (x = y) = (NOT x y) regards Marcin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] EJBQL = for dates
Ooops... that's not right is it?! Oh well, you get the general idea! :-) -- Danny Yates -Original Message- From: Yates, Danny Sent: 30 June 2003 10:01 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] EJBQL = for dates Or... you didn't notice that I flipped x and y around in the righthand side... -- Danny Yates -Original Message- From: Marcin Gryszkalis [mailto:[EMAIL PROTECTED] Sent: 29 June 2003 16:28 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] EJBQL = for dates On 2003-06-25 15:03, [EMAIL PROTECTED] wrote: Another option would be to reverse the sense of your comparison: (x = y) == (y x) Then you can use the standard operator. You're wrong (or just made mistake), it should be: (x = y) = (NOT x y) regards Marcin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Run a class onStartup
Sorry! You said that you didn't have documentation about this specification, so I figured that was what you were after... -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 23:34 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Danny... I am talking about JBoss integration with JMX, I just solve my trouble after some emails in the list, And nothing in the sites or other source of documentations available for me However, everybody thanks by link Great... Edgar - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:57 AM Subject: RE: [JBoss-user] Run a class onStartup I guessed at: http://java.sun.com/jmx How much more public would you like?! ;-) Rgds, Dan. -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 15:36 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Thanks Sebastien You're right The big problem is I don´t have documentation about this Specification I think that this subjects can be more public, more easy to find. Regards... Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 8:35 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Astie... I just created this class following theses steps: 1) I created a Interface with init(),start(), stop(),detroy() methods. 2) I created a Class called Ebony , which implements the interface above. 3) I made all implementations nested to this class works fine. 4) I made an special file called my_mbean.xml describing my special MBean this way: ?xml version=1.0 encoding=UTF-8? server mbean code=com.argos.util.jmx.Ebony name=DefaultDomain:service=ebony/ /server Where Ebony is my Class where the implementation was made. 5) I Deploy it 6) I get this error: 19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope ration 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: none Incompletely deployed packages: [EMAIL PROTECTED] { url=file:/C:/jboss/server/defaul t/deploy/ebony_service.xml } deployer: [EMAIL PROTECTED] status: Deployment FAILED reason: Class does not expose a management interface : com.argos.util.jmx.Ebony; - nested throwable: (javax.management.NotCompliantMB eanException: Class does not expose a management interface: com.argos.util.jmx.E bony) state: FAILED watch: file:/C:/jboss/server/default/deploy/ebony_service.xml lastDeployed: 1056408707513 lastModified: 1056408708000 mbeans: ]MBeans waiting for classes: none MBeans waiting for other MBeans: none 7) I made the copy of Jar file to de Lib directory of my default configuration Server... Have other more simpler way that this above? Any Idea? If possible can you send a example of this declaration inside jboss configuration file? Regards Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 6:30 PM Subject: RE: [JBoss-user] Run a class onStartup Hello Edgar, The obvious way to start a process at startup is to wrap your class in an MBean and declare the MBean in user-service.xml -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:07 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Run a class onStartup Hi Folks... Can I put a simple .class to run in JBoss Startup? For example, to start a SessionBean automaticlly... Any Idea? Regards Edgar --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https
RE: [JBoss-user] problem with file lookup from session bean
Hi, Since you're using the Sun FS JNDI implementation, you should provide a PROVIDER_URL which points to the root of the disk-based JNDI tree. Also, there's unlikely to be a java:comp/env environment in this tree - you should just reference things using their file path relative to the PROVIDER_URL you specified. Is there a reason you are trying to load the class file from the disk like this? You should really be using the ClassLoader, I would guess. Hope that helps, Dan. -- Danny Yates -Original Message- From: Arun [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 08:26 To: '[EMAIL PROTECTED]' Subject: [JBoss-user] problem with file lookup from session bean Hi, We are using jboss-3.2.1_tomcat-4.1.24 for deploying stateless session bean(AcctManageEJB.java, home,interface and impl).From the session bean we are trying to lookup for a class file(myEIS.class,not a datasource) using jndi lookup and later call a function within the class from the session bean. But we are getting error in the jboss server log, = 2003-06-25 12:24:24,529 INFO [STDOUT] lookup failed 2003-06-25 12:24:24,530 ERROR [STDERR] javax.naming.NameNotFoundException: home not bound == Please let me know what could be the problem. The AcctManageEJB.java , ejb-jar.xml, jboss.xml , server.log files are given below, == AcctmanageEJB.java import java.math.BigDecimal; import java.util.*; import javax.ejb.*; import javax.resource.cci.*; import javax.resource.ResourceException; import javax.naming.*; import com.sun.connector.cciblackbox.*; public class AcctManageEJB implements SessionBean { private SessionContext sc; private ConnectionFactory cf; public void ejbCreate() throws CreateException { } public void setSessionContext(SessionContext sc) { this.sc = sc; } public int getAcctAmt() { int amount = -1; try { Hashtable env = new Hashtable(11); env.put(Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.fscontext.RefFSContextFactory); Context ic = new InitialContext(env); cf = (ConnectionFactory) ic.lookup(java:comp/env/home/santosh/MyJCA /zip/MyEIS.class); } catch (NamingException ex) { ex.printStackTrace(); } try { Connection con = getCCIConnection(); Interaction ix = con.createInteraction(); CciInteractionSpec iSpec = new CciInteractionSpec(); iSpec.setSchema(null); iSpec.setCatalog(null); iSpec.setFunctionName(GETAMT); RecordFactory rf = cf.getRecordFactory(); IndexedRecord iRec = rf.createIndexedRecord(InputRecord); Record oRec = ix.execute(iSpec, iRec); Iterator iterator = ((IndexedRecord)oRec).iterator(); while(iterator.hasNext()) { Object obj = iterator.next(); if(obj instanceof Integer) { amount = ((Integer)obj).intValue(); } closeCCIConnection(con); } . . === === ejb-jar.xml ?xml version=1.0? !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1. 1//EN http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd; ejb-jar display-nameAcctManageEJB/display-name enterprise-beans session descriptionA connector bean/description ejb-nameAcctManageEJB/ejb-name homeAcctManageHome/home remoteAcctManage/remote ejb-classAcctManageEJB/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type /session /enterprise-beans assembly-descriptor container-transaction method ejb-nameAcctManageEJB/ejb-name method-name*/method-name /method method ejb-nameAcctManageEJB/ejb-name method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor /ejb-jar === === jboss.xml ?xml version=1.0 encoding=UTF-8? jboss enterprise-beans session ejb-nameAcctManageEJB/ejb-name jndi-nameAcctManage/jndi-name /session /enterprise-beans /jboss = == server.log 2003-06-25 12:23:48,331 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Myc onnector.jar 2003-06-25 12:23:48,335 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.ejb:service=EJBDeployer,type=org. jboss.deployment.SubDeployer.start,sequenceNumber=18,timeStamp=1056524028334 ,message=null,[EMAIL
RE: [JBoss-user] EJBQL = for dates
Another option would be to reverse the sense of your comparison: (x = y) == (y x) Then you can use the standard operator. Dan. -- Danny Yates -Original Message- From: Simone Milani [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 13:42 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] EJBQL = for dates Thanks, I guess another option would be to use JBoss-QL. Am I correct? Thanks Simone - Original Message - From: Ingo Bruell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 11:08 AM Subject: AW: [JBoss-user] EJBQL = for dates -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, you can not use '=' or '=' with attributes of type date only '=', '', '' and '' are allowed like the message said. If you need such behavior, you could combine them with an 'or' or 'and' operator. I am trying to use = and = in my EJB-QL and I get the following error: org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT OBJECT(o) FROM MDSKeyVector o WHERE o.className = ?1 AND o.currency = ?2 AND o.instance = ?3 AND o.process = ?4 AND o.location = ?5 AND o.businessArea = ?6 AND o.name = ?7 AND o.asOfDate = ?8 AND o.asOfDate = ?9'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered = at line 1, column 19 5. Was expecting one of: ... ... = ... ... ) Is it not leagl EJB-QL? Also note that the above works with just and best regards Ingo Bruell - - - --- [EMAIL PROTECTED] ICQ# 40377720 Oldenburg PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC GermanyPGP-Public-Key available at pgpkeys.mit.edu -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.8 for non-commercial use http://www.pgp.com iQA/AwUBPvlmbI/nxkgWnuX8EQLWNACbBcdIbEFtnuotkm0H43NyfgLK2wAAoPjJ Nui6g8t+gdvS1cnYC6kCNBa5 =yI/E -END PGP SIGNATURE- --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] MBean deployment ignores depends tag
Alex, Are the class files from the supporting JARs loaded dynamically? Are they loaded using Class.forName()? I've seen instances where this doesn't work under JBoss. I guess this is due to the vaguaries of the J2EE spec with regard to ClassLoaders. Try: Thread.currentThread().getContextClassLoader().loadClass(name).newInstance (); (Although there's an argument which says keeping the supporting JARs in the EAR file is the best place for them...) Rgds, Dan. -- Danny Yates -Original Message- From: Alex Hornby [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 10:12 To: jboss-user Cc: [EMAIL PROTECTED] Subject: Re: [JBoss-user] MBean deployment ignores depends tag Hi David, Just to say thanks for the suggestions. Packaging the ejb jar and -service.xml into a .EAR worked well. The one extra thing I had to do was package some support jars into the EAR as well instead of installing them in deploy/../lib, otherwise I got class not found errors. Cheers, Alex. On Wed, 2003-06-18 at 18:36, Alex Hornby wrote: Hi David, After reading your and Scotts replies I've packaged the mbean classes and -service.xml into a .sar to try to get the classes loaded. I have a problem that both my mbean .sar and my ejb .jar both need to use the EJB interfaces, so I've packaged the interfaces into both the .sar and the ejb .jar. This cause problems with duplicate class errors like below. There is obviously a better way to do this - do I need to create a separare interfaces .jar? If so where would I deploy it to? TIA, Alex. 18:27:36,126 WARN [ClassLoadingTask] Duplicate class found: com.anvil.ate.marke t.interfaces.OrderBookData Current CS: (file:/home/alex/output/i686-pc-linux-gnu/ate-head/release/support/j boss/default/tmp/deploy/home/alex/output/i686-pc-linux-gnu/ate-head/release/ supp ort/jboss/default/deploy/ejb-anvil-market.jar/31.ejb-anvil-market.jar no certif icates) Duplicate CS: (file:/home/alex/output/i686-pc-linux-gnu/ate-head/release/support /jboss/default/tmp/deploy/home/alex/output/i686-pc-linux-gnu/ate-head/releas e/su pport/jboss/default/deploy/anvil-market.sar/12.anvil-market.sar no certificates ) On Tue, 2003-06-17 at 22:07, David Jencks wrote: To expand a little on Scott's answer, In jb 3.2 and earlier, you have to have the mbean's class available before you try to deploy the mbean. When you deploy the mbean, it is created and the attributes are set. Then the dependency stuff starts, so create and start are not called until the needed mbeans are created and started. In jb4, if you try to deploy an mbean before its class is deployed, it will wait and deploy when the class becomes available (and undeploy when the class is removed). Also IIRC, there is a *-service.xml top level depends tag that you can use to depend on other mbeans, to make the *-service.xml wait for the DeploymentInfo mbean for the needed jar file. (Also IIRC, the DeploymentInfo is an mbean only in jb4) david jencks /** * David Jencks * Partner * Core Developers Network * http://www.coredevelopers.net **/ On 2003.06.09 09:37 Alex Hornby wrote: On Mon, 2003-06-09 at 14:25, Nicholas wrote: Can you send them again ? I could not find them in the archive. Hmmm, looks like the sourceforge archive strips off attachments. Here is the body of my reply to Scott and the attachment again: I've attached a gzip'd jboss log from a jboss 3.2.1 startup showing that the jboss-anvilmarket2-service.xml file is deployed before any of the EJBs in the ejb-anvil-market.jar are deployed, resulting in class not found error. I think the depends tags in jboss-anvilmarket2-service.xml should make the mbean deployment wait until after the named EJB has deployed, however this is not happening. The very same ejb jar and -service.xml work fine if I force the deployment order by copying them into the deploy directory manually one by one. Cheers, Alex. ?xml version=1.0 encoding=UTF-8? server classpath codebase=lib archives=quickfix.jar/ mbean code=com.anvil.ate.market.common.ApplicationConstants name=com.anvil.ate.market:service=ApplicationConstants dependsjboss:service=Naming/depends dependsjboss.j2ee:jndiName=market/MarketData,service=EJB/depends attribute name=ServerNamelocalhost/attribute attribute name=InOrderQinboundOrderQueue/attribute attribute name=InQuoteQinboundQuoteQueue/attribute attribute name=InSessionQinboundSessionQueue/attribute attribute name=OutQoutboundQueue/attribute /mbean /server --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage
RE: [JBoss-user] Run a class onStartup
I guessed at: http://java.sun.com/jmx How much more public would you like?! ;-) Rgds, Dan. -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 15:36 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Thanks Sebastien You're right The big problem is I don´t have documentation about this Specification I think that this subjects can be more public, more easy to find. Regards... Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 8:35 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Astie... I just created this class following theses steps: 1) I created a Interface with init(),start(), stop(),detroy() methods. 2) I created a Class called Ebony , which implements the interface above. 3) I made all implementations nested to this class works fine. 4) I made an special file called my_mbean.xml describing my special MBean this way: ?xml version=1.0 encoding=UTF-8? server mbean code=com.argos.util.jmx.Ebony name=DefaultDomain:service=ebony/ /server Where Ebony is my Class where the implementation was made. 5) I Deploy it 6) I get this error: 19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope ration 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: none Incompletely deployed packages: [EMAIL PROTECTED] { url=file:/C:/jboss/server/defaul t/deploy/ebony_service.xml } deployer: [EMAIL PROTECTED] status: Deployment FAILED reason: Class does not expose a management interface : com.argos.util.jmx.Ebony; - nested throwable: (javax.management.NotCompliantMB eanException: Class does not expose a management interface: com.argos.util.jmx.E bony) state: FAILED watch: file:/C:/jboss/server/default/deploy/ebony_service.xml lastDeployed: 1056408707513 lastModified: 1056408708000 mbeans: ]MBeans waiting for classes: none MBeans waiting for other MBeans: none 7) I made the copy of Jar file to de Lib directory of my default configuration Server... Have other more simpler way that this above? Any Idea? If possible can you send a example of this declaration inside jboss configuration file? Regards Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 6:30 PM Subject: RE: [JBoss-user] Run a class onStartup Hello Edgar, The obvious way to start a process at startup is to wrap your class in an MBean and declare the MBean in user-service.xml -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:07 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Run a class onStartup Hi Folks... Can I put a simple .class to run in JBoss Startup? For example, to start a SessionBean automaticlly... Any Idea? Regards Edgar --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage
RE: [JBoss-user] Developing and debuging
You could always move to WebSphere. I've seen that take upwards of an hour to deploy things! :-) -- Danny Yates -Original Message- From: Peng Zhao [mailto:[EMAIL PROTECTED] Sent: 17 June 2003 22:40 To: [EMAIL PROTECTED] Subject: [JBoss-user] Developing and debuging I met a big problem when developing and debuging. If I deploy the application as a war file, the jboss needs about 30 seconds to deploy it. Although it is not too long, for developing and debuging it is not affordable! The time for waiting is longer than the time for fixxing the bug! If I deploy the application as a directory (e.g. app.war), the .jsp can be reloaded when I replace a .jsp file in the directory. But the .class file can not be updated once it has run. It seems the jboss has a cache for the loaded .class file. Because the debuging-deploying is so slow, I wasted a lot of time for even fixxing a small bug. Furthermore, the .jsp is so slow when first loaded from the web-client. Is that usual? Thanks! Peng --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] EJB reference to external EJB
Title: Message Seems pretty straight to me. -- Danny Yates -Original Message-From: Burns, Jamie [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:48To: '[EMAIL PROTECTED]'Subject: RE: [JBoss-user] EJB reference to external EJB Thanks for your replies Scott and Dan. My understanding of what is being said... I have an EJB 1 in EAR A that wants to reference EJB 2 in EAR B where both EARs are deployed in the same VM. According to the EJB spec, l cant use local interfaces to do this because the specs ejb-local-ref doesnt accomdate this. According to the EJB spec, l CAN use remote interfaces to do this because ejb-ref does accomodate this. When l use remote interfaces to create the link between the two EJB's, l use ejb-ref in EJB 1's ejb-jar.xml to reference the remote interface of EJB 2. I also use ejb-ref/jndi-name in EJB 1's jboss.xml to reference the JNDI name in the global namespace of EJB 2's remote interface. Because both applications are in the same VM, JBoss uses the local interfaces of EJB 2 instead of the remote interfaces. So EJB 1's deployment descriptors would be, [ejb-jar.xml] entity ejb-nameEJB1/ejb-name ... ejb-ref ejb-ref-nameejb/EJB2/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homecom.company.EJB2RemoteHome/home remotecom.company.EJB2Remote/remote /ejb-ref /entity [jboss.xml] entity ejb-nameEJB1/ejb-name ... ejb-ref ejb-ref-nameejb/EJB2/ejb-ref-name jndi-nameEJB2RemoteHome/jndi-name /ejb-ref /entity And EJB 2's descriptors would be, [ejb-jar.xml] session ejb-nameEJB2/ejb-name homecom.company.EJB2RemoteHome/home remotecom.company.EJB2Remote/remote ... /session [jboss.xml] session ejb-nameEJB2/ejb-name jndi-nameEJB2RemoteHome/jndi-name ... /session Is this correct? Thanks -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 17, 2003 4:52 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] EJB reference to external EJB This cannot be done, the ejb-link has to refer to an ejb in the same application. The overhead introduced by the remote interface is optimized away by default so its a minor performance issue when the caller and callee are in the same vm. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Burns, Jamie To: '[EMAIL PROTECTED]' Sent: Tuesday, June 17, 2003 4:37 AM Subject: RE: [JBoss-user] EJB reference to external EJB Ok. That works. Thanks Dan. Now l am using remote interfaces between applications in the same VM. In this situation l want the performance benefits of using local interfaces. Ive had a look in the EJB spec and there doesnt seem to be anything in there to say an application cant have a local ref to an EJB in another application in the same VM. Im assuming the ejb-link element is available as a convenience. Is anyone able to provide some ejb-jar.xml and jboss.xml that shows an EJB in one application with a local ref to an EJB in another application in the same VM? Thanks. This electronic mail system is used for information purposes and is not intended to form any legal contract or binding agreement. The content is confidential and may be legally privileged. Access by anyone other than the addressee(s) is unauthorised and any disclosure, copying, distribution or any other action taken in reliance on it is prohibited and maybe unlawful All incoming and outgoing e-mail communications and attachments are scanned automatically by software designed to detect and remove any material containing viruses or other unauthorised content. While we undertake best endeavours to ensure that this content checking software is up to date, recipients should take steps to assure themselves that e-mails received are secure. *** _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K
RE: [JBoss-user] EJB reference to external EJB
Title: Message Hi, I would guess you should be using a remote reference, not a local reference. Rgds, Dan. -- Danny Yates -Original Message-From: Burns, Jamie [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 17:33To: [EMAIL PROTECTED]Subject: [JBoss-user] EJB reference to external EJB Im trying to link an EJB to an EJB deployed in another application within JBoss. JBoss Administration and Developement (2nd Ed) says under "EJB References with jboss.xml and jboss-web.xml" (pg 110 of Naming on JBoss...) "The ejb-link element cannot be used to refer to EJB's in another enterprise application. If your ejb-ref needs to access an external EJB, you can specify the jndi name of the deployed EJB home using the jboss.xml ejb-ref/jndi-name element" So l have used the following in jboss.xml entity ejb-nameHistoryEntity/ejb-namejndi-nameHistoryEntityRemoteHome/jndi-namelocal-jndi-nameHistoryEntityLocalHome/local-jndi-nameejb-local-ref ejb-local-ref-nameejb/SequenceSession/ejb-local-ref-namejndi-nameSequenceSessionLocalHome/jndi-name/ejb-local-ref /entity In my ejb-jar.xml l have entity ejb-nameHistoryEntity/ejb-name ... ejb-local-ref ejb-ref-nameejb/SequenceSession/ejb-ref-nameejb-ref-typeSession/ejb-ref-typelocal-homecom.newellandbudge.commons.ejb.common.SequenceSessionLocalHome/local-homelocalcom.newellandbudge.commons.ejb.common.SequenceSessionLocal/local/ejb-local-ref /entity The SequenceSession EJB is defined in the jboss.xml and ejb-jar.xml of another EAR as [jboss.xml] session ejb-nameSequenceSession/ejb-namejndi-nameSequenceSessionRemoteHome/jndi-namelocal-jndi-nameSequenceSessionLocalHome/local-jndi-name /session [ejb-jar.xml] session ejb-nameSequenceSession/ejb-name homecom.newellandbudge.commons.ejb.common.SequenceSessionRemoteHome/home remotecom.newellandbudge.commons.ejb.common.SequenceSessionRemote/remote local-homecom.newellandbudge.commons.ejb.common.SequenceSessionLocalHome/local-home localcom.newellandbudge.commons.ejb.common.SequenceSessionLocal/local ejb-classcom.newellandbudge.commons.ejb.SequenceSessionBean/ejb-class session-typeStateless/session-type .../session When the EAR with HistoryEntity is deployed l get following DeploymentException 16:48:23,812 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=HistoryEntityRemoteHome,service=EJBorg.jboss..deployment.DeploymentException: Local references currently require ejb-link at org.jboss.ejb.Container.setupEnvironment(Container.java:876) at org.jboss.ejb.Container.startService(Container.java:568) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:325) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 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:549) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController..java:966) at $Proxy11.start(Unknown Source) Firstly, the message in this exception seems to contradict the statement about the ejb-link element. Secondly, the EJB spec says that the ejb-link element can only be used to link to another EJB in the same ejb-jar or another jar in the same application. If l follow the advise of the DeploymentException my deployment fails because the SequenceSession EJB is not in the same ejb-jar or application as my HistoryEntity EJB. I cant see a way forward with this situation. I dont want to have to deploythe SequenceSession EJBin every application that uses it. What is the solution to this problem? Or could someone shed some more light on the use of ejb-ref/jndi-name in jboss.xml? (Im using JBoss 3.2.1) Thanks This electronic mail system is used for information purposes and is not intended to form any legal contract or binding agreement. The content is confidential and may be legally privileged. Access by anyone other than the addressee(s) is unauthorised and any disclosure, copying, distribution or any other action taken in reliance on it is prohibited and maybe unlawful All incoming and outgoing e-mail communications and attachments are scanned automatically by software designed to detect and remove any material containing viruses or other unauthorised content. While we undertake best
RE: [JBoss-user] EJB reference to external EJB
Title: Message Hi, I'm not up on the spec per se, but my understanding is that local references should only be used in the same JAR file (or EAR file) - essentially, within the same classloader. I believe that in cases such as this JBoss essentially uses local references any way, so the overhead should be minimal. Dan. -- Danny Yates -Original Message-From: Burns, Jamie [mailto:[EMAIL PROTECTED] Sent: 17 June 2003 12:37To: '[EMAIL PROTECTED]'Subject: RE: [JBoss-user] EJB reference to external EJB Ok. That works. Thanks Dan. Now l am using remote interfaces between applications in the same VM. In this situation l want the performance benefits of using local interfaces. Ive had a look in the EJB spec and there doesnt seem to be anything in there to say an application cant have a local ref to an EJB in another application in the same VM. Im assuming the ejb-link element is available as a convenience. Is anyone able to provide some ejb-jar.xml and jboss.xml that shows an EJB in one application with a local ref to an EJB in another application in the same VM? Thanks. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 10:31 AMTo: [EMAIL PROTECTED]Subject: RE: [JBoss-user] EJB reference to external EJB Hi, I would guess you should be using a remote reference, not a local reference. Rgds, Dan. -- Danny Yates -Original Message-From: Burns, Jamie [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 17:33To: [EMAIL PROTECTED]Subject: [JBoss-user] EJB reference to external EJB Im trying to link an EJB to an EJB deployed in another application within JBoss. JBoss Administration and Developement (2nd Ed) says under "EJB References with jboss.xml and jboss-web.xml" (pg 110 of Naming on JBoss...) "The ejb-link element cannot be used to refer to EJB's in another enterprise application. If your ejb-ref needs to access an external EJB, you can specify the jndi name of the deployed EJB home using the jboss.xml ejb-ref/jndi-name element" So l have used the following in jboss.xml entity ejb-nameHistoryEntity/ejb-namejndi-nameHistoryEntityRemoteHome/jndi-namelocal-jndi-nameHistoryEntityLocalHome/local-jndi-nameejb-local-ref ejb-local-ref-nameejb/SequenceSession/ejb-local-ref-namejndi-nameSequenceSessionLocalHome/jndi-name/ejb-local-ref /entity In my ejb-jar.xml l have entity ejb-nameHistoryEntity/ejb-name ... ejb-local-ref ejb-ref-nameejb/SequenceSession/ejb-ref-nameejb-ref-typeSession/ejb-ref-typelocal-homecom.newellandbudge.commons.ejb.common.SequenceSessionLocalHome/local-homelocalcom.newellandbudge.commons.ejb.common.SequenceSessionLocal/local/ejb-local-ref /entity The SequenceSession EJB is defined in the jboss.xml and ejb-jar.xml of another EAR as [jboss.xml] session ejb-nameSequenceSession/ejb-namejndi-nameSequenceSessionRemoteHome/jndi-namelocal-jndi-nameSequenceSessionLocalHome/local-jndi-name /session [ejb-jar.xml] session ejb-nameSequenceSession/ejb-name homecom.newellandbudge.commons.ejb.common.SequenceSessionRemoteHome/home remotecom.newellandbudge.commons.ejb.common.SequenceSessionRemote/remote local-homecom.newellandbudge.commons.ejb.common.SequenceSessionLocalHome/local-home localcom.newellandbudge.commons.ejb.common.SequenceSessionLocal/local ejb-classcom.newellandbudge.commons.ejb.SequenceSessionBean/ejb-class session-typeStateless/session-type .../session When the EAR with HistoryEntity is deployed l get following DeploymentException 16:48:23,812 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=HistoryEntityRemoteHome,service=EJBorg.jboss...deployment.DeploymentException: Local references currently require ejb-link at org.jboss.ejb.Container.setupEnvironment(Container.java:876) at org.jboss.ejb.Container.startService(Container.java:568) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:325) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.in
RE: [JBoss-user] Multiple WARs; classloader ClassNotFoundExceptions
Title: Message David, AFAIK you should be able to have: app.ear +-- shared-utils.jar | +-- /com/dummy/my.class +-- first.war | +-- /META-INF/manifest.mf - Class-Path: shared-utils.jar +-- second.war +-- /META-INF/manifest.mf - Class-Path: shared-utils.jar This also applies to EJB jar files, etc. - they can use the Class-Path to refer to a shared jar. There is no need to reference the shared jar in your application.xml (unless it also happens to be a bean jar, etc.) I am not sure if JBoss' UnifiedClassLoader would interfere with this or not. Frankly, the UCL scares me silly - I like the idea of being able to deploy different versions of the same library (say, Struts) in different EAR files if I wish to - so I invariable add a jboss-app.xml to my EAR to turn UCL "off". One use of this technique would be to take all the libraries out of the WAR file lib directory and move them into the EAR. This would prevent duplicate copies of libraries, etc. Another thing to keep in mind is that if you use Class.forName() you may have classloading problems. (Again, this seems particularly prevalent with JBoss - although JBoss is still spec compliant, AFAIK). I *think* the correct technique is: Class clazz =Thread.currentThread().getContextClassLoader().loadClass(className); Object obj = clazz.newInstance(); Hope that helps, Dan. -- Danny Yates -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 14:07To: [EMAIL PROTECTED]Subject: [JBoss-user] Multiple WARs; classloader ClassNotFoundExceptionsHi,Is it possible to have multiple WARs in an EAR which share classes? I have tried this on a project we're on, with what seemed like all of the correct module declarations in the application.xml and also w/ a Class-Path entry in the manifests of the WARs. I've tried several permutations of this idea and had continuous problems w/ ClassNotFoundExceptions and "no classLoader found for class ..." exceptions.Is this something that simply doesn't work? I would have thought that running under JBoss-Jetty, everything would be using the UnifiedClassLoader, and thus all the classes would be available.Are there certain classes which simply MUST be in the WAR file itself?Dave _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _
RE: [JBoss-user] JBoss XA transaction with WebSphere MQ
In MQSeries 5.2, you could only use the XAConnectionFactory if you configured the MQSeries JMS API to use 'bindings mode' instead of 'client mode'. The upshot of this is that the MQSeries Queue Manager and your Application Server needed to be on the same box, because bindings mode uses shared memory to communicate. Rgds, Dan. -- Danny Yates -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 08 June 2003 08:07 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ Thanks for the reply. I am working on a complete readme to configure WebSphere MQ in JBoss. I will submit it as a patch once I am done, no problem. I am not sure to understand what you are referring to when talking about JNDI. If this is about bringing the WebSphere MQ queue/topic and connection factory object in the JBoss namespace, I actually wrote my own custom MBeans, wrapped them in a sar file and deploy it. The nice thing about it is that I have a jboss-service.xml in the sar which is similar to the jbossmq-destinations file and which allows me to declare as many WSMQ object as I need. The xa-connectionfalse/xa-connection is something that I have to do to have a WS MQ MDB working. I am not able to make the XA connection factory of WS MQ working. If I try to use it, the MDB never receives any messages, I am not sure to know why yet. Any suggestions at what I might need to look at? The MDB gets deployed without any errors; my client application is sending the message fine (I can see them in the WSMQ queue through the WSMQ admin tool), but the MDB never receives them. I think something wrong is happening because JBoss does not shutdown properly after that. It hangs in the stopping of the MDB, I think. I managed to create a new JMS resource adapter as you suggested. It seems to work fine. I need to check if I can send a message to a JBoss and a WSMQ queue using my two resource adapters but all in one transaction. I did experience some problems if I change the following value in my new JMS resource adapter: adapter-display-nameJMS Adapter/adapter-display-name If it is not set to JMS Adapter, then JBoss complains about the deployment being incomplete because of some dependencies with ConnectionManager and pool (or something like that. I can try to find the exact message if needed). Any ideas why? Thanks again for the help. Thomas -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 8:07 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ Hi Thomas, Sounds like you have it nearly correct. If you can post the working configuration as a patch at www.sf.net/projects/jboss I will include them in docs/examples/jms, I don't have MQSeries so I can't test it. For JNDI you have three options. 1) Bind the external context into jboss's jndi 2 Use the following attribute in the provider config attribute name=ProviderUrlwhatever/ProviderUrl 3) Write your own provider adapter Re: xa-connectionfalse/xa-connection You will need to specify this when the connection factory you chose in the JMS provider is not an XAConnectionFactory. Re: JMS resource adapter You don't need to change ra.xml, these are just default values. If you want a new JMS resource adapter, you should make a new configuration (just like when you make a new data source). You can specify the provider adapter as a property on the connection manager. 3.2 style - 3.0 is too long winded :-) but the idea is the same. !-- JMS XA Resource adapter, use this to get transacted JMS in beans -- tx-connection-factory jndi-nameMQJmsXA/jndi-name xa-transaction/ adapter-display-nameMQ JMS Adapter/adapter-display-name config-property name=JmsProviderAdapterJNDI type=java.lang.Stringjava:MQJMSProvider/config-property config-property name=SessionDefaultType type=java.lang.Stringjavax.jms.Topic/config-property security-domain-and-applicationJmsXARealm/security-domain-and-applica tion /tx-connection-factory Regards, Adrian Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 06 June 2003 05:59 To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss XA transaction with WebSphere MQ I have been playing with JBoss 3.0.5 and WebSphere MQ 5.3 (ex-MQSeries) for a while now. I managed to create a new JMS provider in JBoss for WebSphere MQ: In jms-service.xml, duplicate the org.jboss.jms.jndi.JMSProviderLoader mbean. Change the ProviderName to WebSphereMQJMSProvider, change the QueueFactoryRef to WSMQConnectionFactory (I also changed the TopicFactoryRef to WSMQConnectionFactory, but I did not play with topics). I am passing the details on how to add the WSMQConnectionFactory to the JBoss JNDI space. I managed to create a new configuration
RE: [JBoss-user] JBoss XA transaction with WebSphere MQ
Title: Message I'm afraid I never tried MQ with JBoss at all (XA or otherwise). We were using WebLogic and doing JTS transactions in client mode against a remote MQ server. -- Danny Yates -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 13:11To: [EMAIL PROTECTED]Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ Thanks for the information. I went through this pain already until I discovered that with MQ 5.3, service pack 3 (CSD03) and what IBM is calling the Extended Transaction Client, you are now supposed to be able to make XA work with the 'client mode' of the MQ JMS API (and this is what I am currently trying). Did you manage to make XA work with MQ 5.2 binding mode and JBoss? I tried that as well with MQ 5.3 and I get the same problem as I currently have, the MDB is not receiving any messages. If you have a configuration which is working, I am interested, if possible, to get some details. Thanks Thomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 09, 2003 3:47 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ In MQSeries 5.2, you could only use the XAConnectionFactory if you configured the MQSeries JMS API to use 'bindings mode' instead of 'client mode'. The upshot of this is that the MQSeries Queue Manager and your Application Server needed to be on the same box, because bindings mode uses shared memory to communicate. Rgds, Dan. -- Danny Yates -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 08 June 2003 08:07 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ Thanks for the reply. I am working on a complete readme to configure WebSphere MQ in JBoss. I will submit it as a patch once I am done, no problem. I am not sure to understand what you are referring to when talking about JNDI. If this is about bringing the WebSphere MQ queue/topic and connection factory object in the JBoss namespace, I actually wrote my own custom MBeans, wrapped them in a sar file and deploy it. The nice thing about it is that I have a jboss-service.xml in the sar which is similar to the jbossmq-destinations file and which allows me to declare as many WSMQ object as I need. The xa-connectionfalse/xa-connection is something that I have to do to have a WS MQ MDB working. I am not able to make the XA connection factory of WS MQ working. If I try to use it, the MDB never receives any messages, I am not sure to know why yet. Any suggestions at what I might need to look at? The MDB gets deployed without any errors; my client application is sending the message fine (I can see them in the WSMQ queue through the WSMQ admin tool), but the MDB never receives them. I think something wrong is happening because JBoss does not shutdown properly after that. It hangs in the stopping of the MDB, I think. I managed to create a new JMS resource adapter as you suggested. It seems to work fine. I need to check if I can send a message to a JBoss and a WSMQ queue using my two resource adapters but all in one transaction. I did experience some problems if I change the following value in my new JMS resource adapter: adapter-display-nameJMS Adapter/adapter-display-name If it is not set to "JMS Adapter", then JBoss complains about the deployment being incomplete because of some dependencies with ConnectionManager and pool (or something like that. I can try to find the exact message if needed). Any ideas why? Thanks again for the help. Thomas -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED]] Sent: Friday, June 06, 2003 8:07 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ Hi Thomas, Sounds like you have it nearly correct. If you can post the working configuration as a patch at www.sf.net/projects/jboss I will include them in docs/examples/jms, I don't have MQSeries so I can't test it. For JNDI you have three options. 1) Bind the external context into jboss's jndi 2 Use the following attribute in the provider config attribute name="ProviderUrl"whatever/ProviderUrl 3) Write your own provider adapter Re: xa-connectionfalse/xa-connection You will need to specify this when the connection factory you chose in the JMS provider is not an XAConnectionFactory. Re: JMS resource adapter You don't need to change ra.xml, these are just default values. If you want a new JMS resource adapter, you should make a new configuration (just like when you make a new data source). You can specify the provider adapter as a property on the connection manager. 3.2 style - 3.0 is too long win
RE: [JBoss-user] JBoss XA transaction with WebSphere MQ
Title: Message A while back I had it working in WebLogic 6 with JTS transaction (NOT XA transactions). At least I think it was JTS transactions. Essential you set the transactional flag to true when creating a session, and have to do session.commit for your writes to appear. This works in WLS 6.1 sp 4 onwards using their MessagingBridge (they will tell you they back-ported the MessagingBridge to sp2 or sp3. They only did half a job - it only works from sp4), or WLS7. In WLS7, I think MDBs have properties which allow you to connect them to any JNDI tree using a URL and Context Factory. In this case, you use the Sun FileSystem JNDI implementation and IBM's jmsadmin (???) tool to manage the FileSystem JNDI. There are plenty of papers on the web about doing this. Good luck! Dan. -- Danny Yates -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 14:52To: [EMAIL PROTECTED]Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ WebLogic is one of my options as well. Does it mean that you managed to have a MQ JMS provider working within WebLogic (including having Message Driven Bean deployed listening to MQ queues/topics) with XA/JTS support? If yes, I am interested to know which version of WebLogic you are using and any kind of information you can share on setting this up in WebLogic (I do not have too much experience with WebLogic, but I was going to try that, at some point). Thomas -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:36 AMTo: [EMAIL PROTECTED]Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ I'm afraid I never tried MQ with JBoss at all (XA or otherwise). We were using WebLogic and doing JTS transactions in client mode against a remote MQ server. -- Danny Yates -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 13:11To: [EMAIL PROTECTED]Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ Thanks for the information. I went through this pain already until I discovered that with MQ 5.3, service pack 3 (CSD03) and what IBM is calling the Extended Transaction Client, you are now supposed to be able to make XA work with the 'client mode' of the MQ JMS API (and this is what I am currently trying). Did you manage to make XA work with MQ 5.2 binding mode and JBoss? I tried that as well with MQ 5.3 and I get the same problem as I currently have, the MDB is not receiving any messages. If you have a configuration which is working, I am interested, if possible, to get some details. Thanks Thomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 09, 2003 3:47 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ In MQSeries 5.2, you could only use the XAConnectionFactory if you configured the MQSeries JMS API to use 'bindings mode' instead of 'client mode'. The upshot of this is that the MQSeries Queue Manager and your Application Server needed to be on the same box, because bindings mode uses shared memory to communicate. Rgds, Dan. -- Danny Yates -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 08 June 2003 08:07 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ Thanks for the reply. I am working on a complete readme to configure WebSphere MQ in JBoss. I will submit it as a patch once I am done, no problem. I am not sure to understand what you are referring to when talking about JNDI. If this is about bringing the WebSphere MQ queue/topic and connection factory object in the JBoss namespace, I actually wrote my own custom MBeans, wrapped them in a sar file and deploy it. The nice thing about it is that I have a jboss-service.xml in the sar which is similar to the jbossmq-destinations file and which allows me to declare as many WSMQ object as I need. The xa-connectionfalse/xa-connection is something that I have to do to have a WS MQ MDB working. I am not able to make the XA connection factory of WS MQ working. If I try to use it, the MDB never receives any messages, I am not sure to know why yet. Any suggestions at what I might need to look at? The MDB gets deployed without any errors; my client application is sending the message fine (I can see them in the WSMQ queue through the WSMQ admin tool), but the MDB never receives them. I think something wrong is happening because JBoss does not shutdown properly after that. It hangs in the stopping of the MDB, I
RE: [JBoss-user] JBoss XA transaction with WebSphere MQ
Title: Message A while back I had it working in WebLogic 6 with JTS transaction (NOT XA transactions). At least I think it was JTS transactions. Essential you set the transactional flag to true when creating a session, and have to do session.commit for your writes to appear. This works in WLS 6.1 sp 4 onwards using their MessagingBridge (they will tell you they back-ported the MessagingBridge to sp2 or sp3. They only did half a job - it only works from sp4), or WLS7. In WLS7, I think MDBs have properties which allow you to connect them to any JNDI tree using a URL and Context Factory. In this case, you use the Sun FileSystem JNDI implementation and IBM's jmsadmin (???) tool to manage the FileSystem JNDI. There are plenty of papers on the web about doing this. Good luck! Dan. -- Danny Yates -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 14:52To: [EMAIL PROTECTED]Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ WebLogic is one of my options as well. Does it mean that you managed to have a MQ JMS provider working within WebLogic (including having Message Driven Bean deployed listening to MQ queues/topics) with XA/JTS support? If yes, I am interested to know which version of WebLogic you are using and any kind of information you can share on setting this up in WebLogic (I do not have too much experience with WebLogic, but I was going to try that, at some point). Thomas -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:36 AMTo: [EMAIL PROTECTED]Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ I'm afraid I never tried MQ with JBoss at all (XA or otherwise). We were using WebLogic and doing JTS transactions in client mode against a remote MQ server. -- Danny Yates -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 13:11To: [EMAIL PROTECTED]Subject: RE: [JBoss-user] JBoss XA transaction with WebSphere MQ Thanks for the information. I went through this pain already until I discovered that with MQ 5.3, service pack 3 (CSD03) and what IBM is calling the Extended Transaction Client, you are now supposed to be able to make XA work with the 'client mode' of the MQ JMS API (and this is what I am currently trying). Did you manage to make XA work with MQ 5.2 binding mode and JBoss? I tried that as well with MQ 5.3 and I get the same problem as I currently have, the MDB is not receiving any messages. If you have a configuration which is working, I am interested, if possible, to get some details. Thanks Thomas _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _
RE: [JBoss-user] Bug in 3.2.1?
ObjectNotFoundException is a subclass of FinderException. You can catch either: try { find(...) } catch (FinderException fe) { // something went wrong } or try { find(...) } catch (ObjectNotFoundException onfe) { // could not find object - do something clever, like create it } catch (FinderException fe) { // something else went wrong - perhaps a wrapped SQLException? } -- Danny Yates -Original Message- From: Jon Haugsand [mailto:[EMAIL PROTECTED] Sent: 06 June 2003 15:42 To: [EMAIL PROTECTED] Subject: [JBoss-user] Bug in 3.2.1? Look at this fragment. The call 'findAktivtByIsin' is a finder in another bean and it fails (just check the stacktrace). However, it fails with ObjectNotFoundException: No such entity. Why is that? If it does not exist, shouldn't it fail with FinderException? public void checkConsistency() throws InconsistentDataException ... try { vp = EjbHomeFactory.getFactory().lookUpVerdipapir().findAktivtByIsin( this.getIsin() ); } catch( final FinderException e ) { cat.warn( Konsistenssjekk feilet. ); throw new InconsistentDataException( e ); } Detail exception is: javax.ejb.ObjectNotFoundException: No such entity! at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityC omm and.java:46) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager. jav a:591) at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager .ja va:312) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity( Cac hedConnectionInterceptor.java:301) at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:627) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .ja va:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine r.j ava:998) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.jav a:8 8) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync hro nizationInterceptor.java:188) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome( Cac hedConnectionInterceptor.java:215) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.jav a:8 8) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt erc eptor.java:91) at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor .ja va:61) at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInt erc eptor.java:28) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .ja va:88) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. jav a:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:9 2) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryF ind erInterceptor.java:93) at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:477) at org.jboss.ejb.Container.invoke(Container.java:694) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyF act ory.java:272) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) at $Proxy59.findAktivtByIsin(Unknown Source) at norgesbank.bank.sil.entiteter.pant.PantBean.checkConsistency(PantBean.java:2 167 ) -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients