[JBoss AS 7 Development] - AS 7 Management versions
by Kabir Khan
Kabir Khan [https://community.jboss.org/people/kabirkhan] modified the document:
"AS 7 Management versions"
To view the document, visit: https://community.jboss.org/docs/DOC-19172
--------------------------------------------------------------
This shows the management versions of the various subsystems for released AS 7 versions. The tables are generated by starting the target AS 7 version using standalone.sh --server-config=standalone-full-ha.xml and running org.jboss.as.controller.util.GrabModelVersionsUtil (in controller/src/test)
h2. 7.1.2.Final
|| Subsystem || Management Version || Schemas ||
| *Standalone core* | 1.2.0 | |
| *cmp* | 1.0.0 | urn:jboss:domain:cmp:1.0 |
| *configadmin* | 1.0.0 | urn:jboss:domain:configadmin:1.0 |
| *datasources* | 1.1.0 | urn:jboss:domain:datasources:1.0
urn:jboss:domain:datasources:1.1 |
| *deployment-scanner* | 1.0.0 | urn:jboss:domain:deployment-scanner:1.0
urn:jboss:domain:deployment-scanner:1.1 |
| *ee* | 1.0.0 | urn:jboss:domain:ee:1.0
urn:jboss:domain:ee:1.1 |
| *ejb3* | 1.1.0 | urn:jboss:domain:ejb3:1.0
urn:jboss:domain:ejb3:1.1
urn:jboss:domain:ejb3:1.2
urn:jboss:domain:ejb3:1.3 |
| *infinispan* | 1.3.0 | urn:jboss:domain:infinispan:1.0
urn:jboss:domain:infinispan:1.1
urn:jboss:domain:infinispan:1.2
urn:jboss:domain:infinispan:1.3 |
| *jacorb* | 1.1.0 | urn:jboss:domain:jacorb:1.0
urn:jboss:domain:jacorb:1.1
urn:jboss:domain:jacorb:1.2 |
| *jaxr* | 1.1.0 | urn:jboss:domain:jaxr:1.1
urn:jboss:domain:jaxr:1.0 |
| *jaxrs* | 1.0.0 | urn:jboss:domain:jaxrs:1.0 |
| *jca* | 1.1.0 | urn:jboss:domain:jca:1.0
urn:jboss:domain:jca:1.1 |
| *jdr* | 1.0.0 | urn:jboss:domain:jdr:1.0 |
| *jgroups* | 1.1.0 | urn:jboss:domain:jgroups:1.0
urn:jboss:domain:jgroups:1.1 |
| *jmx* | 1.0.0 | urn:jboss:domain:jmx:1.0
urn:jboss:domain:jmx:1.1 |
| *jpa* | 1.1.0 | urn:jboss:domain:jpa:1.0 |
| *jsr77* | 1.0.0 | urn:jboss:domain:jsr77:1.0 |
| *logging* | 1.1.0 | urn:jboss:domain:logging:1.0
urn:jboss:domain:logging:1.1 |
| *mail* | 1.1.0 | urn:jboss:domain:mail:1.0 |
| *messaging* | 1.1.0 | urn:jboss:domain:messaging:1.0
urn:jboss:domain:messaging:1.1
urn:jboss:domain:messaging:1.2 |
| *modcluster* | 1.2.0 | urn:jboss:domain:modcluster:1.0
urn:jboss:domain:modcluster:1.1 |
| *naming* | 1.1.0 | urn:jboss:domain:naming:1.0
urn:jboss:domain:naming:1.1
urn:jboss:domain:naming:1.2 |
| *osgi* | 1.0.0 | urn:jboss:domain:osgi:1.0
urn:jboss:domain:osgi:1.1
urn:jboss:domain:osgi:1.2 |
| *pojo* | 1.0.0 | urn:jboss:domain:pojo:1.0 |
| *remoting* | 1.1.0 | urn:jboss:domain:remoting:1.0
urn:jboss:domain:remoting:1.1 |
| *resource-adapters* | 1.1.0 | urn:jboss:domain:resource-adapters:1.0 |
| *sar* | 1.0.0 | urn:jboss:domain:sar:1.0 |
| *security* | 1.1.0 | urn:jboss:domain:security:1.0
urn:jboss:domain:security:1.1
urn:jboss:domain:security:1.2 |
| *threads* | 1.0.0 | urn:jboss:domain:threads:1.1
urn:jboss:domain:threads:1.0 |
| *transactions* | 1.1.0 | urn:jboss:domain:transactions:1.0
urn:jboss:domain:transactions:1.1
urn:jboss:domain:transactions:1.2 |
| *web* | 1.1.0 | urn:jboss:domain:web:1.1
urn:jboss:domain:web:1.0 |
| *webservices* | 1.1.0 | urn:jboss:domain:webservices:1.0
urn:jboss:domain:webservices:1.1 |
| *weld* | 1.0.0 | urn:jboss:domain:weld:1.0 |
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19172]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 1 month
[JBoss AS 7 Development] - JBoss 7 and Ejb remote call with security
by Petr Mates
Petr Mates [https://community.jboss.org/people/mates1234] modified the document:
"JBoss 7 and Ejb remote call with security"
To view the document, visit: https://community.jboss.org/docs/DOC-17581
--------------------------------------------------------------
This article describes my tests with ejb and JBoss7.
For my test a have ear (TestEar) with one ejb module (TestEjb) and one bean (TestBean).
TestEar.ear
+---TestEjb.ejb
+--mates.test.TestBean.class
mates.test.TestBeanRemote.class
As security I use RealmUsersRoles with
*+x-users.properties+*
testX=test1234
*+x-roles.properties+*
testX=bean
And now standalone.xml
and I changed ApplicationRealm
<security-realm name="ApplicationRealm">
<authentication>
<jaas name="bean-sec-domain"/>
</authentication>
</security-realm>
and security domain
<security-domain name="bean-sec-domain" cache-type="default">
<authentication>
<login-module code="Remoting" flag="optional">
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
<module-option name="defaultUsersProperties" value="file:/${jboss.server.config.dir}/x-users.properties"/>
<module-option name="defaultRolesProperties" value="file:/${jboss.server.config.dir}/x-roles.properties"/>
<module-option name="usersProperties" value="file:/${jboss.server.config.dir}/x-users.properties"/>
<module-option name="rolesProperties" value="file:/${jboss.server.config.dir}/x-roles.properties"/>
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
</authentication>
</security-domain>
And now lets look at bean.
@Stateless
@DeclareRoles("bean")
public class TestBean implements TestBeanRemote {
@Resource
private EJBContext context;
@Override
@RolesAllowed("bean")
public String getName ()
{
getNameFree();
}
@Override
public String getNameFree ()
{
String aName = "";
if (context.getCallerPrincipal() != null) {
aName = context.getCallerPrincipal().getName();
}
return "name " + aName + " " + context.isCallerInRole("bean");
}
}
Let's secure EJB
add *+jboss-app.xml+* to TestEar.ear\META-INF. I use security domain other to ensure that i secure all beans.
<?xml version="1.0" encoding="UTF-8"?>
<p:jboss-app xmlns:p="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee ../../xsd/jboss-app_7_0.xsd ">
<security-domain>other</security-domain>
</p:jboss-app>
And I want to secure TestBean. I have to add *+jboss-ejb3.xml+* to TestEjb.jar\META-INF\. TestBean is secured by *bean-sec-domain*.
<?xml version="1.0" encoding="UTF-8"?>
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="urn:security" version="3.1" impl-version="2.0">
<assembly-descriptor xmlns="http://java.sun.com/xml/ns/javaee">
<security:security xmlns:security="urn:security">
<security:security-domain>bean-sec-domain</security:security-domain>
<ejb-name>TestBean</ejb-name>
</security:security>
</assembly-descriptor>
</jboss:ejb-jar>
Remote interface is real simple with 2 methods.
Client:
Hashtable<String, Object> p = new Hashtable<String, Object>();
p.put(Context.INITIAL_CONTEXT_FACTORY, InitialContextFactory.class.getName());
p.put(Context.PROVIDER_URL, "remote://127.0.0.1:4447/");
p.put(InitialContext.SECURITY_PRINCIPAL, "testX");
p.put(InitialContext.SECURITY_CREDENTIALS, "test1234");
p.put("jboss.naming.client.ejb.context", true);
p.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
InitialContext c = new InitialContext(p);
TestBeanRemote vLookup = (TestBeanRemote) c.lookup("java:/TestEar/TestEjb/TestBean!"+ TestBeanRemote.class.getName());
System.out.println("x" + vLookup.getNameFree());
System.out.println("x" + vLookup.getName());
After this you can see
xname testX true
xsecured name testX true
*That's all.*
*And now some other tests:*
Most important mart is
+*p.put("jboss.naming.client.ejb.context", true);*+
without this property you will see "+No EJB receiver available for handling [appName:TestEar,modulename:TestEjb,distinctname:] combination+"
when you put in class path file *+jboss-ejb-client.properties+* with standard
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=x1
remote.connection.x1.host=127.0.0.1
remote.connection.x1.port = 4447
remote.connection.x1.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connection.x1.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT=false
and comment +*p.put("jboss.naming.client.ejb.context", true);*+
and in console is now
xname $local false
Exception in thread "main" javax.ejb.EJBAccessException: JBAS014502: Invocation on method: public abstract java.lang.String mates.test.TestBeanRemote.getName() of bean: TestBean is not allowed
+*jboss.naming.client.ejb.context*+ setup EJBContext on client side. See *+org.jboss.naming.remote.client.InitialContextFactory+*
+*
*+
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-17581]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 1 month
Re: [jboss-dev-forums] [JBoss AS 7 Development] - JBoss 7 and Ejb remote call with security
by xiang yingbing
xiang yingbing [https://community.jboss.org/people/ybxiang.china] commented on the document
"JBoss 7 and Ejb remote call with security"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-17581#comment-10344
--------------------------------------------------
The correct solution is: https://community.jboss.org/thread/196169?tstart=0 https://community.jboss.org/thread/196169?tstart=0
At last, my client works after I fixed above bugs and added some properties:
> package mate.test;
>
> import java.util.Properties;
>
> import javax.naming.Context;
> import javax.naming.InitialContext;
>
> import org.jboss.ejb.client.ContextSelector;
> import org.jboss.ejb.client.EJBClientConfiguration;
> import org.jboss.ejb.client.EJBClientContext;
> import org.jboss.ejb.client.PropertiesBasedEJBClientConfiguration;
> import org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector;
>
> public class Client1 {
> public static void main(String[]args) throws Exception{
> String jndiName = "ejb:TestEar/TestEjb//TestBean!" + TestBeanRemote.class.getName();//ear:good
>
> Properties p = new Properties();
> {
> p.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");
> p.put("remote.connections", "default");
> p.put("remote.connection.default.host", "192.168.1.100");
> p.put("remote.connection.default.port", "4447");
> p.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "true");
> p.put("remote.connection.default.username", "testX");
> p.put("remote.connection.default.password", "test1234");
>
> p.put("remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS", "JBOSS-LOCAL-USER");
> p.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
> }
>
> EJBClientConfiguration cc = new PropertiesBasedEJBClientConfiguration(p);
> ContextSelector<EJBClientContext> selector = new ConfigBasedEJBClientContextSelector(cc);
> EJBClientContext.setSelector(selector);
>
> Properties props = new Properties();
> props.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
> InitialContext context = new InitialContext(props);
>
> TestBeanRemote vLookup = (TestBeanRemote) context.lookup(jndiName);
>
> System.out.println("x" + vLookup.getNameFree());
> System.out.println("x" + vLookup.getName());
> }
>
The log:
> INFO: JBoss EJB Client version 1.0.5.Final
> xname testX true
> xname testX true
Anyway, thank you Mates. I can NOT find any better example that has an EJB client. ;\
--------------------------------------------------
12 years, 1 month
Re: [jboss-dev-forums] [JBoss AS 7 Development] - Detyped Description of the AS 7 Management Model
by Stan Silvert
Stan Silvert [https://community.jboss.org/people/ssilvert] commented on the document
"Detyped Description of the AS 7 Management Model"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-16317#comment-10342
--------------------------------------------------
Hi Brian,
I'm running in a servlet environment and I if I'm in domain mode I need to get the proper ModelControllerClient. Is the following always guaranteed to work for finding the host address and port of the domain controller? Is there a better way to get these values?
if (isDomainMode) {
InetAddress domainAddress = InetAddress.getByName(System.getProperty("jboss.domain.master.address"));
int domainPort = Integer.parseInt(System.getProperty("jboss.domain.master.port", "9999"));
domainDmrClient = ModelControllerClient.Factory.create(domainAddress, domainPort);
}
--------------------------------------------------
12 years, 1 month
Re: [jboss-dev-forums] [JBoss AS 7 Development] - JBoss 7 and Ejb remote call with security
by xiang yingbing
xiang yingbing [https://community.jboss.org/people/ybxiang.china] commented on the document
"JBoss 7 and Ejb remote call with security"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-17581#comment-10340
--------------------------------------------------
Hello https://community.jboss.org/people/mates1234 Petr Mates,
Did you tested those codes with JBoss AS 7.1.1 Final???
I always get bellow exception on the server during EJB client calling:
> 23:17:39,421 ERROR [org.jboss.ejb3.invocation] (EJB default - 4) JBAS014134: EJB Invocation failed on component SecuredR
> emoteSession for method public abstract java.lang.String com.ybxiang.nms.server.ejb.session.ISecuredRemoteSession.getNam
> e(): javax.ejb.EJBAccessException: JBAS014502: Invocation on method: public abstract java.lang.String com.ybxiang.nms.se
> rver.ejb.session.ISecuredRemoteSession.getName() of bean: SecuredRemoteSession is not allowed
> at org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:101) [jbo
> ss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
--------------------------------------------------
12 years, 1 month
[JBoss Web Development] - Exception caught while (preparing for) performing the invocation: javax.xml.ws.soap.SOAPFaultException: In valid string sufix
by santhana kumar
santhana kumar [https://community.jboss.org/people/santhanakum] created the discussion
"Exception caught while (preparing for) performing the invocation: javax.xml.ws.soap.SOAPFaultException: In valid string sufix"
To view the discussion, visit: https://community.jboss.org/message/751603#751603
--------------------------------------------------------------
Hi
I need help with the below exception while consuming a web service. I use JBoss EAP 5.1. I am stuck with with this excpetion for 2 days can't proceed further so any help on this would be appreciated. Thanks.
2012-08-02 12:04:18,250 WARN [org.jboss.ws.tools.wsdl.WSDL11Reader] (Thread-19) UsingAddressing extensibility element not supported yet.
2012-08-02 12:04:18,500 INFO [STDOUT] (Thread-19) INFO [Thread-19] (CustomerRegistration.java:374) - Customeregistration :getCustomerService() :Endorg.jboss.ws.core.jaxws.client.ClientImpl@21541f
2012-08-02 12:04:19,297 ERROR [org.jboss.ws.core.CommonClient] (Thread-19) Exception caught while (preparing for) performing the invocation:
javax.xml.ws.soap.SOAPFaultException: In valid string sufix
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:85)
at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:107)
at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:558)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:396)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:231)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:171)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:157)
at $Proxy160.customerRegistrationV100(Unknown Source)
at com.mtx.CustomerRegistraion.CustomerRegistration.getUMNNumber(CustomerRegistration.java:391)
at com.woodoos.mt.common.network.impl.CustomerServiceChipImpl.registerCountryInScope(CustomerServiceChipImpl.java:1313)
at com.woodoos.mt.ap.controller.Mt701Controller.onSave(Mt701Controller.java:1347)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.zkoss.zk.ui.event.GenericEventListener.onEvent(GenericEventListener.java:81)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:206)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:140)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:517)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.sendEvent(EventProcessingThreadImpl.java:121)
at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:318)
at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:328)
at org.zkoss.zk.ui.AbstractComponent$ForwardListener.onEvent(AbstractComponent.java:2977)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:206)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:140)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:517)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:444)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751603#751603]
Start a new discussion in JBoss Web Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month