Hi Jeff,
In WEB-INF/web.xml, I set
<context-param>
<param-name>oa4mp:scitokens.server.config.file</param-name>
<param-value>/opt/tomcat/conf/scitokens-server-config.xml</param-value>
</context-param>
<context-param>
<param-name>oa4mp:
oauth2.server.config.name</param-name>
<param-value>
sugwg-scitokens.phy.syr.edu</param-value>
</context-param>
and then in /opt/tomcat/conf/scitokens-server-config.xml I set
<config>
<server name="
sugwg-scitokens.phy.syr.edu">
<service name="oa4mp:scitokens.fileStore"
...
</service>
</server>
</config>
But I still get the same error:
16-Jul-2019 20:17:50.705 SEVERE [http-nio-8443-exec-14] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.scitokens.loader.STBootstrapper
edu.uiuc.ncsa.security.core.exceptions.MyConfigurationException: Error: could not load configuration
at edu.uiuc.ncsa.security.servlet.Bootstrapper.contextInitialized(Bootstrapper.java:46)
Cheers,
Duncan.
> On Jul 16, 2019, at 7:37 AM, Jeff Gaynor <
gay...@illinois.edu> wrote:
>
> First off, you must specify both the path to the file and the name of the configuration within the file. There can be several configurations in a file.
>
> <context-param>
>
>
> <param-name>oa4mp:
oauth2.server.config.name</param-name>
>
>
> <param-value>scitokens-server</param-value>
> </context-param
> >
>
> Which in turn means you need to have the name set as something like
>
> <config>
> <server name="scitokens-server ...
>
> within the file.
>>>
https://groups.google.com/a/scitokens.org/d/msgid/discuss/F4E5977C-A937-4A93-B487-B327E47DF583%40syr.edu