Proxy by URL to WebLogic 9.1

Hello,
I have just installed Sun Java System Web Server 6.1sp8 on my desktop. I have also installed WebLogic Server 9.1 on the same desktop. The issue that I have is that I cannot seem to proxy requests from Sun to WebLogic, the Sun web server keeps looking for the application in its own document root. Below are my entries from both the magns and obj.conf as well as the error from my web server log.
magnus:
Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="C:/bea/weblogic91/server/plugin/win/32/proxy36.dll"
Init fn="wl_init" Debug=true
I believe this is read correctly as it is creating the 'wlproxy.log' in c:\temp (its default home)
obj.conf:
<Object name="WLSTEST" ppath="*/*wls_utc*/*">
Service fn=wl_proxy WebLogicHost=127.0.0.1 WebLogicPort=7002
<Object>
I have checked for leading and trailing spaces etc. There are no syntax errors that I can find.
error log:
[21/Mar/2008:16:33:28] info ( 5664): CORE1116: Sun ONE Web Server 6.1SP8 B06/14/2007 11:35
[21/Mar/2008:16:33:28] info ( 5664): wl-init reports: Global 'Debug' set to true
[21/Mar/2008:16:33:28] warning ( 5664): wl-init reports: missing parameter 'WLLogFile', will use default
[21/Mar/2008:16:33:28] warning ( 5664): wl-init reports: missing parameter 'WLTempDir', will use default
[21/Mar/2008:16:33:28] info ( 5664): wl-init reports: ## Initialized the Global Log Context ##
[21/Mar/2008:16:33:28] info ( 5664): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.2_13] from [Sun Microsystems Inc.]
[21/Mar/2008:16:33:28] info ( 5664): WEB0100: Loading web module in virtual server [https-Test1] at [search]
[21/Mar/2008:16:33:28] info ( 5664): HTTP3072: [LS ls1] [http://test1:82/] ready to accept requests
[21/Mar/2008:16:33:28] info ( 5664): CORE3274: successful server startup
[21/Mar/2008:16:36:00] warning ( 5664): for host 127.0.0.1 trying to GET /wls_utc/, send-file reports: HTTP4142: can't find C:/Sun/WebServer6.1/docs/wls_utc/ (File not found)
As you can see by the log entry, it is looking in its own docroot and not forwarding to WebLogic. The WebLogic server is running and functional, the application can be accessed directly from the WebLogic server.
Any help would be appreciated. I am stumped...

I am almost there:
Based on the documentation link that you sent me, I better understand the configuration and my WebLogic test now works. However, I wanted to repeat the process for good measure and I cannot repeat my prior success.
The following proxy now works as expected:
<Object name=default>
NameTrans fn="WebLogic-Test" name="WLSTEST"
<Object name="WLSTEST" ppath="*/wls_utc/*">
Service fn=wl_proxy WebLogicHost=127.0.0.1 WebLogicPort=7002
</Object>
My second proxy in the same obj.conf, does not work, I get a 404 error with the same error in the logs as before:
[24/Mar/2008:16:13:08] warning ( 2256): for host 127.0.0.1 trying to GET /webapps-simple/, send-file reports: HTTP4142: can't find C:/Sun/WebServer6.1/docs/webapps-simple/ (File not found)
NameTrans fn="WebLogic-Test2" name="WLSTEST2"
<Object name="WLSTEST2" ppath="*/webapps-simple/*">
Service fn=wl_proxy WebLogicHost=127.0.0.1 WebLogicPort=7002
</Object>
They are identical other than the function name (WebLogic-Test and WebLogic-Test2), parameter name (WLSTEST and WLSTEST2) and URI ("*/wls_utc/*" and "*/webapps-simple/*"). The NameTrans directives are in the following order:
<Object name="default">
NameTrans fn="WebLogic-Test" name="WLSTEST"
NameTrans fn="WebLogic-Test2" name="WLSTEST2"
Any ideas?
Thanks!

Similar Messages

  • How to add Friendly URLs in Weblogic Portal?

    Hi,
    We are developing a portal using Weblogic 10gR3. Right now the URL's that are getting formed are very long which includes the nfpb, nfls, pagelabel e.t.c. The requirement is to have a very user friendly url something like http://www.x.com/portal/<<pageLabel>>
    The Weblogic documentation mentions something about URL compression, however unable to apply it for dynamic URL's. We have URL's which are formed on the fly from the WLP Content Repository
    Is there some kind of servlet / filter provided within WLP. I read somewhere about an URLTransformationServlet. But there was no documentation on its usage. Can some one share a sample code snippet with me. That would be really really helpful, as we are having a slight time crunch here.
    Any kind of help on this will be deeply appreciated. Thanks
    Thanks and Regards,
    Lilly

    Dear Team,
    Please help us in Change Portal Url . Please find below details and help us asap.
    Regards
    Radhakrishna
    Generic Note
    I understand [email protected] looks after your account and he should be able to assist you in this matter.
    You could possibly post your question to the oracle forums, like below
    How to add Friendly URLs in Weblogic Portal?
    [email protected] - November 1, 2010 7:05:03 PM GMT+05:30 [Update from Customer]
    Dear Team,
    Please let us know how to contact the assigned oracle account manager to engage someone from the professional services team.
    Please update us asap.
    Regards
    Radhakrishna
    Oracle Support - November 1, 2010 5:28:59 PM GMT+05:30 [Information]
    Generic Note
    I would suggest you contact the assigned oracle account manager to engage someone from the professional services team.
    [email protected] - November 1, 2010 4:55:25 PM GMT+05:30 [Update from Customer]
    Dear Team,
    How to engage oracle professional services to team to get assistance.
    Regards
    Radhakrishna
    Oracle Support - November 1, 2010 1:48:49 PM GMT+05:30 [Information]
    Generic Note
    As mentioned earlier, changes to the portal url is not provided out of box, the documentation link that I provided mentions a possible way of achieving this by creating a start up servlet, this may or may-not work in all circumstances. If the suggestions provided so far has not helped you so far, I would recommend you engage oracle professional services team to get assistance.
    [email protected] - November 1, 2010 1:36:12 PM GMT+05:30 [Update from Customer]
    Dear Team,
    Please find below comments from Dev team.
    While try to incorporate the URL navigation changes at
    our development environment we are getting exception Unable to render /framework/skeletons/bharti_skeleton/singlelevelmenu.jsp .
    I have also checked feasibility for the URL navigation changes provided and will not work for left menu
    and footer URL because while rendering these URL we are not using single level menu jsp or multilevel menu jsp.
    Please check with these comments and update ASAP.
    Regards
    Radhakrishna
    [email protected] - October 28, 2010 7:56:02 PM GMT+05:30 [Update from Customer]
    Hi,
    regarding making changes to the url meets ,we are working on the document which you have provided.we will update with result onc it get finished.
    Regards,
    Eranna D.
    Oracle Support - October 28, 2010 7:06:32 PM GMT+05:30 [Information]
    Generic Note
    Since your question about Rich Text support in CMS is not related to portal urls, I would request you raise this as a separate issue.
    In the new SR, please elaborate what you mean by the Rich Text support, whats your proposed use case, whats working and what is not.
    Could you also confirm if the further information I have provided regarding making changes to the url meets your requirement.
    [email protected] - October 28, 2010 7:04:48 PM GMT+05:30 [Update from Customer]
    CMS----Content Management System
    Rich contents are : Media files, Vedios, Movies... etc.
    [email protected] - October 28, 2010 6:58:46 PM GMT+05:30 [Update from Customer]
    Hi,
    Can you please clarify the below point also.
    "Please confirm whether CMS support Rich Text in weblogic , currently we have the weblogic version 9.2 . Plz confirm whether it will support or not."
    Regards,
    Eranna D.
    Oracle Support - October 28, 2010 5:41:53 PM GMT+05:30 [Information]
    Generic Note
    The following documentation http://download.oracle.com/docs/cd/E13218_01/wlp/docs81/url/simplify.html tells how you can achieve the simple urls you are looking for.
    Could you let me know if this meets your requirement.
    [email protected] - October 28, 2010 12:07:05 PM GMT+05:30 [Reopen Request]
    Hi,
    Please clarify why it is not possible to remove nfpb parameter.
    Call Me on +91 9686971269 ASAP.
    Oracle Support - September 29, 2010 5:39:48 PM GMT+05:30 [ODM Answer]
    === ODM Answer ===
    weblogic portal does not provide any out of the box way to achieve this functionality
    Oracle Support - September 29, 2010 5:39:15 PM GMT+05:30 [ODM Question]
    === ODM Question ===
    need to change the URL
    http://hostname:port/ics_war/ics.portal?_nfpb=true&_pageLabel=Tariff
    to
    http://hostname:port/ics_war/ics.portal/Tariff.
    Oracle Support - September 25, 2010 4:42:01 PM GMT+05:30 [Information]
    Generic Note
    WLProxy configuration falls under the weblogic server product hence you will have to raise an SR with that product to get any suggestions.
    Before that I would suggest you play around with the parameter I have suggested and see how it is impacting the url and then if there is any specific area you are stuck on check with the WLS team.
    Like I mentioned earlier, I do not know if this will completely meet your business requirement, but something you can look into.
    [email protected] - September 25, 2010 4:32:00 PM GMT+05:30 [Update from Customer]
    Hi,
    Can you please brief us what all are the changes needs to be done to meet our below requirement.
    Regards,
    Eranna D.
    +91 9686971269
    Oracle Support - September 24, 2010 9:00:57 PM GMT+05:30 [Information]
    Generic Note
    URLCompression servlet is the only option that weblogic portal provides out of the box to compress the URL of WLP. I understand this does not suite your requirement.
    The other option I can think of that can possibly help you achieve this is to configure any weblogic proxy plugin that you might be making use of, see the document
    http://download.oracle.com/docs/cd/E15051_01/wls/docs103/plugins/plugin_params.html#wp1143055 look for PathTrim, PathPrepend
    [email protected] - September 24, 2010 5:41:39 PM GMT+05:30 [Update from Customer]
    Hi,
    Please call me on +91 9686971269 ASAP.
    Regards,
    Eranna D
    [email protected] - September 24, 2010 5:41:22 PM GMT+05:30 [Update from Customer]
    Hi,
    Even thogh after implementing the below changes,still we are not able to get the result. " nfpb parameter is still existing in URL ".
    Implementing URL Compression :
    To configure a webapp to use url compression, follow these steps:
    1. Define the compression servlet in web.xml; for example
    <servlet>
    <servlet-name>UrlCompressionServlet</servlet-name>
    <servlet-class>com.bea.portlet.compression.UrlCompressionServlet
    </servlet-class>
    <init-param>
    <param-name>defaultPage</param-name>
    <param-value>/index.jsp</param-value>
    </init-param>
    <init-param>
    <param-name>errorPage</param-name>
    <param-value>/errors/error.jsp</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    2. Map the compression pattern; for example:
    <servlet-mapping>
    <servlet-name>UrlCompressionServlet</servlet-name>
    <url-pattern>wlp.c</url-pattern>
    </servlet-mapping>
    3. Add the token {url:compression} to the templates for which you want to apply compression.
    Please suggest on this ASAP.
    Regards,
    Eranna D.
    [email protected] - September 24, 2010 5:27:58 PM GMT+05:30 [Customer Problem Description]
    Problem Description: We need to change the URL
    http://hostname:port/ics_war/ics.portal?_nfpb=true&_pageLabel=Tariff
    to
    http://hostname:port/ics_war/ics.portal/Tariff.
    Pls suggest on this.
    Regards,
    Eranna D.

  • IIS Reverse Proxy with URL rewrite.

    Hi all, hoping to leverage the wealth of knowledge contained here.
    Any assistance would be very welcome.
    I'm having an issue getting a reverse proxy and URL rewrite working in IIS 7.0.
    I need to redirect all requests with a specific virtual directory suffix only.
    ie; https://domain.test.com/outbound/Content/query_etc
    With /Outbound/ being the trigger.
    This should be redirected to http://10.10.10.10/inbound/Content/query_etc
    While at the same time, requests without the /outbound/ suffix should be handled locally.
    I have configured the reverse proxy as described in a few articles, and have had no luck.
    Here's a snippet from my (sanitized) web.config at the site level.
    <rewrite>
    <outboundRules>
    <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
    <match filterByTags="A" pattern="^http(s)?://10.10.10.10/inbound/(.*)" />
    <action type="Rewrite" value="https://domain.test.com/outbound/{R:2}" />
    </rule>
    <preConditions>
    <preCondition name="ResponseIsHtml1">
    <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
    </preCondition>
    </preConditions>
    </outboundRules>
    <rules>
    <rule name="ReverseProxyInboundRule1" stopProcessing="true">
    <match url="^outbound/(.*)" />
    <action type="Rewrite" url="http://10.10.10.10/inbound/{R:1}" appendQueryString="true" logRewrittenUrl="false" />
    </rule>
    </rules>
    </rewrite>
    To me, this looks correct, yet it doesn't work.
    With this, I get the normal 404 - Error Code 0x80070002, with the text indicating the local directory doesn't exist, so.... not being picked up by the filter for redirection.

    Hi Andrew,
    Looking at your requirements it appears you need Reverse Proxy To Another Site/Server.
    By using URL Rewrite Module together with
    Application Request Routing module you can have IIS 7 act as a
    reverse proxy.
    It seems like URL Rewrite can't re-route the request somewhere else out of the server.
    Even when you rewrite the url the actual connection remains with the server. Hence if your original server doesn't have /inbound/Content/query_etc  it will fail with 404.
    Hosting multiple domain names under a single account using URL Rewrite.
    It’s a common desire to have a single IIS website that handles multiple sites with different domain names.
    References:
    How to create a url alias using IIS URL Rewrite:
    http://blogs.technet.com/b/mspfe/archive/2013/11/27/how-to-create-a-url-alias-using-iis-url-rewrite.aspx
    Reverse Proxy with URL Rewrite v2 and Application Request Routing:
    http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing
    Regards,
    Satyajit
    Please“Vote As Helpful”
    if you find my contribution useful or “MarkAs Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Automatic Proxy Configuration URL doesn't work on some computers, but Manual proxy can work

    It seems that the Automatic Proxy Configuration URL doesn't work, I use the command netstat -a, can't see the connection to proxy server, but manual proxy is ok, and I tested on some others computers, most of these computers can work normally with Automatic Proxy Configuration URL.
    For the computer can't work normally with Automatic Proxy Configuration URL, I did below actions
    1.Clear the cache
    2.update the version of firefox
    3.reinstall the firefox
    4.use the safemode to run firefox
    but unfortunately, still doesn't work.
    Can some dear friends give me a big favor for this? Thanks a million in advance!

    I have the same problem, just showed up recently - very fricking annoying!!

  • System-wide Transparent Proxy With URL Patterns

    Internet censorship -where I live- has almost turned web unusable so  I decided to setup a transparent proxy using Tor for my home network.
    Since Tor is so slow -here- proxying all traffic through Tor would slow my connection to a crawl.  Therefore I need a mechanism to selectively proxy the traffic.
    I know a bit of 'iptables' and it looks to me like the solution to my problem.  However there's a trick.  As most of the websites I need to access through Tor (like Google+, Facebook and such) use several IP addresses for their entry points, it's almost impossible for me to add 'iptables' rules for all of those IP addresses.  I need a mechanism to proxy the traffic based on URL patterns.  For example I need to be able to proxy access to '*.facebook.com' through Tor.
    So the question boils down to:  how can I setup a system-wide transparent proxy using URL patterns?
    Any idea/hint is much appreciated.  TIA,
    Bahman
    Last edited by bahman (2012-01-04 07:48:44)

    Use privoxy with socks5 forwarding:
    http://www.privoxy.org/user-manual/config.html#SOCKS
    http://www.privoxy.org/user-manual/acti … F-PATTERNS

  • URLConnection with Proxy (yeah URL's again but not simmilar to others;))

    Hy all,
    What i try to do: getting the content of a website over a Proxy.
    Well it took me some time to google and stuff and i found out this is something many ppl. are stuck at.
    The most common solution to do that is something like where i am at this point, there is a commented version of the code at the
    end of this post (And please note that my exception Handling should be taken as a 'how to not do' solution^^).
    public static void main(String[] args){
            java.net.URL url = null;
            URLConnection  con = null;
            InputStream in = null;
            String user = "usr";
            String passwd = "�pwd";
            try{
              url = new URL("http", "anyProxy.com", 80, "http://www.google.ch");
              con = url.openConnection();
            }catch(Exception e){
                e.printStackTrace();
            con.setDoInput(Boolean.TRUE);
            con.setReadTimeout(10);
            con.setRequestProperty("Accept","text/xml,text/*,text/html");
            con.setRequestProperty("Cache-Control","no-cache");
            con.setRequestProperty("Proxy-Authorization", "Basic " + new sun.misc.BASE64Encoder().encode((user + ":" + passwd).getBytes()) );
            try{
                con.connect();
                in = con.getInputStream();
            }catch(IOException e){
                e.printStackTrace();
            BufferedReader reader = new BufferedReader(new InputStreamReader(in));
            String fullFile = "";
            try{
                for (String line = ""; line != null; line = reader.readLine()) {
                   fullFile += line;
            }catch(Exception e){
                e.printStackTrace();
            try{in.close();reader.close();}catch(Exception e){e.printStackTrace();};
            url = null;
            con = null;
            in = null;
            reader = null;
            System.out.println(fullFile);
        }So after this you should be able to read a url... but wait, there is MY problem, i get the content of the proxyserver delivered but not the site i want the content to be delivered AFTER passing the proxy (google in this case).
    I found about 30 Forums/ Posts that recomend that solution, 1 or 2 are mentioned that there wont be any content of the following site (google in this example) but NONE of these has a solution or a link to any informations how to solve that problem.
    Thank you for taking the time to read this Post, also thank you for any tips/links etc. that could solve this problem.
    I wish you a nice day;)
    Regards
    Balsi
    The commented solution should not be taken to seriously, this is how I interprete the solution and how i assume it works. It should not be taken
    word by word but at least help to understand a bit. Please post any badly wrong informations so i can delete/ change the comment, there is enoth
    of wrong information already out there...
    public static void main(String[] args){
            /*The URL just specifies a Resource, which means stuff like:
             *    - Protocoll => Which protocoll is needet, http, ftp, file etc. (File is used if URL represents a local file)
             *    - Adress, Proxys usw. Check out the API for overall Informations
            java.net.URL url = null;
            /*The URLConnections represents a specified Connection, note that the connection from
             *url.getConnection() is not yet a successfull connection to the adress specified
            URLConnection  con = null;
            //The InputStream will be used to get the Data from the Site
            InputStream in = null;
            //This is a proxy User if a proxy is between you and the internet
            String user = "usr";
            //This is the pw you need to authentificate  the user defined above when connecting to the proxy
            String passwd = "pwd";
            try{
            /* The Url now gets inicialised, the delivered parameters are:
             * String protocol: The protocoll we want to use (since we use a Proxy its http)
             * String host: The Proxyserver itself, can be the dns name or the ip
             * int Port: The Proxyservers port he's listening and accepting requests
             * String file: The URL we want to get after Proxy authentification
            url = new URL("http", "anyProxy.com", 80, "http://www.google.ch");
            /* We now open the connection, note that opening the connection does not mean
             * accutally connecting to a server! It just represents a Connection, in the real
             * World this would be the idear to open a browser and later type in a Url and press enter
            con = url.openConnection();
            }catch(Exception e){
                e.printStackTrace();
            // We need to indicate that we want to read content from that connection by setting true
            con.setDoInput(Boolean.TRUE);
            // Timeout if needet, default is somewhere between 10-30secs
            con.setReadTimeout(10);
            //Filter what date this connection accepts
    //        con.setRequestProperty("Accept","text/xml,text/*,text/html");
            //Filter weather we accept cached site data
            con.setRequestProperty("Cache-Control","no-cache");
            /* Now this is important, we specifie that this Connection will use a Proxy by setting the Attribute
             * Proxy-Authorizasion to a Base64 Encoded value which contains our user as well as the Password
            con.setRequestProperty("Proxy-Authorization", "Basic " + new sun.misc.BASE64Encoder().encode((user + ":" + passwd).getBytes()) );
            try{
            /* We now finally acctually connect to the server this is equal to pressing enter inside a
             * We-explorer such as IE, Mozilla etc. after typing in a URL
             * NOTE: This is not the same like IE, Mozilla etc. displaying something afterwards!
             *       (No worry, this will come soon)
            con.connect();
            /* There we go, we connected to the server and open a InputStream to get the data from it
            in = con.getInputStream();
            }catch(IOException e){
                e.printStackTrace();
            // We use a BufferedReader to read the InputStream
            BufferedReader reader = new BufferedReader(new InputStreamReader(in));
            // For now we use a String, note that a StringBuffer would be more effective looking at the performance
            String fullFile = "";
            try{
                for (String line = ""; line != null; line = reader.readLine()) {
                   fullFile += line;
            }catch(Exception e){
                e.printStackTrace();
            /* It's very recomendet to close all the connections/streams etc. especially if your application
             * isnt just a mainprogramm like this to show a simple example. If you would open serval connetions
             * parallely (Threads) not closing the streams/connections will fastly kill your memory;)
            url = null;
            con = null;
            //expecially the Streams&Buffers need to be closed but can throw a exception while trying it
            try{in.close();reader.close();}catch(Exception e){e.printStackTrace();};
            in = null;
            System.out.println(fullFile);
        }

    Hy and thanks for the fast replie, i will check out the Authenticator as well as the java.net.Proxy for further information, hopefully i get a sollution i then can post here;)
    Yeah, i wanted to comment that readTimeout but forgot, doesnt seem to work for me, no matter what i set there (had ranges from 1- 99999) the timeout always occurs after about 20 seconds (but it could also be that there is something like a not working authentication mechanism abortin my connection hu?)
    Well, going to check out the other two classes mentioned, of course going to reward you if this gets me to my aim;)
    Regards
    Balsi
    (oh well and sorry for my probably not that nice english, not my motherlanguage;))

  • Application url in weblogic

    hi experts
    i'm newbie in oracle adf and weblogic . i made a simple application with oracle jdeveloper 11.1.1.5 (ADF Application) . i deployed my application to weblogic 10.3.5 managed server and i can access login page of my application with http://server_ip:7003/application_name/faces/login.jsp address . i want users of application can access application without enter port number or server ip address in url but i dont know how do this in weblogic .
    i want user enter below address and see my login page:
    http://sever_name/app_name/faces/login.jsp

    Hi,
    To visit your application by using a server name instead of an ip adress, you have to configure your DNS server.
    To visit your application without directly identify a port in http url, you can use port 80 for your adminServer, if you are working with a clustered wls enviroment, you can use a proxy server configured with port 80 or use a load balancer like F5.

  • New url in weblogic portal

    The customer is sent an email containing the user name and a link to the order via the demo Online login page. This should not contain the password .A separate email containing the password only will be sent after a gap of at least 1 minute and not more than 5 minutes .     The customer will now clink on the link and will be taken to the login page of Demo Online with the username already populated. On entering the new password twice, the customer will be taken to the overview page for the Order.
    can we get this url by creating the desktop .

    "Ard" == Ard van der Scheer <[email protected]> writes:
    Ard> We are trying to retrieve data from an external source and display this in a Weblogic
    Ard> 8.1 portal. The external source is a webserver, from which an XML message can
    Ard> be retrieved directly from an URL. With a stand-alone Java application the following
    Ard> code works fine:
    Ard> Properties systemProperties = System.getProperties();
    Ard> systemProperties.setProperty("http.proxyHost",proxy);
    Ard> systemProperties.setProperty("http.proxyPort",port);
    Ard> URL url = new URL("http", "www.someserver.com", 80, "/newsxml.phtml");
    Ard> BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
    Ard> When runnning this in BEA WebLogic Portal 8.1 I get the following error:
    Ard> java.io.FileNotFoundException: Response: '403: Forbidden' for url: ......
    Ard> My guess is that setting the proxy properties the way I do is not working, but
    Ard> how do I do it? Your help is greatly appreciated.
    If I were you, I would try to use the Jakarta Commons HttpClient library. It
    encapsulates all of the "dirty bits" of this into a simple api.
    ===================================================================
    David M. Karr ; Java/J2EE/XML/Unix/C++
    [email protected] ; SCJP; SCWCD

  • Problem with sendRedirect using relative URL in WebLogic 5.1 with SP7 & 8

    I patched to SP 7 (and also 8), and the request.sendRedirect() with relative
              URL failed. The browser simply displayed "404 - Page not found".
              This problem only happens in a cluster environment attached to a web server.
              SP6 or earlier does not have such problem.
              I noticed that the latest SP always formats the URL and returns it as a full
              absolute URL to the browser. The problem is it uses the Weblogic Server host
              URL where the request is processed (not the Web Server host URL) which is
              not visible to the internet.
              Is it possibly a bug in SP?
              

    I patched to SP 7 (and also 8), and the request.sendRedirect() with relative
              URL failed. The browser simply displayed "404 - Page not found".
              This problem only happens in a cluster environment attached to a web server.
              SP6 or earlier does not have such problem.
              I noticed that the latest SP always formats the URL and returns it as a full
              absolute URL to the browser. The problem is it uses the Weblogic Server host
              URL where the request is processed (not the Web Server host URL) which is
              not visible to the internet.
              Is it possibly a bug in SP?
              

  • Setting apache as a front end host-proxy web server for weblogic 10.3.3

    Hi ,
    i have installed apache 2.2.21 in the red hat linux 6 environment.Now i am trying to set that apache web server as a front end host ,proxy web server for my weblogic 10.3 application server cluster. My apache is listening to the port 8080.
    What changes i had to made in admin console of my server as well as in the httpd.conf file of apache.
    Can any one guide me how to proceed ?
    Any help is highly appreciated......

    Thanks Ravi,
    i have already gone through http://docs.oracle.com/cd/E12840_01/wls/docs103/plugins/apache.html.
    In my case "mod_wl_22.so" was not available but i downloaded this p10051826_1033_Generic.zip file from where i got that file and make it available in the modules directory, changed the file permissions (using chmod 755 mod_wl_22.so) and also changed the httpd.conf file as below :
    LoadModule weblogic_module modules/mod_wl_22.so
    <IfModule mod_weblogic.c>
    WebLogicCluster wlserv1:7001,wlserv2.com:7001
    MatchExpression *.jsp
    </IfModule>
    By using /bin/ls command i checked the following :
    /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
    Using file mod_wl_22.so i checked the following:
    mod_wl_22.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
    My problem is when i used ./apachectl -t i got the following error :
    httpd: Syntax error on line 112 of /u40/app/apache/conf/httpd.conf:
    Cannot load /u40/app/apache/modules/mod_wl_22.so into server: libstdc++.so.5:
    cannot open shared object file: No such file or directory
    So can u please guide me where my problem is and how to rectify it ? Its urgent. please help me.
    Thanks
    Jyoti Ranjan

  • Semi-colon in URL from WebLogic 7.0

    Hello,
    We're running WebLogic 7.0 SP1 on two Sun Solaris 8 boxes clustered
    together with JDK 1.3.1_04 and all the necessary Sun patches to suite. The
    problem I have is that quite a few of our URLs are hardcoded to have a
    question mark (?) to begin a list of parameters, and then that gets encoded
    to include the SessionID at the end with an ampersand. That was in WebLogic
    5.1, now WebLogic 7.0 uses semi-colons to start the encoded URL, and my URLs
    that begin with a question mark are no longer valid and just comes up with a
    'Page Cannot Be Displayed' browser message. Anybody else experience this
    problem? How do I get around it?
    Many thanks!
    Dustin

    Hello,
    We're running WebLogic 7.0 SP1 on two Sun Solaris 8 boxes clustered
    together with JDK 1.3.1_04 and all the necessary Sun patches to suite. The
    problem I have is that quite a few of our URLs are hardcoded to have a
    question mark (?) to begin a list of parameters, and then that gets encoded
    to include the SessionID at the end with an ampersand. That was in WebLogic
    5.1, now WebLogic 7.0 uses semi-colons to start the encoded URL, and my URLs
    that begin with a question mark are no longer valid and just comes up with a
    'Page Cannot Be Displayed' browser message. Anybody else experience this
    problem? How do I get around it?
    Many thanks!
    Dustin

  • Apache reverse proxy and URL Iview

    Hi everybody,
    I'm trying to configure apache as reverse proxy to access my portal from extranet.
    The first problem I have is that I have to access a URL Iview that connect another internal application.
    ProxyPass /irj http://internaPortall/irj
    ProxyPassReverse /irj https://externalPortal/irj
    ProxyPass /irj http://internalApp/myApp
    ProxyPassReverse /irj https://externalApp/myApp
    In my portal the urlIview maps externalApp/myApp
    No problem to access my portal from extranet but I cannot get myApp.....
    Another point:
    I have configured SSL but if I try to connect
    https://externalPortal:8443/irj/
    apache redirects me to
    http://externalPortal/irj/
    Thanks a lot
    Massimiliano

    Hi,
    We are in a similiar situation. Can you please share the solution.
    Thanks...
    Vinay

  • Debug ABAP consumer proxy -- which URL?

    Hi experts,
    I've a question concerning the URL to be used when debugging cunsumer proxies...
    So, I take transaction SICF on my ECC 6.0 backend system.
    In the menu Client --> Recorder --> Activate recording.
    There I just take the user I'm logged on with. Should this user also exist on the SAP PI system?
    Next, I need to fill in the Client URL Path. What should I do there?
    Thanks a lot!
    Dimitri

    Hi guys,
    I'am still facing the same problem. Queues in PI are registered, the async outbound proxy call gives the same message "Call successful - Empty result". But no messages are shown in SXMB_MONI. I've followed the link above. Other messages from sync scenarios are shown. Services (EO, EOIO) are registered and activated.
    In Adapter Monitoring no messages are shown. I am using XI adapter as sender and JMS sender as receiver.
    I've stopped JMS-sendin-Queue and there is no message too.
    My issue was resolved by COMMIT WORK of proxy-call.
    Thanks in Advance,
    Stefan
    Edited by: Stefan Burghardt on Jul 12, 2011 6:32 PM

  • Socks proxy call  from a weblogic server across the firewall to an external program

    Hi,
    From our weblogic server, we are trying to connect to an external
    program outside our firewall through SSL. The SSL connection is being
    tunneled through a socks proxy in the DMZ. (We have not yet made it
    work so far. Currently, we are trying to make it work)
    From the weblogic bean, we are doing the following
    System.setProperty("socksProxySet", "true");
    System.setProperty("socksProxyHost", "w.x.y.z");
    System.setProperty("socksProxyPort", "1080");
    Not that weblogic bean is the initiator of the connection and it talks
    to a program outside our firewall.
    My question is, will this kind of system level setting in the weblogic
    server have any negative impact? This is because, RMI is over sockets
    and weblogic might be talking to its internal components through
    sockets.
    Is it advisable to have such socks related setting the weblogic bean
    level?
    thanks,
    jas.

    Hi,
    From our weblogic server, we are trying to connect to an external
    program outside our firewall through SSL. The SSL connection is being
    tunneled through a socks proxy in the DMZ. (We have not yet made it
    work so far. Currently, we are trying to make it work)
    From the weblogic bean, we are doing the following
    System.setProperty("socksProxySet", "true");
    System.setProperty("socksProxyHost", "w.x.y.z");
    System.setProperty("socksProxyPort", "1080");
    Not that weblogic bean is the initiator of the connection and it talks
    to a program outside our firewall.
    My question is, will this kind of system level setting in the weblogic
    server have any negative impact? This is because, RMI is over sockets
    and weblogic might be talking to its internal components through
    sockets.
    Is it advisable to have such socks related setting the weblogic bean
    level?
    thanks,
    jas.

  • Changing WSDL url in WebLogic server

    Hi All,
    I have created a BPEL project and deployed to weblogic server.
    I'm going to send the wsdl url to one of our clients to send data to this BPEL.
    I want to change the URL to be a simple.
    How do i change that?
    Normally it comes as http://<host>:<port>/soa-infra/services/<deployed partition>/<project name>/<client_ep>?WSDL
    How do I change this URL?
    Thanks....
    Edited by: Nir on May 18, 2012 9:39 PM

    Hi,
    Some approaches are:
    * In case you expose your service(s) to the outside world, these service calls usually go through a DMZ. A DMZ often contains proxies, web/HTTP servers, firewalls and/or other applicances that are capable of endpoint virtualization. E.g. use Oracle HTTP Server, Apache HTTP Server, and so on to expose the endpoint at a public address.
    * Use an ESB or appliance for endpoint virtualization.
    Regards, Ronald

Maybe you are looking for