• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
        • Enterprise Synthetic Monitoring
      • Synthetic Classic
        • Synthetic Classic Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Vijaya R. · Sep 09, 2016 at 12:25 PM · appmon configuration 6.5 agent java server collector apache

Problem while injecting Dynatrace agent into WebLogic App Server 11g

Dear friends,

I am new to Dynatrace set up and facing the issue while injecting host agent into Web Logic server's startWebLogic.cmd file.

Line to copy and paste from Dynatrace clipboard to startWebLogic.cmd, startManagedWeblogic.cmd and startNodeManger.cmd files is,

        -agentpath:"C:\Program Files\Dynatrace\Dynatrace 6.5\agent\lib64\dtagent.dll"=name=OracleWebLogic_Monitoring,server=xxxMyComputerName:9998

Issues while configuring dynatrace are,

Case 1 : If I copy same line and continue,

My application will run successfully, but Web Logic Agent will not get added in Dynatrace

Case 2 : If I copy the above line after replacing lib64 to lib,

My application will not run properly(i., few navigation links are getting disabled), but Web Logic Agent will get added in Dynatrace.

Error Log :

||20160906||17:42:55,687||738c78542c0304a61473163971241||INFO ||myappc.common.ContextTree.getContextEntityTree():[132]||Exiting getContextEntityTree....
||20160906||17:42:55,706||738c78542c0304a61473163971241||DEBUG||presentation.helper.TabHelper.buildSecondaryTabItems():[282]||total time to evaluate all the tabs....3  seconds
||20160906||17:42:55,706||738c78542c0304a61473163971241||DEBUG||presentation.helper.TabHelper.buildSecondaryTabItems():[316]||Time taken by buildSecondaryTabItems() method....3653
||20160906||17:42:55,714||738c78542c0304a61473163971241||DEBUG||presentation.helper.TabHelper.buildTabXML():[521]||Time taken by buildTabXML() method....8
||20160906||17:42:55,714||738c78542c0304a61473163971241||DEBUG||presentation.helper.TabHelper.buildTabXML():[522]||[#document: null]
||20160906||17:42:55,729||738c78542c0304a61473163971241||INFO ||presentation.filter.JSPTrackerFilter.doFilter():[54]||JSPTrackerFilter  :    User Id = 10000,    User XYZ Id = 1, JSP Name = /MyAPPDesktop/jsp/core/content.jsp    , Date & Timestamp = 9/6/16 5:42 PM    ,Browser Name & Version = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
||20160906||17:42:55,745||738c78542c0304a61473163971241||DEBUG||core.presentation.SingleSignOnConstants.getPingURL():[57]||Ping URL: @business.builder.ping.url@
||20160906||17:42:55,745||738c78542c0304a61473163971241||DEBUG||core.presentation.SingleSignOnConstants.getLogoffURL():[38]||Exit URL: @business.builder.logoff.url@
||20160906||17:42:55,745||738c78542c0304a61473163971241||DEBUG||presentation.taglib.XsltTag.doEndTag():[109]||Parse XmlString: START @ Tue Sep 06 17:42:55 IST 2016
||20160906||17:42:55,745||738c78542c0304a61473163971241||DEBUG||presentation.taglib.XsltTag.doEndTag():[113]||Parse XmlString: END @ Tue Sep 06 17:42:55 IST 2016
||20160906||17:42:55,745||738c78542c0304a61473163971241||DEBUG||presentation.taglib.XsltTag.doEndTag():[128]||Initialize Parameters START @ Tue Sep 06 17:42:55 IST 2016
||20160906||17:42:55,745||738c78542c0304a61473163971241||DEBUG||presentation.taglib.XsltTag.doEndTag():[141]||Initialize Parameters END @ Tue Sep 06 17:42:55 IST 2016
||20160906||17:42:55,745||738c78542c0304a61473163971241||DEBUG||presentation.taglib.XsltTag.doEndTag():[144]||Transform START @ Tue Sep 06 17:42:55 IST 2016
||20160906||17:42:56,322||738c78542c0304a61473163971241||DEBUG||presentation.taglib.XsltTag.doEndTag():[159]||Tag Library Exception
java.io.CharConversionException: Not an ISO 8859-1 character: ?
	at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:99)
	at com.myappc.common.presentation.taglib.XsltTag.doEndTag(XsltTag.java:149)
	at jsp_servlet._jsp._core.__content._jspService(__content.java:1061)
	at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
	at com.myappc.common.presentation.filter.UserContextFilter.doFilter(UserContextFilter.java:65)
	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
	at com.myappc.common.presentation.filter.JSPTrackerFilter.doFilter(JSPTrackerFilter.java:61)
	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
	at com.myappc.common.presentation.helper.InjectionAttackFilter.chainNext(InjectionAttackFilter.java:194)
	at com.myappc.common.presentation.helper.InjectionAttackFilter.doFilter(InjectionAttackFilter.java:188)
	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
	at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:527)
	at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
	at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:114)
	at org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
	at org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:56)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1914)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
	at com.myappc.common.presentation.filter.UserContextFilter.doFilter(UserContextFilter.java:65)
	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
	at com.myappc.common.presentation.helper.InjectionAttackFilter.chainNext(InjectionAttackFilter.java:194)
	at com.myappc.common.presentation.helper.InjectionAttackFilter.doFilter(InjectionAttackFilter.java:188)
	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
||20160906||17:42:56,322||738c78542c0304a61473163971241||ERROR||presentation.helper.InjectionAttackFilter.chainNext():[196]||An exception occured while chaining from injection filtering: javax.servlet.jsp.JspTagException: Not an ISO 8859-1 character: ?
||20160906||17:43:05,630||8533e7389504b38a1473163250934||DEBUG||web.interceptor.InjectionAttackInterceptor.isInjectionAttack():[104]||isInjectionAttack: _:1473163985561

Few other observations are,

  1. I did not find the file “C:\Program Files\dynaTrace\Dynatrace 6.3\agent\conf\dthostagent.ini” in my local system.
    1. Will this file be get generated while installation? Or
    2. Will this file be get generated while configuring Dynatrace?
    3. I have created new sample file manually with Host agent entries as per resources from Google. Please find the file content of dthostagent.ini as,
    # The name of the host agent (used for agent mapping on the dynaTrace Server).
    # Default: host
    Name OracleWebLogic_Monitoring
    # The address of the dynaTrace Collector this agent should connect to. 
    # The address is of the form host:port, e.g. exampleserver:9998
    # Default: localhost
    Server my-5028-xyz:9998
    
  2. While installing and after installation of Dynatrace software ( dynatrace-full-6.5.0.1247-x86-64.msi), we did not face any steps like agents installation.

I am using below mentioned s/ws.

  • user will hit the home page url from any browser
  • Request will hit the Apache 2.2 server - it's 32-bit agent get added in Dynatrace.
  • Then request will forwarded to Web Logic server 11g with JRockit. web logic start up console log is,
    ................
    starting weblogic with Java version:
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Oracle JRockit(R) (build R28.0.0-679-130297-1.6.0_17-20100312-2123-windows-ia32, compiled mode)
    Starting WLS with line:
    E:\Oracle\MIDDLE~1\JROCKI~1.0-6\bin\java -jrockit   -Xms1024m -Xmx2048m  -Dlog4j.configuration=file:D:\wls\user_projects\domains\desktop_domain\app-config/log4j
    .xml -Dgipp.config.file=D:\wls\user_projects\domains\desktop_domain\app-config/gipp.properties -Dtangosol.coherence.cacheconfig=D:\wls\user_projects\domains\des
    ktop_domain\app-config/coherence-config-local.xml -Dtangosol.coherence.override=D:\wls\user_projects\domains\desktop_domain\app-config/tangosol-coherence-overri
    de.xml -Ddevelopment.mode=true -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=7002,suspend=n -Xverify:none  -da -Dplatfor
    m.home=E:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server   -Dweblogic.managemen
    t.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=E:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_m
    anifest_classpath;E:\Oracle\MIDDLE~1\patch_oepe1033\profiles\default\sysext_manifest_classpath;E:\Oracle\MIDDLE~1\patch_ocp353\profiles\default\sysext_manifest_
    classpath -agentpath:"C:\Program Files\Dynatrace\Dynatrace 6.5\agent\lib64\dtagent.dll"=name=OracleWebLogic_Monitoring,server=my-5028-xyz:9998 -Dweblogic.Nam
    e=AdminServer -D
    java.security.policy=E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy  -Dlog4j.configuration=file:D:\wls\user_projects\domains\desktop_d
    omain\app-config/log4j.xml -Dgipp.config.file=D:\wls\user_projects\domains\desktop_domain\app-config/gipp.properties -Dtangosol.coherence.cacheconfig=D:\wls\use
    r_projects\domains\desktop_domain\app-config/coherence-config-local.xml -Dtangosol.coherence.override=D:\wls\user_projects\domains\desktop_domain\app-config/tan
    gosol-coherence-override.xml -Ddevelopment.mode=true -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=7002,suspend=n -Xveri
    fy:none  -da -Dplatform.home=E:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server
      -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=E:\Oracle\MIDDLE~1\patch_wls1033\pro
    files\default\sysext_manifest_classpath;E:\Oracle\MIDDLE~1\patch_oepe1033\profiles\default\sysext_manifest_classpath;E:\Oracle\MIDDLE~1\patch_ocp353\profiles\de
    fault\sysext_manifest_classpath -agentpath:"C:\Program Files\Dynatrace\Dynatrace 6.5\agent\lib64\dtagent.dll"=name=OracleWebLogic_Monitoring,server=my-5028
    -xyz:9998  weblogic.Server
    [ERROR][load   ] Could not load library C:\Program Files\Dynatrace\Dynatrace 6.5\agent\lib64\dtagent.dll
    Listening for transport dt_socket at address: 7002
    <Sep 6, 2016 12:13:44 PM IST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    D:\wls\user_projects\domains\desktop_domain\lib\coherence.jar;D:\wls\user_projects\domains\desktop_domain\lib\commons-codec-1.7.jar;D:\wls\user_projects\domains
    \desktop_domain\lib\commons-logging-1.1.1.jar;D:\wls\user_projects\domains\desktop_domain\lib\log4j-1.2.17.jar;D:\wls\user_projects\domains\desktop_domain\lib\s
    qljdbc-1.2.jar>
    <Sep 6, 2016 12:13:45 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Oracle JRockit(R) Version R28.0.0-679-130297-1.6.0_17-20100312
    -2123-windows-ia32 from Oracle Corporation>
    <Sep 6, 2016 12:13:45 PM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.3.0  Fri Apr 9 00:05:28 PDT 2010 1321401 >
    <Sep 6, 2016 12:13:47 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Sep 6, 2016 12:13:47 PM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    .........
    
    
  • In the above log, we can observe the error log as,
    [ERROR][load   ] Could not load library C:\Program Files\Dynatrace\Dynatrace 6.5\agent\lib64\dtagent.dll
  • My Apache 2.2 server version is,
    D:\Data\NS\Setup\Apache2.2\bin>httpd -V
    Server version: Apache/2.2.11 (Win32)
    Server built:   Dec 10 2008 00:10:06
    Server's Module Magic Number: 20051115:21
    Server loaded:  APR 1.3.3, APR-Util 1.3.4
    Compiled using: APR 1.3.3, APR-Util 1.3.4
    Architecture:   32-bit
    Server MPM:     WinNT
      threaded:     yes (fixed thread count)
        forked:     no
    Server compiled with....
     -D APACHE_MPM_DIR="server/mpm/winnt"
     -D APR_HAS_SENDFILE
     -D APR_HAS_MMAP
     -D APR_HAS_OTHER_CHILD
     -D AP_HAVE_RELIABLE_PIPED_LOGS
     -D DYNAMIC_MODULE_LIMIT=128
     -D HTTPD_ROOT="/apache"
     -D SUEXEC_BIN="/apache/bin/suexec"
     -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
     -D DEFAULT_ERRORLOG="logs/error.log"
     -D AP_TYPES_CONFIG_FILE="conf/mime.types"
     -D SERVER_CONFIG_FILE="conf/httpd.conf"
    
    
    D:\Data\NS\Setup\Apache2.2\bin>
    

Please suggest me to find out the root cause of the issue and it's resolution.

Comment

People who like this

0 Show 4
10 |2000000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

avatar image Vijaya R. · Sep 12, 2016 at 10:17 AM 0
Share
Hi Dynatrace Users, Would you please look into the above mentioned issue? Is it compulsory to have all agents ( Servers and JVM) should belongs to same bit type like either 64-bit nor 32-bit? If it is not compulsory, then why I am unable to run properly both my application and local Dynatrace Server at same time.
avatar image Maia C. · Sep 12, 2016 at 01:17 PM 0
Share

Vijaya, I've moved your question to the AppMon & UEM Open Q&A forum, where people who can help you with this issue will see it.

avatar image Vijaya R. · Sep 16, 2016 at 11:37 AM 0
Share

Hi All,

Still I am facing same problem even after I made all my JVM and servers software to 32-bit.

The issue is, after injecting a server agent into my Web Logic Server, my application will not work properly. Few right navigation links and body of that links will not be displayed.

Is there any security settings I need to do along with agent injection in Web logic configuration ?

avatar image Vijaya R. · Sep 19, 2016 at 08:14 AM 0
Share

Hi All,

I have been facing the same issue since last one month.

Is there any security settings in Web logic/Apache/Browsers/JVM/Application-code, do I need along with agent injection in Web logic and Apache servers? if yes, please mention those settings.

If not, dynatrace is not a suitable tool to monitor all high secured enterprise/web applications.

Would anybody suggest/finalize this question?

2 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by David L. · Feb 20, 2017 at 06:23 PM

So did you get this solved?

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

avatar image James K. · Feb 20, 2017 at 07:03 PM 0
Share

I found the support case, it looks like they were injecting an agent with the incorrect bitness (it was a 32 bit application and the agent they were using was 64 bit).

avatar image

Answer by Dan B. · Sep 21, 2016 at 01:35 PM

Hi Vijaya,

This issue looks like it may be better serviced by our support team. If you haven't already done so you can submit a ticket at our support portal here.

After support helps resolve this issue for you could you post in this thread again with the solution? It might help someone else in the future.

Hope this helps,

Dan

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

Join the conversation!

First steps in the forum
Community User Guide

LIVE WEBINAR

"Power Demo: Software Intelligence for Cloud Infrastructure"


DECEMBER 12, 10:00 AM GMT / 2:00 PM ET

Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Eclipse Plugin - no test results available 4 Answers

Could not convert socket to TLS [EmailSender] WARNING 2 Answers

we want to export some reports from dynatrace and import it to BCO BMC 4 Answers

Dynatrace Agent is not connecting 11 Answers

Training Guidance, Tips ( Words of Wisdom), or Documentation 6 Answers

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api errors dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java browser agent community user guide hybris javascript appmon sensors good to know search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow diagnostics user session monitoring unique users continuous delivery configuration alerting NGINX splitting business transaction client 6.3 installation chart database scheduler apache mobileapp RUM php dashlet azure purepath plugins agent 7.1 appmonsaas messagebroker nodejs 6.2 incidents android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A
      • Enterprise Synthetic Monitoring
    • Synthetic Classic
      • Synthetic Classic Open Q&A