How to configure implementation class in the deployment descriptor?

i'm tring to add <listener> element to my web application. the web server is Apache plus Tomcat(3.2.3), and i add the following line to WEB.XML of Tomcat:
<listener>
<listener-class>
com.listeners.MySessionListener
</listener-class>
</listener>
<listener>
<listener-class>
com.listeners.ServletContextAttribListener
</listener-class>
</listener>
<listener>
<listener-class>
com.listeners.MySessionListener
</listener-class>
</listener>
(according to the direction of http://forum.java.sun.com/thread.jsp?forum=45&thread=150088. i have read the article in detail)
but nothing happened. when i make changes in the jsp page, nothing was noted in the the tomcat output window. i've got the MySessionListener.class and put it in the proper folder.
where should i add the <listener> element? can HttpSessionBindingListener or HttpSessionListener work without adding the elements to web application configuration?
thanks for your help and previous discussion!
best regards.

Hi
The Listener features are part of Servlet specification 2.3 which is supported by Tomcat 4.0 beta 7. Tomcat 3.2.3 supports Servlet specification 2.2.
To use listeners use Tomcat 4.0 beta version 7.
Good Luck!
Eshwar Rao
Developer Technical Support
Sun microsystems inc
http://www.sun.com/developers/support

Similar Messages

  • Is it mandatory to configure a primarykey in the deployment descriptor.

    Is it mandatory to configure a primarykey in the deployment descriptor.
    Not all the tables in the database contains a primarykey.
    Suppose i have created an entity bean which represents a table that do not have a primary key.
    Now my question is what can i put as a return type of 'ejbCreate' method in the above created entity bean & how do i configure the primarykey information in DeploymentDescriptor?

    Hello ,
    I'm afraid not , the program for the transaction is admitting only Sapscript format , even the BADI
    QG_INSP_RESULT_PRINT allow to switch to a SAPscript form
    Regards

  • How to configure/implement stateful r3 connection in Arfc2 model?

    Hi,
    After migration to Arfc2 model rfc function executed in different r/3 session.
    How to configure/implement stateful behavior as arfc1 for using abap enqueue, transaction, shared between fm global variables from function group?
    Wbr, Ivan

    Hi,
    thanks for your reply, but I'm afraid your post does not answer my question.
    I don't have an issue concerning the state of the Web Dynpro Application - my problem is, that if I use ARFC2 (and not its predecessor ARFC1) to call an ABAP backend, every call to a function in this backend results in an independent session and this way doesn't share the same space in memory.
    Indeed, you need less RFC connections this way, and this is an important advantage, but in some cases you have to redesign and rewrite substantial parts of an application if it was designed under aspects of ARFC1.
    And I'm now looking for a way to have ARFC1-like behaviour with ARFC2.
    Greets
    Bernd

  • How to configure portal server with the Backend Oracle database

    Hi Portal Experts,
    we are planning to install Netweaver 04s sp stack 9 full java edition with Oracle 8i on windows platform.
    we have the installation docs of portal but we didn't have any idea about how to configure Portal server with the Backend Oracle database at the time of installation or after ost installation of portal.can anyone provide the documentation about this or guide me how to achieve this.
    PLZ share ur views---your help would be highly appreciable.
    Regds
    Phani.

    HI
    if you r working in Sap enterprise portal use for connection url
    jdbc:sap:sqlserver://ilsql01.tlv.sap.corp:1433;DatabaseName=Northwind
    ilsql01.tlv.sap.corp:1433 this is your portal url with port number
    Northwind is your database name.
    for dirver you need to give
    com.sap.portals.jdbc.sqlserver.SQLServerDriver
    in case if you r working on other than sap say windows along with oracle try to use
    Connection URL as jdbc:oracle:<drivertype>:@<database>
    Driver name as oracle.jdbc.driver.OracleDriver
    ex jdbc:oracle:thick:@localhost:3036:mydb
    Oracle implements two types of JDBC drivers:
    Thick JDBC drivers built on top of the C-based Net8 client, as well as a Thin (Pure Java) JDBC driver to support downloadable applets. Oracle JDBC drivers are used to create JDBC applications to communicate with Oracle databases.
    Oracle extensions to JDBC include the following features:
    Data access and manipulation
    LOB access and manipulation
    Oracle object type mapping
    Object reference access and manipulation
    Array access and manipulation
    Application performance enhancement
    *************if the information is helpful to you please reward points************

  • How to configure which changes in the document triggers Event Handler again

    Hi Experts
    Due to some reason after creation of Purchase Order, the event handler is not created in EM system. Now is there any way to resend this PO to EM? For example, is it possible to trigger Event Handler by changing some field in PO? If it is possible that way, Could you guide how to configure which changes in the document (PO/SO/Delivery/Shipment) can trigger Event Handler in EM system?
    Thanks
    Ravi

    Hello Ravi,
    if you change the PO Header/Item the respective EH  should be created if the Relevance condition is fullfilled.
    I'm not sure if it also works in the case that you change the PO Header and EH for PO Items will be created.
    Best regards,
    Steffen

  • How to configure GB P60s in the SAP Portal?

    How to configure GB P60s in the SAP Portal, so that they can be viewed and printed/reprinted by the employee themeselves? Will HMRC accept P60s printed on any stationeries? Also, Client does not want employee address to be available in the address section, but just the office location.

    Hello
    Please refer SAP note 1542870 -Electronic P60 ,where  HMRC have given employers the option of providing an electronic P60 to their employees.
    Please let us know incase you know any further information.
    Thanks and Kind Regards
    Ramana

  • How do I read  the Deployment descriptor throw my application?

    Hi
    There is a need for me to read attributes in the Deployment descriptor through my application.
    How may I do that? I don't want to use a Parsa to read the XML file and get the attributes..
    Is there any other way?
    thanks
    Sanesh

    All attributes or just the context parameters?
    For example:
    <context-param>
    <param-name>dbDriverName</param-name>
    <param-value>org.gjt.mm.mysql.Driver</param-value>
    <description>The database driver being used</description>
    </context-param>
    Could be read from your servlet with:
    String dbDriverName = servletContext.getInitParameter("dbDriverName");
    But if you'd like to get out the servlet mappings or anything else I guess you have to read and parse the file. There was a method called getServletNames() in the servlet context but that's deprecated now.

  • How do I get class in the javax.* package

    How do I get class in the javax.* package

    If possible don't mess with the javax Package
    I mean I could not get the advantage of getting a class under javax Package
    But for information
    make a folder named javax
    Make your class in that folder with starting code as
    package javax;and then compile it and make a jar file and add it to classpath
    It is very simple
    But I think you should not mess with it
    Is there any special requirement?
    Bye for now
    CSJakharia

  • Error while deploying an application on weblogic 12c. An error occurred while reading the deployment descriptor. The error was: Error processing annotations

    Anyone please help me solve this error. I am trying to deploy an application on weblogic 12c  i am getting an error but the same application gets successfully deployed on weblogic 11g. The error is
    An error occurred during activation of changes, please see the log for details.
    Exception preparing module: EJBModule(gsCallbackAdapterLGTX-ejb.jar) An error occurred while reading the deployment descriptor. The error was: Error processing annotations: .
    [EJB:015001]Unable to link class com.aep.gridsmart.adapters.lgtx.buslogic.deliver.xform.AdapterTransfomerDeliverSession in Jar /appl/oracle/middleware/WLS/12.1.1.0/user_projects/domains/Gridsmart/servers/ManagedServer1/tmp/_WL_user/gsCallbackAdapterLGTX/34vz4d/gsCallbackAdapterLGTX-ejb.jar : java.lang.NoClassDefFoundError: com/aep/gridsmart/adapter/deliver/CommonAdapterDeliverBean

    Cotton please let me know what is the mistake i am
    doingThe following path does not exist.
    C:\Sun\AppServer7\domains\domain1\server1\
    applications\j2ee-modules\task_1\WEB-INF\web.xml

  • Persistence provider declared in the deployment descriptor is not supported

    Hi,
    When I try to deploy an entity bean (using JDev 3.2 and Oracle 8.1.7) I got this message:
    "Persistence provider declared in the deployment descriptor is not supported".
    Should I change something in the "..._oracle.xml" file generated by JDev?
    Anyway the xlm part, regarding the persistence provider, is:
    <persistence-provider>
    <description> specifies a type of persistence manager </description>
    <persistence-name>BC4J</persistence-name>
    <persistence-deployer> bcdom.DomejbViewDeployer</persistence-deployer>
    </persistence-provider>
    Anybody knows what is this about?
    Thanks,
    Gabi Rosu

    Hi,
    I've already deployed the CMPRuntime library, and I followed the cmpdemo demo step by step and this xml file is the result of the Jdev wizard. But I still got the same error message.
    I even edit the ..._oracle.xml file, changing the persistance provider into "oracle.aurora.ejb.persistence.ocmp.OcmpEntityDeployer", the way is in the online documentation, but it keeps saying that this class (OcmpEntityDeployer) is not found.
    So, what should I do?
    Thanks in advance,
    Gabi

  • Ejb accessing the deployment descriptor

    My ejb needs to be able to access the deployment descriptor to retrieve some user information needed to connect to a web service. What is the best way to do this? I know servletts can do this, and if necessary, I could have my servlet retrieve the info and pass it to the bean, but I was hoping to avoid this.
    Thanks
    Matt

    Well, sure I think that is easy. In your <entity> or <session> deployment descriptor you can have:
    <env-entry>
    <env-entry-name>WebServiceLogins</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>su, dan, bob, steve, richard, suzie, carla</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>WebServicePasswords</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>drs100, vfdds2, ajk14, pass411, richard23, q4lty, uo738ww1</env-entry-value>
    </env-entry>
    Then in your intial-context in your session or entity ejb.....
    InitialContext ic = new InitialContext();
    String logins = (String) ic.lookup("java:comp/env/WebServiceLogins");
    String passwords = (String) ic.lookup("java:comp/env/WebServicePasswords");

  • The deployment descriptor Error in EAR DC

    Hi,
    I am getting following build error in my EAR DC :-
    "The deployment descriptor of the module '<vendor>.com~repcharejb.jar' cannot be loaded."
    Other details : -
    NWDS = CE 7.1 SP03
    Java version selected while creating EJB and EAR DCs = java 1.4
    List of DCs
    1. External Library DC containing JARs with compilation public part
    2. EJB DC which is using above External Library DC (just one stateless session bean, no DTOs, no entity beans)
    3. EAR DC for EJB DC
    I am not able to figure out what is going wrong here.
    Please help.
    Thanks and regards,
    Amey

    I created EAR DC with java 5 version and added EJB project as referenced project.
    And that worked!

  • How to configure "document class"

    Dear all,
    In Change management function, we can add document (doc/xls/ppt/txt.. etc) in business transaction.  And, in property of the document, there is a "Document Class" items, which is usually "Document for business transaction". 
    Does anyone know how to configure this item?  Please help.  Thanks.

    No, you need to follow the rules and put the jar in the WEB-INF/lib folder.

  • How to assign a class to the material through ABAP code

    Hi,
    I am working on a transaction in ABAP which takes material name, material description and a class from the user. Now, after this much input I create the material, its configuration profile through the ABAP code. For this I know I have to make relevant entries in tables MARA, MAKT, CUCO.. and also check for the existence of the class in the table KLAH.
    Now the point where I am stuck is that I am not able to get how to assign the class to the material through the code. I am able to get the internal class id from the table KLAH but I am not able to figure how the internal material number is being generated in the table INOB and i need this number as well as the internal class id number to insert a record in the table KSSK to show proper assignment.
    Can anyone please suggest me some solutions?
    Thanks....

    Hi,
    I tried using BAPI_OBJCL_CREATE. In order to understand it functioning better I created a material and class (of type 300) through transactions MM01 and cl01 respectively. Then i  created a report and called the FM BAPI_OBJCL_CREATE, gave the material name as the material above, table as MARA, class as the one i created above and class type 300. I even analysed the message of the table return (return-message) after executing the report. The messahe said assignment done. But when I checked mnaually in cl20n there was no assignment done to the required material. There was also no entry for the required material in the table INOB which I need.
    Can anyoene tell me that where am i going wrong? Please do help.

  • How to add a project to the deployment components under deployment server

    Hi,
    When I run one of my projects in JSC, I got following error message:
    "application NeuronBank is already deployed on other targets. Please use create-application-ref command to create reference to the specified target; requested operation cannot be completed."
    So I checked the Deployed Components under Deployment Server, and my project is not listed there. I think that this might cause my problem. But I have no idea why this can happen? Can I add my project into this list and How?
    Thanks,

    Check the following threads
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=56901
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=64307

Maybe you are looking for

  • PL/SQL Object Type - Java oracle.jbo.domain

    PL/SQL Object Type <-> Java oracle.jbo.domain can anybody help me, getting my domains to work? Following scenario: in pl/sql we have an object type called MULTI_LANGUAGE. This type is used for storing multilingual texts as nested table in one(!) colu

  • Cfldap to get 2 level of subordinates list from active directory

    <CFLDAP SERVER="ldap.com" PORT="333" START="O=COM,C=AN" SCOPE="SUBTREE" NAME="qryLevel1" ACTION="QUERY" ATTRIBUTES="cn, uid, alias" FILTER="(&(manager=cn=TestName,ou=employee,o=COM,c=an)(objectclass=olPerson))" MAXROWS="999999" TIMEOUT="90000"> By us

  • Cp7 - can't edit audio

    Hi I have recently upgraded to Cp7 (running version 7.0.0.118) and when I try to add audio or edit audio the audio box doesn't appear but Cp is locked as if it is the active window and my only option is to use task manager to close Cp7.  From what I

  • What is the command to convert abc.pll to abc.txt in forms 10g

    Dear All, I want to convert all my .pll files into .txt. Is there any command to convert abc.pll to abc.txt in forms 10g. Any Help Appreciated..

  • Convert Fireworks *.png to Dreamwever file ??

    I have a fireworks *.png image which I would like to export into Dreamweaver MX. The fireworks artwork was provided by the designer to use in a Dreamweaver based website. This *.png file containes menues, images with their respective placeholders, te