[JBoss AS7 Development] - Classloading in Jboss AS7
by Stuart Douglas
Stuart Douglas [http://community.jboss.org/people/swd847] created the document:
"Classloading in Jboss AS7"
To view the document, visit: http://community.jboss.org/docs/DOC-16435
--------------------------------------------------------------
This document is a draft, it may (and probably will) change significantly.
* All class loading is handled by Jboss modules
* All non-ear deployments are represented by a single module
* Inside an ear:* deployments are represented as a single module
* The combined contents of the /lib directory is represented as a single module
* By default war modules have access to /lib and all other non-war deployments
* All non-war deployments have access to /lib and all other non-war deployments
* jars in /lib jave access to other jars in /lib
* Class-Path references* If the jar that is pointed to by a class-path reference is not accessible by default (e.g. in /lib) then the jar is turned into a module
* Transitive dependencies are handled by the deployer, not jboss-modules, so modules do not re-export any of their imports
* TODO: how do we handle references from a ejb jar to a jar in WEB-INF/lib of a war, (this should probably result in a copy of the class).
* references to jars in another deployment are supported. If that deployment is removed then the deployment will go down, if the other deployment is replaced then this deployment will come back up.
* Extension-List references* Each referenced jar is treated as a single module (TODO should these modules be shared between deployments)
* Custom Module Configuration* Custom module configuration will be supported. At a minimum it will support the following:* Turn an arbitrary jar (outside of /lib) into a module, and specify it's dependencies
* Specify additional dependencies for any (or all) modules in the deployment
* Produce multiple modules from the same jar with different module configurations (e.g. one that has a dependencies on util-1.0.jar and another that has a dependency on util-1.1.jar)
* Provide a complete module configuration for any deployed module that overrides the default dependencies created by the container.
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16435]
Create a new document in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 11 months
[IronJacamar Development] - Reauthentication
by Jesper Pedersen
Jesper Pedersen [http://community.jboss.org/people/jesper.pedersen] created the document:
"Reauthentication"
To view the document, visit: http://community.jboss.org/docs/DOC-16434
--------------------------------------------------------------
h2. Description
A resource adapter can re-authenticate a physical connection (that is, one that already exists in the connection pool under a different security context) to the underlying EIS. A resource adapter performs reauthentication when an application server calls the getConnection method with a security context, passed as a Subject instance, different from the context previously associated with the physical connection.
h2. Requirements
* Reauthentication support: The resource adapter provider must specify whether a resource adapter supports reauthentication of an existing physical connection.
* The matchManagedConnections method in ManagedConnectionFactory may return a matched ManagedConnection instance with the assumption that the ManagedConnection.getConnection method will later switch the security context through reauthentication.
* If reauthentication is successful, the resource adapter has changed the security context of the underlying ManagedConnection instance to that associated with the passed Subject instance.
Detailed description of the reauthentication process is described in section 9.1.9.
h2. Design
h2. Implementation
h2. Test suite
h3. Test client
1. Lookup connection factory / connection
2. Invoke connection with credential #1
3. Invoke connection with credential #2
should lead to success
h3. Resource adapter
* Reauthentication enabled
* Expose simple connection interface
* Configuration: Initially <min-pool-size> and <max-pool-size> should be set to 1
h3. Target system
* Allow a configured number of connections (java.net.Socket)
* Support Subject based security
* Support CRI based security
* Support reauthentication on existing connection
* Be able to run in-VM
Option #C and #A described in section 9.1.9 should be tested in that order.
Ideally the entire test suite setup can be included as an example in the user guide.
h2. JDBC
Some databases support reauthentication, so we need to provide a way to enable support in our JDBC resource adapter.
We can also provide plugins for the Open Source databases that supports this.
h2. Links
* http://jcp.org/en/jsr/detail?id=322 Java EE Connector Architecture 1.6
* https://issues.jboss.org/browse/JBJCA-94 JBJCA-94
* http://community.jboss.org/en/picketbox PicketBox user forum
* http://community.jboss.org/en/picketbox/dev PicketBox developer forum
* http://community.jboss.org/docs/DOC-10430 Old JCA pooling mechanims
* http://community.jboss.org/message/230163#230163 User thread
* https://issues.jboss.org/browse/JBAS-1429 JBAS-1429
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16434]
Create a new document in IronJacamar Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 11 months
[JBoss Web Development] - Error in Deployment
by Rishi k
Rishi k [http://community.jboss.org/people/rishi321] created the discussion
"Error in Deployment"
To view the discussion, visit: http://community.jboss.org/message/584875#584875
--------------------------------------------------------------
hi guys,
i am trying to deploy my war on jboss but i keep on getting this error, what seems to be the problem.
Failed to create Resource Messaging-0.0.1-SNAPSHOT.war - cause: org.rhq.core.pc.inventory.TimeoutException: Call to [org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource()] with args [[CreateResourceReport: ResourceType=[ResourceType[id=0, category=Service, name=Web Application (WAR), plugin=JBossAS5]], ResourceKey=[null]]] timed out. Invocation thread will be interrupted at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invokeInNewThreadWithLock(ResourceContainer.java:465) at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invoke(ResourceContainer.java:434) at $Proxy172.createResource(Unknown Source) at org.rhq.core.pc.inventory.CreateResourceRunner.call(CreateResourceRunner.java:114) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/584875#584875]
Start a new discussion in JBoss Web Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months
[JBoss AS7 Development] - ManagementConsoleRoadmap
by Heiko Braun
Heiko Braun [http://community.jboss.org/people/heiko.braun%40jboss.com] modified the document:
"ManagementConsoleRoadmap"
To view the document, visit: http://community.jboss.org/docs/DOC-16376
--------------------------------------------------------------
h1. Roadmap for the AS7 Management Console
(Work in progress)
h4. Coarse grained Tasks:
|| Task || *Description* || *Goals
* || *Dependencies* || *Risks* ||
| T1 | Project setup (codebase, repo, JIRA, etc) |
|
|
|
| %1,5% *Project Setup done.* |
| T2 | UI Framework (both domain and standalone)
- rough UI layout
- maybe outer most domain tree (domain, profiles, server-groups, etc)
- excluding subsystems and management operations | Explore outermost conceptual model |
| Might not reflect ambiguity in information design w/o example subsystem |
| T3 | Authentication |
| Security components in place |
|
| T4 | Installation on Standalone Server
- Integrated with AS build/deliverables |
|
|
|
| %1,5% *M1: Core UI. Supports standalone scenario. Part of AS7 build/deliverable. 28.Feb* |
| T5 | Installation on Domain Controller
- Integrated with AS build/deliverables |
|
|
|
| T6 | Server Group configuration
- domain sceanario only
- potential release candidate | Configure, launch, shutdown server instances | Management infrastructure in place and ability to install console |
|
| %1,5% *M2: Core UI, supports domain scenario. Part of AS7 build/deliverable.15. Mar* |
| T7 | Provide UI extension hooks
- minimal API: i.e. GWT 2.1 PlaceManager, plus boiler plate magic (borrowed from Errai Workspaces)
- Feedback from layered products (JON, Drools) | Baseline for subsystem integration, extensibility | Decision on UI Framework & Widgets Libraries |
|
| T8 | Example subsystem management completed
- complete functional set
- distinction between domain and host level operations
- potential release candiate | Explore detailed conceptual model, verify management API, remove ambiguity | Rough UI framework, extension hooks |
|
| T9 | Example Metrics completed
- covers a typical metric request (domain, host, subsystem)
- re-use example subsystem | Verify management API exposes runtime state correctly/sufficiently | Example subsystem |
|
| T10 | Application Deployment | Deploy applications through the console | AS7 deployment API |
|
| T11 | Client Server API mature (pivot)
- Match AS7 management API |
|
|
|
| %1,5% *M3: Example subsystem management and metrics included. Supports application deployment.1.Apr* |
| T12 | Integrate themes (.org & RH):
- early in the game
- provide means for design people to work on this | Introduce customization hooks, verify i18n issues, work towards JON |
|
|
| T13 | Iterate over remaining subsystems
- with each subsystem another potential release candiate | Complete management functionality | Example subsystem, rough UI framework | Might reveal issues with the overall conceptual model |
| T14 | Management Operation Plans | Enable composite (bulk) management operations on the whole domain. Verify error handling, consistency |
|
|
| T15 | Deployment Plans | Rollout applications to a domain.
Verify error handling, consistency |
|
|
| T16 | User management | Create/Remove users that have access to the management infrastructure |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h4. *Potential Milestones*
*M1: Core UI. Supports standalone scenario. Part of AS7 build/deliverable. (T1-T4) 28.Feb*
*M2: Core UI, supports domain scenario. *Part of AS7 build/deliverable. (T5-T6) 15. Mar**
**M3: Example subsystem management and metrics included. Supports application deployment. (T7-T11) 1.Apr**
**M4-Mn: TBD
**
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16376]
Create a new document in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 11 months
[JBoss AS7 Development] - Help, my extension isn't starting
by Carlo de Wolf
Carlo de Wolf [http://community.jboss.org/people/wolfc] created the discussion
"Help, my extension isn't starting"
To view the discussion, visit: http://community.jboss.org/message/584592#584592
--------------------------------------------------------------
With a wrong module.xml you Extension will be unable to start and show a stacktrace not unlike:
12:52:11,273 ERROR [org.jboss.msc] MSC-00001: Failed to start service jboss.as.server-controller: org.jboss.msc.service.StartException in service jboss.as.server-controller: Failed to start service
at org.jboss.msc.service.ServiceInstanceImpl$StartTask.run(ServiceInstanceImpl.java:1207)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_22]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
Caused by: java.util.ServiceConfigurationError: org.jboss.as.server.Extension: Provider org.jboss.as.ejb3.EJB3Extension not found
at java.util.ServiceLoader.fail(ServiceLoader.java:214) [:1.6.0_22]
at java.util.ServiceLoader.access$400(ServiceLoader.java:164) [:1.6.0_22]
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:350) [:1.6.0_22]
at java.util.ServiceLoader$1.next(ServiceLoader.java:421) [:1.6.0_22]
at org.jboss.as.model.ModelXmlParsers.parseExtensions(ModelXmlParsers.java:432)
at org.jboss.as.model.ModelXmlParsers.parseServerRootElement(ModelXmlParsers.java:180)
at org.jboss.as.model.ModelXmlParsers$3.readElement(ModelXmlParsers.java:108)
at org.jboss.as.model.ModelXmlParsers$3.readElement(ModelXmlParsers.java:106)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:91)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)
at org.jboss.as.server.mgmt.StandaloneServerConfigurationPersister.load(StandaloneServerConfigurationPersister.java:109)
at org.jboss.as.server.ServerControllerService.start(ServerControllerService.java:137)
at org.jboss.msc.service.ServiceInstanceImpl$StartTask.run(ServiceInstanceImpl.java:1163)
In this thread I'll write up the steps needed to debug such an issue.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/584592#584592]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 11 months