[JBoss Seam] - Re: Oracle ADF
by lowecg2004
Gavin,
Yes a good advert for "don't drink and drive" ;) Apology accepted.
As stated in my post, it was only speculation and I was clearly wrong. While my assumption now appears rather naive (and, yes, I feel suitably embarrassed) please appreciate that many us on the forum are not yet well versed in the subtleties of AOP and classloading. In my class cast example I was able to bind to a regular managed bean but not via a Seam binding "because Seam used a different classloading mechanism to get the underlying class". Surely this IS quite subtle from a regular Seam programmers pov? Is this something that could be cleared up in the Seam reference, say introduce a section from a "Seam and the JEE environment" interaction perspective?
I would have taken the time to acquaint myself with the subtleties of JEE classloading but having read that documentation you'll know that stuff is not exactly 'light' reading hence my polite request for direction to the required material. RTFM is often a fair response but when the 'M' is something as big and vague as the JEE spec then some direction would be appreciated.
I agree with you that preprender does not work under Seam. I personally DO NOT want to be dealing with the raw JSF component instances. But let's face it, there will be a lot of people migrating to Seam from JSC who are used to having exactly that sort of experience of JSF programming. I only got onto to this because of the way in which the Trinidad built-in table selections work. Again, maybe something in the Seam reference could 'educate' people who may be used to other JSF programming models?
Anyway please accept my apologies if I upset you. I really appreciate the help you are giving myself and others on this forum. I will refrain from speculation from now on and I will now go away to read up on classloading and try to understand what's going on.
Best Regards,
Chris.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990940#3990940
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990940
18 years, 1 month
[JBoss/Spring Integration] - Re: NoSuchMethodError when trying to deploy sample ear
by sneha.munnangi
Hi Ales,
I upgraded my spring from spring-1.2.7 to spring-2.0 and I am using the jboss spring deployer jboss-spring-version4, still I am getting the same error.
I have my spring.jar in server/default/lib
Besides my jboss-spring.deployer contains following items.
spring-aop.jar
spring-beans.jar
spring-context.jar
jboss-spring.jar
spring-core.jar
META-INF/jboss-service.xml.
The error which I am getting is
| ERROR [MainDeployer] Could not create deployment: file:/usr/local/jboss/server/default/deploy/jboss-spring.xml
| INFO | jvm 1 | 2006/12/03 05:06:58 | org.jboss.deployment.DeploymentException: Unexpected exception parsing XML document from URL [file:/usr/local/jboss/server/
| fault/tmp/deploy/tmp31505jboss-spring.xml]; nested exception is java.lang.NoSuchMethodError: org.jboss.spring.factory.NamedXmlBeanDefinitionReader: method createRead
| Context(Lorg/springframework/core/io/Resource;)Lorg/springframework/beans/factory/support/ReaderContext; not found; - nested throwable: (org.springframework.beans.fa
| ory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [file:/usr/local/jboss/server/default/tmp/deploy/tmp31505jboss-spring.xml]; nest
| exception is java.lang.NoSuchMethodError: org.jboss.spring.factory.NamedXmlBeanDefinitionReader: method createReaderContext(Lorg/springframework/core/io/Resource;)L
| g/springframework/beans/factory/support/ReaderContext; not found)
|
Please suggest.I have been struck at it from quite a long time.
Is this some problem with the order of deployment?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990933#3990933
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990933
18 years, 1 month
[Installation, Configuration & Deployment] - Concurrent scheduler tasks?
by kresho
I have two tasks that should be executed at different schedules, so I created to Schedulable classes and deployed two mbeans:
Task 1 (nightly):
<server>
| <mbean code="org.jboss.varia.scheduler.Scheduler" name="hr.chipoteka.erp.nightly-tasks:service=Scheduler">
| <depends>jboss.j2ee:service=EJB,jndiName=ejb/NightlyTasksLocal</depends>
|
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableClass">hr.chipoteka.erp.server.NightlyTasksBean</attribute>
|
| <attribute name="DateFormat">yyyy-MM-dd HH:mm:ss</attribute>
| <attribute name="InitialStartDate">2006-10-30 21:30:00</attribute>
| <!-- attribute name="SchedulePeriod">60000</attribute -->
| <attribute name="SchedulePeriod">86400000</attribute>
|
| <attribute name="InitialRepetitions">-1</attribute>
| </mbean>
| </server>
|
And task 2 (every 10 seconds):
<server>
| <mbean code="org.jboss.varia.scheduler.Scheduler" name="hr.chipoteka.erp.synchronizer:service=Scheduler">
| <depends>jboss.j2ee:service=EJB,jndiName=ejb/SynchronizerLocal</depends>
|
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableClass">hr.chipoteka.erp.server.SynchronizerBean</attribute>
|
| <attribute name="DateFormat">yyyy-MM-dd HH:mm:ss</attribute>
| <attribute name="InitialStartDate">2006-11-01 00:00:00</attribute>
| <attribute name="SchedulePeriod">10000</attribute>
|
| <attribute name="InitialRepetitions">-1</attribute>
| </mbean>
| </server>
|
jboss.app:
<?xml version="1.0"?>
|
| <jboss-app>
| <module>
| <har>hibernate-service.xml</har>
| </module>
| <module>
| <service>chipoteka-erp-nightly-tasks-scheduler-service.xml</service>
| </module>
| <module>
| <service>chipoteka-erp-synchronizer-scheduler-service.xml</service>
| </module>
| </jboss-app>
|
Sometimes execution times of these tasks overlap, but instead of being started concurrently, the scheduler starts them one after the other. How do I make them independent of one another and have them started at their schedules concurrently?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990932#3990932
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990932
18 years, 1 month