it seems we need to configure logimodule or something like this

Caused by: javax.security.auth.login.LoginException: No LoginModules
configured for activemq-domain
at javax.security.auth.login.LoginContext.init(LoginContext.java:264)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:417)
at
org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:72)

But not sure if configuring tomee.xml parameters it should be enough or not.

El dj., 12 març, 2015 a les 14:35, Alex Soto (<[email protected]>) va
escriure:

> Hi I am trying to deploy an application on Apache TomEE that uses an
> external ActiveMQ instance.
>
> I have configured in tomee.xml in this way:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <tomee>
>   <!-- see http://tomee.apache.org/containers-and-resources.html -->
>
>   <!-- activate next line to be able to deploy applications in apps -->
>   <!-- <Deployments dir="apps" /> -->
>   <Resource id="senderResourceAdapter" type="ActiveMQResourceAdapter">
>     BrokerXmlConfig =
>     ServerUrl       =  tcp://host:61616
>     startupTimeout  = 10 seconds
>   </Resource>
>
>   <Resource id="senderConnectionFactory"
> type="javax.jms.ConnectionFactory">
>     ResourceAdapter = senderResourceAdapter
>     userName = user
>     password = user
>   </Resource>
> </tomee>
>
> Also I have tried to put the username and password to
> ACtiveMQResourceAdapter but in both cases I receive the next exception:
>
> WARNING: Unable to enlist XAResource
> org.apache.geronimo.transaction.manager.WrapperNamedXAResource@5849b991,
> errorCode: -7
> javax.transaction.xa.XAException: User name [null] or password is invalid.
>
> The external instance is a docker container (
> https://registry.hub.docker.com/u/webcenter/activemq/) which says that
> default user login and password is user. So is it correctly configured?
>
> Thanks.
>
>

Reply via email to