[JBoss AS 7 Development] - Quartz Scheduler in Jboss AS 7
by Ifta Khirul
Ifta Khirul [https://community.jboss.org/people/ifti24] created the discussion
"Quartz Scheduler in Jboss AS 7"
To view the discussion, visit: https://community.jboss.org/message/775697#775697
--------------------------------------------------------------
Hi,
I'm trying to implement quartz scheduler in on of my EJB application with Jboss AS 7.
I have included quartz-jboss-2.1.6.jar and quartz-all-2.1.6 jar in my EJB application.
I have implemented my SchedulerBean in the following way -
{code}
@Startup
@Singleton
public class SchedulerBean {
@PostConstruct
void init() {
try {
Scheduler sched = new StdSchedulerFactory().getScheduler();
// schedule jobs here
JobDetail testjob = JobBuilder.newJob(TestJob.class).withIdentity("testjob", "testgroup").build();
SimpleTrigger trigger = TriggerBuilder.newTrigger()
.withIdentity("testtrigger", "testgroup")
.withSchedule(SimpleScheduleBuilder.simpleSchedule()
.withIntervalInSeconds(10)
.repeatForever())
.build();
sched.scheduleJob(testjob, trigger);
sched.start();
}
catch (Throwable t) {
// log exception
}
}
}
{code}
And below is the TestJob Class
{code}
public class TestJob implements Job {
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
System.out.println("Quartz test job executed!");
}
}
{code}
Everything is ok in the compile time. But when I start my application (Then Enterprise application) I got the following Error -
----------------
Caused by: java.lang.NoClassDefFoundError: org/quartz/ScheduleBuilder
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_09]
at java.lang.Class.privateGetDeclaredFields(Class.java:2308) [rt.jar:1.7.0_09]
at java.lang.Class.getDeclaredFields(Class.java:1760) [rt.jar:1.7.0_09]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: org.quartz.ScheduleBuilder from [Module "deployment.TestEnterpriseProject.ear.TestEjbProject.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 15 more
-----------------
Can anybody help me to findout a way to solve this issue please ?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/775697#775697]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months
[JBoss AS 7 Development] - JBOSS EAP 6.0 Deployment of war failure
by Amit Telang
Amit Telang [https://community.jboss.org/people/amittelang1976] created the discussion
"JBOSS EAP 6.0 Deployment of war failure"
To view the discussion, visit: https://community.jboss.org/message/773725#773725
--------------------------------------------------------------
Hi,
My application war works fine in Weblogic and Tomcat but same war I am uanble to deploy in Jboss EAP 6.0.
My application server is going to migrate on Jboss EAP.
Please help me why its failing.
14:18:46,145 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "fiveseries.war"
14:18:53,665 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015960: Class Path entry xml-apis.jar in /C:/Program Files/jboss-eap-6.0.0/jboss-eap-6.0/standalone/deployments/fiveseries.war/WEB-INF/lib/ant-1.5.jar does not point to a valid jar for a Class-Path reference.
14:18:53,665 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015960: Class Path entry xercesImpl.jar in /C:/Program Files/jboss-eap-6.0.0/jboss-eap-6.0/standalone/deployments/fiveseries.war/WEB-INF/lib/ant-1.5.jar does not point to a valid jar for a Class-Path reference.
14:18:53,665 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015960: Class Path entry optional.jar in /C:/Program Files/jboss-eap-6.0.0/jboss-eap-6.0/standalone/deployments/fiveseries.war/WEB-INF/lib/ant-1.5.jar does not point to a valid jar for a Class-Path reference.
14:18:53,665 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015960: Class Path entry xalan.jar in /C:/Program Files/jboss-eap-6.0.0/jboss-eap-6.0/standalone/deployments/fiveseries.war/WEB-INF/lib/ant-1.5.jar does not point to a valid jar for a Class-Path reference.
14:18:53,675 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015960: Class Path entry activation.jar in /C:/Program Files/jboss-eap-6.0.0/jboss-eap-6.0/standalone/deployments/fiveseries.war/WEB-INF/lib/mail-1.4.jar does not point to a valid jar for a Class-Path reference.
dependencies>]","jboss.deployment.unit.\"fiveseries.war\".component.\"org.apache.strutsel.taglib.tiles.ELPutListTag\".START Missing[JBAS014861: <one or more transitive dependencies>]"]}
14:19:02,058 INFO [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011908: Unregister module: Module "deployment.fiveseries.war:main" from Service Module Loader
14:19:05,228 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment fiveseries.war in 3303ms
14:19:05,228 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" =>
Thanks,
Amit
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/773725#773725]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months
[JBoss AS 7 Development] - ManagementLayer RBAC
by Heiko Braun
Heiko Braun [https://community.jboss.org/people/heiko.braun] modified the document:
"ManagementLayer RBAC"
To view the document, visit: https://community.jboss.org/docs/DOC-47854
--------------------------------------------------------------
Role based access control to the AS7 management layer.
*Core Concepts*
*
*
When defining an RBAC model, the following conventions are useful:
* Subject = A person or automated agent
* Role = Job function or title which defines an authority level
* Permissions = An approval of a mode of access to a resource
* Action = An operation to execute on a resource
* Constraint: Predicate that makes the permission valid in the context of the system state
* Session = A mapping involving Subject, Role and/or Permissions
https://community.jboss.org/servlet/JiveServlet/showImage/102-47854-23-19... https://community.jboss.org/servlet/JiveServlet/downloadImage/102-47854-2...
*Generic Requirements*
* Provide a usable (in terms of complexity), yet comprehensive base model
* Provide a set of out-of-the-box roles & permissons that reflect common authorization requirements
* Enable customizations/extension of the default scheme (i.e custom permissions, permission granularity)
* Provide management operations to retrieve session information (i.e. roles assigned, permissions granted, etc)
* Clearly distinguish security exceptions from other operation errors (i.e. custom response headers)
* Mappability with existing authorisation schemes (i.e. JON)
*Specific Requirements*
+Provide an authorization scheme that distinguishes structural & behavioural permissions+:
* structural: control visibility of resources (i.e. restrict visibility of server groups)
* behavioural: control execution on resources (i.e. lock down certain operations, distinguish read & read/write access)
*Use cases*
See https://community.jboss.org/docs/DOC-47856 RBACUsecases*
*
*Advanced Topics*
- Context based access control: i.e. Taking the connection into consideratin
- Support for role hierarchies: i.e. structuring roles to reflect an organizations lines of authority and responsibility
- Role constraints: i.e. mutual exclusive roles
- RBAC to manage RBAC itself
structuring roles to re ect an organiza tion s lines of authority and resp onsibility
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-47854]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
11 years, 5 months