Invoking html via Web Server

I am trying to invoke the html page from browser in a similar way to invoking the servlet:
http://localhost:8080/explorer_ctx/explorer.html
where /explorer_ctx is a context and my explorer.html is in the context directory � which is D:\workspace\Development\DBViewer\SRC\dbviewer
When I invoke the html page as described above the following error is displayed in the Java console:
load: class dbviewer/DBExplorer.class not found.
java.lang.ClassNotFoundException: java.io.FileNotFoundException: http://localhost:8080/explorer_ctx/WEB-INF/classes/dbviewer/DBExplorer/class.class
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
     at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source)
     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
     at java.net.HttpURLConnection.getResponseCode(Unknown Source)
     at sun.applet.AppletClassLoader.getBytes(Unknown Source)
     at sun.applet.AppletClassLoader.access$100(Unknown Source)
     at sun.applet.AppletClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadCode(Unknown Source)
     at sun.applet.AppletPanel.createApplet(Unknown Source)
     at sun.plugin.AppletViewer.createApplet(Unknown Source)
     at sun.applet.AppletPanel.runLoader(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Any suggestions?
Regards Janusz

DBExplorer is an applet that I am referring to from explorer.html - it is not a servlet.
DBExplorer is referenced in an html file like this:
<HTML>
<HEAD>
<TITLE>Applet HTML Page</TITLE>
</HEAD>
<BODY>
<APPLET CODE = "dbviewer/DBExplorer.class" CODEBASE="WEB-INF/classes/" WIDTH = 350 HEIGHT = 200>
</APPLET>
</BODY>
</HTML>
The above is the raw html but the real one that I am using with the browser is translated by HTMLConverter.
Regards
Janusz

Similar Messages

  • Display Pre-Formatted HTML via Web Dynpro

    Hi,
    Does anyone know of a way to display preformatted HTML via web dynpro, can any of the standard UI elements do this?
    Thanks in advance,
    Simon

    Hi,
    can you explain what do you mean by HTML string? is it binary data that you have?
    if it is a binary data i.e. in bytes then you can do this way also..
    Store the binary data in a context varaible named Data and to store the url to be generated, create another context variable Url;
    String formattedStr = wdContext.currentContextElement()
        .getData();
    try
      IWDCachedWebResource resource = WDWebResource.getWebResource
        formattedStr.getBytes("UTF-8"),
        WDWebResourceType.HTML
      resource.setResourceName("<Give a filename>");
      resource.setAttachement( false );
      resource.setReadOnce( false );
      wdContext.currentContextElement().setUrl
         resource.getAbsoluteURL()
    catch (Exception ex)
      wdComponentAPI.getMessageManager()
        .reportException( ex.getMessage, false );
    Set source of the Iframe as context variable Url.
    regards,
    Mahesh

  • How to allow cleanup actions to be taken by a reentrant clone before it is killed, when viewed via web server, because of a browser close?

    Here is a question I'm having to luck with.  I have a VI, set to be reentrant, which is published via the web server.  The main VI instance is never interacted with: it makes a clone every time someone navigates to the proper URL, and the user interacts with the newly created clone (never the main instance).  A clones is capable of configuring and calling instrument VI's when proper login credentials are entered, which results in browser popups that are controllable on the user's end (though only one user is ever doing this at a time. To clarify, multiple clones can be open simultaneously for login purposes, but only one user is ever interacting with the instruments, which aren't themselves reentrant). 
    If the user clicks my custom logout button in their browser, it is trivial to close these other, independent instruments and clean up properly.  But if the user simply clicks the red X in their browser, there is no graceful shutdown and the instruments which the clone called stay open on the server, when they should be closing.
    My experience so far:
    No panel close? event seems to be triggered in the clone.  The clone simply ceases to be.
    The remote_panel_connections property doesn't seem to work correctly in this instance (I haven't had any luck so far), since it is possible for more than one clone to be active, and the main parent that is spawning the clones stays running but isn't interacted with in any way.
    What I Need:
    A way for the clone VI to recognize that the user has closed their browser, and communicate that it is closing to all active VI's before terminating.
    I would like to avoid forcing the instruments that the clone calls to poll constantly to see if the clone VI is present on the network.  If there is no other solution but this, I would appreciate a suggestion as to the least resource and code intensive way to implement this type of polling, as the instruments are really meant to be totally independent entities after they are called, rather than sub vi's. 
    Thanks for any input, let me know if more information is needed.
    Solved!
    Go to Solution.

    Hey MTdev,
    Panel close? events cannot be triggered on a VI being viewed or controlled remotely. Some more information on that can be found in the help here:http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/vi_panel_closeq/.  My suggestion would be to set the Title Bar on the front panel of your remote VI to not be visible so that their only option for closing the window is to click the logout button.  Are you using Remote Front Panels(http://zone.ni.com/devzone/cda/tut/p/id/3277) to do this instrument control?  Using remote front panels allows you to manage a lot of the multiple people accesssing at the same-time type issues so it may be something to look into if you are not already using this method.  
    Regards,
    Kevin
    Product Support Engineer
    National Instruments

  • DirectoryServer 5.2 via Web Server 6.1SP4

    Trying to authenticate using WebDAV to DS52 via macromedia Contribute 3.1 and I get this error in the DS52 access log:
    "RESULT err=19 tag=97"
    nothing in the DS errors log.
    Wre can I get info to decipher the error and tag number
    Thanks

    The exception that you report seems to be identity server related. Is this web server configured for use as a Identity Server? If yes, you should post this question at:
    http://swforum.sun.com/jive/forum.jspa?forumID=79
    Thanks
    Manish

  • Can't access folder on a TC drive via web server

    Here's the setup:
    I got a MBA (10.6) as a simple web server sharing files to a remote computer via VPN. For this, I created a symbolic link to the folders I want to share and dropped it into the root user's library/webserver/documents.
    The remote client accesses the folders via web browser with the internal IP (192.168.xxx.xxx/"folder") of the host (I know, there are fancier ways to do this, but that's how I've been doing it so far).
    Now, I wanted to relocate some of the folders to my TC drive. I did so, however I got an error message saying 'Forbidden, You don't have permission to access xxx on this server'. I tried to change the access permissions of the folders in question on the TC, but no avail.
    I couldn't reach them from the local net either.
    Anyone here, who knows how to solve this problem? Put it another way, is it even possible to access the TC that way?
    Any help is appreciated.
    Thanks!

    Thanks for the answer, but it was not the solution I have been looking for.
    I found a provisional workaround installing MAMP. Dropping the symlink folder in htdocs did the job. However, I'd be glad, if someone out there knew how to do this on the native OS X Apache, since running an additional server is pretty bothersome.

  • File Dialog's using Remote Panels (via web server)

    I am aware that the web server remote panel access will not allow us to open a file dialog box on a remote computer.  I have read people comment that you should create your own file dialog box, using LabVIEW to use instead of the file dialog box.
    Has anyone actually done this?  I would like know if anybody has source code for this, rather than re-inventing the wheel.  Also, will the sub-vi actually just appear on the webserver? i.e. will it actually work?
    Thanks for any help
    Slade

    Hi Emilie,
    I have a program that I run on an industrial PC, with no keyboard, video or mouse.  We currently control the application using the web server.  We have a button to load and a button to save settings.  If the files are missing for the load & save, it pops up a file open dialog to choose the file to import.  However, while we are viewing the page this way, these dialog boxes do not work.
    I would like to know if anyone has made up a file dialog box that I could use, that would display correctly in the web server's remote control.
    Regards,
    Slade

  • Accessing JNDI fscontext provider .bindings file via Web Server

    The filesystem context provider produces a .bindings file. I've been referencing this over a web server with a URL of the form "file://<host><path>/.bindings".
    This works find with IIS. With Netscape Enterprise Web Server it won't show files with a name starting with a period (.).
    How can I make the fscontext .bindings file visible over a web server?

    Look for a configuration option regarding "hidden files". On UNIX, files beginning with a '.' are considered 'hidden', so I would guess they use that terminology.
    Good luck,
    -Derek

  • Send mail via web server

    Dear Sir,
    We have application servers who need to send mail to a pair of web servers, which are behind two 11501. And then the web server will lookup DNS and send the mail to the Internet.
    We can ping between application servers and web servers without any problem.
    But, we find that, from the application server, we CANNOT send mail to the real ip of the individual web servers. I think the reason is the return IP is changed to vip.
    However, with content rules of port 25, from application server, we CAN send mail to the vip (of the two web servers), which CAN then forward the mail to each web server in round robin successfully. The short coming of the setup is the 11501 cannot failover if the smtp deamon of one of the web servers down. That means, smtp (mail service) has no resilience.
    Is there any way that we can send mail from the application servers to the real ip of the web servers? In that case, resilience will be retained as UNIX sendmail will check the availability of smtp deamon.
    Thanks.

    I did not configure any ACL.
    And we have routes, which points all traffic (from outside) to the real IPs to the external VLAN. But it seems only ping is working. Other applications such as like SSH cannot make connection to real IP of the web server successfully.
    However, the web server can ssh to servers of external network.
    Any idea? Many thanks!

  • Accessing FAT32 external USB Drive via web server for streaming of content

    Hi all
    I've read a post about streaming music from my mac via wifi to my iPhone 3g.
    It involves enabling the webserver, adding a symbolic link to my music directory and then browsing to the webserver using safari on my iphone.
    I've enabled the webserver, added the symbolic link however when I try and follow the instructions to add permissions to the music folder I get no error however browsing to the folder I receive a "Forbidden" message saying I don't have access.
    A friend of mine who knows more about Mac's than myself (macmini is my first mac) has suggested it's because my external drive isn't part of the core system???
    Has anyone else seen/tried this with an external drive setup?
    Regards
    Wayne

    here is the link to the post/instructions I'm using...
    http://forums.ilounge.com/archive/index.php/t-208191.html
    I ran the chmod command successfully (no error's in Terminal) but still cannot view the contents of the directory via a browser
    Cheers
    Wayne

  • How to use the web server tips (connected/disconnected)?

    Using the web server tips into a VI to know when a client is connected or disconnected.
    Hello Everyone
    I want to use the tips that appear when a remote user gets control of my VI via web server. That way I will be able to trigger some other operations as soon as the user gets in or out my VI. How can I extract the information that contains that (user has or has not control). I hope you can help me.
    Regards
    Marco Roman

    There is a VI method called Remote Panel Client Connections. It returns an array of clusters with connection information and also has a Controller output. If the controller output is -1, no clients are connected.

  • Printing via Web

    The case is as follows:
    One database server running Oracle 8.0 and the other running Web Applications 3.01. Both resides on Sun Solaris 2.5.1
    The client PC is supposed to connect into the Web Application server via appletviewer through the ISP dial up mode. They to modify and transact data in the DB server via Web server. They want to print the data (invoice) by submitting request to the DB server. The destination printer sits on the client's PC. How does the Web/DB server send the data to the remote printer?
    null

    My email contact is [email protected]

  • Invoke Siebel OnDemand Web Service via BPEL

    Hi,
    We are trying to invoke Siebel OnDemand Web Service via BPEL.
    We have followed the steps as mentioned in
    http://www.oracle.com/technetwork/topics/ofm-siebel-blog-postings-092216.html
    But still we are unable to get the Session Id.
    Do we need to opne any port to resolve this issue or do we have any other way to get the session ID.
    Please let me know if there is any solution to this...
    Thanks

    Thanks for the update..
    We are trying to invoke the CRM On Demand session ID using the BPEL. It seems the we are having some problem with the URL
    https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login
    => `Integration?command=login
    we are trying to access the URL from our SOA server using wget and we are getting following result.
    [XXXXXXXXXXXXXXX ~]$ wget https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login
    --07:32:19-- https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login
    => `Integration?command=login'
    Resolving secure-ausomxapa.crmondemand.com... 141.146.149.68
    Connecting to secure-ausomxapa.crmondemand.com|141.146.149.68|:443...
    We are expecting that we are unable to access the URL using 443 port.

  • Timeout to Web Services using via Proxy Server

    Hello,
    I'm wondering if anybody can help.
    I have a couple of preset web services on the coldfusion web server. As far as I know these have never worked since it's original installation back in June 2011.
    Whenever I attempt to refresh one of the web services using CF administrator I am seeing the following error message:
    Unable to refresh webservice.
    Unable to read WSDL from URL: https://www.****.cfc?wsdl.
    Error: java.net.ConnectException: Connection timed out: connect.
    The server does not have a direct connection to the internet as it is connected to the internal company network which uses a proxy server for internet connectivity.
    I am suspecting that CF is attempting to connect to the internet without the knowledge of the proxy server.
    I have looked high and low but unable to locate anything in CF admin to add a proxy server.
    I'm hoping somebody can reply with a simple solution to fix the above.
    Many Thanks,
    Andy

    Andy, two things.
    First, the problem could be proxy-related, but I notice also that the URL has https. And in that you’re getting a connection timeout, it could be that the destination server (at that URL in the web service call) is set to only allow SSL calls (or perhaps even calls to that specific site, directory, or file) from a specific IP address. Try visiting that URL from a browser running ON THAT SERVER (where CF is installed). It does not good to test the URL from your local development workstation. That would not be the same IP address from which the request would come when run via CF.
    Second, as for specification of proxy info, here’s something to consider: the CF Admin interface showing web services is populated by a call from within CFML code (using CFINVOKE/cfobject/createobject) invoking that web service. If you can find the code that is really calling the web service, you should find that you can specify the proxy info there. See:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_i_10.html (cfinvoke)
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_m-o_14.html (cfobject)
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions-pt0_23.html (createobject)
    Note that with createobject, you do it using a new (for CF8) argstruct. See the docs there for more, or my blog entry:
    http://www.carehart.org/blog/client/index.cfm/2007/9/5/cf8_hiddengem_createobject_argstruc t
    Let us know if any of this helps.
    /charlie

  • Can't connect via Screen Share or Web Server, but can ping and ssh

    Bit of an odd problem here.
    My Mountain Lion Mac Pro (called "Trogdor" for convenience) is connected to my work university network. I can ping it from anywhere-- elsewhere on the network, from home behind a firewall. Can connect over ssh from everywhere. I can also connect to other computers (on the same network or at home behind a firewall) from Trogdor via ssh, Screen Sharing, etc.
    But I can't Screen Share into Trogdor, and I can't connect to Trogdor's built-in web server, either system-wide (in /Library/WebServer) or for my username (~/Sites). (I can connect to the web server from Trogdor.)
    Note that I can do both of these for other computers on the same network (same subnet, etc), so it's not a network issue. I can't do these from anywhere: same network or from home. I have this problem whether I use Trogdor's hostname or its IP address. (I can look up its hostname using the IP address with the "host" tool in Terminal, and vice versa.)
    So it sounds like a port issue, right? Except I don't think I've ever messed with my port settings directly. How do I diagnose the problem? Should I scan my ports? Can I return port settings to default?
    Thanks!
    Message was edited by: supercres

    Bit of an odd problem here.
    My Mountain Lion Mac Pro (called "Trogdor" for convenience) is connected to my work university network. I can ping it from anywhere-- elsewhere on the network, from home behind a firewall. Can connect over ssh from everywhere. I can also connect to other computers (on the same network or at home behind a firewall) from Trogdor via ssh, Screen Sharing, etc.
    But I can't Screen Share into Trogdor, and I can't connect to Trogdor's built-in web server, either system-wide (in /Library/WebServer) or for my username (~/Sites). (I can connect to the web server from Trogdor.)
    Note that I can do both of these for other computers on the same network (same subnet, etc), so it's not a network issue. I can't do these from anywhere: same network or from home. I have this problem whether I use Trogdor's hostname or its IP address. (I can look up its hostname using the IP address with the "host" tool in Terminal, and vice versa.)
    So it sounds like a port issue, right? Except I don't think I've ever messed with my port settings directly. How do I diagnose the problem? Should I scan my ports? Can I return port settings to default?
    Thanks!
    Message was edited by: supercres

  • Executing a Job via Web Services using a Server Group?

    When executing a job from Designer or from the Management Console you have the option to select a specific job server or a server group.
    But when executing a job via Web Services it uses the first job server with which the repository was associated (i.e. the first job server listed in AL_MACHINE_INFO).
    Is there a way to get the job to execute using a server group instead simply choosing the first job server in the list?
    Note: We are using FIM to execute the jobs via web services and don't have access to additional parameters.

    Joe
    Here is the where you can change the server group/job server.
    - After you add the Batch/real Time job as a webservice.
    - Go to the Webservice Batch Job Attribute and from the drop down choose the "Enable job Attributes" and hit apply.
    - After this if you use the WSDL URL http://<Data Services Web Server>:<Web server Port>/DataServices/servlet/webservices?ver=2.0&wsdlxml
    - You will see the job attributes that you can change based on the allowed parameters mentioned in the documentation.
    The batch job or real time job is published without the job parameters by default. Once you enable the job attributes, remove and re publish the batch job as a web service. The application making the call to this webservice should be able to read the WSDL generated by Data services and pickup all the input and output parameters of the method.
    Refer to the Data Services Integrator guide (Chapter 3 : pages 25 - 33 ) to get the exact parameter values permitted via Data Services jobs called via web services.
    Hope this helps!
    Thanks & Regards
    Tiji

Maybe you are looking for

  • SharePoint Online Iterating through Document Libraries CSOM

    Hi, I am trying to iterate though a document library and set each document/items whithin to inherit permissions (at the moment each doc/item is using uniquer permissions). I am able to get the specific document library that I am interesting in, howev

  • RH10 Index in IE 9 and 10 - Loading In!

    Just got RoboHTML 10, and upgraded my RH 8 project.  I applied the Fixes Patch for RH10, both in Installation location (template skins) and outputs.  The patches did fix the font problems I was having in WebHelp output in the navigation panes.  And a

  • How to Change OpenHub Destination

    Hi All, I would like to change OPEN HUB Destination name... and how to change DSO name... I couldn't find any option in BI 7.0 NW2004s... I search sdn someone said, change open hub table name... how to do that ? please verify Thank

  • LANGUAGE IMPORT IN TEXT EDIT SPELL CHECK

    Norwegian is not on the list of languages in spell check in Text Edit.... I've tried to change the computers generall language but norwegian is still not on the list... Can anyone help me?

  • Regarding tutorials (Material Managment)

    hi everyone,      i want to have material management tutorials which should include also examples for practicising... if anybody have it den plzzz do send me at this email id :- <b> [email protected]</b> if  find useful he or she will be definately r