basileChandesris

AGS 10.2.2 - tokens/generate-token-html.jsp fix

Discussion created by basileChandesris on Jun 16, 2014
The stylesheet http://localhost/arcgis/tokens/generate-token-html.jsp/css/main.css was not loaded because its MIME type, "text/html", is not "text/css".

<link href="http://localhost/arcgis/tokens/generate-token-html.jsp/css/main.css" rel="stylesheet" type="text/css"/>
http://localhost/arcgis/tokens/generate-token-html/css/main.css
=> java.lang.NullPointerException: Input stream is null.

C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\webapps\arcgis#tokens\generate-token-html.jsp
<link href="<%=cpath %>/css/main.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=cpath %>/js/BigInt.js"></script>
<script type="text/javascript" src="<%=cpath %>/js/Barrett.js"></script>
<script type="text/javascript" src="<%=cpath %>/js/RSA.js"></script>
<script type="text/javascript" src="<%=cpath %>/js/admin.js"></script>

<link href="<%=cpath %>/../css/main.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=cpath %>/../js/BigInt.js"></script>
<script type="text/javascript" src="<%=cpath %>/../js/Barrett.js"></script>
<script type="text/javascript" src="<%=cpath %>/../js/RSA.js"></script>
<script type="text/javascript" src="<%=cpath %>/../js/admin.js"></script>

Outcomes