[JBoss-user] [EJB 3.0] - Re: Embedded EJB 3.0 JUnit Frustrations
When I change the scanClasspath from; EJB3StandaloneBootstrap.scanClasspath(); to EJB3StandaloneBootstrap.scanClasspath("jtalking-embedded-0.1.jar"); it works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940472#3940472 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940472 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Embedded EJB 3.0 JUnit Frustrations
I'm having similar problems with jboss-EJB-3.0_Embeddable_ALPHA_5, it seems to me like the; EJB3StandaloneBootstrap.scanClasspath(); somehow creates a second ?virtual? JAR, and therefore installs two instances of the same SessionBean. I run the tests from ant using the junit task, with fork set to true. On the classpath I have all JARs from the lib directory of the jboss-EJB-3.0_Embeddable distribution and the conf directory as well. In addition to this I have the PostgreSQL JDBC driver and a JAR containing my application classes and the persistence.xml configuration file. The following output is produced: | Buildfile: build.xml | | init: | | test-user-dao: | | test: | [echo] Running test com.jtalking.dao.user.impl.test.UserDAOTestRunner | [junit] Testsuite: com.jtalking.dao.user.impl.test.UserDAOTestRunner | [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 10.625 sec | [junit] - Standard Output --- | [junit] INFO 01-05 16:08:16,062 (EmbeddableJbossEJB3.java::59) -Contructing new EmbeddableJbossEJB3 singleton | [junit] INFO 01-05 16:08:16,062 (EmbeddableJbossEJB3.java:boot:67) -Booting JBoss embeddable EJB environment | [junit] WARN 01-05 16:08:17,062 (BeanSchemaBinding.java:init:227) -You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0' | [junit] INFO 01-05 16:08:17,546 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/DefaultDS' | [junit] INFO 01-05 16:08:17,562 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/MainDS' | [junit] INFO 01-05 16:08:18,359 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 359 | [junit] INFO 01-05 16:08:18,531 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=UserServiceImpl, class=com.jtalking.service.user.impl.UserServiceImpl, type=STATELESS | [junit] FATAL 01-05 16:08:18,625 (PersistenceXmlLoader.java:parsePersistenceUnit:101) -main JTA | [junit] INFO 01-05 16:08:18,625 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 266 | [junit] INFO 01-05 16:08:18,640 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 0 | [junit] INFO 01-05 16:08:18,796 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 156 | [junit] INFO 01-05 16:08:18,953 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 141 | [junit] INFO 01-05 16:08:20,343 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 1390 | [junit] INFO 01-05 16:08:20,343 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 0 | [junit] INFO 01-05 16:08:20,781 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 438 | [junit] INFO 01-05 16:08:20,796 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 0 | [junit] INFO 01-05 16:08:21,140 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 344 | [junit] INFO 01-05 16:08:21,171 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 31 | [junit] INFO 01-05 16:08:23,578 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 2407 | [junit] INFO 01-05 16:08:23,796 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=UserServiceImpl, class=com.jtalking.service.user.impl.UserServiceImpl, type=STATELESS | [junit] INFO 01-05 16:08:23,921 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=UserServiceImpl, class=com.jtalking.service.user.impl.UserServiceImpl, type=STATELESS | [junit] INFO 01-05 16:08:23,953 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 375 | [junit] INFO 01-05 16:08:24,453 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 500 | [junit] INFO 01-05 16:08:24,453 (MCKernelAbstraction.java:install:79) -installing bean: persistence.units:jar=jtalking-embedded-0.1.jar,unitName=main with dependencies: | [junit] INFO 01-05 16:08:24,468 (MCKernelAbstraction.java:install:82) - [EMAIL PROTECTED] | [junit] INFO 01-05 16:08:24,515 (Environment.java::479) -Hibernate 3.1.2 | [junit] INFO 01-05 16:08:24,546 (Environment.java::509) -hibernate.properties not found | [junit] INFO 01-05 16:08:24,546 (Environment.java::525) -using CGLIB reflection optimizer | [junit] INFO 01-05 16:08:24,546 (Environment.java::555) -using JDK 1.4 java.sql.Timestamp handling | [junit] INFO 01-05 16:08:24,703 (Ejb3Configuration.java:scanForClasses:375) -found EJB3 @EmbeddableSuperclass: com.jtalking.model.common.impl.PersistentImpl | [junit] INFO 01-05 16:08:24,703 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: com.jtalking.model.user.impl.RoleImpl | [junit] INFO 01-05 16:08:24,703 (Ejb3Configuration.java:scanForClasses:365) -fo
[JBoss-user] [Management, JMX/JBoss] - Re: Inaccuracy of Schedulable tasks
OK, is this http://jira.jboss.com/jira/browse/JBAS-2144 the issue? If it's a question of improving the "quality of service", I would say it's pretty low as it is and leaves the Schedulable feature close to useless. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908499#3908499 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908499 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Inaccuracy of Schedulable tasks
Hello there I have some org.jboss.varia.scheduler.Schedulable tasks, which are supposed to run at different intervals; once an hour, once a day and once a week. Hence I configure them like this (application details emitted): | | true | MyTask1 | dd-MM-yy HH:mm | 01-11-05 07:15 | | 360 | -1 | | | true | MyTask2 | dd-MM-yy HH:mm | 01-11-05 07:30 | | 8640 | -1 | | | true | MyTask3 | dd-MM-yy HH:mm | 01-11-05 07:00 | | 60480 | -1 | | Now, the first time the hourly task is supposed to run, it starts pretty (within seconds) accurately a quarter past the hour, but once it has run a few times, it becomes more and more inaccurate, and often starts half an hour late (or early, not sure), especially when the server is under heavy load. The other tasks are also not started accurately, especially the weekly task, which seems to run at almost random times. Is there an explanation for this, or am I doing something wrong? It could look like the second run of a task is started with the time interval calculated from when the first run finished, not when it started. For instance if MyTask1 is first run at 07:15, and uses 30 minutes to do some work, I would still expect the next run to be at 08:15, but could it be 08:45, an hour after it last finished? Any help is highly appreciated, I?m running Jboss 4.0.3SP1. Regards Trygve View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908141#3908141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908141 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: ArrayIndexOutOfBoundsException in SecurityAssociation
Ah, that did the trick. Again, thanks for your quick replies! Regards Trygve View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900867#3900867 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900867 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: ArrayIndexOutOfBoundsException in SecurityAssociation
Thanks for the help. I've edited the properties-service.xml to include this: | |org.jboss.security.SecurityAssociation.ThreadLocal=true | | But that does not help. Could someone please give an example of a workaround? Regards Trygve View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900852#3900852 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900852 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: ArrayIndexOutOfBoundsException in SecurityAssociation
I?ve looked a bit further into this, without solving the problem, but this information might cause others to respond: When I deploy the exact same application on 4.0.3RC2, I don?t get these errors. I can se that the org.jboss.security.SecurityAssociation has been changed, adding the attribute ServerMode to the configuration of the JaasSecurityManager in the jboss-service.xml. I?ve tried setting this parameter to false, and also disabling the cache, without success. The error seems to occur at random places involving security checks, and can easily be reproduced by using a stress test on my web application that uses the secured EJBs locally. I will try to create a test application that reproduces these errors. In the mean time any help is still very much appreciated. Regards Trygve View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900471#3900471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900471 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - ArrayIndexOutOfBoundsException in SecurityAssociation
Hello I just upgraded from 3.2.7 to 4.0.3, and I see that the org.jboss.SecurityAssociation class is throwing java.lang.ArrayIndexOutOfBoundsException for no particular reason I can think of. The error occurs when I create new home interfaces for my stateless EJBs, but it's not consistent, as most times the EJBs are created successfully. The error occurs with multiple different EJBs, and causes an insufficient method permissions error with principalRoles=null to be reported back to the client. I took a look at the source, and I see that the exception occurs in the pop() method of the inner class RunAsThreadLocalStack in SecurityAssociation: | RunAsIdentity pop() | { | ArrayList stack = (ArrayList) local.get(); | RunAsIdentity runAs = null; | int lastIndex = stack.size() - 1; | // This is where the exception occurs | if (lastIndex >= 0) | runAs = (RunAsIdentity) stack.remove(lastIndex); | return runAs; | } | Could the cause be unsynchronized access to the ArrayList stack? It looks to me like the size of the List has changed between stack.size() and stack.remove(). Here is an excerpt of the stacktrace: | java.lang.IndexOutOfBoundsException: Index: 72, Size: 72 | at java.util.ArrayList.RangeCheck(ArrayList.java:547) | at java.util.ArrayList.remove(ArrayList.java:390) | at org.jboss.security.SecurityAssociation$RunAsThreadLocalStack.pop(SecurityAssociation.java:623) | at org.jboss.security.SecurityAssociation.popRunAsIdentity(SecurityAssociation.java:544) | at org.jboss.ejb.plugins.SecurityActions$10.pop(SecurityActions.java:156) | at org.jboss.ejb.plugins.SecurityActions.popRunAsIdentity(SecurityActions.java:313) | at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:135) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) | at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613) | at org.jboss.ejb.Container.invoke(Container.java:894) | at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:344) | at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118) | at $Proxy215.create(Unknown Source) | Which causes this error: | Insufficient method permissions, principal=pensum.dk, ejbName=BookAuthorService, method=create, interface=LOCALHOME, requiredRoles=[Staff, User, Customer, Admin], principalRoles=null | The errors occur quite frequently, but are not caught in my (single threaded) test cases. Any help is greatly appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900226#3900226 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900226 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: HARDeployer
I?m unable to consistently reproduce the bug, I have 2 applications using the old deployment method, one works, and the other does not. I can therefore not provide a good bug description, but I have posted what I have and maybe you can look into it. The new method works fine for me anyways. http://jira.jboss.com/jira/browse/JBAS-2335 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899536#3899536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899536 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: HARDeployer
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=67027 http://jira.jboss.com/jira/browse/JBAS-2000 It seems like the HARDeployer has been removed all together, and that the Hibernate MBean can be deployed as any other service. I just packaged all the Hibernate classes and .hbm.xml files in one SAR, and renamed the hibernate-service.xml to jboss-service-xml. I guess this is an improvement, and makes it simpler to deploy Hibernate applications on JBoss, but such changes (from RC2 to FINAL) should be documented in laymen's terms, not in some (to me) cryptic discussion among JBoss employees. That is documented prior to announcing the release. Otherwise keep up the good work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899330#3899330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899330 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - HARDeployer
Hello What happened to the jboss-hibernate.deployer in JBoss 4.0.3? I can find the Hibernate libraries in the lib directory of the all and default deployment instance, but my .har files are not deployed. One can not simply remove or change such a feature without futher notice. Regards Trygve View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899303#3899303 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899303 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Re: Cache deadlock problem when using TreeCache as 2LC for h
Hello Just wondering; does this mean that I have to disable the cache for my project? I have (as everyone) concurrent access (admin and batch updates, combinded with customer read access) and had used a transactional cache for common entities. I keep getting timeouts upon concurrent access to these entities, under what seems to be a deadlock, as both threads stop. Using Hibernate 2.1 and Jboss 3.2 and JbossCache 1.2. Thanks a bunch. Regards Trygve View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874424#3874424 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874424 --- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user