Deploying html files.

          Hello,
          I have a war file which has jsp and servlets . When I deploy this war file on
          the server I can reference the jsp and servlets without any problem thru the url
          mapping i configured in web.xml, but i am not able to access nay of the html or
          other stic files in the directory(rott or relative). anyone know what the problem
          is?
          Thanks,
          

          Do I have to specify seperate URI's for html files? Weblogic document says that
          all the HTML/static files under the root directory and sub dir can be accessed.
          I tried to install teh cokkier (war) example weblogic says that there are no components
          found in the application
          Thanks,
          "Chuck Nelson" <[email protected]> wrote:
          >
          >Arun,
          >
          >This should work - - I'm wondering if you are specifying the
          >URI correctly for the HTML files and/or static files.
          >Why don't you deploy the <beahome>/samples/examples/webapp/cookie
          >example which includes both JSP and HTML files and see if that works.
          > If so,
          >examine the 'deltas' between this working configuration and your custom
          >configuration
          >
          >Chuck Nelson
          >Developer Relations Engineer
          >BEA Technical Support
          

Similar Messages

  • How to Deploy HTML file in embedded OC4J Server

    Hi,
    I have a problem with deploying the HTML file.
    How to deploy a HTML file in embedded oc4j server.
    I'm running this in a Standalone and JDeveloper9i version.
    I don't know where to deploy and how to deploy ?
    Thanks
    James

    Hi Deepak,
    I tryed that but i was NOT successful.
    I'm getting 404 error page could not find in the Server.
    Any other idea ?

  • Deployment of static html files (for the documentation of the application)

    I'm developing with forms 11g for windows and deploying on linux.
    I want to deploy the help docs of my application, which I've already migrated from hlp to html / css.
    Now, I would like to know where can I deploy that html files to invoke them with web.showdocument (for example).
    To what path is relative the url in the web.showdocument built in?
    Can I jar them as I did with the icons?

    ok, thanks anyway,
    Maybe the problem is with my weblogic configuration, as it is a windows developer workstation.
    I'll send instructions to the sysadmin and try to do it in the linux deployment server.
    I've tried also with WLExcludePathOrMimeType , as read in the manual this
    Note:
    When including any user-defined aliasMatch with the prefix /forms/ in forms.conf, add the directiveWLExcludePathOrMimeType. For example, in Linux, when defining the aliasMatch for /forms/usericons in forms.conf, the directive WLExcludePathOrMimeType is defined as following:
    AliasMatch /forms/usericons/(..*) "/home/userx/myicons/$1" WLExcludePathOrMimeType /forms/usericons/

  • Deploying static HTML files

    I would like to deploy an applet in Weblogic 92. Could you point me to the documentation to do achieve this.
    There is one html file which has the applet definition and the jars that it references...

    Hi Durga,
    The idle method of deployment in case of more number java server nodes and x number App Servers implemention.
    stop all App Servers instances and keep only CI online.
    Then logon using Administrator/equaliant authorized user
    Deploy your content.
    Start CI
    restart CI
    start DI (App Servers)
    here CI now takes care of keeping all App Servers in sync with the content of CI.
    I hope this gives enough guidence for you to accomplish your task.
    Regards
    Sekhar

  • JavaScript error when I test deploy an html file

    RoboHelp 8 HTML: If I do a test deploy (CTRL+W) of an html file that contains image maps, when I deploy the html file and click the image map, I get this:
    This 'gbSafari3' appears to point to the Mac browser Safari 3, but I can't verify that. I get the same error with any html file that I do a test deploy on. The old workaround was to generate a new RoboHelp project, copy the new (127KB) ehlpdhtm.js file over the existing one, and that solved the problem. Doesn't seem to do it here.
    IE 8 is my default browser, and I'm running WinXP. Thanks for any advice.

    you should type this:
    buildclient -w -o simpcl -f simpcl.c
    "jonson" <[email protected]> wrote:
    >
    I have installed the tuxedo 6.5. and test the simpcl sample program. after finished "buildclient -f simpcl.c -o simpcl -w",
    and run it ,it report the "system internal error" message.
    The enviroment variable "WSNADDR" has been set,and the ubbconfig file is modified for the WSC model.
    who can help to solve this problem?

  • 7.0.0.1 exploded web app edit of html file deployed instantly

     

    Seth,
    For all static content in a webapp the web container accesses the content
    when it is requested by a client. So if you change it at the source where
    its deployed from, the changes will show up on the web client.
    This is also true for servlet classes, however in that case the time
    interval after which it looks for changes is controlled by a context-param
    of the servlet:
    <context-param>
    <param-name>weblogic.servlet.reloadCheckSecs</param-name>
    <param-value>-1</param-value>
    </context-param>
    this defines
    * How often WebLogic checks whether a servlet has been
    * modified, and if so reloads it. -1 is never reload, 0 is
    * always reload. Default = 1.
    "Seth Johnson" <[email protected]> wrote in message
    news:[email protected]..
    >
    I am running WebLogic 7.0.0.1 in Production mode so autodeployment isdisabled.
    I have deployed the application as external_stage. If I edit an htmlfile in
    the source directory and then go to my browser and refresh, I see theupdate has
    already been made.
    Why is that?
    I haven't told WebLogic to redeploy/activate the file. How often doesWebLogic
    go to disk to determine the pages it has served have changed?
    Does this only work for html files or are there other file types thatdon't require
    "activation" before they are served?
    Seth

  • Deploying Servlet with HTML file on Tomcat

    Hi ,
    I created a servlet and an html file. The html file accepts user data and passes it to servlet.
    I want to deploy these two files using Tomcat server. Please tell me a sure procedure for deploying both files.
    Regards,
    ap.

    First of all its better to make a jsp rather than one HTML and a servlet but anyhow in order to deploy it first build your project and create a war file which should contain your HTML and servlet and the web.xml.
    Then place this war file inside the webapps folder of tomcat.Start the tomcat and hit your HTML on the browser....

  • Relative path for HTML file

    Hi ,
    This is my requirement. In the ESS Personal information overview page, I can add a HTML file to the additional information section.
    I have created a HTML file by creating a web module and enterprise application and deployed the same through NWDI.
    I declare a resource wher ei mention the path. Here i specifed the complete path of the html file ... like
    http://hostname:portname/addinfo/addinfo.html.  Which i know is a wrong thing to do since when i move the html filel to the production system it will still be accessing the html file in the dev system.
    How do i give the relative path here so that the html file accessed is from the production system when we  go-live.
    Please suggest.
    regards
    sam

    Hi,
    One simpler solution is to use an AppIntegrator iView, as explained in the weblog <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2786">Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator</a>. It worked well for us.
    You can remove the user authentication part in the portalapp.xml if you don't need it.
    Regards,
    Martin

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • Fail to deploy ear file to AS10g

    Hi friends,
    I use Jdev10g to generate ear file and dcmctl to deploy to AS10g. Something must have been wrong but I couldn't work it out. Really need your help.
    --info: Project:"Master Detail page using ADF"
    http://www.oracle.com/technology/sample_code/products/jdev/10g/ADF_ComplexMasterDetail.zip
    --Here are my WAR and EAR file
    unzip -l ../ias904/mywork/ADF_ComplexMasterDetail.ear
    Archive: /raid1/oracle/ias904/mywork/ADF_ComplexMasterDetail.ear
    Length Date Time Name
    104 09-21-04 13:28 META-INF/MANIFEST.MF
    4730626 09-21-04 13:28 ADF_ComplexMasterDetail.war
    439 09-21-04 10:39 META-INF/application.xml
    285 09-21-04 10:36 META-INF/orion-application.xml
    4731454 4 files
    unzip -l ../ias904/mywork/ADF_ComplexMasterDetail.war
    Archive: /raid1/oracle/ias904/mywork/ADF_ComplexMasterDetail.war
    Length Date Time Name
    104 09-21-04 13:28 META-INF/MANIFEST.MF
    3175 09-21-04 13:28 WEB-INF/classes/DataBindings.cpx
    439 09-21-04 11:17 WEB-INF/classes/META-INF/application.xml
    575 09-21-04 13:26 WEB-INF/classes/META-INF/data-sources.xml
    285 09-21-04 11:17 WEB-INF/classes/META-INF/orion-application.xml
    613 09-21-04 13:26 WEB-INF/classes/Model.jpx
    881 09-21-04 13:28 WEB-INF/classes/connections.xml
    1844 09-21-04 13:26 WEB-INF/classes/model/DepartmentManagersView.xml
    4004 09-21-04 13:26 WEB-INF/classes/model/Departments.xml
    3849 09-21-04 13:26 WEB-INF/classes/model/DepartmentsImpl.class
    1975 09-21-04 13:26 WEB-INF/classes/model/DepartmentsView.xml
    364 09-21-04 13:26 WEB-INF/classes/model/DepartmentsViewImpl.class
    1329 09-21-04 13:26 WEB-INF/classes/model/DeptMgrFkAssoc.xml
    1091 09-21-04 13:26 WEB-INF/classes/model/DeptMgrFkLink.xml
    1336 09-21-04 13:26 WEB-INF/classes/model/EmpDeptFkAssoc.xml
    1095 09-21-04 13:26 WEB-INF/classes/model/EmpDeptFkLink.xml
    1332 09-21-04 13:26 WEB-INF/classes/model/EmpJobFkAssoc.xml
    1343 09-21-04 13:26 WEB-INF/classes/model/EmpManagerFkAssoc.xml
    1098 09-21-04 13:26 WEB-INF/classes/model/EmpManagerFkLink.xml
    9312 09-21-04 13:26 WEB-INF/classes/model/Employees.xml
    7121 09-21-04 13:26 WEB-INF/classes/model/EmployeesImpl.class
    3836 09-21-04 13:26 WEB-INF/classes/model/EmployeesView.xml
    1135 09-21-04 13:26 WEB-INF/classes/model/EmployeesViewImpl.class
    2842 09-21-04 13:26 WEB-INF/classes/model/Jobs.xml
    3368 09-21-04 13:26 WEB-INF/classes/model/JobsImpl.class
    997 09-21-04 13:26 WEB-INF/classes/model/client/EmployeesViewClient.class
    239 09-21-04 13:26 WEB-INF/classes/model/common/EmployeesView.class
    1210 09-21-04 13:26 WEB-INF/classes/model/common/bc4j.xcfg
    1273 09-21-04 13:26 WEB-INF/classes/model/hrService.xml
    1717 09-21-04 13:26 WEB-INF/classes/model/hrServiceImpl.class
    2152 09-21-04 13:26 WEB-INF/classes/model/model.xml
    3591 09-21-04 11:17 WEB-INF/classes/view/BrowseAllEmployeesAction.class
    1122 09-21-04 11:17 WEB-INF/classes/view/BrowseEmployeesInDeptAction.class
    1179 09-21-04 11:17 WEB-INF/classes/view/QueryEmployeesAction.class
    4529 09-21-04 11:17 WEB-INF/classes/view/UIModels/browseAllDepartmentsUIModel.xml
    5104 09-21-04 11:17 WEB-INF/classes/view/UIModels/browseAllEmployeesUIModel.xml
    6195 09-21-04 11:17 WEB-INF/classes/view/UIModels/browseEmployeesInDeptUIModel.xml
    4436 09-21-04 11:17 WEB-INF/classes/view/UIModels/editEmployeeInDeptUIModel.xml
    4300 09-21-04 11:17 WEB-INF/classes/view/UIModels/editEmployeeUIModel.xml
    3742 09-21-04 11:17 WEB-INF/classes/view/UIModels/masterDetailUIModel.xml
    3631 09-21-04 11:17 WEB-INF/classes/view/UIModels/queryAllDepartmentsUIModel.xml
    6130 09-21-04 11:17 WEB-INF/classes/view/UIModels/queryEmployeesInDeptUIModel.xml
    2174 09-21-04 11:17 WEB-INF/classes/view/UIModels/queryEmployeesUIModel.xml
    1010 09-21-04 13:28 WEB-INF/classes/view/resources/AppSampleResources.properties
    3581 09-21-04 13:28 WEB-INF/classes/view/resources/ApplicationResources.properties
    1810 09-21-04 11:17 WEB-INF/classes/view/util/HelpDispatcherAction.class
    49438 05-14-04 19:28 WEB-INF/lib/adf-controller.jar
    163279 05-14-04 19:28 WEB-INF/lib/bc4jhtml.jar
    42730 05-14-04 19:29 WEB-INF/lib/bc4juixtags.jar
    118726 06-30-03 11:50 WEB-INF/lib/commons-beanutils.jar
    165119 06-30-03 11:50 WEB-INF/lib/commons-collections.jar
    109096 06-30-03 11:50 WEB-INF/lib/commons-digester.jar
    112307 05-11-04 17:17 WEB-INF/lib/commons-el.jar
    22379 06-30-03 11:50 WEB-INF/lib/commons-fileupload.jar
    63980 06-30-03 11:50 WEB-INF/lib/commons-lang.jar
    31605 06-30-03 11:50 WEB-INF/lib/commons-logging.jar
    46865 06-30-03 11:50 WEB-INF/lib/commons-validator.jar
    140889 05-14-04 19:29 WEB-INF/lib/datatags.jar
    17747 05-14-04 19:29 WEB-INF/lib/graphtags.jar
    65368 06-30-03 11:50 WEB-INF/lib/jakarta-oro.jar
    191881 01-28-04 03:32 WEB-INF/lib/jaxen-full.jar
    3086 05-11-04 17:17 WEB-INF/lib/jsp-el-api.jar
    21128 01-28-04 03:32 WEB-INF/lib/jstl.jar
    3503 05-11-04 17:17 WEB-INF/lib/oracle-el.jar
    23563 01-28-04 03:32 WEB-INF/lib/saxpath.jar
    515490 01-28-04 03:32 WEB-INF/lib/standard.jar
    498051 06-30-03 11:50 WEB-INF/lib/struts.jar
    1271111 01-28-04 03:32 WEB-INF/lib/xalan.jar
    2529 03-01-04 04:34 appsample_files/10gwelcome.gif
    37314 03-03-04 00:26 appsample_files/blaf-en-ie-6.css
    62 04-04-03 06:32 appsample_files/c-ghb.gif
    61 04-04-03 06:32 appsample_files/c-ghbr.gif
    66 04-04-03 06:32 appsample_files/c-ghcb.gif
    145 04-04-03 06:32 appsample_files/c-ghct.gif
    49 04-04-03 06:32 appsample_files/c-ght.gif
    68 04-04-03 06:32 appsample_files/c-ghtl.gif
    68 04-04-03 06:32 appsample_files/c-ghtr.gif
    5395 03-03-04 00:26 appsample_files/mod_jdeveloper.css
    661 01-29-04 08:35 appsample_files/return.gif
    1870 03-02-04 20:23 appsample_files/sample_footer.jsp
    7957 03-02-04 08:04 appsample_files/sample_header.jsp
    1544 03-02-04 20:20 appsample_files/sample_help_footer.jsp
    1490 03-02-04 20:19 appsample_files/sample_help_header.jsp
    747 03-26-04 17:08 appsample_files/sample_sidebar.jsp
    2105 04-04-03 06:47 appsample_files/samples.gif
    272 04-04-03 07:19 appsample_files/wwv_help.gif
    4974 03-05-04 21:35 browseAllDepartments.jsp
    5730 03-08-04 23:31 browseAllEmployees.jsp
    5213 03-08-04 15:01 browseEmployeesInDept.jsp
    2594 03-03-04 00:22 css/jdeveloper.css
    3485 03-03-04 21:37 editDepartment.jsp
    5063 03-08-04 23:27 editEmployee.jsp
    2686 02-12-04 10:18 editEmployeeInDept.jsp
    3279 03-08-04 14:50 help/MasterDetailJSPKey.jsp
    14710 03-06-04 14:03 help/helpSection1.jsp
    15223 03-08-04 23:47 help/helpSection2.jsp
    16556 03-08-04 23:09 help/helpSection3.jsp
    2191 03-03-04 20:37 help/helpSection4.jsp
    36555 03-08-04 13:37 help/images/StrutsPageFlow.jpg
    19352 03-03-04 22:13 help/images/section1_flow.gif
    8532 03-08-04 13:41 help/images/section2_flow.gif
    5454 03-08-04 19:08 help/images/section3_flow.gif
    247 02-09-04 14:58 images/ViewObject.gif
    806 02-11-04 09:33 images/sideMenuBottom.gif
    833 02-11-04 09:31 images/sideMenuBottomC.gif
    806 02-11-04 09:29 images/sideMenuRight.gif
    806 02-11-04 09:33 images/sideMenuTop.gif
    831 02-11-04 09:31 images/sideMenuTopC.gif
    1739 04-05-04 16:59 index.jsp
    5272 03-03-04 20:53 masterDetail.jsp
    6132 03-26-04 17:06 queryAllDepartments.jsp
    5104 03-08-04 23:34 queryEmployees.jsp
    9543 03-08-04 23:33 queryEmployeesInDept.jsp
    5468 02-18-04 10:11 sideMenu.jsp
    517075 02-09-04 15:07 web-inf/lib/standard.jar
    227 09-21-04 11:15 web-inf/orion-web.xml
    8868 02-09-04 14:54 web-inf/struts-bean.tld
    10175 09-20-04 14:42 web-inf/struts-config.xml
    65029 02-12-04 10:52 web-inf/struts-html-el.tld
    66192 02-10-04 12:03 web-inf/struts-html.tld
    2513 02-12-04 10:53 web-inf/web.xml
    4713475 121 files
    --when I deployed on AS10g using:
    "dcmctl
    deployApplication -file ../ias904/mywork/ADF_ComplexMasterDetail.ear -a jdev9051samples/JSPMasterDetail"
    I got following error:
    ADMN-300158
    Jar file: /var/tmp/jar64914.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
    oracle.ias.sysmgmt.deployment.j2ee.exception.J2eeDeploymentException: Jar file: /var/tmp/jar64914.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
    Resolution:
    at oracle.ias.sysmgmt.deployment.j2ee.file.WarFile.<init>(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.init(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.<init>(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.<init>(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.<init>(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.J2eeDeploymentImpl.getEarDeployer(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.console.J2eeDeploymentImpl.getEarDeployer(Unknown Source)
    at oracle.ias.sysmgmt.cmdline.DcmCmdLine.deployApp(Unknown Source)
    at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(Unknown Source)
    at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(Unknown Source)
    Thanks in advance.

    I wish there is a forum for JDev like asktom.oracle.com for DBA.
    I posted several questions but receive no feedback.
    future never wait :-(

  • What is the best practice in securing deployed source files

    hi guys,
    Just yesterday, I developed a simple image cropper using ajax
    and flash. After compiling the package, I notice the
    package/installer delivers the same exact source files as in
    developed to the installed folder.
    This doesnt concern me much at first, but coming to think of
    it. This question keeps coming out of my head.
    "What is the best practice in securing deployed source
    files?"
    How do we secure application installed source files from
    being tampered. Especially, when it comes to tampering of the
    source files after it's been installed. E.g. modifying spraydata.js
    files for example can be done easily with an editor.

    Hi,
    You could compute a SHA or MD5 hash of your source files on
    first run and save these hashes to EncryptedLocalStore.
    On startup, recompute and verify. (This, of course, fails to
    address when the main app's swf / swc / html itself is
    decompiled)

  • Problem in converting word to html- file get error msg 'This command is not available because no document is open'

    Hi,
    I write the some asp code to save the word file from client machine to server machine , and convert it into the html file.
    it working fine when i debug the code into the visual studio but when i deploy code on iis it give me a error 'This command is not available because no document is open' , while i try to save file into html format.
    lot of time i try this give all the security full access to iis user and other things .
    can any one help me. i fully frustrated from this problem. 
    my need only upload the word document from client to server machine and convert it into the word document. 
    only IIS give me the problem, suggest me what setting i need to do in iis 
    please help me humble request 

    Hi,
    In this forum we mainly discuss questions about Office client questions and feedbacks, issues related to coding are not supported here.
    Based on the description, although the question is about converting Word documents, it's more likely to be a permission issue, the question is better to be posted in the IIS.NET forum:
    http://forums.iis.net/
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • WL6.1 Can't find my html file in .war

    I deployed a web application with in single html file "in.html". Here is the
    web.xml:
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
    2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <servlet>
    <servlet-name>validateUser</servlet-name>
    <servlet-class>servlets.adminServlet.validateUser</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>validateUser</servlet-name>
    <url-pattern>/validateUser</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>in.html</welcome-file>
    </welcome-file-list>
    </web-app>
    When I go to the application using: http://127.0.0.1:7001/staging
    it takes me to http://127.0.0.1:7001/staging/in.html however gives the Error
    404 - Not Found.
    Thats strange, unzipping the .war file and using the exploded-directory
    format works.
    Its giving me a headache-please help.
    Thanks

    My application name was not "staging"; it was "st".
    war file name "st.war".
    I could final resolve this problem with help from bea support.
    Solution: Don't use two char name for your web app and .war file unless you
    wanna have the same severe headache as mine. It hurts bad.
    (BEA support personnel said that java doesn't allow two char file name - I
    doubt that very much but don't have the time to play with it yet. Will
    ceratinly look at it again and post the info.)
    cheers...
    wted
    "wted" <[email protected]> wrote in message
    news:[email protected]..
    I deployed a web application with in single html file "in.html". Here isthe
    web.xml:
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
    2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <servlet>
    <servlet-name>validateUser</servlet-name>
    <servlet-class>servlets.adminServlet.validateUser</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>validateUser</servlet-name>
    <url-pattern>/validateUser</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>in.html</welcome-file>
    </welcome-file-list>
    </web-app>
    When I go to the application using: http://127.0.0.1:7001/staging
    it takes me to http://127.0.0.1:7001/staging/in.html however gives the
    Error
    404 - Not Found.
    Thats strange, unzipping the .war file and using the exploded-directory
    format works.
    Its giving me a headache-please help.
    Thanks

  • How to deploy EAR file in Tomcat?

    Is we can deploy ear file in tomcat?
    Normally we can deploy WAR file in tomcat webapps folder. When we run the tomat it will automatically extract the war file.
    But samethink I have tried EAR file. But it is not working.
    Is we can deploy EAR file or not?
    If not plz give reason.

    Hi
    Normally we can deploy the war file thats routene stuff ofcourse ..........but when u deploy ear file it will give problmes as ear structure and war structure are differeant
    The Tomcat Servlet/JSP Container      
    The Apache Tomcat 5.5 Servlet/JSP Container
         Apache Logo
    Links
    * Docs Home
    Contents
    * Contents
    * Introduction
    * Installation
    * Deployment
    * Source Code
    * Processes
    * Example App
    Application Developer's Guide
    Deployment
         Printer Friendly Version
    print-friendly
    version
    Background
    Before describing how to organize your source code directories, it is useful to examine the runtime organization of a web application. Prior to the Servlet API Specification, version 2.2, there was little consistency between server platforms. However, servers that conform to the 2.2 (or later) specification are required to accept a Web Application Archive in a standard format, which is discussed further below.
    A web application is defined as a hierarchy of directories and files in a standard layout. Such a hierarchy can be accessed in its "unpacked" form, where each directory and file exists in the filesystem separately, or in a "packed" form known as a Web ARchive, or WAR file. The former format is more useful during development, while the latter is used when you distribute your application to be installed.
    The top-level directory of your web application hierarchy is also the document root of your application. Here, you will place the HTML files and JSP pages that comprise your application's user interface. When the system administrator deploys your application into a particular server, he or she assigns a context path to your application (a later section of this manual describes deployment on Tomcat). Thus, if the system administrator assigns your application to the context path /catalog, then a request URI referring to /catalog/index.html will retrieve the index.html file from your document root.
    Standard Directory Layout
    To facilitate creation of a Web Application Archive file in the required format, it is convenient to arrange the "executable" files of your web application (that is, the files that Tomcat actually uses when executing your app) in the same organization as required by the WAR format itself. To do this, you will end up with the following contents in your application's "document root" directory:
    * *.html, *.jsp, etc. - The HTML and JSP pages, along with other files that must be visible to the client browser (such as JavaScript, stylesheet files, and images) for your application. In larger applications you may choose to divide these files into a subdirectory hierarchy, but for smaller apps, it is generally much simpler to maintain only a single directory for these files.
    * /WEB-INF/web.xml - The Web Application Deployment Descriptor for your application. This is an XML file describing the servlets and other components that make up your application, along with any initialization parameters and container-managed security constraints that you want the server to enforce for you. This file is discussed in more detail in the following subsection.
    * /WEB-INF/classes/ - This directory contains any Java class files (and associated resources) required for your application, including both servlet and non-servlet classes, that are not combined into JAR files. If your classes are organized into Java packages, you must reflect this in the directory hierarchy under /WEB-INF/classes/. For example, a Java class named com.mycompany.mypackage.MyServlet would need to be stored in a file named /WEB-INF/classes/com/mycompany/mypackage/MyServlet.class.
    * /WEB-INF/lib/ - This directory contains JAR files that contain Java class files (and associated resources) required for your application, such as third party class libraries or JDBC drivers.
    When you install an application into Tomcat (or any other 2.2/2.3-compatible server), the classes in the WEB-INF/classes/ directory, as well as all classes in JAR files found in the WEB-INF/lib/ directory, are made visible to other classes within your particular web application. Thus, if you include all of the required library classes in one of these places (be sure to check licenses for redistribution rights for any third party libraries you utilize), you will simplify the installation of your web application -- no adjustment to the system class path (or installation of global library files in your server) will be necessary.
    Much of this information was extracted from Chapter 9 of the Servlet API Specification, version 2.3, which you should consult for more details.
    Shared Library Files
    Like most servlet containers, Tomcat 5 also supports mechanisms to install library JAR files (or unpacked classes) once, and make them visible to all installed web applications (without having to be included inside the web application itself. The details of how Tomcat locates and shares such classes are described in the Class Loader HOW-TO documentation. For the purposes of our discussion, there are two locations that are commonly used within a Tomcat 5 installation for shared code:
    * $CATALINA_HOME/common/lib - JAR files placed here are visible both to web applications and internal Tomcat code. This is a good place to put JDBC drivers that are required for both your application and internal Tomcat use (such as for a JDBCRealm).
    * $CATALINA_BASE/shared/lib - JAR files placed here are visible to all web applications, but not to internal Tomcat code. This is the right place for shared libraries that are specific to your application.
    Out of the box, a standard Tomcat 5 installation includes a variety of pre-installed shared library files, including:
    * The Servlet 2.4 and JSP 2.0 APIs that are fundamental to writing servlets and JavaServer Pages.
    * An XML Parser compliant with the JAXP (version 1.2) APIs, so your application can perform DOM-based or SAX-based processing of XML documents.
    Web Application Deployment Descriptor
    The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 5, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 5 for multiple instances by setting a CATALINA_BASE directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each of these references.
    As mentioned above, the /WEB-INF/web.xml file contains the Web Application Deployment Descriptor for your application. As the filename extension implies, this file is an XML document, and defines everything about your application that a server needs to know (except the context path, which is assigned by the system administrator when the application is deployed).
    The complete syntax and semantics for the deployment descriptor is defined in Chapter 13 of the Servlet API Specification, version 2.3. Over time, it is expected that development tools will be provided that create and edit the deployment descriptor for you. In the meantime, to provide a starting point, a basic web.xml file is provided. This file includes comments that describe the purpose of each included element.
    NOTE - The Servlet Specification includes a Document Type Descriptor (DTD) for the web application deployment descriptor, and Tomcat 5 enforces the rules defined here when processing your application's /WEB-INF/web.xml file. In particular, you must enter your descriptor elements (such as <filter>, <servlet>, and <servlet-mapping> in the order defined by the DTD (see Section 13.3).
    Tomcat Context Descriptor
    The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 5, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 5 for multiple instances by setting a CATALINA_BASE directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each of these references.
    A /META-INF/context.xml file can be used to define Tomcat specific configuration options, such as loggers, data sources, session manager configuration and more. This XML file must contain one Context element, which will be considered as if it was the child of the Host element corresponding to the Host to which the The Tomcat configuration documentation contains information on the Context element.
    Deployment With Tomcat 5
    In order to be executed, a web application must be deployed on a servlet container. This is true even during development. We will describe using Tomcat 5 to provide the execution environment. A web application can be deployed in Tomcat by one of the following approaches:
    * Copy unpacked directory hierarchy into a subdirectory in directory $CATALINA_HOME/webapps/. Tomcat will assign a context path to your application based on the subdirectory name you choose. We will use this technique in the build.xml file that we construct, because it is the quickest and easiest approach during development. Be sure to restart Tomcat after installing or updating your application.
    * Copy the web application archive file into directory $CATALINA_HOME/webapps/. When Tomcat is started, it will automatically expand the web application archive file into its unpacked form, and execute the application that way. This approach would typically be used to install an additional application, provided by a third party vendor or by your internal development staff, into an existing Tomcat installation. NOTE - If you use this approach, and wish to update your application later, you must both replace the web application archive file AND delete the expanded directory that Tomcat created, and then restart Tomcat, in order to reflect your changes.
    * Use the Tomcat 5 "Manager" web application to deploy and undeploy web applications. Tomcat 5 includes a web application, deployed by default on context path /manager, that allows you to deploy and undeploy applications on a running Tomcat server without restarting it. See the administrator documentation (TODO: hyperlink) for more information on using the Manager web application.
    * Use "Manager" Ant Tasks In Your Build Script. Tomcat 5 includes a set of custom task definitions for the Ant build tool that allow you to automate the execution of commands to the "Manager" web application. These tasks are used in the Tomcat deployer.
    * Use the Tomcat Deployer. Tomcat 5 includes a packaged tool bundling the Ant tasks, and can be used to automatically precompile JSPs which are part of the web application before deployment to the server.
    Deploying your app on other servlet containers will be specific to each container, but all containers compatible with the Servlet API Specification (version 2.2 or later) are required to accept a web application archive file. Note that other containers are NOT required to accept an unpacked directory structure (as Tomcat does), or to provide mechanisms for shared library files, but these features are commonly available.
    Copyright © 1999-2006, Apache Software Foundation

  • How to deploy WAR file in tomcat.?

    Can anybody please provide step by step information of deploying war file to Jakarta tomcat without IDE.
    I am working on Windows XP with jakarta tomcat 4.1.30.
    Thanks in advance.
    Regards,
    Aman Aggarwal

    See if tomcat runs as a service in your operating system. If you can locate it, you can set the start type to automatic. A very crud way is to run the tomcat startup file from autoexe.bat.
    I don't know how to do this in Linux. Here is a link for tomcat 6. Maybe it is the same in tomcat 4
    [http://tomcat.apache.org/tomcat-6.0-doc/setup.html]
    Edited by: nirvan on Dec 29, 2008 9:15 AM

Maybe you are looking for

  • Bandwidth allocation per vrf

    Hello, in my lab i have 3 sites each with 3 VRF's configured. A diagram ist attached. I like to configure fixed bandwidth for each vrf. the central vrf should have 768 kbps and the the other ones ones should have 256 kbps each. What are the options i

  • Copy/create program with logical database

    Hi I need to create a program with the same selection-screen as SAP standard program RPRAPA00. RPRAPA00 is using a logical database, but even that I have passed in the PNP in the attributes of my own progam, I don't get the selection in the top (butt

  • When i try to use search engine it show an error saying 500 internal server error

    Question when i try to use search engine it show an error saying 500 internal server error

  • SWWERRE Error

    Hi I have the following issue when scheduling SWWERRE via SWU3. The job is scheduled but it cancels everytime with the error: *Message text: 'At least one entry could not be found in object buffer' Message class:                    CRM_ORDER_MISC   M

  • Difficulties submitting to iTunes Connect

    Hello everyone, As of this morning, I am having troubles submitting an iOS app to iTunes connect, either via Xcode 4.5.1 or Application Loader 2.7 running on OSX 10.8.2: I get the dreaded "An error occurred talking to the iTunes Store", along with Xc