[JBoss-dev] [ jboss-Bugs-925597 ] Problem with JDBCLoadEntityCommand in 3.2.4
Bugs item #925597, was opened at 2004-03-29 23:35 Message generated for change (Comment added) made by loubyansky You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=925597&group_id=22866 Category: JBossCMP Group: v3.2 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Jacy Grannis (jacyg) Assigned to: Alexey Loubyansky (loubyansky) Summary: Problem with JDBCLoadEntityCommand in 3.2.4 Initial Comment: There seems to be a problem with using finders in 3.2.4. After the finder has been run, the loader iteratively calls sql statements to load each individual bean, and ends up generating quite a lot of unnecessary sql statements. I'm running 3.2.4rc1 under java 1.4.2_01-b06. I've included a snippet from my logs that illustrates the problem. The "Classes" bean (which is merely an example, I see the same behaviour with all my entity beans) has 4 fields, a Long primary key, a String name, a Long type_id, and a String description. I rather doubt that has much to do with it, since this behaviour doesn't exist in 3.2.1, but in case you were wondering. We are using the standard cmp configuration, with the exception of changing our strategy to "on-find" instead of "on-load". The observed behaviour makes 3.2.4 pretty much unusable for doing entity beans b/c it *seriously* slows things down. Let me know if you have any questions. (log messages attached, nothing snipped or anything, it's exactly as it showed up) -- >Comment By: Alexey Loubyansky (loubyansky) Date: 2004-07-14 21:05 Message: Logged In: YES user_id=543482 This was fixed in 3.2.5RC1. http://www.jboss.org/wiki/Wiki.jsp?page=CMPCleanReadAheadOnLoad Thanks. -- Comment By: Jacy Grannis (jacyg) Date: 2004-05-25 23:35 Message: Logged In: YES user_id=711020 at any rate, i don't see any point to keeping this open. i would, however, state that i also *really* don't see the point of the read-only option if it breaks all the loading strategy stuff. if you can't use your load groups or on-find, you lose *all* the benefits of having read-only...yeah, you're saving a lock, but you're vastly increasing the amount of work the server is doing because it has to go to the database n x m more times (where n is # of beans and m is # of read-only fields). which, i guess, is fine to not have the read-only option, but it becomes useful only to people who are using commit option A instead of being more broadly useful like it used to be and hopefully saving some computation time that is involved with acquiring and (maybe) waiting for bean locks. -- Comment By: Jacy Grannis (jacyg) Date: 2004-05-25 23:21 Message: Logged In: YES user_id=711020 fair enough...except that the jboss docs say that the read-only attribute on method-attributes is to prevent bean-locking, not to do anything to affect the caching behaviour... -- Comment By: Alexey Loubyansky (loubyansky) Date: 2004-05-25 23:20 Message: Logged In: YES user_id=543482 This is what called details as it's not the default config. This behaviour changed awhile ago. It is the same at least in 3.2.3. What is happenning is that a read-only (jboss.xml) invocation does not associate the target instance with the transaction and the instance is discarded and thrown away from the cache (unless commit option A) at the end of the invocation. Read-ahead cache is a cache per transaction. It means for read-only invocations, read-ahead cache is a cache per invocation. It is the same as running w/o transactions for read-only=false invocations. -- Comment By: Jacy Grannis (jacyg) Date: 2004-05-25 23:06 Message: Logged In: YES user_id=711020 yes. at one point, that was recommended. has that changed? -- Comment By: Alexey Loubyansky (loubyansky) Date: 2004-05-25 23:05 Message: Logged In: YES user_id=543482 Are you using the following in jboss.xml? get* true -- Comment By: Alexey Loubyansky (loubyansky) Date: 2004-05-25 22:55 Message: Logged In: YES user_id=543482 Like this? Iterator i = BUtil.getLocalHome().findAll().iterator(); while(i.hasNext()) { BLocal b = (BLocal)i.next(); log.info("b.name=" + b.getId() + " " + b.getName() + " " + b.getIntField()); } 22:48:48,531 DEBUG [B#findAll] Executing SQL: SELECT t0_o.id, t0_o.name, t0_o.intField, t0_o.dateField, t0_o.b inData, t0_o.A_FK FROM B t0_o 22:48:48,541 DEBUG [BBean] ejbLoad for 11 22:48:48,541 INFO [FacadeSessionBean] b.name=11 nu
[JBoss-dev] [JBoss IDE] - Re: about jboss IDE source code
I found it. I've been to that page, but I never used CVS, and didn't get correct meaning of "snapshot". So missed it. Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842141#3842141 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842141 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossWeb] - org.jboss.web.localhost.Engine] SingleSignOnContextConfig[/b
Project Duke's Bank Application selection 4.1.4 Package the WAR file. The ant War task also adds a WEB-INF directory ... Where is this directory? Here is the error I get when I deploy the Duke's Bank Application. I would create one if I knew where to put it. 2004-07-14 10:25:11,515 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] deploy, ctxPath=/bank, warUrl=file:/C:/j2sdk1.4.1_05/jboss/jboss-3.2.3/server/default/tmp/deploy/tmp58762JBossDukesBank.ear-contents/web-client.war/ 2004-07-14 10:25:12,218 ERROR [org.jboss.web.localhost.Engine] SingleSignOnContextConfig[/bank] Exception processing TLD at resource path /WEB-INF/struts-logic.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScanTld(SingleSignOnContextConfig.java:1171) at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScan(SingleSignOnContextConfig.java:1003) at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.start(SingleSignOnContextConfig.java:752) at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.lifecycleEvent(SingleSignOnContextConfig.java:255) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:549) at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy6.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:394) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.refl
[JBoss-dev] [JMS on JBoss (JMS/JBoss)] - Re: XA Messaging
Wrong forum. Use the user forum. This post will be deleted. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842137#3842137 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842137 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Pointcut expression for methods that take arrays as argu
This should work | execution(void java.lang.Object[],com.pkg.CustomObject[]) | | Don't forget that any class, even if it is in java.lang package must be fully qualified. Bill View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842134#3842134 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842134 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Pointcut expression for methods that take arrays as argument
I could'nt find it in the forums. Does anyone know how to frame a pointcut expression for a method such as POJO.methodOne(Object[] array, CustomObject[] array2); I need to fine grain every method in POJO so the generic stuff (..) will not work for me. thanks rajiv View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842129#3842129 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842129 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JMS on JBoss (JMS/JBoss)] - XA Messaging
Adrian et al., I'm publishing to a Topic during a transaction. The basic gist of execution is as follows: 1. Client calls method on SLSB 2. Do some stuff 3. Save data to db 4. Publish JMS message to clients that data has been updated 5. Do a little cleanup 6. SLSB method returns (i.e. transaction commits). Basically, the client is getting the JMS message that was published in step 4 and then immediately calls back to the server to get some data (part of which includes the data saved in step 3). My problem is that when a remote VM client requests the data, the initial transaction apparently hasn't comitted yet, so their request doesn't produce the results they expect. Apparently this happens _really_ fast (getting the message before the initial transaction commits). I've found that if I delay the remove client request 1 second after receiving the JMS message, the data is available in the DB. The publisher is using the UIL2XAConnectionFactory acquired from JNDI. Since it is XA, I was hoping that the sends wouldn't happen until the transaction commits. By the time the client received the message, the data _would_ be in the db, and the client could immediately request the data (instead of me waiting 1 second to do so). I'm using JBoss 3.2.3 w/ Hibernate/Postgresql. Is the fact that Postgres's JDBC driver is not XA causing me problems? I am using the SpringFramework's transaction support to ensure that the the data isn't commited to the DB until the transaction commits (by using the UserTransaction in the SLSB). This is working fine (i.e. data not available until transaction commits). The message should only be published when the transaction commits. Any ideas? Lost, Phar View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842127#3842127 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842127 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: Using JBossCache with WebLogic 8.1 and WebSphere 5.1
"mplesser" wrote : | There is one issue though: The moment you modify a node during a transaction it is replicated across all members of the cluster. | Not correct: I only replicate at the end of a TX. anonymous wrote : | Once you roll it back the 'original' state is correctly restored but if you rely on a TreeCacheListener you do receive 'nodeModified()' events which in my opinion you should not before the transaction is commited. | You're right. This is on the todo list. anonymous wrote : | Oh and pretty pretty please initialize the logger correctly in TreeCache.java - helps a lot with debugging spam ;) | What do you mean ? The super class MBeanSupport initializes the logger, looks correct to me. anonymous wrote : | About the errors you mentioned - the sources were written for JDK 1.5 where you have a different interface for method.invoke(). | Does it work with my changes ? anonymous wrote : | And there still seems to be a bug in TreeCache where i get a NullPointerException on a code that works fine with the 'production' release: | java.lang.NullPointerException | at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3080) | at org.jboss.cache.TreeCache.put(TreeCache.java:1649) | at org.jboss.cache.TreeCache.put(TreeCache.java:1632) | | How do you arrive at this one ? Bela View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842126#3842126 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842126 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [TODO -- DEVELOPMENT] - Re: checking out cvs
For JBoss 4.0 check out jboss-head. For 3.2 checkout jboss3.2 with the Branch3_2 branch. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842124#3842124 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842124 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: XML parsing problem with JBossCache
What I meant was that can you run "build.bat run.demo" from the jboss-cache that you have downloaded? If you can, then tree cache is started correctly in standalone mode. Hope this help, -Ben View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842123#3842123 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842123 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Build System] - Re: cvs build questions on jboss-head and jms
Scott, I don't get xdoclet-xdoclet under the thirdpart directory... Even when you browse the sources through the web you wouldn't find a xdoclet-xdoclet dir instead what u see is xdoclet/xdoclet . Is there something I'm missing. thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842115#3842115 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842115 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss IDE] - Re: about jboss IDE source code
Hi, See http://www.jboss.org/wiki/Wiki.jsp?page=JBossIDEBuild for details. Laurent. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842091#3842091 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842091 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss IDE] - Re: Can't create struts-config.xml
Hi, JBoss-IDE is not shipped with all the XDoclet modules. You have to add it by your-self. See FAQ to see how to upgrade XDoclet (it is the same process to add new modules). http://www.jboss.org/wiki/Wiki.jsp?page=JBossIDEGeneralFAQ Laurent. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842090#3842090 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842090 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss IDE] - Re: Expanded Deploy does not trigger Jboss deployment scanne
Hi, JBoss is not monitoring all the files in the expanded package. If I remember well, only descriptors are monitored, so you have to "touch" the descriptors to trigger the re-deployment. Laurent. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842088#3842088 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842088 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Security on JBoss] - Re: JBOSS - Embedded TOMCAT JAAS Failure
Fixed. The credentials are associated with a thread View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842078#3842078 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842078 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Deployers on JBoss (Deployers/JBoss)] - Classloading Question
I have a question concerning classloading in JBoss4. I'm trying to construct a RARDeployment programmatically, such that it picks up the jbosstestadapter.rar and creates the connection factory. I get the following error: anonymous wrote : 15:31:40,208 INFO [STDOUT] Registered RARDeployment | 15:31:40,218 INFO [STDOUT] Registered RARDeployment ... create | 15:31:40,218 ERROR [RARDeployment] Could not find ManagedConnectionFactory class | : org.jboss.test.jca.adapter.TestManagedConnectionFactory | java.lang.ClassNotFoundException: org.jboss.test.jca.adapter.TestManagedConnecti | onFactory | at java.net.URLClassLoader$1.run(URLClassLoader.java:199) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(URLClassLoader.java:187) | at java.lang.ClassLoader.loadClass(ClassLoader.java:289) | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) | at java.lang.ClassLoader.loadClass(ClassLoader.java:235) | at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDe | ployment.java:543) The code I have is pretty minimal (I create an MBeanServer programmatically) and it picks up my jbosstestadapter.rar, just looking through the logs and making sure it was there. | RARDeployment rd = new RARDeployment(); rd.setManagedConnectionFactoryClass("org.jboss.test.jca.adapter.TestManagedConnectionFactory"); | ObjectName oldName = new ObjectName("jboss.jca:name='jbosstestadapter.rar',service=RARDeployment"); | rd.setOldRarDeployment(oldName); | rd.setConnectionDefinition("javax.resource.cci.ConnectionFactory"); | ObjectName name = new ObjectName("jboss.jca:service=ManagedConnectionFactory,name='jbosstestadapter.rar'"); | server.registerMBean(rd, name); | System.out.println("Registered RARDeployment"); | server.invoke(name, "create", null, null); | System.out.println("Registered RARDeployment ... create"); | | server.invoke(name, "start", null, null); I don't think this is anything JCA-specific (although I may be wrong). I think there's something I need to do with the MBeanServer classloader or something? Thanks, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842075#3842075 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842075 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss IDE] - Re: about jboss IDE source code
http://sourceforge.net/projects/jboss View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842073#3842073 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842073 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] jboss-3.2 build.142 Build Successful
View results here -> http://tck2.jboss.com/cc/buildresults/jboss-3.2?log=log20040714124548Lbuild.142 BUILD COMPLETE - build.142Date of build: 07/14/2004 12:45:48Time to build: 11 minutes 5 secondsLast changed: 07/14/2004 12:25:48Last log entry: try to load CMR field from foreign key fields. if foreign keys are not loaded, load CMR with the load command. Unit Tests: (0)No Tests RunThis project doesn't have any tests Modifications since last build: (1)1.43.2.70modifiedloubyanskyserver/src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge/JDBCCMRFieldBridge.javatry to load CMR field from foreign key fields. if foreign keys are not loaded, load CMR with the load command.
[JBoss-dev] [JBossWeb] - How to map a URI to a directory on my filesystem
Hello everyone, I have been trying to figure out how to map incoming requests to http://localhost/imagebase to an exploded directory /home/imagebase which contains all of our images and related files. I have been packaging imagebase into a WAR, which has worked fine, but we are in need of using it as described above. I have had no luck in finding anything in the documentation or forums thus far. Thank you all in advance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842056#3842056 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842056 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] jboss-3.2 build.141 Build Successful
View results here -> http://tck2.jboss.com/cc/buildresults/jboss-3.2?log=log20040714112131Lbuild.141 BUILD COMPLETE - build.141Date of build: 07/14/2004 11:21:31Time to build: 12 minutes 37 secondsLast changed: 07/14/2004 10:58:02Last log entry: return EJB[Local]Object instead of pk, always look into read-ahead first. Unit Tests: (0)No Tests RunThis project doesn't have any tests Modifications since last build: (1)1.4.4.23modifiedloubyanskyserver/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCFindByPrimaryKeyQuery.javareturn EJB[Local]Object instead of pk, always look into read-ahead first.
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: XML parsing problem with JBossCache
Hi All, I am encountering same problem. Also bwang00, what do you mean by this "The other question is whether the xml files run during standalone mode " thanks in advance for the reply, Mounika View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842055#3842055 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842055 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-990315 ] rollinglogger PersistenceManager fails to reset Tx from pool
Bugs item #990315, was opened at 2004-07-13 17:30 Message generated for change (Comment added) made by jdefelice You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990315&group_id=22866 Category: JBossMQ Group: v3.2 Status: Closed Resolution: Postponed Priority: 5 Submitted By: James DeFelice (jdefelice) Assigned to: Adrian Brock (ejort) Summary: rollinglogger PersistenceManager fails to reset Tx from pool Initial Comment: In 3.2.4/3.2.5, org.jboss.mq.pm.rollinglogged.PersistenceManager.getT x() reuses Tx objects from an internal pool. When it pulls an old Tx from its pool, it resets the Tx's value (the tx id) but not its status. This results in "Transaction is not active" exceptions being thrown at the end of a transaction when the attempt is made to commit the transaction. I added a reset method to org.jboss.mq.pm.Tx: public void reset(long tx) { setValue(tx); this.status = OPEN; } and changed the persistence manager code to: protected org.jboss.mq.pm.Tx getTx(long value) { if (txPool.isEmpty()) { return new org.jboss.mq.pm.Tx(value); } else { org.jboss.mq.pm.Tx tx = (org.jboss.mq.pm.Tx) txPool.remove(txPool.size() - 1); tx.reset(value); return tx; } } this fixed my problem. It would be nice to see this (or similar) change in the upcoming 3.2.6 release. -- >Comment By: James DeFelice (jdefelice) Date: 2004-07-14 15:23 Message: Logged In: YES user_id=44602 Where is it documented that the file PM's are not supported? We bought the most recent documentation for JBoss, and it says nothing about not supporting file PM. Would have been nice to know that from the start... looks like we'll be switching over to DB PM. -- Comment By: Adrian Brock (ejort) Date: 2004-07-13 19:49 Message: Logged In: YES user_id=9459 The file persistence managers are no longer supported and will likely be dropped for jboss4 The rollinglogged version was never anything more than experimental anyway. I am not prepared to test your patch unless somebody with an interest in these persistence managers steps forwards to make them enterprise strength. i.e. 1) I want proper flushing the disk - see java.io.FileDescriptor.sync() 2) Checksums to confirm the data in the file(s) is complete and accurate 3) Proper testing, clean shutdowns are easy, test what happens when you kick the power cable out of your machine while it is writing the file. A plausable alternative would be to write a persistence manager based on SleepyCat. If you are prepared to do any of this, please use the JBoss/JMS development forum to volunteer. Besides, Object pooling of this variety is rubbish and should be removed, not fixed. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990315&group_id=22866 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [IIOP on JBoss] - Problem calling EJB using RMI/IIOP while providing IOR for N
I'm trying to call a remote EJB deployed on JBoss 3.2.4 using RMI/IIOP. I reviewed the article located at http://www.jboss.org/developers/projects/jboss/IIOP. I was successful in calling the EJB using both corbaloc and IOR for the provider url when my client is compiled and run using JDK 1.4.2_04. However, when I use the IOR reference for the Corba Naming Service and compile and run my client using JDK 1.3.1_12 I get an org.omg.CORBA.INV_OBJREF exception. org.omg.CORBA.INV_OBJREF: minor code: 1398079490 completed: No at com.sun.corba.se.internal.core.CodeSetComponentInfo.read(CodeSetCompo nentInfo.java:90) at com.sun.corba.se.internal.core.Profile.(Profile.java:109) at com.sun.corba.se.internal.core.IOR.getProfile(IOR.java:273) at com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStr eam.java:590) at com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStr eam.java:576) at com.sun.corba.se.internal.corba.ORB.string_to_object(ORB.java:1079) at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:274) at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:213) at com.sun.jndi.cosnaming.CNCtx.(CNCtx.java:68) at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.ja va:30) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 60) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241 ) at javax.naming.InitialContext.init(InitialContext.java:217) at javax.naming.InitialContext.(InitialContext.java:193) at com.eircom.ea.EAAccess.testNeon(EAAccess.java:180) at com.eircom.ea.EAClient.main(EAClient.java:136) I am tied to using the JDK 1.3.x as I am calling the EJB from within a java stored procedure on an Oracle 9.2 database. I don't want to use RMI/JRMP as this requires the JBoss client jars to be loaded into the database. I believe there is a known bug with JDK 1.3.x concerning code set negotiations. The article referenced above seems to indicate that it is possible to have IIOP clients access beans remotely deployed on JBoss using the Naming service IOR. Does anyone have any additional information that might help me resolve this issue or a workaround for the problem? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842050#3842050 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842050 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss IDE] - Can't create struts-config.xml
Probably I'm doing something stupid, or not doing something smart, but I add a strutsconfigxml task to my Web config's webdoclet task in the hopes of getting a default struts-config.xml file, and I get the following error: BUILD FAILED: /work/home/tcross/eclipse/workspace/DcnDb/xdoclet-build.xml:345: Can't create a strutsconfigxml element under webdoclet. Make sure the jar file containing the corresponding subtask class is on the classpath specified in the that defined {2}. There's a minimal servets.xml and servlet-mappings.xml in the mergedir, and all the struts 1.1 jar files are in the java build path. I can't find any doc anywhere telling me what I should be doing here. I've been programming for >15 years, but I'm very new to all this j2ee/app server/webapps kind of stuff, so forgive me if this is a really stupid question. Tim [EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842049#3842049 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842049 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: Using JBossCache with WebLogic 8.1 and WebSphere 5.1
You're welcome. It took me some time to verify due to a deployment issue of my app on JBoss, but i can confirm now that it is working in the current jboss-head. There is one issue though: The moment you modify a node during a transaction it is replicated across all members of the cluster. Once you roll it back the 'original' state is correctly restored but if you rely on a TreeCacheListener you do receive 'nodeModified()' events which in my opinion you should not before the transaction is commited. Oh and pretty pretty please initialize the logger correctly in TreeCache.java - helps a lot with debugging spam ;) About the errors you mentioned - the sources were written for JDK 1.5 where you have a different interface for method.invoke(). And there still seems to be a bug in TreeCache where i get a NullPointerException on a code that works fine with the 'production' release: java.lang.NullPointerException at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3080) at org.jboss.cache.TreeCache.put(TreeCache.java:1649) at org.jboss.cache.TreeCache.put(TreeCache.java:1632) -markus View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842040#3842040 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842040 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-990882 ] destroying context with tomcat5 happens too late
Bugs item #990882, was opened at 2004-07-14 14:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990882&group_id=22866 Category: JBossWeb Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: ittay dror (ittay) Assigned to: Nobody/Anonymous (nobody) Summary: destroying context with tomcat5 happens too late Initial Comment: Hi, When I stop my JBoss (3.2.5), it first undeployes all beans and only then stops the web service. This causes two wrong behaviors: 1. if some client tries to load a page (or send any request to a servlet), after some beans are undeployed, and before the service is stopped, the servlet will start to work but because the beans were undeployed, will get strange errors (NPE etc.) 2. if i want to hook into the contextDestroyed, to perform some cleanup, it is too late, since beans have already been undeployed. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990882&group_id=22866 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-989264 ] NPE invoking a finder
Bugs item #989264, was opened at 2004-07-12 08:30 Message generated for change (Comment added) made by ittay You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=989264&group_id=22866 Category: JBossCMP Group: v3.2 >Status: Deleted Resolution: None Priority: 5 Submitted By: ittay dror (ittay) Assigned to: Nobody/Anonymous (nobody) Summary: NPE invoking a finder Initial Comment: our code hooks as a ServletContextListener, upon contextDestroyed call it tries to get some bean, by invoking a finder. this is the stack trace (jboss 3.2.5) 2004-07-12 11:06:14,137 FATAL [com.qlusters.qrm.server.misc. ServerLifecycleListener] (JBoss Shutdown Hook:Tomcat5) Recovery exception java.lang.NullPointerException at org.jboss.ejb.plugins.local.BaseLocalProxyFactory. invokeHome(BaseLocalProxyFactory.java:281) at org.jboss.ejb.plugins.local.LocalHomeProxy. invoke(LocalHomeProxy.java:110) at $Proxy123.findByProperty(Unknown Source) at com.qlusters.qrm.server.common.objects.DbPrefs. setProperty(DbPrefs.java:105) at com.qlusters.qrm.server.common.objects.DbPrefs. setProperty(DbPrefs.java:96) at com.qlusters.qrm.server.common.objects.DbPrefs. setProperty(DbPrefs.java:85) at com.qlusters.qrm.server.common.objects.DbPrefs. setDateProperty(DbPrefs.java:134) at com.qlusters.qrm.server.recovery.Status. setShutdownDate(Status.java:124) at com.qlusters.qrm.server.recovery.Loader.unload(Loader.java: 193) at com.qlusters.qrm.server.misc.ServerLifecycleListener. onStop(ServerLifecycleListener.java:119) at com.qlusters.qrm.web.init.WebLifecycleListener. contextDestroyed(WebLifecycleListener.java:38) at org.apache.catalina.core.StandardContext. listenerStop(StandardContext.java:3846) at org.apache.catalina.core.StandardContext. stop(StandardContext.java:4478) at org.apache.catalina.core.ContainerBase. removeChild(ContainerBase.java:952) at org.apache.catalina.core.StandardHostDeployer. remove(StandardHostDeployer.java:670) at org.apache.catalina.core.StandardHost. remove(StandardHost.java:946) at org.apache.catalina.startup.HostConfig. undeployApps(HostConfig.java:1013) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java: 990) at org.apache.catalina.startup.HostConfig. lifecycleEvent(HostConfig.java:351) at org.apache.catalina.util.LifecycleSupport. fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.stop(ContainerBase. java:1123) at org.apache.catalina.core.ContainerBase.stop(ContainerBase. java:1135) at org.apache.catalina.core.StandardEngine. stop(StandardEngine.java:483) at org.jboss.web.tomcat.tc5.StandardService. stop(StandardService.java:545) at org.apache.catalina.core.StandardServer. stop(StandardServer.java:2347) at org.apache.catalina.startup.Catalina.stop(Catalina.java:605) 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.apache.commons.modeler.BaseModelMBean. invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker. invoke(RawDynamicInvoker.java:109) at org.jboss.mx.server.MBeanServerImpl. invoke(MBeanServerImpl.java:473) at org.jboss.web.tomcat.tc5.Tomcat5.stopService(Tomcat5. java:318) at org.jboss.system.ServiceMBeanSupport. jbossInternalStop(ServiceMBeanSupport.java:319) at org.jboss.system.ServiceMBeanSupport. jbossInternalLifecycle(ServiceMBeanSupport.java:223)at sun. reflect.GeneratedMethodAccessor15.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl. invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.server.ReflectedDispatcher. dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker. invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl. invoke(MBeanServerImpl.java:473) at org.jboss.system.ServiceController$ServiceProxy. invoke(ServiceController.java:837) at $Proxy17.stop(Unknown Source) at org.jboss.system.ServiceController.stop(ServiceController. java:449) at org.jboss.system.ServiceController.stop(ServiceController. java:440) at sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl. invoke(DelegatingMethodAcce
[JBoss-dev] [ jboss-Bugs-990882 ] destroying context with tomcat5 happens too late
Bugs item #990882, was opened at 2004-07-14 14:10 Message generated for change (Settings changed) made by ittay You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990882&group_id=22866 Category: JBossWeb Group: v3.2 Status: Open Resolution: None >Priority: 7 Submitted By: ittay dror (ittay) Assigned to: Nobody/Anonymous (nobody) Summary: destroying context with tomcat5 happens too late Initial Comment: Hi, When I stop my JBoss (3.2.5), it first undeployes all beans and only then stops the web service. This causes two wrong behaviors: 1. if some client tries to load a page (or send any request to a servlet), after some beans are undeployed, and before the service is stopped, the servlet will start to work but because the beans were undeployed, will get strange errors (NPE etc.) 2. if i want to hook into the contextDestroyed, to perform some cleanup, it is too late, since beans have already been undeployed. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990882&group_id=22866 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: a question about advisable
JBoss AOP has changed significantly since the DR2 release. advisable is now prepare http://www.jboss.org/wiki/Wiki.jsp?page=DynamicAOP View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842020#3842020 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842020 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss IDE] - Re: Jboss ide 1.2.4 question
Update your xdoclet jars as specified in the Jboss IDE pdfs. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842019#3842019 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842019 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] jboss-3.2 build.140 Build Successful
View results here -> http://tck2.jboss.com/cc/buildresults/jboss-3.2?log=log20040714075656Lbuild.140 BUILD COMPLETE - build.140Date of build: 07/14/2004 07:56:56Time to build: 14 minutes 13 secondsLast changed: 07/14/2004 07:26:27Last log entry: use 'and' instead of ',' Unit Tests: (0)No Tests RunThis project doesn't have any tests Modifications since last build: (1)1.1.2.8modifiedloubyanskyserver/src/main/org/jboss/ejb/plugins/cmp/jdbc2/bridge/JDBCCMRFieldBridge2.javause 'and' instead of ','
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - AOP Security+AOP Remoting
I use AOP Security Service and it works. But when I use AOP Remoting with the security service I got a lot of problems. Always when I want to execute a secured method of an object, which is called by the remote proxy object I get an Authentication exception. Example: jboss-aop.xml | | java:/jaas/RoomAdministration | | Internal | | * | | | class UserSession: public class UserSession{ | | ... | | public String getUserName(String principal) | { | return getUserReader().getUserName(principal); | } | ... | } Clientcode to get a remote Object: | UserSession user = (UserSession) | Remoting.createRemoteProxy("UserSession",UserSession.class,"socket://localhost:5150"); | user.getUserName("someName"); | A User Session Object is created in a MBean- method on the Server. This method registers the UserSession object by the Dispatcher too. when the method is called I get an Authentication Exception! But when I execute the method in a MBean on the Server on the orginal object the example runs! What's my fault? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842015#3842015 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842015 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] jboss-3.2 build.139 Build Successful
View results here -> http://tck2.jboss.com/cc/buildresults/jboss-3.2?log=log20040714054651Lbuild.139 BUILD COMPLETE - build.139Date of build: 07/14/2004 05:46:51Time to build: 16 minutes 56 secondsLast changed: 07/14/2004 05:26:51Last log entry: javadocs, fix for [ 990243 ] CMP does not handle NULL data in IMAGE fields (MS SQL) Unit Tests: (0)No Tests RunThis project doesn't have any tests Modifications since last build: (2)1.1.2.2modifiedloubyanskyserver/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCResultSetReader.javajavadocs, fix for [ 990243 ] CMP does not handle NULL data in IMAGE fields (MS SQL)1.1.2.2modifiedloubyanskyserver/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCParameterSetter.javajavadocs, fix for [ 990243 ] CMP does not handle NULL data in IMAGE fields (MS SQL)
[JBoss-dev] [ jboss-Bugs-990243 ] CMP does not handle NULL data in IMAGE fields (MS SQL)
Bugs item #990243, was opened at 2004-07-13 18:51 Message generated for change (Comment added) made by loubyansky You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990243&group_id=22866 Category: JBossCMP Group: v3.2 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Michael Barker (mikezzz) Assigned to: Alexey Loubyansky (loubyansky) Summary: CMP does not handle NULL data in IMAGE fields (MS SQL) Initial Comment: If you use a IMAGE field on MS SQL Server 2000 (JDBCType=LONGVARBINARY), CMP will fail to create the CMP entity with will the following exception: 16:28:31,597 ERROR [LogInterceptor] EJBException, causedBy: java.sql.SQLException: Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.convertToObject(JDBCUtil.java:293) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.access$600(JDBCUtil.java:55) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil$7.readResult(JDBCUtil.java:645) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil$AbstractResultSetReader.get(JDBCUtil.java:402) ... Simple work around is put an empty piece of data in the offending IMAGE field within the ejbCreate method of the entity bean (e.g. empty byte[] array). Below is a patch that would possibly fix the issue (not tested): --- D:\cvs\jboss\jboss-3.2.5-src\server\src\main\org\jboss\ejb\plugins\cmp\jdbc\JDBCUtil.java Mon Apr 05 10:32:20 2004 +++ JDBCUtil.java Tue Jul 13 16:40:18 2004 @@ -635,7 +635,7 @@ { Object value = null; InputStream binaryData = rs.getBinaryStream(index); - if(binaryData != null) + if(binaryData != null && !rs.wasNull()) { try { -- >Comment By: Alexey Loubyansky (loubyansky) Date: 2004-07-14 12:29 Message: Logged In: YES user_id=543482 Fixed in 3.2.6RC1. Thanks. -- Comment By: Michael Barker (mikezzz) Date: 2004-07-14 12:00 Message: Logged In: YES user_id=659570 I have attached a patch implemented, using the requested ResultSetReader interface. I could not find the specfied interface in the 3.2.5 released source or the latest in head, therefore I added the interface myself and made sure it compiles. I have not tested it though. I also had to change the visibility on some of the JDBCUtil static methods. -- Comment By: Alexey Loubyansky (loubyansky) Date: 2004-07-13 22:05 Message: Logged In: YES user_id=543482 Could you provide a patch as JDBCResultSetReader implementation? http://www.jboss.org/wiki/Wiki.jsp?page=CMPParamSettersResultReaders -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990243&group_id=22866 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss IDE] - about jboss IDE source code
Hi, I am new to jboss IDE and to the open source world, but I do feel very interested in them. Please forgive me if my question is too stupid. I've downloaded Jboss IDE 1.2.430 and made it work with eclipse 3.0. I would like to have a look at the source code of it, but cannot find it anywhere in this site. Is it still available? or I didn't find the right place? thx. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841982#3841982 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841982 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-990243 ] CMP does not handle NULL data in IMAGE fields (MS SQL)
Bugs item #990243, was opened at 2004-07-13 15:51 Message generated for change (Comment added) made by mikezzz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990243&group_id=22866 Category: JBossCMP Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Michael Barker (mikezzz) Assigned to: Alexey Loubyansky (loubyansky) Summary: CMP does not handle NULL data in IMAGE fields (MS SQL) Initial Comment: If you use a IMAGE field on MS SQL Server 2000 (JDBCType=LONGVARBINARY), CMP will fail to create the CMP entity with will the following exception: 16:28:31,597 ERROR [LogInterceptor] EJBException, causedBy: java.sql.SQLException: Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.convertToObject(JDBCUtil.java:293) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.access$600(JDBCUtil.java:55) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil$7.readResult(JDBCUtil.java:645) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil$AbstractResultSetReader.get(JDBCUtil.java:402) ... Simple work around is put an empty piece of data in the offending IMAGE field within the ejbCreate method of the entity bean (e.g. empty byte[] array). Below is a patch that would possibly fix the issue (not tested): --- D:\cvs\jboss\jboss-3.2.5-src\server\src\main\org\jboss\ejb\plugins\cmp\jdbc\JDBCUtil.java Mon Apr 05 10:32:20 2004 +++ JDBCUtil.java Tue Jul 13 16:40:18 2004 @@ -635,7 +635,7 @@ { Object value = null; InputStream binaryData = rs.getBinaryStream(index); - if(binaryData != null) + if(binaryData != null && !rs.wasNull()) { try { -- >Comment By: Michael Barker (mikezzz) Date: 2004-07-14 09:00 Message: Logged In: YES user_id=659570 I have attached a patch implemented, using the requested ResultSetReader interface. I could not find the specfied interface in the 3.2.5 released source or the latest in head, therefore I added the interface myself and made sure it compiles. I have not tested it though. I also had to change the visibility on some of the JDBCUtil static methods. -- Comment By: Alexey Loubyansky (loubyansky) Date: 2004-07-13 19:05 Message: Logged In: YES user_id=543482 Could you provide a patch as JDBCResultSetReader implementation? http://www.jboss.org/wiki/Wiki.jsp?page=CMPParamSettersResultReaders -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=990243&group_id=22866 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: Using JBossCache with WebLogic 8.1 and WebSphere 5.1
Thanks, I have checked it into jboss-head. I will backport it to jboss-3.2 once I release JBossCache 1.1. I had to fix some index error, plus a method.invoke() args error. Could you check it out from the CVS and see whether it works with my changes ? Also: if you could test whether this runs inside JBoss, then I'd replace JBossTransactionLookup with this one, making it the default TX manager lookup class. Thanks, Bela View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841980#3841980 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841980 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: Using JBossCache with WebLogic 8.1 and WebSphere 5.1
Thanks, I have checked it into jboss-head. I will backport it to jboss-3.2 once I release JBossCache 1.1. I had to fix some index error, plus a method.invoke() args error. Could you check it out from the CVS and see whether it works with my changes ? Also: if you could test whether this runs inside JBoss, then I'd replace JBossTransactionLookup with this one, making it the default TX manager lookup class. Thanks, Bela View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841979#3841979 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841979 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - a question about advisable
Hi, I am writing my master thesis about AOP. But I found an error when I used "advisable" tag in the jboss-aop.xml. I wish someone can do me some help. Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841978#3841978 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841978 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: Using JBossCache with WebLogic 8.1 and WebSphere 5.1
Here you go, just the package name is left out, adjust as you see fit. Code is tested using Orion, OC4J, JBoss and WebSphere 5.1 -markus | import org.apache.log4j.Logger; | import org.jboss.cache.TransactionManagerLookup; | import org.jboss.cache.transaction.DummyTransactionManager; | | import javax.naming.InitialContext; | import javax.naming.NamingException; | import javax.transaction.TransactionManager; | import java.lang.reflect.Method; | | /** | * A generic class that chooses the best-fit TransactionManager | */ | public class GenericTransactionManagerLookup implements TransactionManagerLookup { | | /** | * our logger | */ | private static Logger log = Logger.getLogger( GenericTransactionManagerLookup.class ); | | /** | * lookups performed? | */ | private static boolean lookupDone = false; | | /** | * no lookup available? | */ | private static boolean lookupFailed = false; | | /** | * the (final) used TransactionManager | */ | private static TransactionManager tm = null; | | /** | * JNDI locations for TransactionManagers we know of | */ | private static String[][] knownJNDIManagers = { | {"java:comp/UserTransaction", "Resin, Orion, JOnAS (JOTM)"}, | {"java:/TransactionManager", "JBoss, JRun4"}, | {"javax.transaction.TransactionManager", "BEA WebLogic"} | }; | | /** | * WebSphere 5.1 TransactionManagerFactory | */ | private static final String WS_FACTORY_CLASS_5_1 = "com.ibm.ws.Transaction.TransactionManagerFactory"; | | /** | * WebSphere 5.0 TransactionManagerFactory | */ | private static final String WS_FACTORY_CLASS_5_0 = "com.ibm.ejs.jts.jta.TransactionManagerFactory"; | | /** | * WebSphere 4.0 TransactionManagerFactory | */ | private static final String WS_FACTORY_CLASS_4 = "com.ibm.ejs.jts.jta.JTSXA"; | | /** | * Get the systemwide used TransactionManager | * | * @return TransactionManager | */ | public TransactionManager getTransactionManager() { | if( !lookupDone ) | doLookups(); | if( tm != null ) | return tm; | if( lookupFailed ) { | //fall back to a dummy from JBossCache | tm = DummyTransactionManager.getInstance(); | log.warn( "Falling back to DummyTransactionManager from JBossCache" ); | } | return tm; | } | | | /** | * Try to figure out which TransactionManager to use | */ | private static void doLookups() { | if( lookupFailed ) | return; | InitialContext ctx; | try { | ctx = new InitialContext(); | } catch( NamingException e ) { | log.error( "Could not create an initial JNDI context!", e ); | lookupFailed = true; | return; | } | //probe jndi lookups first | Object jndiObject = null; | for( int i = 0; i < knownJNDIManagers.length; i++ ) { | try { | if( log.isDebugEnabled() ) log.debug( "Trying to lookup TransactionManager for " + knownJNDIManagers[1] ); | jndiObject = ctx.lookup( knownJNDIManagers[0] ); | } catch( NamingException e ) { | log.info( "Failed to perform a lookup for [" + knownJNDIManagers[0] + " (" + knownJNDIManagers[1] + ")]" ); | } | if( jndiObject instanceof TransactionManager ) { | tm = (TransactionManager) jndiObject; | log.info( "Found TransactionManager for " + knownJNDIManagers[1] ); | return; | } | } | //try to find websphere lookups since we came here | Class clazz; | try { | log.debug( "Trying WebSphere 5.1: " + WS_FACTORY_CLASS_5_1 ); | clazz = Class.forName( WS_FACTORY_CLASS_5_1 ); | log.info( "Found WebSphere 5.1: " + WS_FACTORY_CLASS_5_1 ); | } catch( ClassNotFoundException ex ) { | try { | log.debug( "Trying WebSphere 5.0: " + WS_FACTORY_CLASS_5_0 ); | clazz = Class.forName( WS_FACTORY_CLASS_5_0 ); | log.info( "Found WebSphere 5.0: " + WS_FACTORY_CLASS_5_0 ); | } catch( ClassNotFoundException ex2 ) { |