Architecture of new Petstore application

I was wondering if there is any architecture document of the new Petstore application that uses JSF, AJAX, JMaki etc.
If yes, then what is the URL of the document
Thanks
-Sankate

Hi,
1. The Map module in particular, most the websites
using Google mashups do not require so much server
side plumbing, any particular reason of this
approach?The page that displays the maps (you can see a live demo at http://webdev2.sun.com/petstore/faces/mapAll.jsp and click "Map Category") has a lot of features. Beside just using the google map APIs to show a map with data points pulled from PS, it also dispays a list of items in a left side bar with pop up balloon details) So for one thing it has some extra features so some extra code.
Using the google map Javascript library to just display the google map on a page with data provided from your app can be simpler, you could just use the google map Javascript library APIs directly in the page.
In our case we decided to wrap that map functionality into a JSF component so that people could re-ues the functionality. It can be tricky to build a JSF component and the coding burden is placed on the component developer, but once you have a JSF component it can be easy for the page author to use the JSF component. We use the same mapping JSF components in several apps and it is alos included in some tools etc, so re-use was useful in our case. For another app, you might not need to wrap it in JSF.
Wrapping in JSF does add some extra plumbing code.
So in general, wrapping a JS library like google maps in a JSF component, can have some extra work, but some benfits as well. It depends how you plan to use the functionality, if you plan for re-use then JSF is one way to accomplish this. It imposes a certain architecture on that functionality.
Also, in terms of back end plumbing, also you do need a web request on youre server to process the request, and return a page with UI and data. We stroed the data in a database so this has some backend code as well. For example, that page displays a list of pets in that area in a left side bar, so need to persist and retrieve that data from DB. Also, google maps requires longitute and latitute, so you need to get that data too. Since we store addresses for each Item (pet info) in the DB, and google needs latitude and longitude, when we add a new address ad Item to DB, we also use yahoo geocoding service mashup to lookup cooresponding latitude and longitude and store that along with other address data, so we dont have to look it up from yahoo for each client map viewing request, instead we can just pull the info from DB along with other Item info.
So there is some necessary extra data and plumbing and coding required, even if you do not wrap it in a JSF component.
hth,
Sean

Similar Messages

  • J2EE PetStore Application -- RDBMSException when starting server

    Folks,
    I'm trying to install Sun's J2EE PetStore application using the instructions at: http://developer.java.sun.com/developer/technicalArticles/Programming/deployathon2/BEAreadme.html#dlapp
    When I attempt to start the WebLogic server using the "startPetStore.cmd" file, I receive the exception below. Has anyone got any helpful advice to offer?
    Thanks,
    -=Helen=-
    Thu Sep 21 12:28:47 EDT 2000:<I> <WebLogicServer> Loaded License : C:/weblogic/license/WebLogicLicense.xml
    Thu Sep 21 12:28:47 EDT 2000:<I> <WebLogicServer> Server loading from weblogic.class.path. EJB redeployment enabled.
    Unable to initialize server: com.bea.estore.rdbmsrealm.RDBMSException: realm initialization failed, action 'DriverManager.getConnection', - with nested exception:
    [SQL Exception: Failed to start database 'petStoreDB', see the next exception for details.]
    fatal initialization exception
    com.bea.estore.rdbmsrealm.RDBMSException: realm initialization failed, action 'DriverManager.getConnection', - with nested exception:
    [SQL Exception: Failed to start database 'petStoreDB', see the next exception for details.]
    at com.bea.estore.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:169)
    at com.bea.estore.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:912)
    at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
    at com.bea.estore.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:115)
    at com.bea.estore.rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:515)
    at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
    at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java:757)
    at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
    at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
    at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1084)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)

    I had the same problem. I ran this as a batch file to update the petStoreDB and it worked thereafter.
    java -classpath c:\weblogic\eval\cloudscape\lib\cloudscape.jar;C:\jdk1.2.2;c:\weblogic\weblogic510sp3.jar;c:\weblogic\classes;c:\weblogic\lib\weblogicaux.jar;c:\weblogic\license;c:\weblogic\myserver\clientclasses; utils.Schema jdbc:cloudscape:petStoreDB;create=true COM.cloudscape.core.JDBCDriver -verbose c:\weblogic\petstore\WLSrc\db\petStore.ddl
    Horance Chou <[email protected]> wrote:
    I got the same problem before, and it's fixed by update new Schema.
    use utils.Schema to update the petStoreDB with <petstore>\WLSrc\db\petstore.ddl
    with Regrads.
    Horance
    Helen Seabold wrote:
    Folks,
    I'm trying to install Sun's J2EE PetStore application using the instructions at: http://developer.java.sun.com/developer/technicalArticles/Programming/deployathon2/BEAreadme.html#dlapp
    When I attempt to start the WebLogic server using the "startPetStore.cmd" file, I receive the exception below. Has anyone got any helpful advice to offer?
    Thanks,
    -=Helen=-
    Thu Sep 21 12:28:47 EDT 2000:<I> <WebLogicServer> Loaded License : C:/weblogic/license/WebLogicLicense.xml
    Thu Sep 21 12:28:47 EDT 2000:<I> <WebLogicServer> Server loading from weblogic.class.path. EJB redeployment enabled.
    Unable to initialize server: com.bea.estore.rdbmsrealm.RDBMSException: realm initialization failed, action 'DriverManager.getConnection', - with nested exception:
    [SQL Exception: Failed to start database 'petStoreDB', see the next exception for details.]
    fatal initialization exception
    com.bea.estore.rdbmsrealm.RDBMSException: realm initialization failed, action 'DriverManager.getConnection', - with nested exception:
    [SQL Exception: Failed to start database 'petStoreDB', see the next exception for details.]
    at com.bea.estore.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:169)
    at com.bea.estore.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:912)
    at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
    at com.bea.estore.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:115)
    at com.bea.estore.rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:515)
    at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
    at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java:757)
    at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
    at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
    at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1084)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)

  • Configuring PetStore application

    I am following an article "Run J2EE Deployathon Online! With BEA
    WebLogic" to deploy the Java PetStore application on WebLogic Server.
    Here is the link:
    http://developer.java.sun.com/developer/technicalArticles/J2EE/deployathon2/BEAreadme.html
    At Step 5: I couldn't find port2WL.cmd script file to unpack estore.ear
    file. Anybody could tell me if you found the port2WL.cmd somewhere
    in BEA system's web site?
    Thanks!

    Hi, Gene.
    I didn't run this demo. However, I knew that you can use JAR to unpack EAR
    file:
    jar xvf estore.ear
    Cheers - Wei
    "Gene Shen" <[email protected]> wrote in message
    news:3aa83cc7$[email protected]..
    >
    I am following an article "Run J2EE Deployathon Online! With BEA
    WebLogic" to deploy the Java PetStore application on WebLogic Server.
    Here is the link:
    http://developer.java.sun.com/developer/technicalArticles/J2EE/deployathon2/
    BEAreadme.html
    >
    At Step 5: I couldn't find port2WL.cmd script file to unpack estore.ear
    file. Anybody could tell me if you found the port2WL.cmd somewhere
    in BEA system's web site?
    Thanks!

  • PetStore application

    Hi All,
    Can I debug the petstore application? Does BEA provide the build script for the petstore application? So that we can make some changes to petsore application and deploy it again? This I want to do just for debugging purpose.
    Thanks,
    Amar

    Hi Amar,
    Attached are two build scripts (build.cmd for Windows and build.sh for
    UNIX). To use these scripts:
    1. place the script into the samples/petstore directory of your weblogic
    distribution
    2. edit the JAVA_HOME and WL_HOME variables to point to the root directory
    of your JDK and WebLogic distribution respectively
    3. run the script
    A new ear file will be created in the samples/petstore directory. These
    scripts will be included in future versions of WebLogic.
    Thanks,
    Jim Rivera
    "Amar" <[email protected]> wrote in message
    news:3a0b1c15$[email protected]..
    >
    Hi All,
    Can I debug the petstore application? Does BEA provide the build scriptfor the petstore application? So that we can make some changes to petsore
    application and deploy it again? This I want to do just for debugging
    purpose.
    >
    Thanks,
    Amar
    [build.cmd]
    [build.sh]

  • New Web Application not creating correctly

    I'm having an odd occurrence happen about 50% of the time right now when creating new web applications during my migration from SP2010 to SP2013.
    During creating a web application in Central Admin, I can get through the first setup page, then get to the "This shouldn't take long" page and will sit there for 30+ minutes. I end up closing the window and will see that the Web application is there in
    Central admin, and sometimes the DB will be created, other times not, not a big issue since I'm mounting a sp2010 database to this web application.
    What I do notice is that either a IIS site will either not be created at all, or it will be created, but the Virtual Folder is empty. When trying to delete the Web Application through central admin or PowerShell it will hang for hours until the next day
    when it's finally deleted. During this time I am not able to create any other web applications. It's usually at this time that I can successfully create a new web applications but even that is unreliable.
    Has anyone ran into this issue or can suggest any workarounds to get this working? I'm wondering if copying the contents of another web application's virtual directory to the failed web application's virtual directory will be a workaround. I still need to
    verify if creating a web application through PowerShell gives me the same headache but at the moment I'm currently waiting for a web application to delete.

    Finally got this resolved after an 8 hour call with Microsoft. After finally getting the Microsoft SharePoint Foundation Web Application service to restart (took 4 hours) We found that changing the Shutdown time in the Web Application Pool for the Central
    Admin pool to 400 allowed for the Web Application to complete successfully.
    I'm still confused to why everything is taking so long now to complete so i'll have to look into that next.
    Folks, this is a minor problem that seems to be creeping up more and more. I personally have performed over 8 installs in various environments. I have seen this issue in 6 out of the 8 environments I have created. All servers I have tried a variation of
    software. In MOST of my tests, this seems to be a problem. Not sure why they decide to recycle the App Pool just before they perform an "Virtual Directory Copy." Here are the results of my tests. I was very methodical in my testing and made sure these were
    clean downloads every time. As you will see, I tried variations of hardware increases, physical to virtual, database versions and patch levels...etc.
    Test #
    Hardware
    Software
    Server Type
    Install Type
    Problems Creating Web Apps
    Work Around
    Resolution
    1
    HP   Proliant DL360 G6, 16gb memory, 146gb - C, 146gb D (Pagefile), 146gb E, 2   Quad Procs
    Windows   2008R2 (All Patches), SQL 2012 w/SP1, SharePoint 2013 Server
    Physical
    Clean Install and downloads
    Yes
    Copy Contents of Central Admin   Virtual Directory to new Web Application
    Increase Shutdown time to 400
    2
    Host Server = Dell R900 256gb Mem, 146gb   C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest = 
    100gb - C, 2 Logical Procs, 8gb memory
    Windows 2008R2 (All Patches), SQL 2012,   SharePoint 2013 Server
    Virtual
    Clean Install and downloads
    Yes
    Copy   Contents of Central Admin Virtual Directory to new Web Application
    Increase   Shutdown time to 400
    3
    Host   Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad   Procs; Virtual Guest = 
    100gb - C, 2   Logical Procs, 8gb memory
    Windows   2008R2 (All Patches), SQL 2012 w/SP1, SharePoint 2013 Server
    Virtual
    Clean   Install and downloads
    No
    4
    Host Server = Dell R900 256gb Mem, 146gb   C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest = 
    100gb - C, 2 Logical Procs, 8gb memory
    Windows 2008R2 (All Patches), SQL 2012   w/SP1, SharePoint 2013 Server
    Virtual
    Clean Install and downloads
    Yes
    Copy   Contents of Central Admin Virtual Directory to new Web Application
    Increase   Shutdown time to 400
    5
    Host   Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad   Procs; Virtual Guest = 
    100gb - C, 4   Logical Procs, 16gb memory
    Windows   2008R2 (All Patches), SQL 2008 R2 w/SP1, SharePoint 2013 Server
    Virtual
    Clean   Install and downloads
    Yes
    Copy Contents of Central Admin   Virtual Directory to new Web Application
    Increase Shutdown time to 400
    6
    Host Server = Dell R900 256gb Mem, 146gb   C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest = 
    100gb - C, 4 Logical Procs, 16gb memory
    Windows 2008R2 (All Patches), SQL 2008 R2   w/SP2, SharePoint 2013 Server
    Virtual
    Clean Install and downloads
    No
    7
    Host   Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad   Procs; Virtual Guest = 
    100gb - C, 4   Logical Procs, 16gb memory
    Windows   2008R2 (All Patches), SQL 2008 R2 w/SP2, SharePoint 2013 Server
    Virtual
    Clean   Install and downloads
    Yes
    Copy Contents of Central Admin   Virtual Directory to new Web Application
    Increase Shutdown time to 400
    8
    Host   Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad   Procs; Virtual Guest = 
    100gb - C, 4   Logical Procs, 32gb memory
    Windows   2008R2 (All Patches), SQL 2008 R2 w/SP2, SharePoint 2013 Server
    Virtual
    Clean   Install and downloads
    Yes
    Copy   Contents of Central Admin Virtual Directory to new Web Application
    Increase   Shutdown time to 400

  • Create a new web application, how shall I update the file server.xml

    Hi,
    I will create a new web application, i.e named newApp. Then I create a file structure as follows:
    - <server-root>/newApp
    - <server-root>/newApp/WEB-INF
    - <server-root>/newApp/WEB-INF/classes
    Then I must tell the server that I have created a new web application. Then I must update my file server.xml, How shall I do this and where in the file shall I type in the new information?
    I use windows XP Pro, and Tomcat 4.1.27.
    My server.xml file looks like below:
    <!-- Example Server Configuration File -->
    <!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other -->
    <!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <!-- Comment these entries out to disable JMX MBeans support -->
    <!-- You may also configure custom components (e.g. Valves/Realms) by
    including your own mbean-descriptor file(s), and setting the
    "descriptors" attribute to point to a ';' seperated list of paths
    (in the ClassLoader sense) of files to add to the default list.
    e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml"
    -->
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
    debug="0"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
    debug="0"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
    UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
    <parameter>
    <name>factory</name>
    <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
    </parameter>
    <parameter>
    <name>pathname</name>
    <value>conf/tomcat-users.xml</value>
    </parameter>
    </ResourceParams>
    </GlobalNamingResources>
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Tomcat-Standalone">
    <!-- A "Connector" represents an endpoint by which requests are received
    and responses are returned. Each Connector passes requests on to the
    associated "Container" (normally an Engine) for processing.
    By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
    You can also enable an SSL HTTP/1.1 Connector on port 8443 by
    following the instructions below and uncommenting the second Connector
    entry. SSL support requires the following steps (see the SSL Config
    HOWTO in the Tomcat 4.0 documentation bundle for more detailed
    instructions):
    * Download and install JSSE 1.0.2 or later, and put the JAR files
    into "$JAVA_HOME/jre/lib/ext".
    * Execute:
    %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
    $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
    with a password value of "changeit" for both the certificate and
    the keystore itself.
    By default, DNS lookups are enabled when a web application calls
    request.getRemoteHost(). This can have an adverse impact on
    performance, so you can disable it by setting the
    "enableLookups" attribute to "false". When DNS lookups are disabled,
    request.getRemoteHost() will return the String version of the
    IP address of the remote client.
    -->
    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="100" debug="0" connectionTimeout="20000"
    useURIValidationHack="false" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8443" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="100" debug="0" scheme="https" secure="true"
    useURIValidationHack="false" disableUploadTimeout="true">
    <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
    clientAuth="false" protocol="TLS" />
    </Connector>
    -->
    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8009" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" connectionTimeout="0"
    useURIValidationHack="false"
    protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <!--
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
    port="8009" minProcessors="5" maxProcessors="75"
    acceptCount="10" debug="0"/>
    -->
    <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8082" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="100" debug="0" connectionTimeout="20000"
    proxyPort="80" useURIValidationHack="false"
    disableUploadTimeout="true" />
    -->
    <!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
    <!--
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8083" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" />
    -->
    <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
    <!--
    <Connector className="org.apache.catalina.connector.http10.HttpConnector"
    port="8084" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" />
    -->
    <!-- An Engine represents the entry point (within Catalina) that processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->
    <!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
    <Engine name="Standalone" defaultHost="localhost" debug="0" jmvRoute="jvm1">
    -->
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Standalone" defaultHost="localhost" debug="0">
    <!-- The request dumper valve dumps useful debugging information about
    the request headers and cookies that were received, and the response
    headers and cookies that were sent, for all requests received by
    this instance of Tomcat. If you care only about requests to a
    particular virtual host, or a particular application, nest this
    element inside the corresponding <Host> or <Context> entry instead.
    For a similar mechanism that is portable to all Servlet 2.3
    containers, check out the "RequestDumperFilter" Filter in the
    example application (the source for this filter may be found in
    "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
    Request dumping is disabled by default. Uncomment the following
    element to enable it. -->
    <!--
    <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
    -->
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="catalina_log." suffix=".txt"
    timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <!-- This Realm uses the UserDatabase configured in the global JNDI
    resources under the key "UserDatabase". Any edits
    that are performed against this UserDatabase are immediately
    available for use by the Realm. -->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
    debug="0" resourceName="UserDatabase"/>
    <!-- Comment out the old realm but leave here for now in case we
    need to go back quickly -->
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="org.gjt.mm.mysql.Driver"
    connectionURL="jdbc:mysql://localhost/authority"
    connectionName="test" connectionPassword="test"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
    connectionName="scott" connectionPassword="tiger"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="sun.jdbc.odbc.JdbcOdbcDriver"
    connectionURL="jdbc:odbc:CATALINA"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!-- Define the default virtual host -->
    <Host name="localhost" debug="0" appBase="webapps"
    unpackWARs="true" autoDeploy="true">
    <!-- Normally, users must authenticate themselves to each web app
    individually. Uncomment the following entry if you would like
    a user to be authenticated the first time they encounter a
    resource protected by a security constraint, and then have that
    user identity maintained across all web applications contained
    in this virtual host. -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn"
    debug="0"/>
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, log files are created in the "logs" directory relative to
    $CATALINA_HOME. If you wish, you can specify a different
    directory with the "directory" attribute. Specify either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    -->
    <!--
    <Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="logs" prefix="localhost_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    -->
    <!-- Logger shared by all Contexts related to this virtual host. By
    default (when using FileLogger), log files are created in the "logs"
    directory relative to $CATALINA_HOME. If you wish, you can specify
    a different directory with the "directory" attribute. Specify either a
    relative (to $CATALINA_HOME) or absolute path to the desired
    directory.-->
    <Logger className="org.apache.catalina.logger.FileLogger"
    directory="logs" prefix="localhost_log." suffix=".txt"
    timestamp="true"/>
    <!-- Define properties for each web application. This is only needed
    if you want to set non-default properties, or have web application
    document roots in places other than the virtual host's appBase
    directory. -->
         <DefaultContext reloadable="true"/>
    <!-- Tomcat Root Context -->
    <Context path="" docBase="ROOT" debug="0"/>
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_examples_log." suffix=".txt"
    timestamp="true"/>
    <Ejb name="ejb/EmplRecord" type="Entity"
    home="com.wombat.empl.EmployeeRecordHome"
    remote="com.wombat.empl.EmployeeRecord"/>
    <!-- If you wanted the examples app to be able to edit the
    user database, you would uncomment the following entry.
    Of course, you would want to enable security on the
    application as well, so this is not done by default!
    The database object could be accessed like this:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    UserDatabase database =
    (UserDatabase) envCtx.lookup("userDatabase");
    -->
    <!--
    <ResourceLink name="userDatabase" global="UserDatabase"
    type="org.apache.catalina.UserDatabase"/>
    -->
    <!-- PersistentManager: Uncomment the section below to test Persistent
    Sessions.
    saveOnRestart: If true, all active sessions will be saved
    to the Store when Catalina is shutdown, regardless of
    other settings. All Sessions found in the Store will be
    loaded on startup. Sessions past their expiration are
    ignored in both cases.
    maxActiveSessions: If 0 or greater, having too many active
    sessions will result in some being swapped out. minIdleSwap
    limits this. -1 or 0 means unlimited sessions are allowed.
    If it is not possible to swap sessions new sessions will
    be rejected.
    This avoids thrashing when the site is highly active.
    minIdleSwap: Sessions must be idle for at least this long
    (in seconds) before they will be swapped out due to
    activity.
    0 means sessions will almost always be swapped out after
    use - this will be noticeably slow for your users.
    maxIdleSwap: Sessions will be swapped out if idle for this
    long (in seconds). If minIdleSwap is higher, then it will
    override this. This isn't exact: it is checked periodically.
    -1 means sessions won't be swapped out for this reason,
    although they may be swapped out for maxActiveSessions.
    If set to >= 0, guarantees that all sessions found in the
    Store will be loaded on startup.
    maxIdleBackup: Sessions will be backed up (saved to the Store,
    but left in active memory) if idle for this long (in seconds),
    and all sessions found in the Store will be loaded on startup.
    If set to -1 sessions will not be backed up, 0 means they
    should be backed up shortly after being used.
    To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
    and minIdleBackup all to -1, saveOnRestart to false, then restart
    Catalina.
    -->
    <!--
    <Manager className="org.apache.catalina.session.PersistentManager"
    debug="0"
    saveOnRestart="true"
    maxActiveSessions="-1"
    minIdleSwap="-1"
    maxIdleSwap="-1"
    maxIdleBackup="-1">
    <Store className="org.apache.catalina.session.FileStore"/>
    </Manager>
    -->
    <Environment name="maxExemptions" type="java.lang.Integer"
    value="15"/>
    <Parameter name="context.param.name" value="context.param.value"
    override="false"/>
    <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/EmployeeAppDb">
    <parameter><name>username</name><value>sa</value></parameter>
    <parameter><name>password</name><value></value></parameter>
    <parameter><name>driverClassName</name>
    <value>org.hsql.jdbcDriver</value></parameter>
    <parameter><name>url</name>
    <value>jdbc:HypersonicSQL:database</value></parameter>
    </ResourceParams>
    <Resource name="mail/Session" auth="Container"
    type="javax.mail.Session"/>
    <ResourceParams name="mail/Session">
    <parameter>
    <name>mail.smtp.host</name>
    <value>localhost</value>
    </parameter>
    </ResourceParams>
    <ResourceLink name="linkToGlobalResource"
    global="simpleValue"
    type="java.lang.Integer"/>
    </Context>
    </Host>
    </Engine>
    </Service>
    </Server>

    To use servlets u have indeed to update your web.xml...Well I'm not sure this is relevant to your case anyway.
    You have to add a <servlet> element to this file.
    Something like this:
    <servlet>
    <servlet-name>blabla</servlet-name>
    <servlet-class>blablapackage.Blablaclass</servlet-class>
    <init-param>...</init-param>
    </servlet>
    Now this may not solve your problem. Make sure you refer to your servlets using their full qualified names.btw, just to be sure, what is your definition of "servlet"? (i mean: any java class or only javax.servlet.Servlet)

  • How do I move a photo into an album in the new Photos application?

    How do I move a photo into an album in the new Photos application?

    The simplest way is to show the Sidebar at all times - you can reveal it with options-command-S  ⌥⌘S.
    With the sidebar visible, you can simply drag the photos from the Moments or other albums to the album in the sidebar. You can select and drag multiple photos at a time by selecting the first photo, holding down the shift key and selecting more photos.  If the album does not yet exist, select the photos and press ⌘N for "File > New album" to create a new album with the selected photos.

  • For a new web application project - Struts OR JSF ?

    Hi ,
    We are starting a new web application project and want to decide whetehr to us Struts or JSF ?
    Currently, mots of the other development teams are using Struts .
    We need to know pros and cons of each to decide one way or the other.
    Any help is appreciated .
    Thanks

    Those are the articles and presentation about this topic:
    http://homepage1.nifty.com/algafield/barcia.html
    http://www.jroller.com/comments/dgeary/Weblog/top_ten_reasons_to_prefer
    http://websphere.sys-con.com/read/46516.htm
    http://www.pjug.org/JavaServerFaces.pdf
    Sergey : http://jsfTutorials.net

  • Org.xml.sax.SAXParseException while executing petstore application

    Hi all,
    I get the following error message when I start the examples server after
    deploying the petstore application:
    org.xml.sax.SAXParseException: The encoding "ISO8859_1" is not supported.
    I have followed the steps listed on the bea webiste exactly.
    I am using WLS 6.1SP2 and petstore application 1.2.2.
    Thanks in advance.
    Santosh

    Hi.
    Hmm, not sure. Try posting your question on
    weblogic.developer.interest.examples. Perhaps someone there might be
    familiar with this problem.
    Regards,
    Michael
    Santosh Mani wrote:
    Hi all,
    I get the following error message when I start the examples server after
    deploying the petstore application:
    org.xml.sax.SAXParseException: The encoding "ISO8859_1" is not supported.
    I have followed the steps listed on the bea webiste exactly.
    I am using WLS 6.1SP2 and petstore application 1.2.2.
    Thanks in advance.
    Santosh--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Error in Creating New Web Application SharePoint 2013

    Everything was working fine but today when i try to create  a new web application i am getting the following error.It's happening whenever i am trying to create a new web application.
    The directory C:\inetpub\wwwroot\wss\VirtualDirectories\26060 is already being used by another IIS Web Site.  Choose a different root directory for your new Web application. 
    But this port 26060 was not being used before and if i try to create new web application again then the error message occurs with the port number of the new web application. 
    Please help.

    Hi HelloFragrance,
    Are you using a host header when creating these web apps? If so have you tried creating without a host header? Also are you logged in with the Server with the Admin account? Check this out: (taken from Jeremy Taylor's
    blog)
    " 1. Ensure you have a proper dns name / entry in the hosts file of your server for the new url you are wanting to create.
    2. Ensure you have typed in the ‘host header’ typed in when creating the new web application.
    3. If this doesnt work, open IIS Manager – Start>run> inetmgr> and verify the home directory – it could be located on a different drive."
    Also have you tried creating through Powershell and see if you run into the same issue or not?
    http://technet.microsoft.com/en-us/library/ff607931(v=office.15).aspx
    Hope this helps!
    Thanks!
    BlueSky2010
    Please help and appreciate others by using forum features: "Propose As Answer", "Vote As Helpful" and
    "Mark As Answer"

  • Runtime error and unable to create new web application

    Hi
    when i create new web application i faced this error Runtime error and unable to create new web application.
    in this farm we have
    2 wfe servers
    2 application servers.
    adil

    Adil,
    There could be many reason like IIS issue, Space issue, Permission issue, SQL issue which is not possible us to guess rather
    you need to jump in the SharePoint log(Program Files\Common files\Microsoft Shared\Web Server Extensions\14\LOGS) and find out the specific error log its throwing after which trouble shoot can be start.
    You can refer few similar threads here -
    Link
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to stop the new health application from Count the steps/ woking background?

    how to stop the new health application from Count the steps/ woking background?
    I really need your help

    I agree with Mr. Hall that using mx.controls.Alert in Flex may be a better route.
    Show the Alert like this:
    // show an alert with a question and yes and no choices
    Alert.show( "Would you like to go to the Adobe Forums?", "Question",
         Alert.YES | Alert.NO, this, closeHandler, null, Alert.YES );
    Then handle the response in the closeHandler() function:
    protected function closeHandler( closeEvent:CloseEvent ):void
    if( event.detail == Alert.YES )
         navigateToURL( new URLRequest('http://forums.adobe.com'), '_self' );
    else if( event.detail == Alert.NO )
         // they chose no
    The following documentation on Alerts may be helpful:
    http://www.flexafterdark.com/docs/ActionScript-Alert
    Let me know if that helps...
    Ben Edwards

  • How do you change the distance units in the new Maps application on Mavericks from KM to miles?

    How do you change the distance units in the new Maps application on Mavericks from KM to miles?

    The scale in Maps follows your regional settings in System Preferences > Language & Region > Region.
    Selecting United States, for example, will use English units (feet and statute miles).
    There may be other methods I'm unaware of.

  • How to load new planning application in EPM 11.1.1.2-DIM ESSBASE ADAPTER

    how to load new planning application in EPM 11.1.1.2-DIM ESSBASE ADAPTER

    If you trying load metadata into planning using DIM then have a look here :- http://www.oracle.com/technology/obe/hyp_fp/DIM_Planning/OBE_Dim_Planning.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • The new Photo application only goes to 50% after pushing the "Getting Started" button. Is there a work-a-round?

    I've tried unsuccessfully to move over to the new Photos application.  Every time I press the get started button it does well until it reaches 50%.  There it hangs.  I do have a large number of raw & jpg images in my pictures directory, but iPhoto seemed ok with it previously.  I did leave it running over night and it was still at 50% the next morning.  I am running on a 2011 MBP 17" running OS X 10.10.3.  I have 400G of free space.  I'm ok to throw away my old iPhoto library.  I only used it for organizing.  I use Adobe PS & LR for editing. I want to be able to do a similar thing with the new Photo Application.  Timeline the photos, send them to iCloud and distribute them to my devices ... iPad, iPhone, iPod Touch

    I've tried unsuccessfully to move over to the new Photos application.  Every time I press the get started button it does well until it reaches 50%.  There it hangs.  I do have a large number of raw & jpg images in my pictures directory, but iPhoto seemed ok with it previously.  I did leave it running over night and it was still at 50% the next morning.  I am running on a 2011 MBP 17" running OS X 10.10.3.  I have 400G of free space.  I'm ok to throw away my old iPhoto library.  I only used it for organizing.  I use Adobe PS & LR for editing. I want to be able to do a similar thing with the new Photo Application.  Timeline the photos, send them to iCloud and distribute them to my devices ... iPad, iPhone, iPod Touch

Maybe you are looking for

  • Fixed Asset procedure For acquirsion Throught Landed Cost

    I Have To Import A Fixed Asset From Foreign Vendor.But How Can i Able Charge Landed Cost To That Asset.means Simple Landed Cost procedure just Cost the Charge to Inventory item But How To Fixed Asset Regards Naveed

  • New Release of Edge Reflow CC (Preview 7)

    We're excited to share Edge Reflow CC (Preview 7)! This new update helps you get up to speed with Reflow quickly, so you can create awesome responsive designs without a huge learning curve. Thanks to your feedback, we've added the following new featu

  • Drivers Failing to Install

    I own an HP G62 Notebook PC, and my warrenty expires in 4 days. Iv'e had this problem for awhile but it hasn't affected me too much. The problem is that my USB controllers can't install properly. When I plug in a flash driver it will show that it is

  • Attaching objects from another library

    I have the following scenario: I have a main.swf, and it loads a lib.swf, in which library are some movie clips that I want to attach in main.swf. Is it possible? (PS: I do not want to attach the symbols inside the loaded lib.swf. What I want is to u

  • What new features will the iPod touch 4 gen get in iOS 6?

    i want to know what new features the IPOD TOUCH will get in iOS 6....and i possible can you also tell me what it WONT have but the OTHER devices WILL have? thank you