One question about Servlet

Container will use HttpServletRequest and HttpServletResponse objects to encapsulate
a special HTTP request(received from WebClient) and Response gernerated by servlet
My qeustion is :
if same webclient requests two times, then Container will use same HttpServletRequest
and HttpServletResponse objects or use different objects for each time?

The Container can implement this any way it wants. You should NOT assume that the request and response objects are the same for each cycle.

Similar Messages

  • One question about Pricing and Conditions puzzle me for a long time!

    One question about Pricing and Conditions puzzle me for a long time.I take one example to explain my question:
    1-First,my sale order use pricing procedure RVAA01.
    2-Next,the pricing procedure RVAA01 have some condition type,such as EK01(Actual Costs),PR00(Price)....,and so on.
    3-Next,the condition type PR00 define the Access Sequences PR00 as it's Access Sequences.
    4-Next,the Access Sequences PR00 have some Condition tables,such as:
         table 118 : "Empties" Prices (Material-Dependent)
         table 5 : Customer/Material
         table 6 : Price List Type/Currency/Material
         table 4 : Material
    5-Next,I need to maintain Condition tables's Records.Such as the table 5(Customer/Material).I guess the sap would supply one screen for me to input the data of table 5.At this screen,the sap would ask me to select one table,such as table 5.When I select the table 5,the sap would go to the screen to let me input the data of table 5.But when I use the T-CODE VK31 or VK32 to maintain Condition tables's Record,I found it's total different from my guess:
    A-First,I can not found one place for me to open the table,such as table 5,to let me input the data?
    B-Second,For example,when I select the VK31->Discounts/Surcharges->By Customer/Material,the sap show the grid view at the right side.At the each line of the grid view,you need to select the Condition Type at the first field.And this make me confused very much.Why the sap need me to select one Condition Type but not the Condition table?To the normal logic,it ought not to select Condition table but not the Condition Type!
    Dear all,I'm a new one in sd.May be this is a very stupid question.But it did puzzle me for a long time.If any one can  explain this question in detail and let me understand the concept,I will appreciate him/her very much.Thank you.

    Hi,
    You said that you are using the T.codes VK31 or VK32.
    These transaction codes are used to enter condition records for standard condition types. As you can see a grid left side having all the standard condition types like price, discounts, taxes, frieghts.
    Pl check using T.code VK11 OR VK12 (change mode)
    Here you can enter the required condition type, in the intial screen. (like PR00, MWST, K004, K005 .....etc)
    After giving the condition type, press enter or click on Combinations icon on top of the screen. Then you can see all the condition tables which you maintained for that condition type. Like as you said table 118, table 5, table 6 and table 4.
    You can select any table and press enter, then you can go into the screen in which you have all the field cataglogues you maintained for that table. For example you selected combination of Customer/Material (table 5) then after you press enter then you can see customer field on top, and material fields.
    You can give all the required values and save the conditon record.
    Hope this is clear.
    REWARD IF HELPFUL.
    Regards,
    praveen

  • Question about servlet architecture

    Hello,
    I have a question about Web Application / servlet architecture and development, and haven't had any luck finding an answer so far. My plan must be either unusual, or wrong, or both, so I'm hoping the community here could point me in the right direction.
    I have quite a bit of background in OSGi, but very little in servlets. I know my architecture would work with something such as sever-side Equinox, but for the open source project I'm contemplating, I think that the more mainstream Tomcat/servler route would be better -- assuming it can be done. Here is a rather simplified scenario:
    There is a class, Manager. It could be a Java class that implements Runnable, or a non-HTTP servlet (GenericServlet?), but somehow it should be configured such that it runs as soon as Tomcat starts.
    When Manager runs, it instantiates its primary member variable: Hashtable msgHash; mshHash will map Strings (usernames) to ArrayList<String> (list of messages awaiting that user). Manager also has two primary public methods: addMsg() and getMsgs().
    The pseudocode for addMsg is:
    void addMsg(String username, String msg) {
    if username=="*" { for each msgList in msgHash { msgList.add(msg) } return;
    if username not in msgHash { msgHash.add(username, new ArrayList<String>) }
    msgHash[username].add(msg)
    And for getMsgs():
    String getMsgs(username) {
    String s = "";
    for each msg in msgHash[username] { s = s + msg; }
    return s;
    Once Manager has started, it starts two HTTP Servlets: Sender and Receiver, passing a reference back to itself as it creates the servlets.
    The HTML associated with Sender contains two text inputs (username and message) and a button (send). When the send button is pressed and data is POSTed to Sender, Sender takes it and calls Manager.addMsg(username.value, message.value);
    Receiver servlet is display only. It looks in the request for HTTP GET parameter "username". When the request comes in, Receiver calls Manager.getMsgs(username) and dumps the resulting string to the browser.
    In addition to starting servlets Sender and Receiver, the Manager object is also spawning other threads. For example, it might spawn a SystemResourceMonitor thread. This thread periodically wakes up, reads the available disk space and average CPU load, calls Manager.addMsg("*", diskAndLoadMsg), and goes back to sleep for a while.
    I've ignored the synchronization issues in this example, but during its lifecycle Manager should be idle until it has a task to do, using for example wait() and notify(). If ever addMsg() is called where the message string is "shutdown", Manager's main loop wakes up, and Manager shuts down the two servlets and any threads that it started. Manager itself may then quit, or remain resident, awaiting a command to turn things back on.
    Is any of this appropriate for servlets/Tomcat? Is there a way to do it as I outlined, or with minor tweaks? Or is this kind of application just not suited to servlets, and I should go with server-side Equinox OSGi?
    Thanks very much for any guidance!
    -Mike

    FrolfFla wrote:
    Hello,
    I have a question about Web Application / servlet architecture and development, and haven't had any luck finding an answer so far. My plan must be either unusual, or wrong, or both, so I'm hoping the community here could point me in the right direction.
    I have quite a bit of background in OSGi, but very little in servlets. I know my architecture would work with something such as sever-side Equinox, but for the open source project I'm contemplating, I think that the more mainstream Tomcat/servler route would be better -- assuming it can be done. Here is a rather simplified scenario:
    There is a class, Manager. It could be a Java class that implements Runnable, or a non-HTTP servlet (GenericServlet?), but somehow it should be configured such that it runs as soon as Tomcat starts.You can configure a servlet to be invoked as soon as Tomcat starts. Check the tomcat documentation for more information on that (the web.xml contains such servlets already though). From this servlet you can start your Manager.
    >
    When Manager runs, it instantiates its primary member variable: Hashtable msgHash; mshHash will map Strings (usernames) to ArrayList<String> (list of messages awaiting that user). Manager also has two primary public methods: addMsg() and getMsgs().
    The pseudocode for addMsg is:
    void addMsg(String username, String msg) {
    if username=="*" { for each msgList in msgHash { msgList.add(msg) } return;
    if username not in msgHash { msgHash.add(username, new ArrayList<String>) }
    msgHash[username].add(msg)
    And for getMsgs():
    String getMsgs(username) {
    String s = "";
    for each msg in msgHash[username] { s = s + msg; }
    return s;
    Once Manager has started, it starts two HTTP Servlets: Sender and Receiver, passing a reference back to itself as it creates the servlets. Not needed. You can simply create your two servlets and have them invoked through web calls, Tomcat is the only one that can manage servlets in any case. Servlets have a very short lifecycle - they stay in memory from the first time they are invoked, but the only time that they actually do something is when they are called through the webserver, generally as the result of somebody running the servlet through a webbrowser, either by navigating to it or by posting data to it from another webpage. The servlet call ends as soon as the request is completed.
    >
    The HTML associated with Sender contains two text inputs (username and message) and a button (send). When the send button is pressed and data is POSTed to Sender, Sender takes it and calls Manager.addMsg(username.value, message.value);
    Receiver servlet is display only. It looks in the request for HTTP GET parameter "username". When the request comes in, Receiver calls Manager.getMsgs(username) and dumps the resulting string to the browser.This states already that you are going to run the servlets through a browser. You run "Sender" by navigating to it in the browser. You run "Receiver" when you post your data to it. Manager has nothing to do with that.
    >
    In addition to starting servlets Sender and Receiver, the Manager object is also spawning other threads. For example, it might spawn a SystemResourceMonitor thread. This thread periodically wakes up, reads the available disk space and average CPU load, calls Manager.addMsg("*", diskAndLoadMsg), and goes back to sleep for a while.Since you want to periodically run the SystemResourceMonitor, it is better to use a Timer for that in stead of your own thread.
    >
    I've ignored the synchronization issues in this example, but during its lifecycle Manager should be idle until it has a task to do, using for example wait() and notify(). If ever addMsg() is called where the message string is "shutdown", Manager's main loop wakes up, and Manager shuts down the two servlets and any threads that it started. Manager itself may then quit, or remain resident, awaiting a command to turn things back on.
    Is any of this appropriate for servlets/Tomcat? Is there a way to do it as I outlined, or with minor tweaks? Or is this kind of application just not suited to servlets, and I should go with server-side Equinox OSGi?
    Thanks very much for any guidance!
    -MikeI don't see anything that cannot be done in a normal java web environment, as long as you are aware of how servlets operate.

  • Two questions about servlets

    Hi,
    I'd like to ask you some questons about servlets :
    1) do servlets need a particular JVM on the server. I mean RMI servers need to be started on the server side, while usual applets are loading into the client browser. Are servlet beeing loaded by the browser or do they require something specific on the server side?
    This is because I can only post files on my server, but can't execute java code
    2) can servlets access the server files ? This is because my applets can only load files within the codebase directory on the server. However, i'd like to be able to get something like File.lisFiles() on the server's content. With applets, I have a security problem
    Thanks a lot.
    vincent

    Hi,
    1) Servlets need to be run (deployed) on an application server (i.e. WebLogic, Websphere) which works in conjunction with the web server. When the web server (HTTP Server) receives a request for a servlet from a browser, it passes the request to the application server where the servlet is deployed on which handles the request and provides a response. The JVM will be included in the application server.
    2) Servlets do NOT run in the sandbox that applets run in and thus have complete access to file on the server. This is because the site running the servlets know exactly what code they're deploying on their server and thus have no security concerns.
    If you're site is running on an ISP's server, then you're likely out of luck unless they give you admin access to an application server that runs on their server which allows you to deploy servlets onto.
    makes sense?...
    vc

  • Another one question about how to download applet (not using external tool)

    Hi
    i write tool for downloading applet on card. I use apdu trace from NXP eclipse plugin as source of information and i read also about cap-file format in Java Card Virtual Machine specification. And i have questions about data transferred by LOAD command.
    As example - from apdu trace i see that transferred data are "C4820E33 DATA1 DATA2". Full length of transferred data is 0x2EE2.
    C4 - OK, this is "Load File Data Block" tag as specified in Global Platform
    820E33 - OK, this length of tag, =0x0E33
    DATA1 - sequence of cap-file components: Header.cap, Directory.cap, Import.cap, Applet.cap, Class.cap, Method.cap, StaticField.cap, ConstantPool.cap, RefLocation.cap. Length of DATA1 is 0x0E33, i.e. DATA1 = 'C4'-tag value.
    DATA2 - sequence of two cap-file components: Descriptor.cap and Debug.cap. These components are out of 'C4'-tag.
    the questions mentioned above... here they are:
    1. Global Platform does not define any data in LOAD command except 'E2' and 'C4' tag. Why DATA2 is transferred out of any tags?
    2. Whether the sequence of cap-file components is important? i.e. Can i load Header.cap, Directory.cap etc. in other order than i see in DATA1 field from apdu-trace?
    3. Debug.cap seems to be optional component. And what about Descriptor.cap component? Need i load it on card?

    666 wrote:
    1. Global Platform does not define any data in LOAD command except 'E2' and 'C4' tag. Why DATA2 is transferred out of any tags?Because the components are either optional or only required when communicating with a JCRE that has debugging capabilities. I assume you ran the project in JCOP Tools in debug mode against the simulator? If you did this against a real card it would fail as it does not have an instrumented JCRE capable of debugging code. You could try running the project as opposed to debugging to see the difference.
    2. Whether the sequence of cap-file components is important? i.e. Can i load Header.cap, Directory.cap etc. in other order than i see in DATA1 field from apdu-trace?Yes it is. It is defined in the JCVM specification available from the Oracle website.
    3. Debug.cap seems to be optional component. And what about Descriptor.cap component? Need i load it on card?No, it is optional and is not referenced by any other CAP file component.
    Cheers,
    Shane

  • One question about Selection screen

    Hi experts,
    I am writing a report, on the selection screen, I need to input the file path and then do the file upload.
    My question is about how to check the file path I put is correct or not? If it is incorrect, I want to get a message and the cursor still in the field and don't jump to the next page.
    How can I do like that?
    Any one has any suggestion, please help me.
    Thanks in advance.
    Regards,
    Chris Gu

    Hi Chris,
        do it this way: check my code after calling gui_upload what condition i am using.
    parameters:
      p_file type rlgrap-filename.          " File name
    *           AT SELECTION-SCREEN ON VALUE-REQUEST EVENT               
    at selection-screen on value-request for p_file.
      perform get_file_name.
    *                       AT SELECTION-SCREEN EVENT                    
    at selection-screen on p_file.
      perform validate_upload_file.
    *  Form  GET_FILE_NAME                                               
    form get_file_name.
      call function 'F4_FILENAME'
       exporting
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
         field_name          = ' '
       importing
         file_name           = p_file.
    endform.                               " GET_FILE_NAME
    *  Form  VALIDATE_UPLOAD_FILE                                        
    form validate_upload_file.
      data:
        lw_file  type string.              " File Path
      lw_file = p_file.
      call function 'GUI_UPLOAD'
        exporting
          filename                    = lw_file
          filetype                    = 'ASC'
          has_field_separator         = 'X'
          dat_mode                    = 'X'
        tables
          data_tab                    = t_final_data.
      IF sy-subrc ne 0 and t_final_data is initial. " here message if file path is wrong
        Message 'File not found' type 'E'.
      ELSEIF sy-subrc eq 0 and t_final_data is initial.
        Message 'File empty' type 'E'.
      ENDIF.                              
    endform.                               " VALIDATE_UPLOAD_FILE
    With luck,
    Pritam.
    Edited by: Pritam Ghosh on May 8, 2009 8:57 AM

  • One question about lcds2.5 link with java

    when i am creating a custom Message Service adapter,found a
    question with rewriting invoke() method.
    java class :
    package test;
    import flex.messaging.services.ServiceAdapter;
    import flex.messaging.services.MessageService;
    import flex.messaging.messages.Message;
    public class TestAdapter extends ServiceAdapter {
    public Object invoke(Message message) {
    MessageService msgService = (MessageService)service;
    msgService.pushMessageToClients(message, true);
    msgService.sendPushMessageFromPeer(message, true);
    return null;
    error:
    service can not resolved about MessageService msgService =
    (MessageService)service;
    please tell me a method :how to write this TestAdapter class.

    ths, i can success.
    but one error occur when i send message from java class to
    lcds2.5 service.
    i tranfer this IMessageUtil interface's setMessage method,set
    param as "test",but no value in mxml file's mx:Consumer .
    my message-config.xml is correct.
    message-config.xml:
    <adapter-definition id="fdschathandler" class="test"/>
    <destination id="fdschat">
    <properties>
    <network>
    <session-timeout>0</session-timeout>
    </network>
    <server>
    <max-cache-size>1000</max-cache-size>
    <message-time-to-live>0</message-time-to-live>
    <durable>false</durable>
    </server>
    </properties>
    <channels>
    <channel ref="my-rtmp"/>
    </channels>
    <adapter ref="fdschathandler"/>
    </destination>
    java class:
    package test;
    import flex.messaging.MessageBroker;
    import flex.messaging.MessageException;
    import flex.messaging.messages.AsyncMessage;
    import flex.messaging.messages.Message;
    import flex.messaging.services.MessageService;
    import flex.messaging.services.ServiceAdapter;
    public class MessageUtil extends ServiceAdapter implements
    IMessageUtil {
    public Object invoke(Message message) {
    try{
    MessageBroker broker = MessageBroker.getMessageBroker(null);
    MessageService msgService = (MessageService)
    broker.getService("message-service");
    msgService.pushMessageToClients(message, true);
    msgService.sendPushMessageFromPeer(message, true);
    return null;
    }catch(MessageException ff){
    System.out.println("fff:="+ff.getErrorMessage());
    catch(Exception e){
    e.printStackTrace();
    return message;
    public void setMessage(String mess) {
    try{
    AsyncMessage message=new AsyncMessage();
    message.setDestination("fdschat");
    message.setBody(mess);
    this.invoke(message);
    }catch(Exception e){
    e.printStackTrace();
    mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="consumer.subscribe()">
    <mx:Script>
    <![CDATA[
    import mx.messaging.events.MessageEvent;
    import mx.messaging.messages.AsyncMessage;
    import mx.messaging.messages.IMessage;
    private function send():void
    var message:AsyncMessage = new AsyncMessage();
    message.body = msg.text;
    producer.send(message);
    msg.text = "";
    private function messageHandler(message:MessageEvent):void
    var msg:AsyncMessage = AsyncMessage( message.message );
    log.text += msg.body + "\n";
    ]]>
    </mx:Script>
    <mx:Producer id="producer" destination="fdschat"/>
    <mx:Consumer id="consumer" destination="fdschat"
    message="messageHandler(event)"/>
    <mx:Panel title="Chat" width="100%" height="100%">
    <mx:TextArea id="log" width="100%" height="100%"/>
    <mx:ControlBar>
    <mx:TextInput id="msg" width="100%" enter="send()"/>
    <mx:Button label="Send" click="send()"/>
    </mx:ControlBar>
    </mx:Panel>
    </mx:Application>

  • One question about arch linux 2009.02 and ext4

    hi,
    i want to download newest arch linux version. i heard i can select file system type as ext4, that sounds cool, because i really want ext4. anyway i heard that you need grub2 to properly boot ext4 arch system. so is grub2 will be included in arch linux 09.02? because my root partition is going to be in ext4 file system. thanks for help

    syms wrote:
    skottish wrote:
    syms wrote:Thanks for help. i have one more question - how much ext4 seems faster than ext3? i mean do you feel that ext4 is faster than ext3 in most cases? thanks.
    I've never done any benchmarks, but I can tell you that file system checks are many, many times faster.
    I do have a warning though, and it can be confirmed by others in this forum: ext4 does not crash gracefully right now. If you're on an unstable system, crashing can cause the loss of at least configuration files. My workstation is rock solid, so I've never seen any issues. Another computer that I was working on was having crashes due to an older Intel card with the newer xorg, and configuration files were being killed all over the place.
    Thanks. another thing is that about application start up. for example for me firefox starts in 4 seconds, when i close ff and try to run it again, it opens in about 1 second. what it would with ext4 system? maybe it would launch in 2 seconds at first start?
    It's hard to guess like that, but it's bound to be the same or faster. You're not losing anything going ext4 and it is a faster filesystem in general.

  • One question about posting periods

    When creating or changing (T-CODE VL02N ) an outbound delivery, I select Edit -> Post goods issue on one of the overview screens.But the sap show the error message:"posting only possible in periods 2000/01 and 0000/00 in company code HJW1".So my question was how to config to let the posting possible in other periods,such as 2007/09?Thank you.

    hi gg,
    follow the steps, if u are working on IDES client then follow this
    1. In spro-> enterprises strusture-> remove all plants assigned to your company code
    2. tcode: omsy> enter fiscal year-2007 & period:09>save
    3.Again In spro-> enterprises strusture-> assign all plants to your company code
    regards,
    Arunprasad

  • General Question about Servlet !!!

    Hello my name is Raj,
    My problem as a beginner is to compile a servlet but not servlet alone becoz theres a several class imported in this servlet.
    Should I compile every .java and then the servlet....coz when I compile the servlet with a normal jdk (latest one) it gives error of importing class...
    Well at first I have an error of path where the servlet.jar not included..but I managed to work it out...
    what should I do...
    regards,
    raj aryan maholtra

    hi raj,
    your assumption is right, you need to compile Some.java first & then compile MyServlet.java. Ensure that Some.class is in a classpath that can be found by MyServlet
    Regards,
    sathish
    Well Miss v sreedevi ,
    I did the classpath and still it doesnt work compile
    coz of the importing class...
    My .java files looks like this in the folder under the
    tomcat-webapps-servlet
    -MyServlet.java
    -Some.java
    And I import the Some.java in my MyServlet.java
    stuff.
    Well should I compile the Some.java stuff first and
    then the MyServlet.java....
    regards,
    raj

  • One question about the MouseListener and Copy function.

    Hola,
    I want my program to activate a method when the user press left mouse button, but in other window, in other program. I can make it with the Listener, but only when the window of my java program is active. I want to my program to listen for pressing a mouse in other window. And my second question is that I want to make the function like copy - the same, if I am in other window. For example if I have marked one fail to generate copy to the clipboard. Is that possible.
    Thanks.

    Tersit wrote:
    I want my program to activate a method when the user press left mouse button, but in other window, in other program. I can make it with the Listener, but only when the window of my java program is active. I want to my program to listen for pressing a mouse in other window. Your best bet to listen for activities in other non-Java programs is to use a programming language that gets closer to the OS such as C/C++.
    And my second question is that I want to make the function like copy - the same, if I am in other window. For example if I have marked one fail to generate copy to the clipboard. Is that possible.I'm not clear on this. What do you mean by "marked one fail"?

  • One question about ROS ()

    HI,my experts:
       I work in SRM7.0 .I have 2 clients  in my system .Client 100 -EBP ;Client 200-ROS (SUS). The both clients are on the same server .
       Now ,1、I have create new ORG. in ROS Client ,and create user who is also in the EBP client.
                 2、I change the role "SAP_BBP_STAL_STRAT_PURCHASER"  ,"ROS_PRESCREEN" and sap-client  200;
                 3、spro --Define External Web Services  
      Now ,the question is :after submiting  the questionnaire by the vendor  ,the static purchaser can not find none data by "Pre-select Supplier" under the "Central Functions".
        Some useful link about ROS
      BR !
    Alex!

    Hi,khan:
      Thanks for your reply .
        I want to use the link .But I can find nothing after clicking the button .It should be the list of registered vedor in the SUS system ,isn't it?
        thanks !
       BR!
      Alex!

  • Question about servlet.xml setting

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Example Server Configuration File -->
    <Server port="8025" shutdown="TEARSDOWN">
    <!-- Comment these entries out to disable JMX MBeans support used for the
    administration web application -->
    <Listener className="org.apache.catalina.core.AprLifecycleListener"/>
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
    <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
    <!-- 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 auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
    <Resource name="jdbc/mp" auth="Container"
    type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
    url="jdbc:oracle:thin:@172.25.43.224:1521:mp"
    username="mpuser" password="mp" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    <Resource name="jdbc/passport" auth="Container"
    type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://218.1.14.134:3306/xmnext_passport?autoReconnect=true"
    username="zhouzhijun" password="zhouzhijun*1234567" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    </GlobalNamingResources>
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Catalina">
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector URIEncoding="utf-8" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8084" redirectPort="8443"/>
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector enableLookups="false" port="8009" protocol="AJP/1.3" redirectPort="8443"/>
    <!-- Define the top level container in our container hierarchy -->
    <Engine defaultHost="localhost" name="Catalina">
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" />
    <!-- a Realm is setUp for JOSSO -->
    <Realm className="org.josso.tc55.agent.jaas.CatalinaJAASRealm"
    appName="app1"
    userClassNames="org.josso.gateway.identity.service.BaseUserImpl"
    roleClassNames="org.josso.gateway.identity.service.BaseRoleImpl"
    debug="1" /> // I am not sure realm can set twice like this?
    <Host appBase="webapps" autoDeploy="false" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
    <!-- a Valve for JOSSO -->
    <Valve className="org.josso.tc55.agent.SSOAgentValve" debug="9" /> when I set this valve, the tomcat seems running abnormal...
    </Host>
    </Engine>
    </Service>
    </Server>
    Could you help me to check this file setting? Just check this "servlet.xml". Thank you very much!

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Example Server Configuration File -->
    <Server port="8025" shutdown="TEARSDOWN">
    <!-- Comment these entries out to disable JMX MBeans support used for the
    administration web application -->
    <Listener className="org.apache.catalina.core.AprLifecycleListener"/>
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
    <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
    <!-- 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 auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
    <Resource name="jdbc/mp" auth="Container"
    type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
    url="jdbc:oracle:thin:@172.25.43.224:1521:mp"
    username="mpuser" password="mp" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    <Resource name="jdbc/passport" auth="Container"
    type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://218.1.14.134:3306/xmnext_passport?autoReconnect=true"
    username="zhouzhijun" password="zhouzhijun*1234567" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    </GlobalNamingResources>
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Catalina">
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector URIEncoding="utf-8" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8084" redirectPort="8443"/>
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector enableLookups="false" port="8009" protocol="AJP/1.3" redirectPort="8443"/>
    <!-- Define the top level container in our container hierarchy -->
    <Engine defaultHost="localhost" name="Catalina">
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" />
    <!-- a Realm is setUp for JOSSO -->
    <Realm className="org.josso.tc55.agent.jaas.CatalinaJAASRealm"
    appName="app1"
    userClassNames="org.josso.gateway.identity.service.BaseUserImpl"
    roleClassNames="org.josso.gateway.identity.service.BaseRoleImpl"
    debug="1" /> // I am not sure realm can set twice like this?
    <Host appBase="webapps" autoDeploy="false" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
    <!-- a Valve for JOSSO -->
    <Valve className="org.josso.tc55.agent.SSOAgentValve" debug="9" /> when I set this valve, the tomcat seems running abnormal...
    </Host>
    </Engine>
    </Service>
    </Server>
    Could you help me to check this file setting? Just check this "servlet.xml". Thank you very much!

  • HI,I want to ask one question about SRP 521W

       I have one SRP 521W router, It is slow when I configure it,And the memory  utilized very high(94%),but the CPU is nice.
       I was upgraded the last release firmware,The memory utilization keep in 78%,But I am still feeling it slowly when I configured it,How can I fix or correct configure it,Can to reduce the memory utilization.    I have one SRP 521W router, It is slow when I configure it,And the memory  utilized very high(94%),but the CPU is nice.
       I was upgraded the last release firmware,The memory utilization keep in 78%,But I am still feeling it slowly when I configured it,How can I fix or correct configure it,Can to reduce the memory utilization.

    Dear Shipeng,
    Thank you for reaching Small Business Support Community.
    Since the firmware upgrade did not fix the problem, you can try disabling some by default enabled services that you may not need; things like:
    Administration > Remote Management > SNMP and Local TFTP.
    Network Setup > UPnP
    Administration > Log
    Network Setup > Firewall > Firewall Filter
    If no Internet Protocol Television (IPTV), Network Setup > IGMP
    You may also check on the Internet Access Control entries to get rid of any not needed entries.  Please check these out and let me know if there is any further assistance I can help you with.
    Kind regards,
    Jeffrey Rodriguez S. .:|:.:|:.
    Cisco Customer Support Engineer
    *Please rate the Post so other will know when an answer has been found.

  • Question about servlet in a package

    hello
    i use tomcat4.0,and write a simple servlet "Hello.java",put it in "C:\jakarta-tomcat-4.0\webapps\ee\WEB-INF\classes",i input "http://127.0.0.1:8080/ee/servlet/Hello",the code works well,but after i add a package declaration "package hi;" in front of my servlet,and put it in "C:\jakarta-tomcat-4.0\webapps\ee\WEB-INF\classes\hi\",wheather i input "http://127.0.0.1:8080/ee/hi/servlet/Hello" or "http://127.0.0.1:8080/ee/servlet/hi/Hello",both of them don't work,why?and how can i call a servlet that is in a package from the browser? thanks!
    my code:
    package hi;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Hello extends HttpServlet{
         public void service(HttpServletRequest req,
              HttpServletResponse resp)
              throws IOException,
                   ServletException{
              resp.setContentType("text/html");
              PrintWriter out=new PrintWriter(resp.getOutputStream());
              out.print("<html>");
              out.print("<body>");
              out.print("hello world!");
              out.print("</body>");
              out.print("</html>");
              out.close();

    Hi,
    Open your ee/web-inf/web.xml file and add these lines.
    <servlet>
    <servlet-name>
    Hello
    </servlet-name>
    <servlet-class>
    hi.Hello
    </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>
    Hello
    </servlet-name>
    <url-pattern>
    /Hello
    </url-pattern>
    </servlet-mapping>
    Start the tomcat and give the URL,
    http://127.0.0.1:8080/ee/servlet/Hello
    Hope this helps.
    If you don't have a web.xml file there, you can add these lines in your Tomcat\conf\web.xml file.
    Sudha

Maybe you are looking for

  • How to get remote ejb client working with Weblogic 8.1?

    I have Weblogic 8.1 running on a WinXP box behind my firewall. Port 7001 is open to WL and remote browsers can access the console. I have a client machine running WinXP on a different network that is remote to the WL server. It can ping the WL server

  • There Is No Picture On Channel 477 & 466 Has A Bad Feed

    Channel 477 soy latino tv which was mexicanal has no image at all of the programs that should be there and it is a channel that is not off the air. Right now there are colored bars from the left side to the right side of the channel where the colors

  • Using Xcelsius for VC

    Hi All, I am new to Xcelsius. we are using VC (visual composer) in our project, where we didn't find file "Upload UI control". when raised a thread in VC forum and contacted VC profiessional they suggested me to use Xcelsius for developing my own Use

  • Import events from another iPhoto library?

    I recently went on vacation, and took my laptop with. During the trip I downloaded the photos from our camera's SD cards, but did not delete the photos, so we had a backup on the laptop and on the cameras. The events came in with no issues to the lap

  • Desktop on external display not showing correctly

    hi, we have just purchased a macbook and the required leads to connect it to the TV (sony Bravia) this has worked correctly(the macbook detects the TV) and we are able to see the mac workspace on the tv both in mirror mode and extend desktop mode. Ho