Regular Expression Redirects in Web Server 7 not escaping special chars

we are trying to add following rule in config file
<If $uri =~ "^/ViewCourse\.action\?(.*)">
NameTrans fn="redirect" url="https://$urlhost/learning/viewCourse.action?$query"
</If>
we get following error when we try to escape "." as "\." Anythought?
onfig (24578): CONF2260: Error parsing file rp-prod-obj.conf, line 45: Unable to parse expression: \. is an invalid escape sequence
config (24578): CORE3235: File server.xml line 136: Error processing element: Error processing file rp-prod-obj.conf
rp-zn-tstick2-dat: ADMIN3606: Error while reconfiguring the server.
config ( 5514): CONF2260: Error parsing file rp-prod-obj.conf, line 45: Unable to parse expression: \. is an invalid escape sequence
config ( 5514): CORE3235: File server.xml line 136: Error processing element: Error processing file rp-prod-obj.conf

Works for me as:
<If $uri =~ '^/ViewCourse\.action\?(.*)'>
NameTrans fn="redirect" url="https://$urlhost/learning/viewCourse.action?$query"
</If>It boils down to the difference between a ' and a ". The docs , frankly, are a bit byzantine on the difference, but it's a question of how much escaping you need to do. Single quote ('), as above, works. Your original can also work (well, I think it can ... I know the server will reconfig and/or start at least) with more escaping:
{code}<If $uri =~ "^/ViewCourse\\.action\\?(.*)">
NameTrans fn="redirect" url="https://$urlhost/learning/viewCourse.action?$query"
</If>{code}
I'm not positive the extra escaping is needed on the question mark. Your mileage may vary. Warranty void in most states. Etc.

Similar Messages

  • Error attempting to write location redirection to web server (Windows NT error number -2147467259 occurred)

    I'm seeing an error pop up on a development server... error
    2408:
    "Error attempting to write location redirection to web server
    (Windows NT error number -2147467259 occurred)"
    Any idea what this is? I can't seem to find anything
    solid.

    I'm having the same problem but it just started.  Logged in last week from work computer running IE 8.0.8 with no problems.  Today I keep getting problem connecting to server.   Clicking on the error indicator gets me the same error.
    Message: Object expected
    Line: 5
    Char: 1963
    Code: 0
    URI: https://setup.icloud.com/ajax_sender.html
    Tried clearing browser history,cookies, etc.. nothing works.

  • Web Server Aliases not working!!

    I have set up a virtual domain "internal.blahblah.com" within that I have setup Web Server Aliases. However, I cannot get them to resolve for the life of me! I tried somthing as simple as * . No go when I enter "server.internal.blahblah.com". Anyone else having these problems? Any solution?

    It's not clear from your post what you're trying to do, or what you've done so far.
    Let me see if I can decode...
    I have set up a virtual domain "internal.blahblah.com"
    OK, so this is a 'Site' in Server Admin -> Web, right?
    However, I cannot get them to resolve for the life of me
    Define 'resolve', please. Do you mean 'resolve' as in DNS name resolution, or 'resolve' as in access the web site, even when DNS is properly configured?
    I tried somthing as simple as *
    Umm.. where have you entered *?
    In DNS? In your web server?
    If in the web server config, are you using 'Alias' (a URL remap) or 'ServerAlias' (a secondary name for the server)?
    No go when I enter "server.internal.blahblah.com".
    'server.internal.blahblah.com' is in no way related to 'internal.blahblah.com'. In order for this to work you need to have a DNS entry for 'server.internal.blahblah.com' that points to your server - hence the question regarding DNS above.

  • Regular expressions with boolean connectives (AND, OR, NOT) in Java?

    I'd like to use regular expression patterns that are made up of simple regex patterns connected via AND, OR, or NOT operators, in order to do some keyword-style pattern matching.
    A pattern could look like this:
    (.*Is there.*) && (.*library.*) && !((.*badword.*) || (^$))
    Is there any Java regex library that allows these operators?
    I know that in principle these operators should be available, since Regular languages are closed under union, intersection, and complement.

    AND is implicit,
    xy -- means x AND yThat's not what I need, though, since this is just
    concatenation of a regex.
    Thus, /xy/ would not match the string "a y a x",
    because y precedes x.So it has to contain both x and y, but they could be
    in any order?
    You can't do that easily or generally.
    "x.*y|y.*x" wouldll work here, but obviously
    it will get ugly factorially fast as you add more
    terms.You got that right: AND means the regex operands can appear in any order.
    That's why I'm looking for some regex library that does all this ugly work for me. Again, from a theoretical point of view, it IS possible to express the described semantics of AND with regular expressions, although they will get rather obfuscated.
    Unless somebody has done something similar in java (e.g., for C++, there's Ragel: http://www.cs.queensu.ca/~thurston/ragel/) , I will probably use some finite-state-machine libraries and compile the complex regex's into automata (which can be minimized using well-defined operations on FSMs).
    >
    You'd probably just be better off doing multiple
    calls to matches() or whatever. Yes, that's another possibility, do the boolean operators in Java itself.
    Of course, if you
    really are just looking for literals, then you can
    just use str.contains(a) && !str.contains(b) &&
    (str.contains(c) || str.contains(d)). You don't
    seem to need regex--at least not from your example.OK, bad example, I do have "real" regexp's in there :)

  • Iweb pages hosted on a web server do not look right. Funny characters appea

    any web experts here?
    I have designed a bunch of pages in iWeb. Published them and uploaded them to my web host. However when I view the files via the web, they are not correct. The most obvious is that quote marks, bullets and paragraph markers are shown with funny characters.
    Take a look at www.dancingacademy.co.uk to see an example. Excuse the URL but its the only way I know of showing an example of what's wrong.
    If I view the files locally on my mac (ie publish from iweb to a folder and open them from the local folder) then the files look fine.
    It's only when they get sent from a webserver they look funny.
    Any ideas what my web hosting company is doing wrong?

    The server you are using is (mis)configured to force all browsers to use the wrong encoding. See this note (Server Settings section) for possible fixes:
    http://homepage.mac.com/thgewecke/iwebchars.html

  • Web server will not start due to RSA Securid errors

    We have an iPlanet 4.1 Service Pack 14 web server that was running fine until last friday. When we go to start the server we get the following error:
    Status:
    [https-ivpnas]: start failed. (2: unknown early startup error)
    [https-ivpnas]: conf_init: Error running init function securidinit: unknown error
    [https-ivpnas]: server exit: status 1
    Error
    An error occurred during startup.
    The server https-ivpnas was not started.
    The error log also contains this additional error:
    [27/Sep/2004:10:06:57] info ( 4164): successful server startup
    [27/Sep/2004:10:06:57] info ( 4164): iPlanet-WebServer-Enterprise/4.1SP14 BB1-01/15/2004 13:04
    [27/Sep/2004:10:06:58] catastrophe ( 4164): securidauth reports: InitAceClient returned FALSE
    This website uses RSA Securid for authentication. We have contacted RSA and they think it is a webserver problem. Any insight anyone can provide would be great. Thanks!

    The error message is generated by the RSA plugin, not Web Server. RSA should be able to help diagnose the problem further.

  • IPlanet Web Server & Glassfish not takeover session from stoped instance?

    I have 3 Physical Machine
    1> server hostname is 'linuxgf175'(192.168.1.175) main cluster control (DAS) and Install iPlanet Webserver with gflb-configurator
    2> server hostname is 'linuxgf170'(192.168.1.170) server for node1(n1) has Instance1 (i1)
    3> server hostname is 'linuxgf180'(192.168.1.180) server for node2(n2) has Instance2 (i2)
    1. I was install iPlanet Web Server to same DAS machine. (192.168.1.175)
    2. And create Server Certificates request.
    Certificate Details
    Nickname cert-linuxgf175
    Subject CN=linuxgf175
    Issuer Self Signed
    Key Type RSA
    Key Size (bits) 1024
    Valid From April 18, 2011 7:30:09 PM ICT
    Valid Till April 18, 2012 7:30:09 PM ICT
    Fingerprint CE:D8:5E:97:DB:56:89:00:56:A7:0F:EB:0D:D4:4A:06
    Serial Number 00:94:26:11:AB
    Server Name linuxgf175
    (Picture : http://s138.photobucket.com/albums/q262/madoatz/?action=view&current=iPl... )
    3. And create new http-listenser (SSL for communicate with DAS port 8082 )
    (Picture : http://s138.photobucket.com/albums/q262/madoatz/?action=view&current=iPl... )
    4. And import cert file(s1as.rfc) to glassfish-lbconfigurator wizard. (run lb-configure command #java -jar glassfish-lbconfigulator.jar )
    I was exported that file like this command :
    keytool -export -rfc -alias s1as -keystore /usr/glassfish3/glassfish/domains/domain1/config/keystore.jks -file ./s1as.rfc
    5. Create and Apply http-lb to DAS domain success !! :)
    asadmin> create-http-lb devicehost linuxgf175 deviceport 8082 --target c1 cluster_lb
    Enter admin user name> admin
    Enter admin password for user "admin">
    Command create-http-lb executed successfully.
    asadmin>
    asadmin> apply-http-lb-changes cluster_lb
    Enter admin user name> admin
    Enter admin password for user "admin">
    Command apply-http-lb-changes executed successfully.
    6. Deploy "clusterjsp.ear" Application to Cluster c1 with avalibilityenable=true
    deploy success
    (Picture : http://s138.photobucket.com/albums/q262/madoatz/?action=view&current=iPl... )
    7.try to open application , use browser open to iPlanet webserver success
    http://192.168.1.175:80/clusterjsp
    ## But, It can not handle session between instance (i1) and Instance 2 (i2)
    i input some data session into instance (i1)
    HttpSession Information:
    Served From Server: 192.168.1.175
    Server Port Number: 80
    Executed From Server: linuxgf170
    Executed Server IP Address: 127.0.0.1
    Session ID: 3ed17253ef55fb5d37203a738e2b
    Session Created: Thu Apr 21 00:20:08 ICT 2011
    Last Accessed: Thu Apr 21 00:20:08 ICT 2011
    Session will go inactive in 1800 seconds
    INPUT : test1 = test1
    INPUT : test2 = test2
    after that try to stop Instance (i1) linuxgf170
    come back to browser and refesh button. It's change route display to instance i2 (linuxgf180)
    HttpSession Information:
    Served From Server: 192.168.1.175
    Server Port Number: 80
    Executed From Server: linuxgf180
    Executed Server IP Address: 127.0.0.1
    Session ID: 3ee66ddd60498d68660a55fadcc5
    Session Created: Thu Apr 21 00:21:34 ICT 2011
    Last Accessed: Thu Apr 21 00:21:34 ICT 2011
    Session will go inactive in 1800 seconds
    BUT INPUT DATA is not display ?? I loss...session.
    Please sir.... please see image url and help clarify T_T
    Can direct contect to me for more help Thank you very much for best support.
    [email protected]
    skype : mr_lalit

    More iPlanet startup log....
    [root@linuxgf175 webserver7]# cd admin-server/
    [root@linuxgf175 admin-server]# cd bin/
    [root@linuxgf175 bin]# ./startserv
    Oracle iPlanet Web Server 7.0.9 B07/04/2010 01:31
    info: CORE3016: daemon is running as super-user
    info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.6.0_20] from [Sun Microsystems Inc.]
    info: WEB0100: Loading web module in virtual server [admin-server] at [admingui]
    info: WEB0100: Loading web module in virtual server [admin-server] at [jmxconnector]
    info: HTTP3072: admin-ssl-port: https://linuxgf175:8989 ready to accept requests
    info: CORE3274: successful server startup
    [root@linuxgf175 bin]# cd ../../
    [root@linuxgf175 webserver7]# pwd
    /usr/glassfish3/webserver7
    [root@linuxgf175 webserver7]# cd https-linuxgf175/
    [root@linuxgf175 https-linuxgf175]# cd bin/
    [root@linuxgf175 bin]# ./startserv
    Oracle iPlanet Web Server 7.0.9 B07/04/2010 01:31
    info: reports: Initializing lbplugin BuildId: GlassFish 3.1 load-balancer plugin b05
    info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.6.0_20] from [Sun Microsystems Inc.]
    config: , name-trans-passthrough reports: init-passthrough has not been called
    config: , name-trans-passthrough reports: init-passthrough has not been called
    config: , name-trans-passthrough reports: init-passthrough has not been called
    warning: reports: lb.configurator: XML_VALIDATOR_WARNING: Cookies will not be rewritten by web server. All cookie updates will be handled by application server. If you are using older version of application server, then failover will not work.
    warning: reports: lb.configurator: Preferred failover instance feature is enabled.
    warning: reports: lb.runtime: RNTM2019: Daemon http://linuxgf170:28080 has been intialized.
    warning: reports: lb.runtime: RNTM2019: Daemon https://linuxgf170:28181 has been intialized.
    warning: reports: lb.runtime: RNTM2019: Daemon http://linuxgf180:28080 has been intialized.
    warning: reports: lb.runtime: RNTM2019: Daemon https://linuxgf180:28181 has been intialized.
    warning: reports: lb.runtime: RNTM2019: Daemon http://linuxgf170:28081 has been intialized.
    warning: reports: lb.runtime: RNTM2019: Daemon https://linuxgf170:28182 has been intialized.
    info: HTTP3072: http-listener-1: http://linuxgf175:80 ready to accept requests
    info: HTTP3072: http-listener-ssl: https://linuxgf175:8090 ready to accept requests
    info: CORE3274: successful server startup
    [root@linuxgf175 bin]#

  • Web server log not show byte transfer for php

    I added php module to iWS 6.0 it work fine but access log not show byte transfer information for php. How can I do?

    The iPlanet Web Server 6.0 access log does not report the number of bytes sent by plugins unless the plugin explicitly sets the Content-length: header. Sun ONE Web Server 6.1 is the first version of Web Server that always reports the number of bytes sent, even if the plugin neglects to set a Content-length: header.

  • Can print test pages from embedded web server., put not from windows

    Hello,
    I have a P1102w that worked perfectly through the last 5 month.
    Two days ago it stopped printing anything for some reason. What happen is, when I print something, it spools, but then I get Error-Printing under the status when I double click the printer icon in the "devices and printers" manager of windows 7.
    Right now I can see the printer in Ad Hoc. I can load the embedded web server,. And I can print test pages from the embedded web server.
    However, if I tried to print test pages using the printer icon in "devices and printers" manager".. it doesnt print!
    If I go to Devices and Printers -> Properties -> Advanced -> "Print directly to printer" -> Apply
    I got an error box: "Printer settings could not be saved. Operation could not be completed (error 0x0000070c)."
     The printer works fine when connected to other laptops (with exactly the same driver/setting)..
    This problem is driving me crazy !
    Thank you in advance for your help

    Hi m-rasheed, 
    An ad-hoc connections is much more unstable than an infrustructure network using a router. At this point i would suggest getting a wireless router, and then connect the printer to your network through the router. 
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02847467&tmp_task=useCategory&cc=us&dlc=en&lang...
    Routers:
    http://www.shopping.hp.com/webapp/shopping/can.do?storeName=accessories&landing=computer&category=ca...
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Sun One Web Server instance not starting

    I have installed Sun One Web server 6.1. The administrator server is starting up. However, the instance of the web server through which I want to serve the web pages is not starting. Altough, there are no error messages that are shown when I am starting the server. Please help.

    I would check the logs directory for a PID file. It could be that there is a bogus pid file and when it tries to start you will get no error message. If there is a PID file delete it and try again.

  • Regular expressions, using pattern and matcher but not include the pattern

    Hi all
    i have a regular expression but in my matcher it is including the text that is in my regular expression.
    ie
    String str="-------------------stuff===========";
    Pattern mainBody = Pattern.compile("-----(.*?)=====", Pattern.MULTILINE);this matches -------------------stuff=====
    now i expect to get some - in there as i match from the start, but i dont want to have the = in the match. how do i do a match that excludes the matching expressions.

    nevermind, figured it out
    when i do myMatch.group(1) it gives me just my match
    sorry for wasting time :)

  • [DW CC] Regular Expression and Back Reference in "Replace with": Escape

    I have a problem with escaping a character in "Replace with".
    Let's assume the following situation:
    Content:
    foobar
    Search for:
    (foo)(bar)
    Replace by:
    $1zot$2
    Result:
    foozotbar
    Everything is fine.
    But I want to insert the number "2" in between foo and bar.
    When I use
    Replace by: $12$2
    The result is:
    $12$2
    It seems that the regex engine interpretes the "$12" as a whole. And because there's no back reference with the count "12" DW cannot work correctly.
    The question:
    How can I "escape" the "2"?
    Thanks.

    Dreamweaver uses JavaScript for its Find and Replace with regex.
    I've just checked the Regular Expressions Cookbook by Jan Goyvaerts and Steven Levithan (O'Reilly). It deals with exactly this sort of situation where capturing groups can be ambiguous. This is what it says:
    "Java and JavaScript try to be clever with $10 [and above]. If a capturing group with the two-digit number exists in your regular expresssion, both digits are used for the capturing group. If fewer capturing groups exist, only the first digit is used to reference the group, leaving the second as a literal. Thus $23 is the 23rd capturing group, if it exists. Otherwise, it is the second capturing group followed by a literal 3."
    In other words, there is no way to escape the 2 in the Replace field. It would appear there's a bug in Dreamweaver's use of capturing groups.

  • Can not process special chars in WS response

    Hello.
    We are calling a .NET web service with Workshop 8.1.2. With the .NET WSDL, we
    created a WS control and test web app to call the remote WS.
    It works fine when normal caracters are in the response but when we receive special
    caracters like spanish accents (á,í or ñ), the call fails with a Code:sun.io.MalformedInputException
    as shown in the attached log.
    The remote WS is working in production with no problems when its called from C,
    .NET, or standard Java. But not through Workshop.
    Any ideas of what is going on?
    Thank you
    Ricardo
    ####<Jul 9, 2004 4:38:08 PM GMT-04:00> <Warning> <WLW> <BL03> <cgServer> <ExecuteThread:
    '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <000000> <Returning
    HTTP 500 due to SOAP fault occurring on DispFile=Cliente.controles.qryrun11ControlTest>
    ####<Jul 9, 2004 4:45:14 PM GMT-04:00> <Warning> <WLW> <BL03> <cgServer> <ExecuteThread:
    '14' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-005A7D461269> <000000>
    <Id=qryrun11Control; Method=Cliente.controles.qryrun11Control.qryrun1(); Failure=com.bea.control.ServiceControlException:
    SERVICE FAULT:
    Code:sun.io.MalformedInputException
    String:null
    Detail:
    END SERVICE FAULT>
    ####<Jul 9, 2004 4:45:14 PM GMT-04:00> <Warning> <WLW> <BL03> <cgServer> <ExecuteThread:
    '14' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-005A7D461269> <000000>
    <Id=top-level; Method=Cliente.controles.qryrun11ControlTest.qryrun1(); Failure=com.bea.control.ServiceControlException:
    SERVICE FAULT:
    Code:sun.io.MalformedInputException
    String:null
    Detail:
    END SERVICE FAULT [ServiceException]>
    ####<Jul 9, 2004 4:45:14 PM GMT-04:00> <Error> <WLW> <BL03> <cgServer> <ExecuteThread:
    '14' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-005A7D461269> <000000>
    <Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:sun.io.MalformedInputException
    String:null
    Detail:
    END SERVICE FAULT [ServiceException]>

    special chars (as German umlauts) are not read properly from input
    stream into string. Any ideas how to solve the problem?I guess the encoding used by the process doesn't correspond to your defaut encoding.
    If you know what encoding the process uses, then you can specify it in the InputStreamReader constructor, e.g.:InputStreamReader isr = new InputStreamReader(is, "UTF-8");

  • Web Server will not start

    Does anyone know what this means, and how to fix it?
    Syntax error on line 37 of /etc/httpd/sites/000110.12.21.20_80lists.donherring.info.conf:
    Redirect to non-URL
    /usr/sbin/apachectl start: httpd could not be started

    It would be more helpful if you included line 37 of the specified file.
    Since it's telling you line 37, and it also says 'Redirect to non-URL' I'm guessing that line includes a redirect statement that isn't valid.

  • Web server documents not working

    I don't check my site often but it isn't working today for some reason. On Airport extreme base station, I checked and the address is correct but it just will not connect. Get error message saying it timed out. Any suggestions? This is on my G5 tower.

    Hi Connie.
    This 65.xx.xx.xx address that you're trying to reach - that's the address you tell your friends to come see your pages, right?
    And that address - -is that how you're trying to see your pages from within your little network?
    What happens when you use the local IP address that BDaqua talks about?
    Trying to view your website using the WAN IP address often fails from inside your LAN. it's called loopback, I think, and that doesn't work with most consumer routers.
    Also-Did you already toggle the Personal WebSharing tickbox I asked about a few hours ago?
    Reboot the mac?
    (You know we could go look at your httpd access and error logfiles, but let's not quite yet).
    (You could also post the IP address so someone 'out here' could help analyze the error code. Or you could be paranoid. Either way

Maybe you are looking for

  • ContactItem.StoreEntryId supported in Office 365?

    I use Exchange Webservices Managed API to connect with Office365. Per Contact I retrieve the contact.ItemId.UniqueId and contact.StoreEntryId. However contact.StoreEntryId = null? Is this supported in Office365? My goal is to pop-up/display the conta

  • Applying common styles to multiple HNCS: What is the best practice?

    Hi Community Adhering to best practices, we have built a SharePoint 2013 intranet with multiple Host Named Site Collections all accessible via HTTPs, for example https://home.domain.com   -  Landing Page https://this.doamin.com https://that.domain.co

  • Java 1.4 Logging API

    I am having some problem with the Formatter. I have a ConsoleHandler. I set its formatter to my custom formatter. My custom formatter simply extends Formatter class and implement formate(LogRecord) method. when I run my program, the ConsoleHandler no

  • How to see my z programs in sap file system

    hello everyone my Z programs are deleted due t some server problem from  my  sap ecc 6.0 system  is there any way to  get   my programs from sap file system  if yes then  where  exactly in windows folder my zprogramms are stored.......

  • My 50mm lens won't focus correctly, either in AF or Manual mode, any suggestions?

    My low end f1.8 50mm Canon lens doesn't focus correctly.  It has never been banged or dropped and appears in focus on the viewfinder but when I look closely the images are not sharp.  It's the only lens that exhibits this problem and shows up on both