Reputation: 944
I'm trying to setup Artemis with SSL
my etc/bootstrap.xml
file looks like :
<broker xmlns="http://activemq.org/schema">
<web bind="https://0.0.0.0:8161" path="web" keystorePath="keystore.p12" keystorePassword="123" truststorePath="trusstore.p12" truststorePassword="123">
<app url="activemq-branding" war="activemq-branding.war"/>
<app url="artemis-plugin" war="artemis-plugin.war"/>
<app url="console" war="console.war"/>
</web>
</broker>
which I did like it was written in the documentation, but when I run artemis service I'm getting error:
javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 28; columnNumber: 188; cvc-complex-type.3.2.2: Attribute 'keystorePath' is not allowed to appear in element 'web'.]
I cant understand what I did wrong?
Upvotes: 0
Views: 745
Reputation: 2309
JAXB unmarshalling is case sensitive, so you can fix this error replacing the following attribute names: keystorePath > keyStorePath, keystorePassword > keyStorePassword, truststorePath > trustStorePath and truststorePassword > trustStorePassword.
<broker xmlns="http://activemq.org/schema">
<jaas-security domain="activemq"/>
<server configuration="file:/home/dbruscin/Workspace/temp/apache-artemis-2.11.0/broker/etc//broker.xml"/>
<web bind="https://0.0.0.0:8161" path="web" keyStorePath="keystore.p12" keyStorePassword="123" trustStorePath="trusstore.p12" trustStorePassword="123">
<app url="activemq-branding" war="activemq-branding.war"/>
<app url="artemis-plugin" war="artemis-plugin.war"/>
<app url="console" war="console.war"/>
</web>
</broker>
Upvotes: 2