Read_image_file in web mode

hello,
when i'm using the read_image_file in web mode, i've got the ORA 99 999 error message.
but it works in client/server.
my image is a gif format in the same path as the form.
i use a unix ware 7 server with OAS.
when i execute the form directly on the server, it works fine.
can anyone help me ?
thanks.
null

Hello ,
Actually i have faciing the problem when i m upload the selected document in database,
i have write down the code(IN button) GIVEN BELOW:-
when i have press tha button i got the error
ERROR:- WUT-121 - THE FILE HAS BEEN FORBIDDEN BY THE ADMINISTRATOR.
PLEASE GIVE ME THE SUGGESTION.ASAP
MAIL ME ON [email protected] solutions.
DECLARE
     OPEN_FILE BOOLEAN;
BEGIN
OPEN_FILE:=WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB
     ('C:\TEMP\BRC.XLS',
     'DOCUMENT',
     'DOC',
     FALSE,
     NULL
END;
THX

Similar Messages

  • Smartbar menu not displaying in web mode

    Hi
    I am running 6i web forms on a Solaris 8 box.
    I have two forms which are very similar. In client/server mode both show the default&smartbar menu. In web mode on Solaris, one of them does, the other doesn't. I cannot see why they do not show the menu and icon bar. I am testing the forms standalone, so there is no external influence. There is no hide_menu or similar.
    Any thoughts please ???
    TIA Tony

    UI_ICON is used in client server mode only, not in web forms.
    Put your icons in a directory, e.g. c:\myapp\icons, and map a virtual directory, e.g. /icons.
    Change registry.dat (see previous entry for the path):
    default.icons.iconpath=/icons/
    default.icons.iconextension=gif (or jpg)
    There are a few other options to display icons. You can put them all together in a jar file, for instance. Furthermore, the way you modify registry.dat also depends on a lot of factors.

  • SEM CPM - Link a Query in Web Mode

    Hi all,
    Im working with SEM-CPM ; i can't add a link to a query in web mode ; i have tried this :
    1)Add URL ; works fine but i cannot add the URL dinamycally in order to take the local server ; for example when i transport to QAS then links points to DEV.
    2)Add Query : execute the query in Excel.
    How can i add a link to a report in order to executed in Web Mode ?
    I will rewards asap.
    Thanks !!

    Hi,
    You have to assign the URL of the respective Query Link as per the connectivity of
    the server..if it is DEV then you can specify only DEV Query link with DEV Web Browser connectivity..and similar to PRO..
    I think you cannot cross link the URL - Query Links with DEV to PRO or visa versa..
    Hope this helps..
    assign points if useful..
    Cheers,
    Pattan.

  • Unable to eanble ckeditor in web mode properly

    Hi,
    I have made one ckeditor (FCWEM-CKEditorMedium) which i need to enable it in web mode.
    I am writing the below code for that.
    <insite:edit field="FCWEM-ServiceSubCatDesc" list="lstFCWEMServiceSubCatDesc" column="value" editor="ckeditor" params="{width: '260px', height: '125px'}"/>
    But this code is not showing me those menu bar options which i am able to see in form mode.This editor shows me only options for only font and size in web mode.
    Can any one suggest why this happens and what code i need to add to enable all the menubar options which can be seen in form mode.

    Hi Raja,
    By SSL policy I assume you mean ssl-proxy, right? This is only required to terminate the SSL session on the ACE. If you don't configure one, the connection is just treated as L4
    Stickiness is something compltely unrelated to this.
    I would recommend you to have a look at the following two links. The should clarify these two concepts
    http://www.cisco.com/en/US/partner/docs/interfaces_modules/services_modules/ace/vA2_3_0/configuration/ssl/guide/sslgd.html
    http://www.cisco.com/en/US/partner/docs/interfaces_modules/services_modules/ace/vA2_3_0/configuration/slb/guide/sticky.html
    Daniel

  • Want the link to open EAS IN WEb mode and also the Java API details needed

    Want the link to open EAS IN WEb mode and also the Java API details needed to get it up and running.
    Kindly provide the answer if knows.
    Thanks .

    Yes, you can have single sign on enabled on multiple essbase servers,
    It works like using single userid and password across mulple servers. you can configure essbase server to read from active directory.
    you can configure css.xml file in bin folder
    sample CSS FILE
    here is an example of a css.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <css xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <spi>
    <provider>
    <msad name="msad1"> <trusted>false</trusted>
    <url>ldap://ldapserver:389/dc=CompanyName,dc=com</url>
    <userDN>CN=#######,OU=Security Accounts,OU=IT,DC=CompanyName,DC=com</userDN>
    <password>########</password>
    <authType>simple</authType>
    <identityAttribute>dn</identityAttribute>
    <user>
    <loginAttribute>sAMAccountName</loginAttribute>
    <fnAttribute>givenname</fnAttribute>
    <snAttribute>sn</snAttribute>
    <emailAttribute>mail</emailAttribute>
    <objectclass>
    </objectclass>
    </user>
    <group>
    <url>cn=LostAndFound</url>
    </group>
    </msad>
    </provider>
    </spi>
    <searchOrder>
    <el>msad1</el>
    </searchOrder>
    <token>
    <timeout>60</timeout>
    </token>
    <logger>
    <priority>ERROR</priority>
    </logger>
    </css>

  • Report output different in web mode

    Hi all,
    I've got a simple tabular report(Rows and columns without headers) which i deploy on the web and the report is displayed on a browser. The output i get from the browser is different from when i test and run it in report builder.
    When i deploy the report and view it on the browser, the rows do not start from a new line and each record is joined. How do i specify a line feed to start each row.
    For e.g, this is how it looks in report builder when i run it,
    record1 xxx xxx xxx
    record2 yyy yyy yyy
    This is what i get in web mode,
    record1 xxx xxx xxx record2 yyy yyy yyy
    note : The report is a character mode report.

    Hello,
    Another simple solution when you have simple text to show in a web and keep the presentation is to use the <PRE> tag. (see http://www.w3.org/TR/REC-html40/struct/text.html#edef-PRE)
    In you case
    <pre>
    record1 xxx xxx xxx
    record2 yyy yyy yyy
    </pre>
    Regards
    Tugdual

  • Lightroom freezes when I enter WEB mode

    Hi, I have another question. I find that Lightroom freezes when I enter WEB mode and try to build a web presentation using this feature. I'm currently running XP as my operating system, 4 gb RAM, with an AMD DualCore 4600+ processor.
    Thanks for your help,
    DLMST

    How do you go to the Web Module? Do you go from the grid with all your images, potentially hundreds to thousands of images or do you first make a Collection of you chosen images, More likely to be tens to maybe couple hundred of images.
    If the former, LR maybe hanking on the renderign of so many images to what ever initial template Web is set for.
    Best to do a selection of images to a Collection First. What happens if you go to Web with a Collecion of say, 50 images?
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.10 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

  • Problems on  running forms in web mode FORMS 6i

    Hi guys,
    I have a problem seeing icons when I launch an application in web mode (no icons on buttons). when it runs in client -server mode it works .. (I see icons).
    Can you help me?
    thank's a lot!
    looking forward your reply.
    Marco

    You need to convert you ico files to gif's or jpg's.
    Then just place them in the directory where the fmx is or better yet specify their location in the registry.dat file.

  • Problems on  running forms in web mode

    Hi guys,
    I have a problem seeing icons when I launch an application in web mode. when it runs in client -server mode it works .. (I see icons).
    Can you help me?
    thak's a lot!
    looking forward your reply.
    Marco

    When running on the web Forms no longer uses an environment variable to pick up icon location. This information is now set in the registry.dat file (located Ohome\forms60\java\oracle\forms\registry\). All icons must be converted to GIF or JPG format.
    The registry.dat file has 2 lines for
    1) default.icons.iconpath=
    2) default.icons.iconextension=
    Hope this helps,
    Candace Stover
    Forms Product Management

  • Hallo! I have Pavillon 5 with internet key.My new printer all-in-one doesn't work in web mode.

    hi! my new web printer doesn't work in wireless mode. Pheraps is necessary a router? Thanks to everyone can help me! :-)

    Hello maggio63,
    You would definitely need to set up a network on a router with a modem for internet connection.
    Once this is setup, you can follow this link to enable ePrint. 
    http://h71028.www7.hp.com/hho/us/en/ep/articles/setting-up-mobile-printing.html
    Although I am an HP employee, I am speaking for myself and not for HP.
    If I have resolved your issue, feel free to provide Kudos and make sure you mark this thread as solution provided.

  • Calling a cr2008 report from a vs2005 dev in web mode

    We have developped a web application with vs2005 (vb.net/asp).
    we try to call a CR2008 report developped separately with the CR2008 (in the box).
    on the dev (local)pc it runs fine but as soon as we try to do the same on a production iis server it does not work, despite we have implemented on the production server the msi files founded in the download section of this website.
    in fact the system show a page in which it appears that the calling reports needs more informations the server, database, login are filled but even if we fill the password nothng append....
    we use an ole db (ado) connection.
    we have passed a lot of time trying to find information on this but without success ..so if anyone could help us it would be great.(we are free to send our sources and data connection if necessary) Thank you in advance.

    Hi,
    Please check that if the reports have been developed using SQL native client then it should also be installed on the server.
    To check database connection information follow the given steps -
    1.Open the report in CR Designer, then open Field Explorer.
    2.Right click on Database Fields and then click on "Set Datasource Location"
    3.In "Current Data Source" expand properties
    and their you will get each and every information about the database connection of the reports.
    Give it try by installing this exe - http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f269484/sqlncli.msi on your server, it will install the SQL native client.
    Hope it helps!!
    Regards,
    Amit

  • Reg the usage of host command in web mode

    How do the client in three tier architecture can use the GUI opened by the HOST command?In client server it is working fine.In three tier,everything is opened in the apps server not on the client.please help out.
    regards,
    Dinesh

    Capture is used to sniff traffic flowing through the ace itself.
    What you were probably looking for is the command "debug".
    try -> debug aaa all
    This will show you all AAA related traffic/events.
    Be sure to remove the debug condition before logging out with "undebug all"
    If you want to capture traffic you need an access-list.
    Example:
    conf t
    access-list All permit ip any any
    exit
    capture all access-list All bufsize 2048 circular-buffer
    That should help you capture/sniff traffic passing through the ACE itself.
    Capture and Debug are two different things. :)
    Hope it helps
    Roble

  • Web Apps FAQ

    Hello,
    I am working on knowledge base entries for developing Web Applications with Sun ONE Studio. I would be interested in whether any of the following are helpful.
    Also, are there other entries you think should be added? Other comments? Corrections?
    Thanks
    Web Apps FAQ
    Creating a Web Application
    Q: Where do I put my JSP files in my web module.
    A: JSP files can go into the web module's document base directory or any
    of its subdirectories except for the subdirectories under WEB-INF. For example,
    the following is correct:
    correctWebModStructure
    + login.jsp
    ++ JSP_files
    +++ shop.jsp
    + WEB-INF
    ++ Classes
    ++ lib
    ++ web.xml
    The following is incorrect:
    incorrectWebModStructure
    + WEB-INF
    ++ login.jsp     
    ++ JSP_files
    +++ shop.jsp     
    ++ Classes
    ++ lib
    ++ web.xml
    Note that with the incorrect structure, the JSP files will compile but
    they will not run on a server.
    Q: Where should I put my servlet source and binary files when I create
    and execute a web module from the IDE?
    A: Your compiled classes must go in the appropriate package directory
    under <web mod document root>/WEB-INF/Classes. The easiest place to
    put the source code is in the same directory as the compiled class. To
    put your source code in a different directory, see "Can I put my source code in
    a different directory from WEB-INF/classes?"
    Note that when a class is imported by another class or by a JSP file, the
    class MUST be in a named namespace (package).
    Q: Where do I put my libraries (JAR files) in a web module?
    A: You can put the libraries in one of several places:
    o If the JAR file will be used only by the module, put it in the
    WEB-INF/lib directory.
    o If the JAR file will be shared by multiple web modules look at the server's
    documentation to find out how to make the library available across web
    modules.
    - If you are using the Sun One Application server, you can either copy
    the JAR into the <instance_dir>/lib directory (such as
         <AppServerInstallDir>\domains\domain1\server1\lib) or edit the
         classpath-suffix attribute of the java-config element in the
         server.xml file. For details about server.xml, see the Sun ONE Application
         Server Administrator�s Configuration File Reference. You must
         restart the server.
    - If you are using the internal Tomcat server, put the JAR file into one of
    the following directories:
    <ide-install-dir>/jwsdp/lib/
    <ide-install-dir>/jwsdp/common/classes
    <ide-install-dir>/jwsdp/common/lib/
    <ide-install-dir>jwsdp/shared/classes
    <ide-install-dir>/jwsdp/shared/lib/
    Note that for compilation, a JAR file must either be mounted as as an
              archive file or the JAR file must be put into <ide-install-dir>\lib\ext.
    When you add a JAR file to WEB-INF/lib directory tree, the IDE mounts
              the JAR file for you automatically.
    Q: Can I put my source code in a different directory from WEB-INF/classes?
    A: Yes. For example, say you have a directory structure as follows:
    myWebApp
    + WEB-INF
    ++ Classes
    +++ myPkg
    + src
    ++ myPkg
    1. In the Filesystems tab, mount myWebApp and separately mount src.
    The Explorer should look like this:
    <path>/myWebApp
    <path>/myWebApp: /WEB-INF/classes <-IDE automatically mounts this
    <path>/src
    2. Open Tools > Options > Building > External Compilation and select this Target:
    <path>/myWebApp: /WEB-INF/classes
    (By default, this setting is project wide, if you click the >> column, you
    can set it at the user or default level.)
    3. Whenever you create a Java file under /WEB-INF/classes, the IDE automatically
    adds a servlet entry and a mapping in the web.xml. Because you are putting
    your source elsewhere, you will have to enter these entries manually, or do
    the following.
    1. Right-click the web.xml node, and choose Properties.
    2. In the Deployment panel of the web.xml properties window,
    click the ellipses (...) in the Servlets value field to display
    the Servlets Property editor.
    In Servlets Property editor, click Add to display the Add Servlet dialog box.
    In the Add Servlet dialog box, type, or browse for, the servlet class name.
    Type in the name by which you want to identify the servlet.
    3. Click the Edit button for Mappings and add the mapping for the servlet.
    4. Click OK to close the Add Servlet dialog box, then click OK to close
    the Servlets property editor.
    Note: If you don't add the web.xml entries, you might get an error like the
    following:
    "The requested object does not exist on this server.
    The link you followed is either outdated, inaccurate,
    or the server has been instructed not to let you have it.
    Please inform the site administrator of the referring page."
    Q: Why do I get invalid package name when I try to add a package to my
    web module.
    You have two options for creating packages in a web module.
    1. Create a package in a subdirectory of WEB-INF/classes.
    2. Create a package in a directory that is not in the WEB-INF tree and
    put the compiled class in the WEB-INF tree. For example, if you have the
    following directory structure, set the compilation target to WEB-INF/classes.
    myWebMod
    + src
    ++ pkg1
    + WEB-INF
    ++ classes
    +++ pkg1
    ++ lib
    In either case, the WEB-INF/classes directory must be mounted. The IDE
    does this automatically when you create a web module or turn a directory
    into a web module.
    To set the compilation target, choose Tools > Options > Building >
    External Compilation and select the target. In this example, you would
    select:
    <path>/myWebMod: /WEB-INF/classes
    Do not use a directory structure like this:
    myWebMod
    + WEB-INF
    ++ src << wrong
    ++ classes
    You can alternatively keep your source code in the appropriate package
    directory under WEB-INF/classes.
    Editing JSP Files
    Q: JSP code completion does not work now that I use the Jakarta recommended
    directory structure and use Ant to build and deploy my web applications? Can
    I fix this?
    To make code completion work, you must mount the following libraries and
    directories in the Filesystems tab of the Explorer window. Mounting a parent
    directory does not work.
    * <working-directory>/src
    * <working-directory>/build
    * Every .jar file that is copied by the build script to
              <working-directory>/build/WEB-INF/lib. (The IDE automatically mounts
                   all the jar files in WEB-INF/lib when you mount working-directory/build.)
    * Any other libraries that are used by the web application, such as
              libraries that have been deployed to the server.
    Deploying a Web Application
    Q: Can I change the URL that is used to execute a JSP page? For example,
    instead of http://localhost/welcome.jsp, can I have the URL be
    http://localhost/shopping/welcome.jsp?
    A: Yes, right-click on the WEB-INF and choose Properties from the contextual
    menu. In the Properties window, type /<name>. For example, type
    /shopping
    Note that youu can use servlet mappings in the web.xml file to control the
    mappings of URLs to servlets.
    Q: Is there a way to copy the compiled code to the server for testing
    without having to create a WAR file?
    A: Yes, this is the default action when you right-click the WEB-INF
    node and choose Deploy from the contextual menu.
    With Internal and External Tomcat installations, the deploy action causes
    the IDE to change the server's configuration file to add a context entry,
    which points to the document root of your working version of the web
    application. For example
    /myApp -> C:\My Working Directory\myApp
    When you deploy to the Sun ONE application server using the IDE's Deploy
    action, the IDE copies the web application's directory structure to
    the server's <instance>/applications/j2ee-modules directory.
    Q: How do I create a WAR file and deploy the WAR file onto different servers.
    A: To create a WAR file, right click the WEB-INF node and choose Export WAR
    file. See the online help for details about adding and filtering out
    components.
    Look at the server's documentation to find out how to deploy the WAR file
    to the server. Here is an example of deploying a WAR file to the Sun ONE
    Application Server 7:
    asadmin deploy user myusername password mypassword \
    -host localhost port 4848 type web contextroot /myApp instance server1 \
    c:\apps\myapp.war
    Note that when you deploy to a server that is registered with the IDE,
    you do not need to create a WAR file. Instead, you can right-click on the
    WEB-INF node and choose Deploy.
    Compiling a Web Application
    Q: Why do I get compiler errors when I compile from the IDE even though
    I don't get errors when I compile from the command line?
    As the IDE's classpath is derived from the mounted filesystems, the problem
    is most likely caused by not mounting the necessary filesystems. For the
    following web app, you must mount in the Explorer AWebApp, WEB-INF/classes
    (this directory is mounted automatically when you create a web app or
    turn a directory into a web app), and every JAR file in the WEB-INF/lib
    directory (which is also done automatically). Note that all classes and
    JAR files that the application needs must be in AWebApp/WEB-INF or
    AWebApp/lib or the server's location for shared libraries and classes.
    Otherwise, the module may compile but it won't run in the server.
    AllMyWebApps
    + AWebApp
    ++ WEB-INF
    +++ classes
    +++ lib
    ++++ a.jar
    ++++ b.jar
    Q: Why do I get a "cannot resolve symbol" compiler error message for my JSP.
    A: Check the import statements in your JSP file. The import statement must
    specify the fully qualified class name (package name plus class), and the
    class must be in a namespace. The namespace restriction is because the Javac
    bytecode compiler in J2SE 1.4.0 is more strict than in previous
    versions in enforcing compliance with the Java Language Specification,
    and thus rejects import statements that import a type from an unnamed namespace.
    Valid import statement:
    <%@page import="org.alpha.beta.MyBean" %>
    Also, make sure your compiled classes are in a subfolder of
    <web-module>/WEB-INF/classes, such as, for the above bean,
    <web-module>/WEB-INF/classes/org/alpha/beta/MyBean.class.
    Note that you will also get this error if you have created a link under
    WEB-INF/classes to a package in another directory. Your package must
    physically exist in the WEB-INF/classes directory.          
    Q: Why do I get " '.' expected" when my JSP is compiled.
    The Javac bytecode compiler in J2SE 1.4.0 is more strict than in previous
    versions in enforcing compliance with the Java Language Specification, and
    thus rejects import statements that import a type from an unnamed namespace.
    For example, if you have an import statement like the following, the compiler
    expects the imported class to be in a package. Therefore, the compiler
    assumes that MyBean is a package and expects the package name to be followed
    by a period (.) and either a subpackage or a class. To resolve the problem,
    put the bean in a package.
    INVALID IMPORT STATEMENT:
    <%@page import="MyBean" %>
    VALID IMPORT STATEMENT
    <%@page import="MyPackage.MyBean" %>
    Q: Why do I get a package does not exist error message when the package exists?
    A: The problem might be that you have not mounted the web module at the
    correct point. You must mount the directory that is directly above the WEB-INF
    directory. For example, if you have the following directory structure
    you must mount the webApp1 filesystem. When you specifically mount
    webApp1, the IDE recognizes the filesystem as a web module. The IDE
    automatically mounts WEB-INF/classes, so that it is in the IDE's classpath,
    and provides the execute and deploy actions when you right-click on the
    WEB-INF node:
    allMyWebApps
    + webApp1
    ++ WEB-INF
    +++ Classes
    ++++ myPkg
    You can also get this error message when you do not put your Classes directory
    under WEB-INF. For example, if you put the Classes directory in web-info, you
    will get this error message.
    You will get this error if you have created a link under WEB-INF/classes
    to a package in another directory. Your package must physically exist in
    the WEB-INF/classes directory.                    
    Running Web Applications
    Q: Why do I get the 404 error message "The requested resource is not available"?
    Why do I get the error message "The requested object does not exist on
    this server"?
    A: If you get either of these errors on a servlet, check the servlet's entry
    in the web.xml. The entry should be similar to the following:
    <servlet>
    <servlet-name>myServlet</servlet-name>
    <servlet-class>org.alpha.beta.MyServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>myServlet</servlet-name>
    <url-pattern>/MyServlet</url-pattern>
    </servlet-mapping>
    The name can be any name as long as it is the same in both mappings.
    The class must be the fully qualified class name. The pattern
    must be a pattern that matches the URI that invokes the servlet. In
    this case, the pattern matches the URI http://localhost:8081/MyServlet.
    Q: Why do I get a Generated Servlet error "Class not found."
    A: This error can occur if the class is not in a package. To resolve the
    problem, put the class in a package.
    If the class is in a package and you still get this message,
    check the import statements in your JSP file. The import statement must
    specify the fully qualified class name (package name plus class).
    For example:
    <%@page "org.alpha.beta.CustomerBean" %>
    Q: Why do I get the error message "Unable to load class" when my JSP calls
    a class from a library?
    This message usually appears because the library's JAR file is not in the
    WEB-INF/lib directory. The server expects all of the web app's JAR files
    to either be in the WEB-INF/lib directory or in the server's
    shared library directory.
    For more information, search for the "File Location in a Web Module" topic
    in the online help.
    Q: Why do I get an error message during JSP compilation that a tld file is not
    found when the file is there?
    A: The problem might be that you have not put the tld file in the correct
    place. It should go in the WEB-INF directory.
    This problem also happens if have not mounted the web module at the
    correct point.
    You must mount the directory that is directly above the WEB-INF directory. For
    example, if you have the following directory structure you must mount the
    myWebApp1 filesystem. When you specifically mount webApp1, the IDE recognizes
    the filesystem as a web module. The IDE automatically mounts WEB-INF/classes,
    which in turn adds the path to the IDE's classpath and provides the execute
    and deploy actions when you right-click on the WEB-INF node:
    allMyWebApps
    + webApp1
    ++ WEB-INF
    +++ Classes
    ++++ myPkg
    Another cause of the problem could be that the uri in your taglib statement
    is incorrect. For example, this statement is wrong:
                        <%@ taglib uri="struts-html.tld" prefix="html" %> <- Incorrect
    Instead, it should be:
                        <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %> <- Correct
    Q: Why do I get a java.lang.ClassNotFoundException when I run my JSP file?
    Everything compiles successfully and the source editor does JSP code completion
    for the class. However, when I execute, the runtime system can't find the new
    classes.
    A: There are several causes of this error. Here are some things to check.
    1. If the class is in a library, make sure the JAR file is in the
    WEB-INF/lib directory or the server's directory for shared libraries.
    Otherwise, make sure the class is in a package under the WEB-INF/Classes
    directory.
    When compiling, the IDE builds the classpath from the mounted filesystems.
    However, when you use the deploy action, the IDE only deploys the classes,
    libraries, and files that are stored in the mounted web module.
    2. Make sure all usebean statements use a fully qualified name for
    the class name.
    WRONG:
    <jsp:useBean id="myBean" class="MyBean" scope="request" />
    CORRECT:
    <jsp:useBean id="myBean" class="org.alpha.beta.MyBean" scope="request" />
    Q. Why am I getting a 500 Internal Server Error? My application compiled but
    when I try to run it, I get an Internal Server Error.
    A: There are several reasons for internal server errors. The "root cause" or
    the "Exception" information can help to narrow in on the problem. Here are
    some common causes:
    a) One common reason is that the compiled classes are not in the right directory
    or a required library (JAR file) is not in the WEB-INF/lib directory.
    When you compile, the IDE uses the classpath to find the resources. However,
    when you deploy an application, the application must strictly follow the
    web module directory structure:
    <document root directory>
    + JSP, HTML and other public files
    + WEB-INF
    ++ web.xml
    ++ <tld files>
    ++ classes
    +++ <pkg 1>
    +++ <pkg 2>
    ++ lib
    +++ <.jar>
    For more information, search for the "File Location in a Web Module" topic
    in the online help.
    b) If you are connecting to a database, make sure the driver is put in the
    server's shared library directory or common library directory.
    c) An error occurs when the server compiles the JSP into a servlet. For example,
    the import or usebean statement is not using the fully qualified class
    name for the bean. The following statements show an incorrect and a correct
    import statement.
    import="MyBean" << wrong
    import="com.myCompany.MyBean" << correct
    In this case, the "Exception" or "Root Cause" might be "Class <bean name> not
    found in import."
    Note that a bean must always be in a package. A bean cannot be put into the
    WEB-INF/classes directory. Instead, it must be in a WEB-INF/classes
    subdirectory.
    Accessing Databases from Web Applications
    Q: I put my database driver in WEB-INF/lib but I still can't access the
    database. What do I do?
    A: If your application performs queries or run statements through JDBC, then
    putting the driver in WEB-INF is sufficient. However, if you are connecting to
    the database through the server, you need to put the driver in the
    server's shared library directory or the server's common library directory.
    You must also set up a connection pool in the server.xml file. See the
    documentation for your server on the specifics, as the details vary for
    each server.

    Hello,
    I am working on knowledge base entries for developing Web Applications with Sun ONE Studio. I would be interested in whether any of the following are helpful.
    Also, are there other entries you think should be added? Other comments? Corrections?
    Thanks
    Web Apps FAQ
    Creating a Web Application
    Q: Where do I put my JSP files in my web module.
    A: JSP files can go into the web module's document base directory or any
    of its subdirectories except for the subdirectories under WEB-INF. For example,
    the following is correct:
    correctWebModStructure
    + login.jsp
    ++ JSP_files
    +++ shop.jsp
    + WEB-INF
    ++ Classes
    ++ lib
    ++ web.xml
    The following is incorrect:
    incorrectWebModStructure
    + WEB-INF
    ++ login.jsp     
    ++ JSP_files
    +++ shop.jsp     
    ++ Classes
    ++ lib
    ++ web.xml
    Note that with the incorrect structure, the JSP files will compile but
    they will not run on a server.
    Q: Where should I put my servlet source and binary files when I create
    and execute a web module from the IDE?
    A: Your compiled classes must go in the appropriate package directory
    under <web mod document root>/WEB-INF/Classes. The easiest place to
    put the source code is in the same directory as the compiled class. To
    put your source code in a different directory, see "Can I put my source code in
    a different directory from WEB-INF/classes?"
    Note that when a class is imported by another class or by a JSP file, the
    class MUST be in a named namespace (package).
    Q: Where do I put my libraries (JAR files) in a web module?
    A: You can put the libraries in one of several places:
    o If the JAR file will be used only by the module, put it in the
    WEB-INF/lib directory.
    o If the JAR file will be shared by multiple web modules look at the server's
    documentation to find out how to make the library available across web
    modules.
    - If you are using the Sun One Application server, you can either copy
    the JAR into the <instance_dir>/lib directory (such as
         <AppServerInstallDir>\domains\domain1\server1\lib) or edit the
         classpath-suffix attribute of the java-config element in the
         server.xml file. For details about server.xml, see the Sun ONE Application
         Server Administrator�s Configuration File Reference. You must
         restart the server.
    - If you are using the internal Tomcat server, put the JAR file into one of
    the following directories:
    <ide-install-dir>/jwsdp/lib/
    <ide-install-dir>/jwsdp/common/classes
    <ide-install-dir>/jwsdp/common/lib/
    <ide-install-dir>jwsdp/shared/classes
    <ide-install-dir>/jwsdp/shared/lib/
    Note that for compilation, a JAR file must either be mounted as as an
              archive file or the JAR file must be put into <ide-install-dir>\lib\ext.
    When you add a JAR file to WEB-INF/lib directory tree, the IDE mounts
              the JAR file for you automatically.
    Q: Can I put my source code in a different directory from WEB-INF/classes?
    A: Yes. For example, say you have a directory structure as follows:
    myWebApp
    + WEB-INF
    ++ Classes
    +++ myPkg
    + src
    ++ myPkg
    1. In the Filesystems tab, mount myWebApp and separately mount src.
    The Explorer should look like this:
    <path>/myWebApp
    <path>/myWebApp: /WEB-INF/classes <-IDE automatically mounts this
    <path>/src
    2. Open Tools > Options > Building > External Compilation and select this Target:
    <path>/myWebApp: /WEB-INF/classes
    (By default, this setting is project wide, if you click the >> column, you
    can set it at the user or default level.)
    3. Whenever you create a Java file under /WEB-INF/classes, the IDE automatically
    adds a servlet entry and a mapping in the web.xml. Because you are putting
    your source elsewhere, you will have to enter these entries manually, or do
    the following.
    1. Right-click the web.xml node, and choose Properties.
    2. In the Deployment panel of the web.xml properties window,
    click the ellipses (...) in the Servlets value field to display
    the Servlets Property editor.
    In Servlets Property editor, click Add to display the Add Servlet dialog box.
    In the Add Servlet dialog box, type, or browse for, the servlet class name.
    Type in the name by which you want to identify the servlet.
    3. Click the Edit button for Mappings and add the mapping for the servlet.
    4. Click OK to close the Add Servlet dialog box, then click OK to close
    the Servlets property editor.
    Note: If you don't add the web.xml entries, you might get an error like the
    following:
    "The requested object does not exist on this server.
    The link you followed is either outdated, inaccurate,
    or the server has been instructed not to let you have it.
    Please inform the site administrator of the referring page."
    Q: Why do I get invalid package name when I try to add a package to my
    web module.
    You have two options for creating packages in a web module.
    1. Create a package in a subdirectory of WEB-INF/classes.
    2. Create a package in a directory that is not in the WEB-INF tree and
    put the compiled class in the WEB-INF tree. For example, if you have the
    following directory structure, set the compilation target to WEB-INF/classes.
    myWebMod
    + src
    ++ pkg1
    + WEB-INF
    ++ classes
    +++ pkg1
    ++ lib
    In either case, the WEB-INF/classes directory must be mounted. The IDE
    does this automatically when you create a web module or turn a directory
    into a web module.
    To set the compilation target, choose Tools > Options > Building >
    External Compilation and select the target. In this example, you would
    select:
    <path>/myWebMod: /WEB-INF/classes
    Do not use a directory structure like this:
    myWebMod
    + WEB-INF
    ++ src << wrong
    ++ classes
    You can alternatively keep your source code in the appropriate package
    directory under WEB-INF/classes.
    Editing JSP Files
    Q: JSP code completion does not work now that I use the Jakarta recommended
    directory structure and use Ant to build and deploy my web applications? Can
    I fix this?
    To make code completion work, you must mount the following libraries and
    directories in the Filesystems tab of the Explorer window. Mounting a parent
    directory does not work.
    * <working-directory>/src
    * <working-directory>/build
    * Every .jar file that is copied by the build script to
              <working-directory>/build/WEB-INF/lib. (The IDE automatically mounts
                   all the jar files in WEB-INF/lib when you mount working-directory/build.)
    * Any other libraries that are used by the web application, such as
              libraries that have been deployed to the server.
    Deploying a Web Application
    Q: Can I change the URL that is used to execute a JSP page? For example,
    instead of http://localhost/welcome.jsp, can I have the URL be
    http://localhost/shopping/welcome.jsp?
    A: Yes, right-click on the WEB-INF and choose Properties from the contextual
    menu. In the Properties window, type /<name>. For example, type
    /shopping
    Note that youu can use servlet mappings in the web.xml file to control the
    mappings of URLs to servlets.
    Q: Is there a way to copy the compiled code to the server for testing
    without having to create a WAR file?
    A: Yes, this is the default action when you right-click the WEB-INF
    node and choose Deploy from the contextual menu.
    With Internal and External Tomcat installations, the deploy action causes
    the IDE to change the server's configuration file to add a context entry,
    which points to the document root of your working version of the web
    application. For example
    /myApp -> C:\My Working Directory\myApp
    When you deploy to the Sun ONE application server using the IDE's Deploy
    action, the IDE copies the web application's directory structure to
    the server's <instance>/applications/j2ee-modules directory.
    Q: How do I create a WAR file and deploy the WAR file onto different servers.
    A: To create a WAR file, right click the WEB-INF node and choose Export WAR
    file. See the online help for details about adding and filtering out
    components.
    Look at the server's documentation to find out how to deploy the WAR file
    to the server. Here is an example of deploying a WAR file to the Sun ONE
    Application Server 7:
    asadmin deploy user myusername password mypassword \
    -host localhost port 4848 type web contextroot /myApp instance server1 \
    c:\apps\myapp.war
    Note that when you deploy to a server that is registered with the IDE,
    you do not need to create a WAR file. Instead, you can right-click on the
    WEB-INF node and choose Deploy.
    Compiling a Web Application
    Q: Why do I get compiler errors when I compile from the IDE even though
    I don't get errors when I compile from the command line?
    As the IDE's classpath is derived from the mounted filesystems, the problem
    is most likely caused by not mounting the necessary filesystems. For the
    following web app, you must mount in the Explorer AWebApp, WEB-INF/classes
    (this directory is mounted automatically when you create a web app or
    turn a directory into a web app), and every JAR file in the WEB-INF/lib
    directory (which is also done automatically). Note that all classes and
    JAR files that the application needs must be in AWebApp/WEB-INF or
    AWebApp/lib or the server's location for shared libraries and classes.
    Otherwise, the module may compile but it won't run in the server.
    AllMyWebApps
    + AWebApp
    ++ WEB-INF
    +++ classes
    +++ lib
    ++++ a.jar
    ++++ b.jar
    Q: Why do I get a "cannot resolve symbol" compiler error message for my JSP.
    A: Check the import statements in your JSP file. The import statement must
    specify the fully qualified class name (package name plus class), and the
    class must be in a namespace. The namespace restriction is because the Javac
    bytecode compiler in J2SE 1.4.0 is more strict than in previous
    versions in enforcing compliance with the Java Language Specification,
    and thus rejects import statements that import a type from an unnamed namespace.
    Valid import statement:
    <%@page import="org.alpha.beta.MyBean" %>
    Also, make sure your compiled classes are in a subfolder of
    <web-module>/WEB-INF/classes, such as, for the above bean,
    <web-module>/WEB-INF/classes/org/alpha/beta/MyBean.class.
    Note that you will also get this error if you have created a link under
    WEB-INF/classes to a package in another directory. Your package must
    physically exist in the WEB-INF/classes directory.          
    Q: Why do I get " '.' expected" when my JSP is compiled.
    The Javac bytecode compiler in J2SE 1.4.0 is more strict than in previous
    versions in enforcing compliance with the Java Language Specification, and
    thus rejects import statements that import a type from an unnamed namespace.
    For example, if you have an import statement like the following, the compiler
    expects the imported class to be in a package. Therefore, the compiler
    assumes that MyBean is a package and expects the package name to be followed
    by a period (.) and either a subpackage or a class. To resolve the problem,
    put the bean in a package.
    INVALID IMPORT STATEMENT:
    <%@page import="MyBean" %>
    VALID IMPORT STATEMENT
    <%@page import="MyPackage.MyBean" %>
    Q: Why do I get a package does not exist error message when the package exists?
    A: The problem might be that you have not mounted the web module at the
    correct point. You must mount the directory that is directly above the WEB-INF
    directory. For example, if you have the following directory structure
    you must mount the webApp1 filesystem. When you specifically mount
    webApp1, the IDE recognizes the filesystem as a web module. The IDE
    automatically mounts WEB-INF/classes, so that it is in the IDE's classpath,
    and provides the execute and deploy actions when you right-click on the
    WEB-INF node:
    allMyWebApps
    + webApp1
    ++ WEB-INF
    +++ Classes
    ++++ myPkg
    You can also get this error message when you do not put your Classes directory
    under WEB-INF. For example, if you put the Classes directory in web-info, you
    will get this error message.
    You will get this error if you have created a link under WEB-INF/classes
    to a package in another directory. Your package must physically exist in
    the WEB-INF/classes directory.                    
    Running Web Applications
    Q: Why do I get the 404 error message "The requested resource is not available"?
    Why do I get the error message "The requested object does not exist on
    this server"?
    A: If you get either of these errors on a servlet, check the servlet's entry
    in the web.xml. The entry should be similar to the following:
    <servlet>
    <servlet-name>myServlet</servlet-name>
    <servlet-class>org.alpha.beta.MyServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>myServlet</servlet-name>
    <url-pattern>/MyServlet</url-pattern>
    </servlet-mapping>
    The name can be any name as long as it is the same in both mappings.
    The class must be the fully qualified class name. The pattern
    must be a pattern that matches the URI that invokes the servlet. In
    this case, the pattern matches the URI http://localhost:8081/MyServlet.
    Q: Why do I get a Generated Servlet error "Class not found."
    A: This error can occur if the class is not in a package. To resolve the
    problem, put the class in a package.
    If the class is in a package and you still get this message,
    check the import statements in your JSP file. The import statement must
    specify the fully qualified class name (package name plus class).
    For example:
    <%@page "org.alpha.beta.CustomerBean" %>
    Q: Why do I get the error message "Unable to load class" when my JSP calls
    a class from a library?
    This message usually appears because the library's JAR file is not in the
    WEB-INF/lib directory. The server expects all of the web app's JAR files
    to either be in the WEB-INF/lib directory or in the server's
    shared library directory.
    For more information, search for the "File Location in a Web Module" topic
    in the online help.
    Q: Why do I get an error message during JSP compilation that a tld file is not
    found when the file is there?
    A: The problem might be that you have not put the tld file in the correct
    place. It should go in the WEB-INF directory.
    This problem also happens if have not mounted the web module at the
    correct point.
    You must mount the directory that is directly above the WEB-INF directory. For
    example, if you have the following directory structure you must mount the
    myWebApp1 filesystem. When you specifically mount webApp1, the IDE recognizes
    the filesystem as a web module. The IDE automatically mounts WEB-INF/classes,
    which in turn adds the path to the IDE's classpath and provides the execute
    and deploy actions when you right-click on the WEB-INF node:
    allMyWebApps
    + webApp1
    ++ WEB-INF
    +++ Classes
    ++++ myPkg
    Another cause of the problem could be that the uri in your taglib statement
    is incorrect. For example, this statement is wrong:
                        <%@ taglib uri="struts-html.tld" prefix="html" %> <- Incorrect
    Instead, it should be:
                        <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %> <- Correct
    Q: Why do I get a java.lang.ClassNotFoundException when I run my JSP file?
    Everything compiles successfully and the source editor does JSP code completion
    for the class. However, when I execute, the runtime system can't find the new
    classes.
    A: There are several causes of this error. Here are some things to check.
    1. If the class is in a library, make sure the JAR file is in the
    WEB-INF/lib directory or the server's directory for shared libraries.
    Otherwise, make sure the class is in a package under the WEB-INF/Classes
    directory.
    When compiling, the IDE builds the classpath from the mounted filesystems.
    However, when you use the deploy action, the IDE only deploys the classes,
    libraries, and files that are stored in the mounted web module.
    2. Make sure all usebean statements use a fully qualified name for
    the class name.
    WRONG:
    <jsp:useBean id="myBean" class="MyBean" scope="request" />
    CORRECT:
    <jsp:useBean id="myBean" class="org.alpha.beta.MyBean" scope="request" />
    Q. Why am I getting a 500 Internal Server Error? My application compiled but
    when I try to run it, I get an Internal Server Error.
    A: There are several reasons for internal server errors. The "root cause" or
    the "Exception" information can help to narrow in on the problem. Here are
    some common causes:
    a) One common reason is that the compiled classes are not in the right directory
    or a required library (JAR file) is not in the WEB-INF/lib directory.
    When you compile, the IDE uses the classpath to find the resources. However,
    when you deploy an application, the application must strictly follow the
    web module directory structure:
    <document root directory>
    + JSP, HTML and other public files
    + WEB-INF
    ++ web.xml
    ++ <tld files>
    ++ classes
    +++ <pkg 1>
    +++ <pkg 2>
    ++ lib
    +++ <.jar>
    For more information, search for the "File Location in a Web Module" topic
    in the online help.
    b) If you are connecting to a database, make sure the driver is put in the
    server's shared library directory or common library directory.
    c) An error occurs when the server compiles the JSP into a servlet. For example,
    the import or usebean statement is not using the fully qualified class
    name for the bean. The following statements show an incorrect and a correct
    import statement.
    import="MyBean" << wrong
    import="com.myCompany.MyBean" << correct
    In this case, the "Exception" or "Root Cause" might be "Class <bean name> not
    found in import."
    Note that a bean must always be in a package. A bean cannot be put into the
    WEB-INF/classes directory. Instead, it must be in a WEB-INF/classes
    subdirectory.
    Accessing Databases from Web Applications
    Q: I put my database driver in WEB-INF/lib but I still can't access the
    database. What do I do?
    A: If your application performs queries or run statements through JDBC, then
    putting the driver in WEB-INF is sufficient. However, if you are connecting to
    the database through the server, you need to put the driver in the
    server's shared library directory or the server's common library directory.
    You must also set up a connection pool in the server.xml file. See the
    documentation for your server on the specifics, as the details vary for
    each server.

  • Pass prompt value by open doc to Web intelligence Report in BI Mobile

    Hi Experts,
    I need to convert this open doc formule for BI Mobile :
    Open Doc for Launchpad ==> it's Ok in production
    ="<a href=\"http://BI4SERVER:8080/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AV5V9Gajm8pEthc0fowTIP8&sIDType=CUID&sType=wid&sRefresh=Y&lsSZSJOBID=Lien%20Mission&lsIZSJOBID="+EncodageURL(""+[Query 1].[Job Retain id].[Job Retain id - Key])+"\" title=\"\" target=\"_blank\" nav=\"doc\">Lien Mission</a>"
    Open Doc for BI Mobile ==>  it's ok wthout passing value
    <a href="sapbi://OpenDoc/?authType=secSAPR3&default=yes&connection_name=pwc&server_url=fremesap820.cmis.corp.fr.ema.pwcinternal.com:8080&ConnectionType=BOEConnection&cms=BI4SERVER:6400&type=webi&iDocID=AV5V9Gajm8pEthc0fowTIP8&reportPageNumber=0" title="" target="_blank" nav="web">BIMOBILE</a>
    I have a problem with passing value in prompt  ??
    How can write the red expression for web mode to work for BI MOBILE ??
    Thanks & best regards
    ELYAE BI

    Any help please or idea or Note SAP ?
    I have a problem with passing value in prompt with webintelligence document using BEX Query ?
    Thanks and best regards
    ELYAEBI

  • Opening a WEB page from FORMS CS & WebForms

    Hi,
    We would like to open a Web Page from a forms running in
    client/server as well as from a form runningover the web.
    Over the web, we plan to use SHOW_DOWUMENT (Even tough it seems
    broken, on forms 6.0, the only way we have got it working was by
    using the parameter that overwrites the current page (the form),
    we cannot have it open an URL in another window)
    In C/S mode, the SHOW DOCUMENT does not work. What is the proper
    way to lauch an URL in a browser in C/S mode ?
    Is there a way to determine if we're running in CS mode or Web
    Mode ? We would like to use the same code both on the web and in
    C/S
    Example pseudo code:
    if (Running in CS Mode) then
    open the URL using C/S method
    else
    open the URL with show dowument
    fi
    Thanks
    null

    use '_blank' as parameter, not '_self'.
    Guy Dallaire (guest) wrote:
    : Hi,
    : We would like to open a Web Page from a forms running in
    : client/server as well as from a form runningover the web.
    : Over the web, we plan to use SHOW_DOWUMENT (Even tough it
    seems
    : broken, on forms 6.0, the only way we have got it working was
    by
    : using the parameter that overwrites the current page (the
    form),
    : we cannot have it open an URL in another window)
    : In C/S mode, the SHOW DOCUMENT does not work. What is the
    proper
    : way to lauch an URL in a browser in C/S mode ?
    : Is there a way to determine if we're running in CS mode or Web
    : Mode ? We would like to use the same code both on the web and
    in
    : C/S
    : Example pseudo code:
    : if (Running in CS Mode) then
    : open the URL using C/S method
    : else
    : open the URL with show dowument
    : fi
    : Thanks
    null

Maybe you are looking for

  • Lenovo k900 install Hebrew language

    I understand that language is only English or Chinese Is there a way to insert language Hebrew I did Root and ROM And all the other vegetables Only the language problem  Moderator Note; subject edited

  • Re: Resource files

    I have recently installed the adobe creative suite cs4, upon attempting to load illustrator cs4 I am presented with a message which claims the localized resource files could not be loaded. I have restarted my computer, and tried to reinstall illustra

  • Getting "bad_url" error

    Hi, In an error log under C:\Cisco\CVP\VXMLServer\logs\GlobalErrorLogger dir I am getting any of these errors: -------------------the asctual ip address was changed to: 000.00.0.00 01/14/2015 13:33:56.612, SERVER ERROR: bad_url. URI: /CVP/Server?audi

  • App store doesn't work

    I downloaded Mountain Lion today and later on when I went to the App Store it wouldn't load. First it said it didn't have an internet connection, but later on in loaded half way, or the App Store screen just went completely black. I wanted to downloa

  • Integration Between Syclo Vs EAM

    Dear Experts Could some one provide me a link or material on integration with SAP Syclo Mobility & EAM. Please help me out. Thank you Rag Tags edited by: Michael Appleby