[JBoss JIRA] (AS7-1338) Remote JNDI support for AS7
by Alexey S. (JIRA)
[ https://issues.jboss.org/browse/AS7-1338?page=com.atlassian.jira.plugin.s... ]
Alexey S. commented on AS7-1338:
--------------------------------
Hello.
I have the experience of 11 years with JBOSS.
Recently we wanna to migrate from JBOSS 6 to JBOSS 7.1.0 final
Here is a part of my code
final Hashtable jndiProperties = new Hashtable();
jndiProperties.put(Context.PROVIDER_URL, "remote://localhost:4447");
jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
jndiProperties.put("remote.connection.default.username","usera");
jndiProperties.put("remote.connection.default.password","passa");
Context context;
try {
context = new InitialContext(jndiProperties);
I may put username and password, I may not put it - all the time I got
ERROR: JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed]
at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:36)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
JBoss is of course running and the user added to application users.
Any help? Is JBoss 7.1.0 robust enough to port the system from Jboss 6 to it?
> Remote JNDI support for AS7
> ---------------------------
>
> Key: AS7-1338
> URL: https://issues.jboss.org/browse/AS7-1338
> Project: Application Server 7
> Issue Type: Task
> Components: Naming
> Reporter: Richard Opalka
> Assignee: John Bailey
> Priority: Critical
> Labels: eap6_prd_req
> Fix For: 7.1.0.Final
>
>
> Add support for remote JNDI after all. It was agreed that:
> * Remote JNDI would run over Remoting
> * Remote JNDI for EJB is strictly a legacy access protocol, deprecated in favor of "ejb:"
> * The Remote JNDI service would proxy to a specific Context of the server JNDI tree - maybe "java:jboss/shared", maybe something else
> * Server-side services would opt-in to Remote JNDI; initially we'd only support:
> ** Remote EJB interfaces
> ** HornetQ connection factories
> * In the future we may support:
> ** User bindings, so long as they're serializable
> * In the future we will never support:
> ** Proxied DataSources
> ** Proxied JMS invocations
> Initial project tree is at https://github.com/dmlloyd/jboss-remote-jndi for now.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] (AS7-3043) RESTEasy: Setting cfg. param resteasy.scan.resources=false causes that servlet-name javax.ws.rs.core.Application is not defined
by Stuart Douglas (JIRA)
[ https://issues.jboss.org/browse/AS7-3043?page=com.atlassian.jira.plugin.s... ]
Stuart Douglas resolved AS7-3043.
---------------------------------
Fix Version/s: 7.1.0.CR1
Resolution: Done
Do not re-open JIRA issues resolved against released versions, file new a new JIRA instead.
> RESTEasy: Setting cfg. param resteasy.scan.resources=false causes that servlet-name javax.ws.rs.core.Application is not defined
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: AS7-3043
> URL: https://issues.jboss.org/browse/AS7-3043
> Project: Application Server 7
> Issue Type: Bug
> Components: REST
> Affects Versions: 7.1.0.Beta1b, 7.1.1.Final, 7.1.2.Final
> Reporter: Pavel Janousek
> Assignee: Weinan Li
> Priority: Blocker
> Fix For: 7.1.0.CR1
>
>
> When I set {code:xml}
> <context-param>
> <param-name>resteasy.scan.resources</param-name>
> <param-value>false</param-value>
> </context-param>
> {code} in web.xml, I can't use{code:xml}
> <servlet-mapping>
> <servlet-name>javax.ws.rs.core.Application</servlet-name>
> <url-pattern>/myjaxrs/*</url-pattern>
> </servlet-mapping>
> {code} because _javax.ws.rs.core.Application_ is not defined yet.
> I got exception like this:{code}java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name javax.ws.rs.core.Application{code}
> I'm not sure, but I think that declaration of servlet-name _javax.ws.rs.core.Application_ should be independent to setting this parameter to *any* value. It should only impact scanning user-defined (= included in WAR) resources.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month