"URL Malformed Exception" in j2ee

I've just tried to run the j2ee by first time in Linux, but I only got the next error "URL Malformed Exception" after it opened de port. I've alredy installed de JSDK and set enviroment variables JAVA_HOME and J2EE_HOME. Is there something I'm missing?.
Thanks

OK, I know that.
The point is, when the j2ee server is trying to initialize de Naming Manager (JNDI) while it is booting up it finds a Malformed URL.
I haven't been able to find someplace I can configure these URL and wich resource it is pointing to.
Or maybe the reason is quite different and it is missunderstunded as as Malformed URL.
In fact the class and method which are reporting the exception first are:
javax.naming.ConfigurationException : Invalid URL: . Root exception is java.net.MalformedURLException: no protocol

Similar Messages

  • Login page not showing "Unable to generate forwarding URL. Exception:"

    Dear All,
    I have install the EBS R12 on RHEL 5.5 64bit. All run fine some days but one day after restart there is a issue on database we rectify that DB issue but after that we are not able to get the login page. ALL application/DB node process are end with exiting with status 0. we have tried adautocfg.sh with status 0.
    still getting login page as blank.
    showing msg:
    Unable to generate forwarding URL. Exception: oracle.apps.fnd.cache.CacheException
    I got on file javacache.log . i think this is showing error logs.
    /u02/oracle/PROD/inst/apps/PROD_apex/logs/appl/rgf
    $ vi javacache.log
    showing issue:
    correct one :
    [2013-02-25T15:10:48.994+05:30] [ias] [NOTIFICATION] [] [cache.Lifecycle] [host: apex] [nwaddr: 192.168.0.4] [tid: 11] [userId: applmgr] [ecid: 1361785246:192.168.0.4:6700:0:2,2] JOC is initialized. ver=10.1.3, distribute=true, vid=2, coordinator=[192.168.0.4:61230, pos=0, uid=0, pri=0, def=prop:NA], discover list=[[192.168.0.4:12345, pos=-1, uid=0, name=, pri=0]]
    log having problem:
    [2013-03-01T14:40:52.083+05:30] [ias] [ERROR] [] [cache] [host: apex] [nwaddr: 192.168.0.4] [tid: 12] [userId: applmgr] [ecid: 1362129052:192.168.0.4:3933:0:102,2] [[
    oracle.apps.jtf.base.resources.FrameworkException
    at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:234)
    at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:201)
    at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:176)
    at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:151)
    at oracle.apps.jtf.cache.GenericCacheLoader.load(GenericCacheLoader.java:87)
    at oracle.ias.cache.CacheLoader.callLoad(Unknown Source)
    at oracle.ias.cache.CacheHandle.findObject(Unknown Source)
    at oracle.ias.cache.CacheHandle.locateObject(Unknown Source)
    at oracle.ias.cache.CacheAccess.get(Unknown Source)
    at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:771)
    at oracle.apps.jtf.cache.CacheManager.getInternal(CacheManager.java:4802)
    at oracle.apps.jtf.cache.CacheManager.get(CacheManager.java:4624)
    at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:216)
    at oracle.apps.fnd.functionSecurity.User.getUser(User.java:338)
    at oracle.apps.fnd.functionSecurity.FunctionSecurity.getUser(FunctionSecurity.java:527)
    at oracle.apps.fnd.functionSecurity.FunctionSecurity.init(FunctionSecurity.java:1620)
    at oracle.apps.fnd.functionSecurity.FunctionSecurity.<init>(FunctionSecurity.java:188)
    at oracle.apps.fnd.functionSecurity.RunFunction.init(RunFunction.java:309)
    at RF.jspService(_RF.java:205)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.apps.jtf.base.resources.FrameworkException: ORA-01410: invalid ROWID
    at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)
    at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)
    ... 37 more
    Pls help in this case. I am novice in EBS.
    Thanks

    Hi Yoonas,
    while login page shwoing error "Unable to generate forwarding URL. Exception: oracle.apps.fnd.cache.CacheException "
    alert logs are fin no issue from db end all rectified. pls find the application.log.
    13/02/28 18:11:58.536 html: 10.1.3.4.0 Stopped
    13/03/01 10:54:24.412 10.1.3.4.0 Started
    13/03/01 10:54:34.841 html: 10.1.3.4.0 Started
    13/03/01 12:08:50.767 html: oracle.apps.fnd.security.LeakDetectionFilter.initialized:1362119930766
    13/03/01 12:08:50.767 html: LeakSetting:
    global:true,session:false,aggressive:false,stderr:false,appslog:false,corelog:false
    ignoring:null
    13/03/01 12:08:51.980 html: Servlet error
    java.lang.ExceptionInInitializerError
    at oracle.apps.fnd.sso.AppsLoginRedirect.doGet(AppsLoginRedirect.java:613)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.apps.fnd.cache.CacheException
    at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:228)
    at oracle.apps.fnd.functionSecurity.User.getUser(User.java:338)
    at oracle.apps.fnd.functionSecurity.FunctionSecurity.getUser(FunctionSecurity.java:527)
    at oracle.apps.fnd.functionSecurity.FunctionSecurity.init(FunctionSecurity.java:1620)
    at oracle.apps.fnd.functionSecurity.FunctionSecurity.<init>(FunctionSecurity.java:188)
    at oracle.apps.fnd.sso.SSOUtil.getLocalPwdChangeUrl(SSOUtil.java:735)
    at oracle.apps.fnd.sso.SSOUtil.getLocalPwdChangeUrl(SSOUtil.java:791)
    at oracle.apps.fnd.sso.SSOManager.<clinit>(SSOManager.java:2191)
    ... 19 more
    Caused by: oracle.apps.jtf.base.resources.FrameworkException: Failure in CacheLoader: oracle.apps.jtf.base.resources.FrameworkException
    at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:830)
    at oracle.apps.jtf.cache.CacheManager.getInternal(CacheManager.java:4802)
    at oracle.apps.jtf.cache.CacheManager.get(CacheManager.java:4624)
    at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:216)
    ... 26 more
    Caused by: oracle.apps.jtf.base.resources.FrameworkException
    at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:234)
    at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:201)
    at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:176)
    at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:151)
    at oracle.apps.jtf.cache.GenericCacheLoader.load(GenericCacheLoader.java:87)
    at oracle.ias.cache.CacheLoader.callLoad(Unknown Source)
    at oracle.ias.cache.CacheHandle.findObject(Unknown Source)
    at oracle.ias.cache.CacheHandle.locateObject(Unknown Source)
    at oracle.ias.cache.CacheAccess.get(Unknown Source)
    at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:771)
    ... 29 more
    Caused by: oracle.apps.jtf.base.resources.FrameworkException: ORA-01410: invalid ROWID
    at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)
    at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)
    ... 39 more
    13/03/01 16:02:42.161 html: 10.1.3.4.0 Stopped
    13/03/01 17:06:37.969 10.1.3.4.0 Started
    13/03/01 17:06:47.473 html: 10.1.3.4.0 Started
    13/03/01 18:00:40.903 html: 10.1.3.4.0 Stopped
    13/03/01 18:12:07.664 10.1.3.4.0 Started
    13/03/01 18:12:25.248 html: 10.1.3.4.0 Started
    13/03/01 18:34:41.921 html: oracle.apps.fnd.security.LeakDetectionFilter.initialized:1362143081921
    13/03/01 18:34:42.155 html: LeakSetting:
    global:true,session:false,aggressive:false,stderr:false,appslog:false,corelog:false
    ignoring:null
    13/03/01 18:57:48.659 html: 10.1.3.4.0 Stopped
    13/03/04 11:40:01.741 10.1.3.4.0 Started
    13/03/04 11:40:23.176 html: 10.1.3.4.0 Started
    13/03/04 12:09:47.660 html: oracle.apps.fnd.security.LeakDetectionFilter.initialized:1362379187660
    13/03/04 12:09:47.824 html: LeakSetting:
    global:true,session:false,aggressive:false,stderr:false,appslog:false,corelog:false
    ignoring:null

  • How Best handle Exceptions in J2EE?

    What is the best way to handle/propogate exceptions in J2EE?
    For example, all the way from DB to EJB/Container to Server/RMI to JSP/GUI?

    is it that this is not an interesting topic to anyone?

  • After Installed  URL. Exception

    Hi:
    After Installed R12 06 i it gave me this error
    Unable to generate forwarding URL. Exception: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
    checking URL = http://localhost,localhost.com:8001/OA_HTML/jtfTestCookie.jsp JSP is not responding
    How can I fix this error
    Please help
    Ali

    Hi,
    Did the installation complete successfully?
    Do you have all the services up and running?
    Please check Apache log files and see if you find details about the error (error_log and access_log).
    Also, please run AutoConfig and make sure it completes successfully.
    Regards,
    Hussein

  • Javax.enterprise.deploy.spi.exceptions.InvalidModuleException: [J2EE Deploy

    Hi,
    I'm using Weblogic Server 9.2. I'm having problems to deploy a .ear aplication.?:|
    When I try to install the aplication i get the following error:
    javax.enterprise.deploy.spi.exceptions.InvalidModuleException: [J2EE Deployment SPI:260105]Failed to create DDBeanRoot for application, 'sgi-core-1.0.jar'
    Could anyone say me how can I solve this error?
    The deployment descriptor weblogic-ejb-jar.xml seems to be correct.
    I'm using Andromda to generate the .ear file, so I don't know if it can be causing any problems
    If anyone could help me...
    Thanks in advance

    Hi,
    The J2EE Error code siply suggest that there is something wrong in your Deployment Descriptors...
    Can u please post the XML files available inside your "WEB-INF" directory?
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • Exception running J2EE Kodo car example

    on Windows2000, Jboss3.2, running the Kodo J2EE tutorial example When I
    add a car to the database (default Hypersonic datasource) I obtain this
    exception:
    HTTP ERROR: 500 RuntimeException; nested exception is:
    com.solarmetric.kodo.runtime.FatalDataStoreException:
    java.sql.SQLException: You cannot commit during a managed transaction!
    [code=0;state=null] NestedThrowables: java.sql.SQLException: You cannot
    commit during a managed transaction!
    RequestURI=/sample/Save.jsp
    Can you help me?

    If you are using managed XA transactions, you need to specify a second
    connection factory Kodo can use for things like allocating sequence
    numbers and other database operations that should not be dependent on the
    current global transaction. See the documentation on the various
    ConnectionFactory2 settings, and our documentation on XA transactions.

  • Why jsp page cause exceptions in J2EE App. Server

    I installed j2ee App Server on my Windows 2000, wrote a simple .jsp, moved the code to domains\domain1\docroot, ran the .jsp from the browser and saw the following exception. I could not find the directory common/lib for my Tomcat server. Please instruct.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    ****************************************************************************************************************

    This is a known issue.
    The error message about the missing Java compiler is very misleading, and
    is being caused by a bug in the way compilation error messages are
    being propagated.
    Following is a detailed explanation of the behaviour you are seeing:
    The misleading error message is printed only in the case where a javac
    compilation error line number cannot be mapped back to a line number
    in the JSP source code.
    The internal representation of a JSP element ("JSP node") in the JSP compiler
    contains the following info:
    - The begin line number of the JSP element in the JSP page
    - The begin and end line numbers ("range") of the Java code that was
    generated for the JSP element
    When attempting to map a javac error line number back to the JSP
    source line, we determine the range into which the javac error line
    number falls, and retrieve the JSP source number of the JSP element
    associated with that range.
    However, in some cases, it is impossible to trace a javac error line
    number back to the JSP element that caused the error. For example,
    consider the following scriptlet:
    <%
    String query = request.getParameter("query");
    if(query != null) {
    out.println(query);
    } else {
    out.println("(null)");
    // } // <-- !Missing brace syntax error
    %>
    Since the JSP compiler wraps the generated code into a
    try-catch-finally block, the above syntax error in the scriptlet
    causes havoc with that try-catch-finally block, and results in 3 javac
    errors:
    <file>jsp.java:<line1>: 'catch' without 'try'
    } catch (Throwable t) {
    ^
    <file>jsp.java:<line2>: 'try' without 'catch' or 'finally'
    try {
    ^
    <file>jsp.java:<line3>: '}' expected
    Notice that all of the above javac error numbers are outside the range
    of the java line numbers corresponding to the scriptlet that caused the
    error, and therefore cannot be mapped back to any line numbers in the
    JSP page source.
    AS 8.0 PE does not handle this case correctly, and prints out the
    misleading error message (though the real error message can be found
    in the server log).
    Notice that this problem is going to be fixed in AS 8.1, so that if a
    javac error line number cannot be mapped back to a JSP page line
    number, the javac error is still returned to the client.
    As far as your particular JSP page is concerned, I don't see anything
    wrong with it, and it compiles just fine for me.
    Do you still have any problems with it?
    Jan

  • Why is most of the URL address, except for the domain name, in gray font? It's difficult to read. I would like to make the entire address font in black

    [http://pics.livejournal.com/tersa/pic/006gzfsf Screenshot of the behavior]
    Before I upgraded to Firefox 6.0, the URL address was displayed in black text.
    After upgrading, it is now displaying only the core domain name (e.g, mozilla.com) in black text, while any extra text (like, https://support. ) is grayed out.
    It is very difficult to read this gray text on my monitor. I'd like to make it so that the entire address is displayed in black text, but I couldn't seem to find any kind of configuration setting under Options to change this.
    Please let me know if I can modify the URL display to be all black again.

    That is a new feature in Firefox to highlight the domain in the URL bar. You can change a preference to make the entire URL dark.
    Change a preference:
    #type '''''about:config''''' in the Location/URL bar and press Enter.
    #if you see a warning, accept (promise to be careful)
    #Filter: '''''browser.urlbar.formatting.enabled'''''
    #in lower panel, double-click that item to toggle value to '''''false'''''
    I am not sure whether or not you need to re-start Firefox after doing the above for the change to take effect. Test and if it does not work, then re-start Firefox and test again.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

  • Invalid URL Pattern exception when deploying ear file

    Hi,
    I encountered some problem during deploying an ear file into SJSAS PE. This ear file has successfully been deployed into WebLogic Server and works fine.
    The error message is as follows:
    Deploying application in domain failed; Error loading deployment descriptors for module [wsgServerRel1_0] -- Invalid URL Pattern: [pfk/PfkMainServlet] Error loading deployment descriptors for module [wsgServerRel1_0] -- Invalid URL Pattern: [pfk/PfkMainServlet] The following is the relevant part regarding URL pattern:
         <servlet>
              <servlet-name>PfkMainServlet</servlet-name>
              <servlet-class>com.sns.pfk.servlet.PfkMainServlet</servlet-class>
              <load-on-startup>0</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>PfkMainServlet</servlet-name>
              <url-pattern>pfk/PfkMainServlet</url-pattern>
         </servlet-mapping>What else I need to do to make it work?
    Regards,
    Xinjun

    You have an error in your url-pattern. A url-pattern must either begin with a slash ("/") for the exact match or directory match or it could begin an asteric("*") for the extension match(refer to the servlet spec).
    In your case it should be something like:
    <servlet-mapping>
              <servlet-name>PfkMainServlet</servlet-name>
              <url-pattern>/pfk/PfkMainServlet</url-pattern>
    </servlet-mapping>
    or
    <servlet-mapping>
              <servlet-name>PfkMainServlet</servlet-name>
              <url-pattern>/pfk/*</url-pattern>
    </servlet-mapping>

  • Wiki server blog enclosure URL malformed?

    Howdy,
    I am on Leopard 10.5.8 server and trying to use the Web Server wiki blogs (Group blogs, not individuals) to generate RSS that I will pass to iTunes U. I have gotten everything working, including SSL and the feed validates, but I have one problem: The URL to the enclosed media file in the RSS does not have the https, only http.
    All other instances of http in the RSS are correct (https). Does anyone know where the enclosures are generated? I have check /usr/shared/wikid/lib/python/apple_wlt up and down, but have had no luck.

    The server homepage makes XMLHttpRequest calls via JavaScript to /collaboration-availability/[servicename]/ in order to discover if a service is enabled for a particular virtual host configuration. Those URLs are aliased (or rewritten) to point to /usr/share/collaboration/availability/index.html if the service is enabled. If the request returns anything other than a successful response then the JavaScript assumes that the service is disabled.
    I would first look to see what Apache is returning for the XHR requests. Also make sure that Apache has permission to access the availability file. You might also want to look at the javascript console in Safari to see if there are any JS errors.

  • Server returned HTTP response code: 503 for URL

    I was deploy my webcenter application and was working fine, but I updated my Webcenter Framework plugin in Jdeveloper to version 11.1.2.0.091030.1847 and now when I try deploy my application error 503 occurr:
    [05:06:55 PM] Weblogic Server Exception: weblogic.deploy.api.internal.utils.DeployerHelperException: The source 'C:\Users\nmaia\AppData\Local\Temp\app8.ear' for the application 'app8#V2.0' could not be loaded to the server 'http://it7-srv-lnx-wcenter:7002/bea_wls_deployment_internal/DeploymentService'.
    Server returned HTTP response code: 503 for URL: http://it7-srv-lnx-wcenter:7002/bea_wls_deployment_internal/DeploymentService
    [05:06:55 PM] See server logs or server console for more details.
    [05:06:55 PM] weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260041]Unable to upload 'F:\Desenvolvimento\JDev\Application8\deploy\app8.ear' to 't3://it7-srv-lnx-wcenter:7002'
    [05:06:55 PM] #### Deployment incomplete. ####
    [05:06:55 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    My Weblogic is version 11g(10.3), can anyone help me?
    Thanks,

    To solve my problemn I do these steps:
    - Uninstall jdeveloper;
    - Delete jdeveloper folder;
    - Install Jdeveloper, version 11.1.1.2;
    - Downloaded the plugin to Webcenter: http://download.oracle.com/otn/java/jdeveloper/1112/extensions/oracle.webcenter.framework_bundle.zip
    - Remove my proxy from Jdev ( Tools -> Preferences -> Web Browser and Proxy)
    And works fine.
    Thks anyway.
    []'s

  • Tunneling and problem with unknown host exception

    hello! i've got a problem with https. i use jdk 1.5.0, jboss-4.0.4.ga-patch1, soap.
    and i'm going crasy.. i've testet my client code at our network and it works fine. but if i want to get jobs from the server of our customer, my client throw an "unknown host exception: firm".
    i wonder why it hasn't the full host. the url may look like this: https://firm.sub.com:443/ and while the client connects to the server, i depugged it and the host is correct: firm.sub.
    but after the connection, when the client want to get something from the server (when it wants to communicate with the server over soap) it crashs.
    my client code looks like this:
    private ClientInterfaceEndpoint getClientInterface() throws ServiceException {
    QName serviceQName = new QName(DOCSERVER_NAMESPACE, CLIENT_INTERFACE_SERVICENAME);
    URL wsdlUrl = getClientInterfaceWsdlUrl();
    log.info("*******WSDLURL host: " + wsdlUrl.getHost()); // out: firm.sub
    log.info("*******WSDLURL port: " + wsdlUrl.getPort()); // out: 443
    URL mapping = getClass().getClassLoader().getResource("META-INF/DocumentServer_Mapping.xml");
    log.info("*******MappingURL path: " + mapping.getPath());
    if (wsdlUrl.toString().toLowerCase().contains("https")) {
    if (null == getConfig().getTruststore() || getConfig().getTruststore().equalsIgnoreCase("")) {
    throw new RuntimeException("No or incorrect TruststorePath in the docclient-config");
    File tmp = new File(getConfig().getTruststore());
    if (!tmp.isFile() || !tmp.canRead()) {
    throw new RuntimeException("The truststore at the 'TruststorePath' isn't a file or can't be read.");
    System.setProperty(SYS_PROPERTY_KEY_TRUST, getConfig().getTruststore());
    System.setProperty(SYS_PROPERTY_KEY_TRUST_PW, config.getTruststorePass());
    ServiceFactoryImpl factory = null;
    factory = (ServiceFactoryImpl) ServiceFactory.newInstance();
    Service clientInterfaceService = null;
    try {// create the service for the ClientInterface
    clientInterfaceService = factory.createService(wsdlUrl, serviceQName, mapping, new URL(config.getServerURL())); //, new URL(config.getServerURL())
    log.info("*******ClientInterFaceService WSDL URL Host: " + clientInterfaceService.getWSDLDocumentLocation().getHost()); // out:firm.sub
    log.info("*******ClientInterFaceService WSDL URL Port: " + clientInterfaceService.getWSDLDocumentLocation().getPort()); // out: 443
    } catch (ServiceException e) {
    log.error(e.getMessage());
    throw new RuntimeException(e.getMessage());
    } catch (MalformedURLException e) {
    log.error(e.getMessage());
    throw new RuntimeException(e.getMessage());
    } catch (Exception e) {
    log.error(e.getMessage());
    throw new RuntimeException(e.getMessage());
    }// getting the ClientInterfaceEndpoint
    ClientInterfaceEndpoint clientInterface = (ClientInterfaceEndpoint) clientInterfaceService.getPort(ClientInterfaceEndpoint.class);
    return clientInterface;
    protected URL getClientInterfaceWsdlUrl() {
    URL url = null;
    String urlString = getConfig().getServerURL() + CLIENT_INTERFACE_URI + "?wsdl";
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    Properties properties = System.getProperties();
    String handlers = System.getProperty(SYS_PROPERTY_KEY_PKGS);
    if (handlers == null) {
    properties.put(SYS_PROPERTY_KEY_PKGS, SYS_PROPERTY_VALUE_PKGS);
    else {
    properties.put(SYS_PROPERTY_KEY_PKGS, SYS_PROPERTY_VALUE_PKGS.concat("|").concat(handlers));
    try {
    url = new URL(urlString);
    log.info("*******URL host: " + url.getHost());
    log.info("*******URL port: " + url.getPort());
    log.info("*******URL path: " + url.getPath());
    } catch (MalformedURLException e) {
    log.fatal("DocumentProvider SOAP configured incorrectly. DocServer URL malformed: " + urlString);
    throw new RuntimeException("DocumentProvider SOAP configured incorrectly. DocServer URL malformed: " + urlString, e);
    System.setProperties(properties);
    return url;
    }if it's usefull: the customer use a apache server (not tomcat) where a the server is and the client at another system the jboss.
    The customer told me: if i want to connect the client via http i have to tunnel.. maybe i have to tunnel using https too?
    have i to generate the endpoint classes a second time, extra for https?
    or doesn't soap like host like "firm.sub"?
    can anyone help me please?!
    sorry, my english isn't very well...

    sorry, it's not the same error. The output is: Unable to connect to any host due to exception: java.net.socket.exception: java.net.socket.exception: Unregcognized windows socket error: 10106: create.

  • URL Connection Class

    The following program is giving error while running .......
    import java.net.*;
    import java.io.*;
    import java.util.*;
    class URLDemo1
         public static void main(String []arg) throws IOException
              int i;
              URL u1 = new URL ("www.sify.com");
              URLConnection hp = u1.openConnection();
              System.out.println("System Date:"+(new Date(hp.getDate())));
              System.out.println("Content Type:"+ hp.getContent());
              System.out.println("Expires on:"+ hp.getExpiration());
              System.out.println("Modified on:"+(new Date(hp.getLastModified())));
              int l = hp.getContentLength();
              System.out.println("Content Length is :"+l);
              if (l>0)
                   System.out.println("Content");
                   InputStream is = hp.getInputStream();
                   i = l;
                   int j;
                   while(((j = is.read())!=-1) && (--i>0))
                        System.out.println((char)j);
                   is.close();
              else
                   System.out.println("No Page");
    ...........please answer to my problem.
              

    The following program is giving error while running
    import java.net.*;
    import java.io.*;
    import java.util.*;
    class URLDemo1
    public static void main(String []arg) throws
    IOException
    int i;
    URL u1 = new URL ("www.sify.com");
    URLConnection hp = u1.openConnection();
    System.out.println("System Date:"+(new
    w Date(hp.getDate())));
    System.out.println("Content Type:"+
    + hp.getContent());
    System.out.println("Expires on:"+
    + hp.getExpiration());
    System.out.println("Modified on:"+(new
    w Date(hp.getLastModified())));
    int l = hp.getContentLength();
    System.out.println("Content Length is :"+l);
    if (l>0)
    System.out.println("Content");
    InputStream is = hp.getInputStream();
    i = l;
    int j;
    while(((j = is.read())!=-1) && (--i>0))
    System.out.println((char)j);
    is.close();
    else
    System.out.println("No Page");
    ...........please answer to my problem. The program is throwing a MalformedException. I think URL object is not been created properly Please help me. As already explained in the source code I have applied IOException to whole program and The class URL throws Malformed Exception, and the same happened. Please help me.

  • Print a picture from an URL

    HI All,
    is it possible to print (using a sapscript or a report) a picture directly from an URL instead of upload this picture into SAP (with report RSTXLDMC)?
    Many thanks.
    Luca

    Hi
    Check this report
    program zsap_picture_demo.
    set screen 200.
    TYPE-POOLS cndp.
    * CLASS    c_event_receiver
    * DEFINITION
    class c_event_receiver definition.
    * The class is used to test the events raised by the cl_gui_picture
    * class
      public section.
        methods event_handler_picture_dblclick
                for event picture_dblclick of cl_gui_picture
                importing mouse_pos_x mouse_pos_y sender.
        methods event_handler_context_menu
                for event context_menu of cl_gui_picture
                importing sender.
        methods event_handler_context_menu_sel
                for event context_menu_selected of cl_gui_picture
                importing fcode sender.
      endclass.
    * DATA
      data function like sy-ucomm.         " OK-Code field in screen 200
      data url  type cndp_url.                " URL-field in screen 200
      data url2 type cndp_url.               " URL-field in screen 200
      data picture_control_1 type ref to cl_gui_picture.
      data picture_control_2 type ref to cl_gui_picture.
      data container_1 type ref to cl_gui_custom_container.
      data container_2 type ref to cl_gui_custom_container.
      data event_receiver  type ref to c_event_receiver.
      data event_tab type cntl_simple_events.
      data event_tab_line type cntl_simple_event.
      data return type i.
    * PBO
    * before_output
    module before_output output.
      set pf-status 'MAIN0001'.
      IF PICTURE_CONTROL_1 IS INITIAL.
    * Create controls
        create object container_1
          exporting container_name = 'PICTURE_CONTROL_1'.
        create object container_2
          exporting container_name = 'PICTURE_CONTROL_2'.
        CREATE OBJECT PICTURE_CONTROL_1 exporting parent = container_1.
        CREATE OBJECT PICTURE_CONTROL_2 exporting parent = container_2.
    * Register the events
        EVENT_TAB_LINE-EVENTID = CL_GUI_PICTURE=>EVENTID_PICTURE_DBLCLICK.
        append EVENT_TAB_LINE to EVENT_TAB.
        EVENT_TAB_LINE-EVENTID = CL_GUI_PICTURE=>EVENTID_CONTEXT_MENU.
        append EVENT_TAB_LINE to EVENT_TAB.
    EVENT_TAB_LINE-EVENTID = CL_GUI_PICTURE=>EVENTID_CONTEXT_MENU_SELECTED.
        append EVENT_TAB_LINE to EVENT_TAB.
        CALL METHOD PICTURE_CONTROL_1->SET_REGISTERED_EVENTS
          exporting
            EVENTS = event_tab.
        CALL METHOD PICTURE_CONTROL_2->SET_REGISTERED_EVENTS
          exporting
            EVENTS = event_tab.
    * Create the event_receiver object and set the handlers for the events
    * of the picture controls
        create object event_receiver.
        set handler event_receiver->event_handler_picture_dblclick
                    FOR PICTURE_CONTROL_1.
        set handler event_receiver->event_handler_context_menu
                    FOR PICTURE_CONTROL_1.
        set handler event_receiver->event_handler_context_menu_sel
                    FOR PICTURE_CONTROL_1.
        set handler event_receiver->event_handler_picture_dblclick
                    FOR PICTURE_CONTROL_2.
        set handler event_receiver->event_handler_context_menu
                    FOR PICTURE_CONTROL_2.
        set handler event_receiver->event_handler_context_menu_sel
                    FOR PICTURE_CONTROL_2.
    * Set the display mode to 'normal' (0)
        CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
        CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
    * Set 3D Border
        CALL METHOD PICTURE_CONTROL_1->SET_3D_BORDER
           exporting border = 1.
        CALL METHOD PICTURE_CONTROL_2->SET_3D_BORDER
           exporting border = 1.
    * new async implementation since 4.6C
    CALL FUNCTION 'DP_PUBLISH_WWW_URL'
      EXPORTING
        OBJID                       = 'HTMLCNTL_TESTHTM2_SAP_AG'
        LIFETIME                    = cndp_lifetime_transaction
      IMPORTING
        URL                         = url
      EXCEPTIONS
        OTHERS                      = 1.
    * Load the picture by using the url generated by the data provider.
        if sy-subrc = 0.
          CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL_ASYNC
             exporting url = url.
        endif.
    CALL FUNCTION 'DP_PUBLISH_WWW_URL'
      EXPORTING
        OBJID                       = 'DEMOWORD97SAPLOGO'
        LIFETIME                    = cndp_lifetime_transaction
      IMPORTING
        URL                         = url2
      EXCEPTIONS
        OTHERS                      = 1.
    * load image
        if sy-subrc = 0.
          CALL METHOD PICTURE_CONTROL_2->LOAD_PICTURE_FROM_URL_async
             exporting url = url2.
        endif.
      endif.
    endmodule.
    * PAI
    * after_input
    module after_input input.
      case function.
    * At the end of the program destroy the control
        when 'BACK'.
          CALL METHOD container_1->FREE.
          CALL METHOD container_2->FREE.
          leave to screen 0.
    * Change the display mode
        when 'NORMAL'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
               EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
               EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
        when 'STRETCH'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
        when 'FIT'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
               EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
               EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT.
        when 'NORMAL_CTR'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
        EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL_CENTER.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
        EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL_CENTER.
        when 'FIT_CTR'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
          EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT_CENTER.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
          EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT_CENTER.
    * Clear the picture
        when 'CLEAR'.
          CALL METHOD PICTURE_CONTROL_1->CLEAR_PICTURE.
    * Load a new picture
        when space.
          CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
               exporting url = url
               importing result = return.
          call method cl_gui_cfw=>flush.
          if return = 0.
            url = text-000.
          endif.
      endcase.
      clear function.
    endmodule.
    * CLASS   c_event_receiver
    * IMPLEMENTATION
    CLASS C_event_receiver implementation.
    * CLASS   c_event_receiver
    * METHOD  event_handler_picture_dblclick
      METHOD EVENT_HANDLER_PICTURE_DBLCLICK.
    *        for event picture_dblclick of c_picture_control
    *        importing mouse_pos_x mouse_pos_y.
        DATA pos_x(5) type c.
        DATA pos_y(5) type c.
        pos_x = mouse_pos_x.
        pos_y = mouse_pos_y.
        IF SENDER = PICTURE_CONTROL_1.
          MESSAGE I000(0K) WITH
            'DoubleClick' 'Upper Picture' POS_X POS_Y. "#EC NOTEXT
        else.
          MESSAGE I000(0K) WITH
            'DoubleClick' 'Lower Picture' POS_X POS_Y. "#EC NOTEXT
        endif.
      endmethod.
    * CLASS   c_event_receiver
    * METHOD  event_handler_context_menu
      METHOD EVENT_HANDLER_CONTEXT_MENU.
        data menu type ref to cl_ctmenu.
        create object menu.
        call method menu->ADD_FUNCTION exporting
          fcode = text-001
          TEXT = TEXT-001.
        call method menu->ADD_FUNCTION exporting
          FCODE = TEXT-002
          TEXT = TEXT-002.
        call method menu->ADD_FUNCTION exporting
          FCODE = TEXT-003
          TEXT = TEXT-003.
        call method menu->ADD_FUNCTION exporting
          FCODE = TEXT-004
          TEXT = TEXT-004.
        call method menu->ADD_FUNCTION exporting
          FCODE = TEXT-005
          TEXT = TEXT-005.
        CALL METHOD SENDER->DISPLAY_CONTEXT_MENU
          EXPORTING CONTEXT_MENU = MENU.
      endmethod.
    * CLASS   c_event_receiver
    * METHOD  event_handler_context_menu_sel
      METHOD EVENT_HANDLER_CONTEXT_MENU_sel.
        DATA DISPLAY_MODE TYPE I.
        IF FCODE = TEXT-001.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
        ENDIF.
        IF FCODE = TEXT-002.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
        ENDIF.
        IF FCODE = TEXT-003.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT.
        ENDIF.
        IF FCODE = TEXT-004.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL_CENTER.
        ENDIF.
        IF FCODE = TEXT-005.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT_CENTER.
        ENDIF.
        CALL METHOD SENDER->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = DISPLAY_MODE.
      endmethod.
    endclass.
    Reward all hepfull answers
    Regards
    Pavan

  • Code to call url in abap program

    code to call url in abap program using cl_http requests and save the outcome to a location  in a file

    See the below program
    REPORT zbrowser .
    TABLES : sscrfields.
    INCLUDE .
    CONSTANTS: htmlcntl_eventid_on_navigate TYPE i VALUE 1.
    CONSTANTS: htmlcntl_eventid_navigate_com TYPE i VALUE 2.
    DATA : h_html_ctrl TYPE cntl_handle,
    repid TYPE sy-repid,
    dynnr TYPE sy-dynnr,
    cmd TYPE sy-ucomm,
    flag,disp.
    DATA : it_exclude LIKE TABLE OF rsexfcode WITH HEADER LINE.
    SELECTION-SCREEN : FUNCTION KEY 1,
    FUNCTION KEY 2,
    FUNCTION KEY 3,
    FUNCTION KEY 4,
    FUNCTION KEY 5.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 2
    SELECTION-SCREEN COMMENT 45(50) comment1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(28) comment2 FOR FIELD url.
    SELECTION-SCREEN POSITION 31.
    PARAMETERS : url(1064) LOWER CASE .
    SELECTION-SCREEN PUSHBUTTON 79(4) open USER-COMMAND open.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
    comment1 = 'ABAP INTERNET EXPLORER'.
    comment2 = 'Enter URL/Filename To Open :'.
    open = icon_transfer .
    sscrfields-functxt_05 = icon_sap.
    sscrfields-functxt_04 = icon_booking_stop.
    sscrfields-functxt_03 = icon_refresh.
    sscrfields-functxt_02 = icon_arrow_right.
    sscrfields-functxt_01 = icon_arrow_left.
    repid = sy-repid.
    dynnr = '1000'.
    it_exclude-fcode = 'ONLI'.
    APPEND it_exclude.
    it_exclude-fcode = 'INFO'.
    APPEND it_exclude.
    *Changing GUI status
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
    p_status = sy-pfkey
    p_program = repid
    TABLES
    p_exclude = it_exclude.
    CALL FUNCTION 'CONTROL_INIT' .
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'HTMLCNTL_CREATE'
    EXPORTING
    owner_repid = repid
    link_repid = repid
    dynnr = dynnr
    handle = h_html_ctrl
    EXCEPTIONS
    control_install_error = 1
    create_error = 2
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 3
    OTHERS = 3
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'HTMLCNTL_INIT'
    EXPORTING
    h_control = h_html_ctrl
    left = 1
    top = 2
    width = 143
    height = 37
    register_event_on_navigate = 'X'
    cb_form_navigate_complete = 'ON_CONTROL_EVENT'
    EXCEPTIONS
    cntl_system_error = 1
    cntl_error = 2
    dp_create_error = 3
    dp_install_error = 4
    dp_error = 5
    create_browser_error = 6
    init_error = 7
    OTHERS = 8
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'CONTROL_FLUSH'.
    AT SELECTION-SCREEN.
    cmd = sscrfields-ucomm.
    CASE cmd.
    WHEN 'OPEN'.
    PERFORM load_html_page.
    CALL FUNCTION 'CONTROL_FLUSH'.
    WHEN 'FC01'. "BACK
    CALL FUNCTION 'HTMLCNTL_GO_BACK'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 4
    PERFORM get_current_url.
    WHEN 'FC02'. "FORWARD
    CALL FUNCTION 'HTMLCNTL_GO_FORWARD'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    WHEN 'FC03'. "REFRESH
    CALL FUNCTION 'HTMLCNTL_DO_REFRESH'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    WHEN 'FC04'. "STOP
    CALL FUNCTION 'HTMLCNTL_STOP'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    WHEN 'FC05'. "GO TO HOME
    CALL FUNCTION 'HTMLCNTL_GO_HOME'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    CALL FUNCTION 'CONTROL_FLUSH'.
    WHEN OTHERS.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 5
    CALL FUNCTION 'CONTROL_DISPATCH'
    EXPORTING
    fcode = cmd.
    CALL FUNCTION 'CONTROL_FLUSH'.
    ENDCASE.
    CLEAR cmd.
    CALL FUNCTION 'CONTROL_FLUSH'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR url.
    PERFORM get_file_name.
    PERFORM load_html_page.
    *& Form get_page_name
    Get Page Name
    FORM get_file_name.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = ' '
    def_path = 'C: '
    mask = ',.,..'
    mode = 'o'
    title = 'Browse to Open'
    IMPORTING
    filename = url
    RC =
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    ENDFORM. " get_page_name
    *& Form load_html_page
    TO load the file (URL)
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 6
    FORM load_html_page.
    CALL FUNCTION 'HTMLCNTL_SHOW_URL'
    EXPORTING
    h_control = h_html_ctrl
    url = url.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    flag = 'X'.
    ENDFORM. " load_html_page
    *& Form get_current_url
    Get Current URL
    FORM get_current_url.
    CALL FUNCTION 'HTMLCNTL_GET_CURRENT_URL'
    EXPORTING
    h_control = h_html_ctrl
    IMPORTING
    url = url.
    ENDFORM. " get_current_url
    Callback form for the event 'NavigateComplete'
    callback on_control_event.
    CALL FUNCTION 'CONTROL_GET_EVENT_PARAM'
    EXPORTING
    h_control = h_html_ctrl
    param_id = 0
    CHANGING
    return = url.
    PERFORM get_current_url.
    endcallback.
    Reward Points if it is helpful
    Thanks
    Seshu

Maybe you are looking for