Periodic ping of web app?

          We put a filter on a web app that logs each time a request is made to any URL pattern
          (e.g., /*).
          We noticed that it logs periodically (say once a minute). Does WL ping each web
          app to see if they are still up or something?
          thanks,
          Jason
          

          You can log the originator for this request too (e.g. IP address etc.)
          So it would be clear who is doing that
          Dmitry Namiot
          http://www.servletsuite.com/
          "Jason" <[email protected]> wrote:
          >
          >We put a filter on a web app that logs each time a request is made to
          >any URL pattern
          >(e.g., /*).
          >
          >We noticed that it logs periodically (say once a minute). Does WL ping
          >each web
          >app to see if they are still up or something?
          >
          >thanks,
          >Jason
          

Similar Messages

  • 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.

  • SharePoint 2013 cannot view PDF documents in mobile browser with office web apps

    Hi,
    I'm receiving the following error when viewing SharePoint 2013 PDF documents in a mobile browser after clicking on the filename:
    "Viewing of .pdf files has been disabled in Microsoft Word Mobile Viewer. Please get in touch with your helpdesk."
    My Question
    Is viewing PDF documents in mobile browsers with Office Web Apps SP1 actually supported?  If so, how can I enable it?  I've already have pdf viewing working in non-mobile browsers. Word documents open just fine on mobile browsers too.
    I'm getting conflicting answers for pdf mobile viewing support from various sources:
    You've got Microsoft toting that they've added in PDF viewing on any device for Office Web Apps
    http://blogs.office.com/2013/07/03/pdfs-in-the-word-web-app/
    A MS support person saying saying it is not supported
    http://blogs.technet.com/b/office_web_apps_server_2013_support_blog/archive/2013/12/31/enabling-pdf-previews-in-document-libraries-with-office-web-apps-2013-in-sharepoint-2013-open-link-does-not-work-from-preview.aspx
    Another person implying that it should work because you can disable pdf browsing for mobile browsers only
    http://blogs.technet.com/b/office_resource_kit/archive/2013/07/24/control-whether-pdfs-open-in-word-web-app-or-the-default-pdf-reader.aspx
    What I've tried
    When I started looking into this there was a mobile WOPI entry:
    Application     : WordPdf
    Extension       : PDF
    ProgId          :
    Action          : mobileView
    IsDefaultAction : False
    ServerName      : 20SP8
    WopiZone        : internal-http
    I tried experimenting with tweaking this binding by changing the DefaultAction to true, and even removing it altogether via:
    Get-SPWopiBinding -Action "MobileView" -Application "WordPDF" | Remove-SPWopiBinding -Confirm:$false
    But I still get the same message.
    I removed all the WordPdf bindings and re-added them via:
    New-SPWOPIBinding –ServerName "<myserver>" –Application "WordPDF" -AllowHTTP
    No dice.  In fact the mobileview binding doesn't even come back... but I guess that is a different issue altogether.
    Version
    SharePoint 2013 (SP1)
    Office Web Apps Server (SP1)
    Farm Setup
    Internal facing only
    2 front end servers, 1 app server, 1 office web apps server

    I think the PDF support, if it exists, in only in Office 365. Always remember that the Office 365 and on premises versions will never be in sync. On premise is updated using periodic service packs and Office 365 has continuous updates. (I've heard every
    10 days.)
    In my Office 365 / IE 10 tests, the PDFs open in the browser's default PDF viewer, in my case FoxIt Reader. So I can't prove one way or the other about support in Office Web Apps.
    Mike Smith TechTrainingNotes.blogspot.com

  • How would you limit the number of Web App items a user can enter.

    I am creating a web app where people can list objects/items. I want to offer plans that will enable users to enter up to a predefined number of entries and no more than what they paid to enter. They can then come back as often as they wish during their subscription period to update, create, and/or delete entries ( but again, never more than what thier subscription entitles them ).
    Fore sake of illustration.
    User Plan 1 entitles user to enter 1 web app item,
    while
    User Plan 2 entitle user to enter 3 web app items, and
    User Plan 3 entitles user to enter 5 web app items.
    These are annual plans.
    Any ideas?

    Hi,
    As per your query you can not define to any user for schedule selected background jobs. I hope you are clear for this.
    Anil

  • Performance of Web Templates Apps that are created in Web App Designer

    I have created a Dashboard using Web App Designer in BI7 SPS 10.
    The Web Template has 12 queries/DataProviders that are used for 12 charts.  Buttons at the top control the view to show 4 Charts Each.   When these buttons are selected, command sequences are executed that Hide and Show containers (each chart has its own container).
    Also, there are 8 Dropdowns which are used to filter all 12 charts.  These Dropdowns are using Posted Values because the requirement is to only show the values that actually exist in the InfoProvider.
    When this template is run in Development where the data is minimal, it is taking 17 seconds to load the page.  When running each query individually, it is taking each query between less than 1 second or at most 1.5 seconds.  Also, the queries have been broadcasted to the OLAP Cache.
    Other approaches that I have tried but have not changed the performance:
    1.  Created this template with Tabs and each template calls a template which contains 4 of the Charts (I believe this is called the “Template in Template” Approach.
    2.  Created 3 templates  that each contain 4 of the Charts.   The Command Sequence “Change Template" is used to switch to another Template (e.g. from “Monthly Trends” to “Top 10” and retain/pass the filters that are already selected in the Dropdowns.  However all of the dataproviders are needed in each template in order to pass the filter values.  Therefore, all 12 queries are executing  when you load the main page.
    I am looking for suggestions on what I could do differently to speed up the performance to get the Dashboard to respond within 10 seconds.
    Thank You.

    Dear Kristen,
    well, one of the things that I do remember, a solution that we provided for a similar scenario, but, not exactly the same. Another difference is that it was in BW 3.5.
    We had few reports that was responding slow. There were reports that was viewed by both sr. managers as well by his team. Sr. Mgr looked only at the high level data while the team looked at the item level data in the same report. So, we provided two links in the same report. Initially it will come up with a static data. To get a detailed data, the user has to click the next link to view item level data.
    Now, how this works is through Reporting Agent. The first static data was provided as a cache(pre-calculated) hence, faster. It comes in just 2 secs. But, when the user needs a item level data, he clicks the lik provided, only in which case, it fetches data from the infoprovider(hybrid mode).
    We will need to schedule periodically, accordingly, to refresh the cache to provide faster data.
    Iam really not sure how far this will help you, but, can spark something( I hope!).
    Thanks

  • Can't login to web app

    WLS 6.0 SP1 on Solaris. I've seen this behavior twice now... I try to access
    a protected page and get the basic auth login prompt. I type in the correct id/pswd
    and am refused access. Some time later, I try again and get access to the page
    just fine. This is not a busy server and I know that no configuration changes
    occured on the server. FYI it seems to be for a single id each time. Once it
    was for my own user id and the second time it was for the system id. Trying from
    different client browsers doesn't make a difference. While the problem exists
    for one id I can login to other apps using a different id just fine.
    I have seen this with one of my own web apps as well as the console itself.
    Anyone else seen this problem? Any suggestions?
    --Craig

    oh.... someone just mentioned to me that if a user enters the wrong password 3
    times, it locks the user for a specified period of time. At least this is what
    we think caused our problem.
    "Craig Macha" <[email protected]> wrote:
    >
    WLS 6.0 SP1 on Solaris. I've seen this behavior twice now... I try
    to access
    a protected page and get the basic auth login prompt. I type in the
    correct id/pswd
    and am refused access. Some time later, I try again and get access to
    the page
    just fine. This is not a busy server and I know that no configuration
    changes
    occured on the server. FYI it seems to be for a single id each time.
    Once it
    was for my own user id and the second time it was for the system id.
    Trying from
    different client browsers doesn't make a difference. While the problem
    exists
    for one id I can login to other apps using a different id just fine.
    I have seen this with one of my own web apps as well as the console itself.
    Anyone else seen this problem? Any suggestions?
    --Craig

  • How to FTP an elaborate template into a BC web app making use of dreamweaver cc?

    I need to provide my web app creation in Business catalyst with a better template through 'FTP' which is possible with dreamweaver CS6 as it is integrated with BC, But I have the creative cloud version'DREAMWEAVER CC' Is there a plug-inn? or should I venture to another FTP route to upload more elaborate templates to my BC web app? I'm creating this BC site purely as a database which I would plant into a site.
    I have done the cs6 trial period before I opt into the creative cloud, so that option is out of the window. DREAMWEAVER CC as part of the cloud just as BC should really be connected even more so than cs6! What can I do?
    Thank you in advance
    Sem

    Roxpat wrote:
    I'm beginning to consider learning other applications (Dreamweaver and/or specific languages), so feel free to offer those up as well.
    roxpat ~ Since your web site content is community oriented, you may be interested in this free, web-based site builder for social networks:
    http://about.ning.com/product.php
    ...Their Events feature lets members know about upcoming playgroups, coffee mornings, etc. related to your social network's theme. Read more here.
    You may want to consider hyperlinking from your iWeb site to a Ning site to provide some specific feature that iWeb doesn't offer.

  • Classic web app for upgrading sp2010 content site doesn't authenticate

    I have run the following powershell in 2013 to create a classic web app so i can upgrade my 2010 databases and then i would run the convert command to convert them but i have a problem i cannot get to the site i have created, i have pinged the site and it
    resolves, i get a username and password when i type the address in, but unable to log on, and i cannot figure out which account i should be using, as i have tried the wepapps account but doesn't authenticate
    New-SPWebApplication –Name "Classic Web App" -Port 80 -url
    http://upgrade-------- -ApplicationPool "ClassicAppPool"
    -ApplicationPoolAccount (GetSPManagedAccount "Domain\wepapps") -DatabaseName Wss_Content_Classic
    Which account should i be using to log on to the site? or is there a way to assign
    permissions
    to the site via a command?
    Thanks

    Hi,
    You can go to Central Administration -> Application Management -> Manage Web Applications.
    Select your Web Application, and click "User Policy" in the ribbon.
    Add any account there. Use this account to access your web application.
    If you are using an FQDN for your Web Application (for instance:
    http://sharepoint.yourdomain.com) and you are trying to access it on your SharePoint server, you will get a blank page after logging in 3 times.
    This is caused by the Loopback Check security feature from Microsoft. To disable it, run the following PowerShell code:
    New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck"
    or you can edit your registry manually, for more info, see:
    http://www.jeremytaylor.net/2010/05/24/sharepoint-disable-loopback-check-disableloopbackcheck-dword-in-registry/
    <a href="http://sharepointrelated.com/about"><font color="maroon"><b>Nico Martens</font></a> - MCTS, MCITP</b><br/> SharePoint 2010 Infrastructure Consultant / Trainer<br/> <a href="http://twitter.com/MartensNico"><img
    src="http://nicosharepoint.files.wordpress.com/2012/05/twitter.png" border="0">&nbsp;</a><a href="http://sharepointrelated.com"><img src="http://nicosharepoint.files.wordpress.com/2012/04/blogicon.png"
    border="0"></a>&nbsp;<a href="mailto:[email protected]"><img src="http://nicosharepoint.files.wordpress.com/2012/04/email_open.png" border="0"></a>

  • Using Office Web Apps Server with SharePoint Foundation 2013

    I want to know whether I can configure Office Web Apps server to edit Excel documents on a SharePoint Foundation 2013 site.
    I came across a TechNet article that states that "When used together with SharePoint Server 2013, Office Web Apps Server provides updated versions of Word Web App, Excel Web App, PowerPoint Web App, and OneNote Web App".
    However, later in the same article, it states "If your organization licenses Office 2013 through a Volume Licensing program, you can enable Office Web Apps editing for SharePoint 2013 on-premises" (without mentioning Foundation or Server).

    Hi Lemesnil,
    The Office Web App server should support the Edit licenses for SharePoin Foundation 2013, Office Web App is free to
    download, you can also try installing and configuring in a test environment, see more from the below article applied to SharePoint Foundation 2013.
    http://support.microsoft.com/kb/2886404/en-us
    http://blogs.technet.com/b/speschka/archive/2012/12/31/enabling-licensing-and-editing-for-office-web-apps-in-sharepoint-2013.aspx
    Anohter useful article aobut how to license Office Web App server, you can take a look.
    http://blogs.technet.com/b/volume-licensing/archive/2013/05/22/how-to-license-office-web-apps-server.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • Web app security not working

    Hi,
    I am using WebLogic 8.1 platform. I am trying to create a very basic secure web
    app.
    I created an App and created a web project. In it, I deleted the controller, etc
    and just have index. jsp. All the index.jsp does is: <%= request.getRemoteUser()
    %>
    In web.xml I have
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Success</web-resource-name>
    <url-pattern>*.jsp</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>default</realm-name>
    </login-config>
    <security-role>
    <role-name>*</role-name>
    </security-role>
    In weblogic.xml I have
    <security-role-assignment>
    <role-name>dealers</role-name>
    <principal-name>dealer1</principal-name>
    </security-role-assignment>
    When I run the app, it just renders the JSP and does not challenge me to login.
    Can you please help what is that I am doing wrong here?
    Thanks,
    John

    "john hryn" <[email protected]> wrote in message
    news:3fce2551$[email protected]..
    >
    Hi,
    I am using WebLogic 8.1 platform. I am trying to create a very basicsecure web
    app.
    I created an App and created a web project. In it, I deleted thecontroller, etc
    and just have index. jsp. All the index.jsp does is: <%=request.getRemoteUser()
    %>
    In web.xml I have
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Success</web-resource-name>
    <url-pattern>*.jsp</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>I think you should have dealers instead of *
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>default</realm-name>
    </login-config>
    <security-role>
    <role-name>*</role-name>And here too.
    </security-role>
    In weblogic.xml I have
    <security-role-assignment>
    <role-name>dealers</role-name>
    <principal-name>dealer1</principal-name>
    </security-role-assignment>

  • Office Web Apps is not working

       Hi,
         We have tried to deploy Office Web Apps Server but, after a number of tests, we haven't been able to view PowerPoint presentations. We tested "everything" but it didn't work.
         Finally, to simplify and focus the problem, we just deployed Office Web Apps Server "on its own", that is: just Internal URL, HTTP, Open From URL Enabled and sharing docs from a shared folder in the same server. So we have:
         \\wacserver\share\<Docs> (Excel, Word and PowerPoint)
         http://wacserver
         They work both "/hosting/discovery" and "/op/generate.aspx".
         If we try to view Excel doc, it works. If we try to view Word or PowerPoint, id doesn't work.
         For PowerPoint, it appears the PowerPoint Web Apps frame (FILE, START SLIDE SHOW, SLIDE - OF -, NOTES...) and, in the center, an animation 
    "PowerPoint Web App .....". After a couple of minutes, it stops with "Either you've lost network connectivity or our server is to busy to handle your request".
         What we have seen from different sources:
    FIDDLER
    ======
         /op/view.aspx?... Response 200
         /p/PowerPointFrame.aspx?... Response 200
         /p/imagehandler.ashx?... Response 202
         13 petitions to /p/ppt/view.svc/jsonAnonymous/GetPresentation Response 200
    PROCESS MONITOR
    ==============
         There were some folders and registry keys Network Service was trying to access with ACCESS DENIED response. We gave it permissions and they disappeared.
         SYSTEM is trying to access some registry keys (SpellingWcfprovider.exe => HKU\S-1-5-18, ImagingService.exe => HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options, and 2 or 3 more). It gets an ACCESS DENIED
    but SYSTEM, we have checked, has "Full control" permissions in those keys or folders.
         These errors appear by Office Web Server running itself, although we are not making a PowrPoint file request.
    ULS
    ===
         Several times, it tries to find the PowerPoint presentation in the caché, doesn't find it, manage to get it but, when trying to put it in the cache, it receives a disk space error:
    Determined file name [PowerPoint.pptx] from [\\wacserver\share\PowerPoint.pptx]
    AFileFetcher: Starting Unc download at [\\wacserver\share\PowerPoint.pptx]
    Begining UNC Download for [\\wacserver\share\PowerPoint.pptx]
    Reading next block of bytes for [\\wacserver\share\PowerPoint.pptx]
    End reading block of bytes for [\\wacserver\share\PowerPoint.pptx]
    Reading next block of bytes for [\\wacserver\share\PowerPoint.pptx]
    End reading block of bytes for [\\wacserver\share\PowerPoint.pptx]
    AFileFetcher: Done downloading file. [\\wacserver\share\PowerPoint.pptx]
    Downloaded file from final URL [\\wacserver\share\PowerPoint.pptx] with SHA256 [Y/whX0EzCZJQdHym/OPrMdrNVg0h8SwrC0TehaKIQdU=]
    AFileFetcher: Will cache web file info to memory cache. [\\wacserver\share\PowerPoint.pptx]
    Starting WriteStreamToDiskCache
    Creating channel to DiskCache: http://wacserver:809/diskcache/DiskCache.svc
    MachineTransfer [SourceMachine:wacserver, SourceMachineVersion:15.0.4543.1000, TargetMachine:wacserver, TargetMachineVersion:15.0.4551.1011, Method:DiskCacheService.PutCacheData]
    PutCacheData: [167F6AC792AE9B53BEA7CD135A35C18F0710CF5916C49DD5804C9E29CF9149CA55D1C8D1AD526B45B91801E1502B2BCD, d1c8d155-52ad-456b-b918-01e1502b2bcd, 50758, wacserver]
    PutCacheData: Writing to C:\ProgramData\Microsoft\OfficeWebApps\Working\d\1CA\167F6AC792AE9B53BEA7CD135A35C18F0710CF5916C49DD5804C9E29CF9149CA55D1C8D1AD526B45B91801E1502B2BCD
    Not enough disk space to write.  Sleeping once.
    Not enough disk space to write.  Giving up.
    PutCacheData Response: [False]
         The cache folder has enough disk size and PowerPoint.pptx file is just 30 KB.
         It repeats this flow 3 times (as for the first HTTP requests).
         During the 2 minutes test (until it fails) there are 14 traces like:
    Failed to create process object for pid 7780 with exception System.ArgumentException: Process with an Id of 7780 is not running.     at System.Diagnostics.Process.GetProcessById(Int32 processId)     at Microsoft.Office.Web.Common.RequestPipe.ProcessManager.TryGetProcessObject(Int32
    pid).
         We have tried a number of things but none has worked. The farm has just one server and it says ist's unhealthy. We have Windows Server 2008 R2 SP1. We have read some ways to fix the health, like HTTP Activation feature, but it only works
    for Windows Server 2012 as fas as we know.
         Has anybody experienced something like this or have a posible solution? Office Web Apps Server should be so easy to deploy but we have spent a lot of time with this.
         Thank you very much. Your help will be very appreciated.
         Kind regards.

    Hi John,
    According to your description, my understanding is that you cannot view the PowerPoint files in Office Web Apps in SharePoint.
    Was there any error when you view the PowerPoint files in Office Web Apps?
    You can troubleshoot the error following the link below:
    http://technet.microsoft.com/en-us/library/ff431687.aspx#tshoot
    I also recommend to re-configure SharePoint to use the Office Web Apps Server to see if the issue still occurs.
    http://technet.microsoft.com/en-us/library/ff431687.aspx#ConfigureMain
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How can I use more than one Data Provider in my web Apps

    I am trying to use two different data provider in my web apps to run two different queries from the same table ,the data provider A is working correctly but when I attempt to run data provider B ,It display an error page ,here is the error message : Exception Details :javax.servlet.ServletEx ception
    java.lang.RuntimeException: java.sql.SQLException : Cannot connect .Both dataSourceName and url properties are null.

    Hi,
    You can use more than one data provider in your application. However if you have defined a dataprovider for a particular table already, and wish to bind a component, select the component and use its context menu to Bind to Data...

  • Possible to have two login configs in same web app?

    Sorry for not having tried this first, my server and webapp are in a state
    of flux at this moment, but I wanted to see what the consensus is out there,
    not just whether I can or cannot make something work quickly.
    If I have two types of things that might be called in my Web App (WAR) in
    different ways (eg, browser accessing via HTTP by users that want to login
    via pretty forms, and SOAP clients that may access functionality through the
    same servlets (but with alternate Servlet Path Info after the servlet name
    in the URL)), is there ANY way I can have multiple login configs, each tied
    to a different security constraint within that web app?
    In other words, with a servlet of /frazzleblitz and security constraints
    like:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Foo</web-resource-name>
    <url-pattern>/frazzleblitz/doFooBar</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>FoobarBrowserUsers</role-name>
    </auth-constraint>
    </security-constraint>
    and the SOAP constraint (for all users of incoming SOAP requests):
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Foo</web-resource-name>
    <url-pattern>/frazzleblitz/doFooBar</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>FoobarBrowserUsers</role-name>
    </auth-constraint>
    </security-constraint>
    where my frazzleblitz controller knows whether the incoming request is
    browser vs SOAP based by the path info after the servlet name
    Can I associate the first security constraint with a FORM based login
    config, and the second security constraint with a BASIC AUTH login config
    since I could in theory require SOAP clients to send in credentials in a
    HTTP BasicAuth header, but I can't expect a SOAP client to be HTTP
    Redirected to a login form and then to enter the right credentials into a
    user type form and then be redirected back to an app...
    Seems to me the J2EE Security spec is really lacking in the area of
    programmatic authentication (allowing my SOAP code to get credentials out of
    the request envelope and call an API to login myself). Yeah, WebLogic has
    the ServletAuthentication weak() API, but these apps need to be J2EE
    compliant and work across J2EE servers... Anybody know of any improvements
    coming in the J2EE security space to address such functionality needs?
    Thanks in advance
    Mike

    Sorry, hit send accidentally before finishing the second security
    constraint - I've fixed it up below to reflect what I meant...
    "Mike" <[email protected]> wrote in message
    news:[email protected]...
    Sorry for not having tried this first, my server and webapp are in a state
    of flux at this moment, but I wanted to see what the consensus is outthere,
    not just whether I can or cannot make something work quickly.
    If I have two types of things that might be called in my Web App (WAR) in
    different ways (eg, browser accessing via HTTP by users that want to login
    via pretty forms, and SOAP clients that may access functionality throughthe
    same servlets (but with alternate Servlet Path Info after the servlet name
    in the URL)), is there ANY way I can have multiple login configs, eachtied
    to a different security constraint within that web app?
    In other words, with a servlet of /frazzleblitz and security constraints
    like:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Foo</web-resource-name>
    <url-pattern>/frazzleblitz/doFooBar</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>FoobarBrowserUsers</role-name>
    </auth-constraint>
    </security-constraint>
    and the SOAP constraint (for all users of incoming SOAP requests):
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Bar</web-resource-name>
    <url-pattern>/frazzleblitz/doSOAPRequest</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>SOAPUsers</role-name>
    </auth-constraint>
    </security-constraint>
    where my frazzleblitz controller knows whether the incoming request is
    browser vs SOAP based by the path info after the servlet name
    Can I associate the first security constraint with a FORM based login
    config, and the second security constraint with a BASIC AUTH login config
    since I could in theory require SOAP clients to send in credentials in a
    HTTP BasicAuth header, but I can't expect a SOAP client to be HTTP
    Redirected to a login form and then to enter the right credentials into a
    user type form and then be redirected back to an app...
    Seems to me the J2EE Security spec is really lacking in the area of
    programmatic authentication (allowing my SOAP code to get credentials outof
    the request envelope and call an API to login myself). Yeah, WebLogic has
    the ServletAuthentication weak() API, but these apps need to be J2EE
    compliant and work across J2EE servers... Anybody know of anyimprovements
    coming in the J2EE security space to address such functionality needs?
    Thanks in advance
    Mike

  • Error while creating farm for Office web apps

    Hello.
    I have error while creating office web apps fars.
    when I enter this code to powershell : New-OfficeWebAppsFarm -InternalURL "http://servername" -AllowHttp -EditingEnabled
    It says this:
    New-OfficeWebAppsFarm : The term 'New-OfficeWebAppsFarm' is not recognized as the name of a cmdlet, function, script
    file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
    and try again.
    At line:1 char:1
    + New-OfficeWebAppsFarm -InternalURL "http://office" -AllowHttp -EditingEnabled
    + ~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (New-OfficeWebAppsFarm:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    so what's the problem?

    That is an error I would expect with the account running the cmdlet not having local administrator rights to the server.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Getting error while creating a new web app saying "The password supplied with the username domainname\username was not correct. Verify that it was entered correctly and try again"

    Hi ,
    I am trying to create a new web app using Central Administration in Sharepoint 2010 and getting an error "The password supplied with the username  was not correct. Verify that it was entered correctly and try again".
    I tried running this command also "stsadm -o updatefarmcredentials -userlogin <domain\username> -password <newpassword>" but when it got executed it showed me "Access Denied".
    What should i do ??
    Thanks in advance.
    Regards, Anurag

    HI,
    right click on command icon and click run as administrator then use above stsadm commend to update credential. If still you face same issue then try with powershell as mention in below link: (make sure that you open sharepoint powershell as run as administrator)
    http://smartrider.wordpress.com/2010/07/15/powershell-script-to-create-web-application-and-site-collection-in-sharepoint-2010/
    let us know your result
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

Maybe you are looking for

  • I'm new to audio books. After buying on iTunes can't find or play the book/file on my ios7

    I can't find my audio book after purchasing using iOS 7. I understand with old iOS it was located in music app under More. Have tried buying again but no joy. Can't see it in my purchased section either........

  • How to send the output to PDF format in reports 6i?

    Hi, How to send the output to PDF format in reports 6i? I given Mode = BITMAP. DESTYPE = File, DESFORMAT = PDF, DESNAME = C:\x.pdf. Report is running fine. But PDF file not generated. I don't know what i missed. Any one can help this? Thanks Kavitha

  • In Adobe Acrobat X (10.1.2) Markup no longer available

    In Adobe Acrobat X (10.1.2) I no longer am able to "markup" files (e.g., add highlighting and notes). As an experiment, I created a PDF file from a web page. As an example, the "highlight" text icon was grayed out and could not be enabled. As shown i

  • ESS Leave Request - Portal Runtime Error when the "Cancel" button is hit

    We have configured the Leave Request application, created a custom workflow, created security roles, and we are now testing in our quality environment.  We are encountering a very strange "Portal runtime error" which we cannot resolve - When you come

  • The Disappearing Image(s)

    Apple Mail Version 5.2 (1278) Howdy, I wonder if anybody has come across this Mail problem.  When I send HTML e-mail it puts a copy in the Sent Box.  The HTML only displays some of the images. (see JPG)  Yet when I click down on the left red box on a