<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AppDynamics on WebSphere with Java 2 Security Enabled. in AppD Archive</title>
    <link>https://community.splunk.com/t5/AppD-Archive/AppDynamics-on-WebSphere-with-Java-2-Security-Enabled/m-p/726889#M2635</link>
    <description>&lt;P&gt;Hi. I'd recommend contacting support as there can be several ways to resolve this depending on the environment.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Nov 2015 16:18:05 GMT</pubDate>
    <dc:creator>Allan_Schiebold</dc:creator>
    <dc:date>2015-11-19T16:18:05Z</dc:date>
    <item>
      <title>AppDynamics on WebSphere with Java 2 Security Enabled.</title>
      <link>https://community.splunk.com/t5/AppD-Archive/AppDynamics-on-WebSphere-with-Java-2-Security-Enabled/m-p/726888#M2634</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We currently have the AppDynamics Java agent installed for WebSphere Application Server v7. The application server that is hosting the application that we want to monitor has "Java 2 Security" enabled.&lt;/P&gt;

&lt;P&gt;Our AppDynamics agent is installed in /opt/AppDynamics and the error we see in the application server SystemOut.log is:&lt;/P&gt;

&lt;P&gt;[11/16/15 15:14:00:683 AST] 00000016 SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Refer to the InfoCenter for further information.&lt;/P&gt;
&lt;P&gt;Permission:&lt;/P&gt;
&lt;P&gt;/opt/AppDynamics/APPAGENT/logs/APPAGENT_617/ByteCodeTransformer.2015_11_16__15_13_45.0.log : Access denied (java.io.FilePermission /opt/AppDynamics/APPAGENT/logs/APPAGENT_617/ByteCodeTransformer.2015_11_16__15_13_45.0.log read)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Code:&lt;/P&gt;
&lt;P&gt;com.singularity.ee.agent.util.pe in {file:/opt/AppDynamics/APPAGENT/lib/appagent.jar}&lt;/P&gt;

&lt;P&gt;Stack Trace:&lt;/P&gt;
&lt;P&gt;java.security.AccessControlException: Access denied (java.io.FilePermission /opt/AppDynamics/APPAGENT/logs/APPAGENT_617/ByteCodeTransformer.2015_11_16__15_13_45.0.log read)&lt;/P&gt;

&lt;P&gt;From what I can see, we need to edit the server.policy file to add the missing permissions for AppDynamics to read local resources?&lt;/P&gt;

&lt;P&gt;What do you recommend?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Joey&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 13:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/AppDynamics-on-WebSphere-with-Java-2-Security-Enabled/m-p/726888#M2634</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2015-11-17T13:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: AppDynamics on WebSphere with Java 2 Security Enabled.</title>
      <link>https://community.splunk.com/t5/AppD-Archive/AppDynamics-on-WebSphere-with-Java-2-Security-Enabled/m-p/726889#M2635</link>
      <description>&lt;P&gt;Hi. I'd recommend contacting support as there can be several ways to resolve this depending on the environment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 16:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/AppDynamics-on-WebSphere-with-Java-2-Security-Enabled/m-p/726889#M2635</guid>
      <dc:creator>Allan_Schiebold</dc:creator>
      <dc:date>2015-11-19T16:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: AppDynamics on WebSphere with Java 2 Security Enabled.</title>
      <link>https://community.splunk.com/t5/AppD-Archive/AppDynamics-on-WebSphere-with-Java-2-Security-Enabled/m-p/726890#M2636</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Joey,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;Adding to Allan comments, to answer your query in specific , yes one way is to add below similar snippet of code in your server.policy file referred part of server jvm args (you can get the server.policy file location by seeing jvm args issuing command "ps -ef | grep&amp;nbsp;java" output on same jvm machine shell prompt)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;grant codeBase "file:/opt/AppDynamics/APPAGENT/-" {&lt;BR /&gt;permission java.security.AllPermission;&lt;BR /&gt;permission java.io.FilePermission;&lt;BR /&gt;};&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 18:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/AppDynamics-on-WebSphere-with-Java-2-Security-Enabled/m-p/726890#M2636</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2015-11-19T18:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: AppDynamics on WebSphere with Java 2 Security Enabled.</title>
      <link>https://community.splunk.com/t5/AppD-Archive/AppDynamics-on-WebSphere-with-Java-2-Security-Enabled/m-p/726891#M2637</link>
      <description>&lt;P&gt;Hi akumar,&lt;/P&gt;

&lt;P&gt;Thank you very much for your reply. After investigation I had also found that I could use that snippet of code to make it work. My concern was if it could affect the other application servers on the same server since the change is made in the "server.policy" file (and not in app.policy or was.policy).&lt;/P&gt;

&lt;P&gt;I will check with AppDynamics support if their solution is similar to yours.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Joey&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 19:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/AppDynamics-on-WebSphere-with-Java-2-Security-Enabled/m-p/726891#M2637</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2015-11-19T19:21:06Z</dc:date>
    </item>
  </channel>
</rss>

