Bug 709183 - Can we rewrite Skynet to avoid use of timer service?
Summary: Can we rewrite Skynet to avoid use of timer service?
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: PressGang CCMS
Classification: Community
Component: Web-UI
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: sgilda
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-31 00:33 UTC by sgilda
Modified: 2012-08-21 00:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-29 04:01:34 UTC


Attachments (Terms of Use)

Description sgilda 2011-05-31 00:33:13 UTC
When I deploy TopicIndex.war to AS7, I get the following error:
    Encountered a DeploymentUnitProcessingException 
          "Can't handle @Resource for ENC name" during deployment.
    Log trace:
        Caused by: 
          org.jboss.as.server.deployment.DeploymentUnitProcessingException: 
             Can't handle @Resource for ENC name: 
                org.jboss.seam.async.TimerServiceDispatcher/timerService
                since it's missing a "lookup" (or "mappedName") value and 
                isn't of any known type
             at  
org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor.process(ResourceInjectionAnnotationParsingProcessor.java:221)

According to Stuart Douglas, the timer service is out of scope for AS7.0. It is not required by the web profile so will not be implemented until 7.1 which will have the full implementation.

If we want to port Skynet to AS7, we need to remove the timer service.

Comment 1 sgilda 2011-05-31 00:35:55 UTC
Skynet should use only Web Profile of EE6 so that it can port to AS7.

Comment 2 Matthew Casperson 2011-05-31 00:41:28 UTC
SkyNet itself does not call the timer service directly, so this must be seam that is making the call.

Comment 3 Joshua Wulf 2011-05-31 05:27:32 UTC
Good question Sande, and no doubt one that our customers will be asking. Let us know what you find out, re: what's provided by Web Profile of EE 6, and what Skynet requires.

Maybe it is possible to recode it within that subset of functionality.

Comment 4 sgilda 2011-05-31 14:09:54 UTC
I spoke with Jaikiran and Stuart Douglas this morning. Jaikiran is working on a fix to get past the deployment error, however, it will not fix any runtime errors related to use of the timer service in AS7. The theory is that Seam 2.x was was one big JAR including everything, whether it was used or not. If Skynet does not issue any calls to the timer service, the hope is that the application will not experience any runtime errors related to this service. Jaikiran is going to check in a fix later today and I will pull down the change, test it, and note the results here.

Comment 5 sgilda 2011-05-31 20:25:27 UTC
I modified the AS7 deploy code to report but ignore the above deployment error and was able to get a little farther. It doesn't appear that we will have to modify the application to remove any timer service calls. I will wait until Jaikiran checks in his changes to verify it.


Note You need to log in before you can comment on or make changes to this bug.