Using awk or sed to parse the web proxy file
I'm trying to figure out how to extract the web address from the proxy log, so that upon seing www.apple.com/images/image.jpg the function would only return www.apple.com
Essentialy I'd like to find the first instance of .*/ (so it could be .com/ .net/ etc.) and cut away (discard) everything after that.
Thank you.
sed -e 's/\/.*$//' proxyLog
Roger
Similar Messages
-
used to be able to surf the web using 3G and be on a cell phone call. Now it only works when i connect to wifi...WHY WHY WY
Verizon is not a GSM carrier. Verizon and Sprint are CDMA carriers that have also recently adding an LTE (4G) network. The iPhone 5 is a combination LTE/GSM/CDMA network compatible phone.
ATT and T-Mobile are GSM carriers. ATT has also recently added an LTE network.
If you were able to talk and surf the web on Verizon's CDMA network with your iPhone previously, that was some trick which is not supported with a CDMA network as is supported with GSM 3G networks. -
How to config the web.xml file, when I use Richfaces + RI 1.2?
Hi there:
I want to use Richfaces + RI 1.2 to build a project. I don`t know how to config the web.xml file.
By the way, my web server is Tomcat 6.0, my JDK's version is 6u6. I don`t want to use the facelets.
thanks.
lxmjust add this before *</web-app>*
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping> -
I'm currently trying to deploy the struts-example webapp from Struts 1.1 RC1 into
Weblogic Portal 8.1 using the Struts Portlet wizard made available by the "JSR
168 and Struts Support" patch.
I select the struts module successfully "struts-example" and am prompted for the
location of name mangled configuration file (i.e "struts-config.xml" for struts-example
becomes "jpf-struts-config-struts-example.xml").
As soon as I hit next, I am prompted with a dialog informing that me that [Workbench]
"Cannot parse the struts configuration file."
Given that this is a file supplied with the struts distro and that I can deploy
the struts-example to Vanilla WLS 8.1 without problems I suspect this is a problem
with my attempt to use the Struts Portlet.
Can anyone please help?
Thanks,
--Andy HullI'm currently trying to deploy the struts-example webapp from Struts 1.1 RC1 into
Weblogic Portal 8.1 using the Struts Portlet wizard made available by the "JSR
168 and Struts Support" patch.
I select the struts module successfully "struts-example" and am prompted for the
location of name mangled configuration file (i.e "struts-config.xml" for struts-example
becomes "jpf-struts-config-struts-example.xml").
As soon as I hit next, I am prompted with a dialog informing that me that [Workbench]
"Cannot parse the struts configuration file."
Given that this is a file supplied with the struts distro and that I can deploy
the struts-example to Vanilla WLS 8.1 without problems I suspect this is a problem
with my attempt to use the Struts Portlet.
Can anyone please help?
Thanks,
--Andy Hull -
"Cannot parse the struts configuration file" when using the Struts Portlet Wizard
I'm currently trying to deploy the struts webapp from Struts 1.1 into
Weblogic Portal 8.1 using the Struts Portlet wizard.
I select the struts module successfully and am prompted for the
location of configuration file.
As soon as I hit next, I am prompted with a dialog informing "Cannot parse the
struts configuration file."
I have 't started my server.
Thanks
KichaI'm currently trying to deploy the struts webapp from Struts 1.1 into
Weblogic Portal 8.1 using the Struts Portlet wizard.
I select the struts module successfully and am prompted for the
location of configuration file.
As soon as I hit next, I am prompted with a dialog informing "Cannot parse the
struts configuration file."
I have 't started my server.
Thanks
Kicha -
How to deploy the web.xml file when trying to use the JSP SDK from SAP?
I want to use the adduser.jsp which downloaded form SAP SDK samples to add user in BO, but I cannot run it sucessfully. I believe it's caused the web.xml file was not deployed appropriately.
could you please teach how to deploy the web.xml file for the JSP samples ?
Could you show me some sample of web.xml for the SDK jsp files? Thank you very much!Ensure that you have followed below directory structure while deploying your web application.
web_application_name
WEB-INF
lib
classes
web.xml must be placed in WEB-INF. Ensure that you have included all the jar files and other necessary files in your application.
For more information refer to the below link:
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
Regards,
Anuj -
JSP compiler reading the web.xml file?
Hi,
I am trying to use the weblogic JSP compiler (weblogic.jspc) to
pre-compile some JSP that use custom tags. Does the compiler
read the web.xml file if there is one? In particular the taglib
elements in that file so that the compiler understands the
<%@ taglib ... %> directive.
In the JSP I try to compile I use this statement to declare a taglib:
<%@ taglib uri="xyz/xyz-taglib" prefix="xyz" %>
and in my web.xml I have:
<taglib>
<taglib-uri>xyz/xyz-taglib</taglib-uri>
<taglib-location>/WEB-INF/tlds/xyz.tld</taglib-location>
</taglib>
When I try to compile the JSP I get the following error:
Could not parse embedded JSP code: weblogic.utils.ParsingException: nested
IOException: java.io.IOException: cannot resolve 'xyz/xyz-taglib' into a
valid tag library.
Any ideas how I can resolve this?
In advance thank you for any help.
Florian
open it in a text editor and modify it.
% -
Windows event log shows AzureDiagnostics errors "Failed to parse the WAD config file" and warning "
No certficate with given thumbprint found in the certificate store. Thumbprint:" and
System.ArgumentNullException: Value cannot be null.
Parameter name: s
at System.IO.StringReader..ctor(String s)
at Microsoft.Azure.Plugins.Plugin.WadConfigValidator`1.Validate(String configString, String schemaPath, StringBuilder builder)
at Microsoft.Azure.Plugins.Plugin.WadConfigValidator`1.Initialize(String configString, String schemaPath)
at Microsoft.Azure.Plugins.Plugin.WadParser.Parse()
Also tried a different deployment on a different subscription, same issue, and this one gets stuck in 'create' state with no roles showing up in 'instances' section for quite some time. Are Cloud Services even maintained by Microsoft
anymore? Seems that they are second class citizens to VMs, no updates, no new portal, no new features, often can't update single role without updating all roles, etc.i am facing same error : here is the log:
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Starting DiagnosticPlugin.exe DiagnosticPlugin-ShutdownEvent DiagnosticPlugin-TotalShutdownEvent -wadVer1v3
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Starting DiagnosticsPlugin
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Checking VM Type
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] File HandlerEnvironment.json not found. Extension set to PAAS
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] RcfFileName: C:\Config\881bb2e524c04870b4e993fd8fefb7d8.881bb2e524c04870b4e993fd8fefb7d8.WorkerRole1_IN_0.13.xml
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] RoleInstanceId: WorkerRole1_IN_0; DeploymentId: 881bb2e524c04870b4e993fd8fefb7d8; RoleName: WorkerRole1
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Checking VM Type
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] File HandlerEnvironment.json not found. Extension set to PAAS
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Store Size: 4096
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Reading XML configuration file
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Will use thumbprint
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Decrypting private configuration
DiagnosticsPlugin.exe Warning: 0 : [3/19/2015 6:00:39 PM] No certficate with given thumbprint found in the certificate store. Thumbprint:
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Retrying after 30 seconds. Retry attempt 1
DiagnosticsPlugin.exe Warning: 0 : [3/19/2015 6:01:09 PM] No certficate with given thumbprint found in the certificate store. Thumbprint:
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:01:09 PM] Retrying after 30 seconds. Retry attempt 2
DiagnosticsPlugin.exe Warning: 0 : [3/19/2015 6:01:39 PM] No certficate with given thumbprint found in the certificate store. Thumbprint:
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:01:39 PM] Retrying after 30 seconds. Retry attempt 3
DiagnosticsPlugin.exe Error: 0 : [3/19/2015 6:02:09 PM] System.Security.Cryptography.CryptographicException: The enveloped-data message does not contain the specified recipient.
at System.Security.Cryptography.Pkcs.EnvelopedCms.DecryptContent(RecipientInfoCollection recipientInfos, X509Certificate2Collection extraStore)
at Microsoft.Azure.Plugins.Diagnostics.dll.PluginConfigurationSettingsProvider.DecryptPrivateConfig(String encryptedConfig)
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:02:09 PM] WadCfg is provided in initial configuration. Using that to initialize Diagnostics.
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:02:09 PM] <PublicConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<WadCfg>
<DiagnosticMonitorConfiguration overallQuotaInMB="4096">
<DiagnosticInfrastructureLogs />
<Directories scheduledTransferPeriod="PT1M">
<IISLogs containerName="wad-iis-logfiles" />
<FailedRequestLogs containerName="wad-failedrequestlogs" />
</Directories>
<PerformanceCounters scheduledTransferPeriod="PT1M">
<PerformanceCounterConfiguration counterSpecifier="\Memory\Available MBytes" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\ISAPI Extension Requests/sec" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\Bytes Total/Sec" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Requests/Sec" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Errors Total/Sec" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Queued" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Rejected" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time" sampleRate="PT3M" />
</PerformanceCounters>
<WindowsEventLog scheduledTransferPeriod="PT1M">
<DataSource name="Application!*" />
<DataSource name="System!*" />
</WindowsEventLog>
<CrashDumps dumpType="Full">
<CrashDumpConfiguration processName="WaAppAgent.exe" />
<CrashDumpConfiguration processName="WaIISHost.exe" />
<CrashDumpConfiguration processName="WindowsAzureGuestAgent.exe" />
<CrashDumpConfiguration processName="WaWorkerHost.exe" />
<CrashDumpConfiguration processName="DiagnosticsAgent.exe" />
<CrashDumpConfiguration processName="w3wp.exe" />
</CrashDumps>
<Logs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose" />
</DiagnosticMonitorConfiguration>
</WadCfg>
<StorageAccount>vinaystorageaccounttest</StorageAccount>
</PublicConfig>
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:02:09 PM] Private setting is loaded
DiagnosticsPlugin.exe Error: 0 : [3/19/2015 6:02:09 PM] System.ArgumentNullException: Value cannot be null.
Parameter name: s
at System.IO.StringReader..ctor(String s)
at Microsoft.Azure.Plugins.Plugin.WadConfigValidator`1.Validate(String configString, String schemaPath, StringBuilder builder)
at Microsoft.Azure.Plugins.Plugin.WadConfigValidator`1.Initialize(String configString, String schemaPath)
at Microsoft.Azure.Plugins.Plugin.WadParser.Parse()
DiagnosticsPlugin.exe Error: 0 : [3/19/2015 6:02:09 PM] Failed to parse the WAD config file
DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:02:09 PM] DiagnosticPlugin.exe exit with code -106 -
Help! I was cruzing along just fine and went out tonight only to receive the message above:
Cannot open Page
Safari cannot open the page
The error was: "There was a problem communicating with the web proxy server (HTTP)."
I have had all the Apple iPhone phone. Have never encountered anything like this.
All systems are GO as soon as I log on to wifi.
Can anyone help, please.I am also fixed. I also loaded Onavo, but that was the other day ... this is what I did with the help of online chat with AT&T ...
I went to:
Settings
Wifi
I selected the network I was working on by hitting the blue arrow located on right side
At the detail page of that network I scolled down to the bottom to find HTTP Proxy boxes
I was on Off and changed it to Auto and it worked!
I was soo jazzed!!
Instructions said if it was already on AUTO, to change it to Manual and make your Port = 80 but I didn't have to do that!
YIPPIE!! I'm a new man!!
Go to settings -----> WI-FI -----> select the network you're using ------> hit the blue arrow located on the right-side of the network name (ie: show details of that network), this takes you to another page.
--------> at the bottom of the page you'll see "HTTP Proxy" boxes (located below the "renew lease" button) ---------------> change the proxy to AUTO. Note: if you're already at AUTO, change it to "Manual" and make your Port = 80. -
How to edit the web.xml file
hi friends,
i have been working with netbeans for webapplications so far therefore its not ever been requerd to edit the web.xml file that automatically done by IDE itself.
now, i am just trying to deploy the servlet and jsp's externally without using any tool and i found a requrement to map the servlet and jsp in web.xml file. when i try to edit inside this file it seems noneditable, nothing gonna change. i have an alternate to do this is firstly copy the content of this file into txt file and after making the requred changes overwrite this file in .xml formate to orignal web.xml file.
am i going in right way?? please help me
regards
sanopen it in a text editor and modify it.
% -
Configuring a JNDI ressource in the web.xml file
Hi,
does someone know if there is a way to configure a JNDI ressource with its parameters only in the web.xml file ?
In my case, the JNDI ressouce is an oracle database an its conenction paramters: driverClassName, username, password, etc...
Actually, I put everything in the configuration file of Tomcat but I would like my war file to be 100% independent of the application server.
Thanks in advance.
Fred.I'm pretty sure you can't do it that way round. The logic of the thing is that database access URLs etc. tend to depend on the where the server is. The whole idea of these resources is to put the stuff that's specific to the server in server.xml and refer to it using names that should remain the same if you deploy your webapp on another server. Of, for example, you have test, stage and production servers running the same webapps but connecting to different databases.
-
Do I must put ALL my servlets inside the web.xml file?
Hello everybody,
I am trying to migrate from Webshere to TOMCAT a project with severals packets, one of those have 15 servlets and some classes.
Is there any way to use the servlets without have to declare each one inside the web.xlm file ?
Thanks in advance.All servlet definitions go into web.xml, though not the actual servlets themselves :) . Say if you wanted servlet A to have a different mapping you would define the mapping in web.xml to something other than the standard one.
-
Whats the purpose of the web.xml file?
Hi
What is the purpose of the web.xml fle?
and does it have any impact on deployment?
I get this msg when I am compiling .
ignoring C:\JDeveloper9iRC\jdev\mywork\MIS_IntranetWS\mis_intranet\public_html\WEB-INF\web.xml; not on sourcepath
I cannot deploy but for what reason I don't know. Am wondering if this is related at all
ThanksThe web.xml file is the standard deployment descriptor for a J2EE web application (or "web module" when it is part of a J2EE Application). The full details of what the web.xml is for is described in the Servlet 2.2 spec (if you're using J2EE 1.2) or the Servlet 2.3 spec (if you're using J2EE 1.3). You can download the Servlet spec from http://java.sun.com/products/servlet/download.html
The web.xml file is used when deploying a WAR file to a J2EE app server. However the message you cite isn't indicating a deployment failure. When you get a deployment failure, you should see a message in the JDev Log Window indicating the reason for the failure. Be sure the Log Window is visible by selecting View | Log Window from the main menu. -
Export for the Web and File Naming : Batch problem in Photoshop CC
Is it possible to use "File Naming" when you are using in a batch "Save for the Web" export ?
What I want to do:
I have images that I need to resize, crop and rename (change "filename.jpg" to "filename_850x490.jpg" and make an optimisation for the web
I want to create an action that I can use in a batch
What is working :
I can use my action (resize, crop, save) and use file renaming option if I use "save as" options
I can use my action (resize, crop, save for the web ...) but the file renaming option are not use at the export,
So I have to create two actions (one for resize, crop and rename and an other to compress images with "save for the web"
==> What's wrong with "File rename" and "save for the web"?
Thank You for support !
My Environement :
Photoshop CC : last update
OS : Windows 8 Entreprise - 64 bits
Proc : Intel Xeon CPU E5 3.00 GHz - Ram : 8 GB - GPU : AMD FirePro V5900 (FireGL V)Probably a lot easier if you use the Image Processor Pro script
(part of Dr. Brown’s Services 2.3.1)
http://www.russellbrown.com/scripts.html -
17:06:13 Synchronizer Version 14.0.6123
17:06:13 Synchronizing Mailbox '[email protected]'
17:06:13 Synchronizing Hierarchy
17:06:13 4 folder(s) added to online store
17:06:13 1 folder(s) updated in online store
17:06:13 Synchronizing local changes in folder 'Inbox'
17:06:13 Error synchronizing folder
17:06:13 [80041004-0-0-430]
17:06:13 Error with Send/Receive.
17:06:13 There was an error synchronizing your folder hierarchy. Error : 80041004.
17:06:13 Synchronizing server changes in folder 'Calendar'
17:06:13 Synchronizing server changes in folder 'Contacts'
17:06:13
17:06:13
*Request*
17:06:13 17:06:13:0590
17:06:13 POST
17:06:13 http://
17:06:13 contacts.msn.com
17:06:13 /ABService/ABService.asmx
17:06:13
17:06:13 <ABFindAll xmlns="http://www.msn.com/webservices/AddressBook"> <abId>00000000-0000-0000-0000-000000000000</abId><abView>Full</abView><deltasOnly>false</deltasOnly></ABFindAll>
17:06:13
*Response*
17:06:13 17:06:13:0870
17:06:13 HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
Via: 1.1 TMG
Proxy-Authenticate: Negotiate
Proxy-Authenticate: Kerberos
Proxy-Authenticate: NTLM
Connection: close
Proxy-Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 707
17:06:13
17:06:13
17:06:13
17:06:13 Error with Send/Receive.
17:06:13 There was an error synchronizing a contacts folder. Error : 80004005.
17:06:13 Synchronizing server changes in folder 'Drafts'
17:06:13 Synchronizing local changes in folder 'Inbox'
17:06:13 Error synchronizing folder
17:06:13 [80041004-0-0-430]
17:06:13 Synchronizing server changes in folder 'Sent Items'
17:06:13 Synchronizing server changes in folder 'Deleted Items'
17:06:13 Synchronizing server changes in folder 'Junk E-mail'
17:06:13 Done
17:06:13
17:06:13
*Request*
17:06:13 17:06:13:0870
17:06:13 POST
17:06:13 http://
17:06:13 mail.services.live.com
17:06:13 /DeltaSync_v2.0.0/Settings.aspx
17:06:13
17:06:13 <?xml version="1.0" encoding="utf-8"?><Settings xmlns="HMSETTINGS:"><ServiceSettings><SafetySchemaVersion>1</SafetySchemaVersion><SafetyLevelRules><GetVersion/></SafetyLevelRules><SafetyActions><GetVersion/></SafetyActions><Properties><Get/></Properties></ServiceSettings><AccountSettings><Get><Options/><Properties/></Get></AccountSettings></Settings>
17:06:13
*Response*
17:06:13 17:06:13:0870
17:06:13 HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
Via: 1.1 TMG
Proxy-Authenticate: Negotiate
Proxy-Authenticate: Kerberos
Proxy-Authenticate: NTLM
Connection: close
Proxy-Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 707
17:06:13
17:06:13Hi,
According to the log, it seems that TMG firewall denied the request and replied with an HTTP 407 response, indicating that proxy authentication was required. This was done because the Forefront TMG firewall did not have any access rules which would allow
the anonymous request. Please check if you have configured related access rules.
When did you recieve this log? Is there anyting wrong? Which authentication method you have used, Kerberos, NTLM or other?
It seems that each time a web proxy client requests a resource through a Forefront TMG firewall that requires NTLM authentication the client is actually denied twice during the transaction before being successfully authenticated and allowed access. When
the Forefront TMG firewall is configured to use Kerberos there is only a single denied request and HTTP 407 response and then contact a domain controller and obtain a Kerberos ticket to present to the TMG firewall to gain access to the resource.
If you configured the TMG clients with a certain proxy name, please make sure you typed the TMG's domain computer name only (not IP address nor alias).
Best regards,
Susie
Maybe you are looking for
-
so the movie opens and I will see movie + sound for several minutes, however then the image goes blur. School alraedy checked they do not have this problem. So probably it is a problem located on my macbookpro. Could someone please help me. Already i
-
HT204053 how do I get my music in itunes to my iphone
I put an album on itunes today and want to put it in my music icon on my iphone 4- used to be easy but haven't been on itunes for a while and the page has changed and having trouble locating how to transport music from itunes on laptop to iphone
-
Help? How do I access a Windows Drive Structure?
Hi: I found a sample file system browser example but it didn't really work. It ran fine but coudn't see any drives, directories or files. How can my Java app. learn what drives are on the client's computer? Where do I start, to get a tree of all the
-
Content Server Error - User not found in Identity Store
Hello, I am trying to setup an external provider in Weblogic so that I can authenticate users via Oracle Access Manager / Oracle Internet Directory. I have followed the documentation and created a new provider for my external Provider and called it O
-
Converting videos for ipod trouble need help plz
i always have to convert my videos for ipod but when i do, there is no more sound. how do i fix this?