READLLY NEED HELP!!! HttpSessionListener in Tomcat 4.1.12

Hello Java expert around the world:
Is Tomcat 4.1.12 support HttpSessionListener?
I have try it in this version of tomcat, but my sessionCreated() and sessionDestroyed() never been called.
(note that i configure the web.xml correctly like this:
<listener>
<listener-class>myListener</listener>
</listener>
but, my listener still fail. why???
If tomcat 4.1.12 does not support, pls provide the version of tomcat that do support.PLS.

public interface HttpSessionListener extends java.util.EventListener{
public void sessionCreated( HttpSessionevent e ){}
public void sessionDestroyed( HttpSessionEvent e ){}
<<Java servlet Specification 2.3, pg 230>>
if you want to implement this listener into ur servlet, do the following:
public myListener implements HttpSessionListener{
public void sessionCreated( HttpSessionEvent e ){
//implementation of event
public void sessionDestroyed( HttpSessionEvent e ){
//implementation of event
Of course, to use the listener in ur application u need to configure the web.xml in this way:
<web-app>
<listener>
<listener-class>myListener</listener-class>
</listener>
</web-app>

Similar Messages

  • Need help with httpd/tomcat/jsr223/php

    Hello,
    I�m new to tomcat, but have been working with httpd for years. (now I find out how different the two are)
    I�m having some problems getting php to play nicely with tomcat. Here�s my configuration:
    RHEL4 2.6.9-34.0.2.ELsmp
    apache-tomcat-5.5.17
    httpd-2.0.55 (with mod_jk)
    mysql 5.0.21
    jsr223
    primary tomcat application trying to get working: nutch-0.7.2
    what ends up eventually happening (after struggling to get jsp and php working together) is my /usr/local/apache/logs/mod_jk.log gets filled with stuff like this up to 2gb, at which point it brings apache to it�s knee�s until I clear the file. I�m not concerned about this, but I figured the log file might be helpful
    [Fri Jul 21 13:15:19 2006] [4016:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/bannerads/adlog.php' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/bannerads/adlog.php' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/images/employment1.gif' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/images/employment1.gif' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/daily/1997/01/06/sports/ap06sd.ap' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/daily/1997/01/06/sports/ap06sd.ap' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    stepping back, I added this to httpd.conf to get apache-tomcat working:
    httpd.conf:
    # Mod_jk settings
    # Load mod_jk module
    LoadModule jk_module modules/mod_jk.so
    # Where to find workers.properties
    JkWorkersFile conf/workers.properties
    # Where to put jk logs
    JkLogFile logs/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel debug
    # Select the log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # JkOptions indicate to send SSL KEY SIZE,
    JkOptions ForwardKeySize ForwardURICompat -ForwardDirectories
    # JkRequestLogFormat set the request format
    JkRequestLogFormat "%w %V %T"
    # Send JSPs for context /jsp-examples to worker named default
    JkMount /jsp-examples/*.jsp default
    # Send servlets-examples to worker named default
    JkMount /servlets-examples/* default
    # Send search2 to worker named default
    JkMount /ROOT/* default
    JkMount /*/servlet/* default
    JkMount /*.jsp default
    to get php working I installed jsr223 and added this to my web.xml file
    <servlet>
    <servlet-name>JSR223Script</servlet-name>
    <servlet-class>com.sun.script.http.ScriptServlet</servlet-class>
    <init-param>
    <param-name>script-blocks</param-name>
    <param-value>js,groovy</param-value>
    </init-param>
    </servlet>
    and then this under the servlet-mapping section. When I add this, php pages will show correctly, but my nutch search.jsp page just comes up as a blank page. My / jsp-examples/ work however.
    <servlet-mapping>
    <servlet-name>JSR223Script</servlet-name>
    <url-pattern>*.php</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JSR223Script</servlet-name>
    <url-pattern>*.js</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JSR223Script</servlet-name>
    <url-pattern>*.groovy</url-pattern>
    </servlet-mapping>
    When I remove the 3 server mappings, the nutch jsp pages work fine, but the php pages don�t
    Any help would be greatly appreciated! Thanks

    My suggestion would be to post to the correct forum. This forum is dedicated to discussions regarding Java Web Start, and although most people where would be able to help, these kind of posts are considered a little rude.
    The best place to start searching is at the Apache Project website - http://jakarta.apache.org/.

  • Need help with tricky Tomcat 5.5 .war deployment

    As an example, let's say I have a .war called myWar.war.
    I place it in the webapps directory, and when I start tomcat, it auto-deploys it.
    I can access an index.html file residing in the html folder via this link
    http://mySite.com/myWar/html/index.htmlNow, what happens if I want to use a nested path? Like myWar/myFolder.
    I would access it via http://mySite.com/myWar/myFolder/html/index.htmlObviously, I cannot name my war file to myWar/myFolder.war
    Also, keep in mind that with Tomcat 5.5 you cannot use the context "path" element, as it gets ignored unless it is in the server.xml file
    The only solution I have seen requires you to drop the war file into a different folder, thus losing the ability to auto-deploy the war. The steps to do this are listed below:
    - create a context.xml file named myWar#myFolder.xml and place it in the conf/Catalina/localhost directory
    - inside that file, point the docBase to a war file that is outside of the webapps directory.
    Is there a better solution?

    Also it doesn't work corrcetly if I add a context entry in the server.xml file and leave myWar.war in the webapps directory
    <Context path="/myWar/myFolder" docBase="myWarLocatedInWebapps" debug="5" />This is because it deploys twice. Once as myWarLocatedInWebapps and once as myWar/myFolder. And I will end up with 2 different conf\catalina\localhost context.xml files. One called myWar.xml and one called myWar/myFolder.xml

  • Need help troubleshooting slow Tomcat

    I have a servlet that takes a keyword and passes it to a second servlet, who searches a database.
    Everything is working fine on the development server. It takes a few seconds to search the database, but that is acceptable.
    I have moved everything to the production server, and there, it takes minutes to do the same search. I've set the virtual memory to be the same as the dev server (3024 mb) but that is not being used anyway.
    If I start a search and then click stop, or even exit my browser (I'm thinking that should kill my request, is that right?), Tomcat continues to occupy the cpu for minutes (I'm guessing 3-4).
    I don't know what Tomcat is doing, or how to find out. Can somebody offer a suggestion for me?
    Dev server:
    Xeon 1.7 GHz
    1,024 Mb RAM
    Windows2000
    Tomcat 4.1.24
    Prod server:
    PII 399 MHz
    1, 024 Mb RAM
    WindowsXP
    Tomcat 4.1.27 as a service

    Gotta use a profiler like JProbe or OptimizeIt to find
    out, plus a packet sniffer to monitor the network
    traffic.Uh. A profiler?
    After a little bit of searching, I see that there are a few open source profilers available. Any input on them? Cougaar, JMemProf, JAMon... are they all pretty much the same?

  • Error in deploying my spring web app, really need help?!

    I am using eclipe 3.3.0 and tomcat 5.5.23, spring 2.0.6
    And I get this error while deploying.
    Can anyone tell me where it is comming from and what i should do to fix it?
    If you need any more info please ask that too, I really need help..
    I have browsed all over the internet, but found nothing really helpful..
    In my browser I get a Http status 500 error:
    exception
    javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.NoClassDefFoundError: javax/servlet/jsp/JspFactory
         org.apache.jasper.servlet.JspServlet.init(JspServlet.java:100)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         java.lang.Thread.run(Unknown Source)
    And this is what I see in the console:
    10-sep-2007 14:16:11 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_12\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jre1.6.0_02\bin\client;C:\Program Files\Java\jre1.6.0_02\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\maven\maven-2.0.7\bin;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\QuickTime\QTSystem\;C:\Java\SDK\bin;C:\maven\maven-2.0.7\bin;C:\apache-ant-1.7.0\bin;C:\spring-framework-2.0.6
    10-sep-2007 14:16:11 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8090
    10-sep-2007 14:16:11 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 4312 ms
    10-sep-2007 14:16:12 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    10-sep-2007 14:16:12 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
    10-sep-2007 14:16:12 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig).
    log4j:WARN Please initialize the log4j system properly.
    10-sep-2007 14:16:14 org.apache.commons.modeler.Registry registerComponent
    SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/SpringBikeApp,J2EEApplication=none,J2EEServer=none
    10-sep-2007 14:16:14 org.apache.catalina.core.ApplicationContext log
    SEVERE: StandardWrapper.Throwable
    java.lang.NoClassDefFoundError: javax/servlet/jsp/JspFactory
         at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:100)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    10-sep-2007 14:16:14 org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /SCWCD threw load() exception
    java.lang.NoClassDefFoundError: javax/servlet/jsp/JspFactory
         at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:100)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    10-sep-2007 14:16:14 org.apache.commons.modeler.Registry registerComponent
    SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/SCWCD,J2EEApplication=none,J2EEServer=none
    10-sep-2007 14:16:14 org.apache.catalina.core.ApplicationContext log
    SEVERE: StandardWrapper.Throwable
    java.lang.NoClassDefFoundError: javax/servlet/jsp/JspFactory
         at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:100)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    10-sep-2007 14:16:14 org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet threw load() exception
    java.lang.NoClassDefFoundError: javax/servlet/jsp/JspFactory
         at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:100)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    10-sep-2007 14:16:14 org.apache.commons.modeler.Registry registerComponent
    SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none
    10-sep-2007 14:16:14 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8090
    10-sep-2007 14:16:15 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    10-sep-2007 14:16:15 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/187 config=null
    10-sep-2007 14:16:15 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    10-sep-2007 14:16:15 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3578 ms
    Many Thanks in advance for any help!!
    Grz Barbera

    hi istvan,
    we are also migrating from websphere to netweaver.
    But in spring framework we r facing problems.
    We hav spring-beans.jar file in lib dir of Web Application. But When we are creating BeanFactory from xml as,
    BeanFactory beanFactory = new ClassPathXmlApplicationContext ("client-config.xml");
    clent-config.xml file contains :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
         <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
              <property name="location">
                   <value>conf/service-client/client.properties</value>
              </property>
         </bean></beans>
    But code is giving exception: ClassNotFoundException -org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.
    Wat is the problem ?
    Kindly help.
    We are also using JAAS for authentication.We are refering above code from our LoginModules login() method.
    Regards,
    sagar.

  • Need help with a project

    Hi,
    I'm a final year engineering student doing my project on cloud computing. Our project is a web application developed which concerns the issue of cloud security.Our lecturers asked us to put it on the cloud instead of showing it as a web application. So we
    are trying the trial version of Windows Azure. I need help in putting my project on to the cloud. Please help regarding this as soon as possible... 
    We are using Apache tomcat, JDK 1.6, Wamp server for our web application and we have developed this using netbeans IDE
    Very Urgent!!!

    Hello there, if you're still looking for help you might not be in the right forum.  This fourm is all about Azure SQL Database.

  • Need help on this plz.

    I would like to write a program for a supermarket loyalty card system. The program should have 2 customers and 2 gifts on offer. The customer details and the gift details can be hard coded.
    When the program starts the user should be shown a menu which will have options to
    view all customer details
    add points for a customer
    buy a gift
    When the user chooses to buy a gift ro to add points, any changes made to the customers' points must be done using methods. Adding or buying gifts should be done using customer id's and gift id's.
    The user must be able to see the altered points.
    I WILL APPRECIATE IF I COULD GET HELP EVEN FOR PSEUDOCODE.

    Hi,
    In order to implement your requirements, the best way would be using JSP(JavaServerPage) and SQL. Before writing code, you need to prepare, Ant, Tomcat, JavaServlet, MySQL and JDBC package. There are several books available to achieve your requirements. I think your requirements is bigger than you expect. This page is also written with JSP.
    Good luck for your program!!!

  • Need help w/Securing a Complete Directory

    I have an application that which has a simple backend db to
    "login". The URL is connected with an "https://" and it goes to the
    login screen with the username and password just fine and displays
    what I want. However if I copy and paste the URL into another
    browser window it displays the page w/o asking for the username and
    password. How do I fix this???
    I also have an "error.cfm" page but it doesn't seem to work
    effectively. Need help and ideas please! URL (s) in question are
    listed below.
    Thanks!
    https://www.ext.colostate.edu/mg/staff/login/login.cfm --
    Login Page -- when I enter the username and password all is good -
    it display the page called.
    https://www.ext.colostate.edu/mg/staff/index.cfm
    now 1 of 2 issues. If I copy and paste the index.cfm page I
    get your basic "error" - I have the following CFIF statement on the
    index.cfm page
    <CFIF IsValidLogin.Login_Match IS "0">
    <CFLOCATION
    URL="https://www.ext.colostate.edu/mg/staff/login/login.cfm">
    <!--- was error.cfm --->
    <CFELSE>
    <CFSET Session.LoggedIn = "1">
    <CFLOCATION URL="../index.cfm">
    </cfif>
    2nd problem. I get into the page all is fine but if I click
    on anything that is connected to a pdf, doc, etc.... and copy and
    paste the URL into another browser it displays and I don't want it
    to. (example:
    https://www.ext.colostate.edu/mg/staff/CurrUnits/CMG/018ANS-HW-CMG.pdf)
    HELP! What do I need to change. Thanks to all who respond in
    advance.

    "sarathy", I think (but don't quite KNOW just yet!!!) that I need to type into my browser's location bar as a part of the url for the jsp the "webapps" folder which is under the main installation for Tomcat! And, to quote your last posting to me "hey before you test your clock.jsp... can you see the examples of tomcat ?.. if not there is a problem in tomcat installation.. may be setting paths and stuff. Do you know on which port you installed ?.. the def is 8080 try http://localhost:8080/", I can answer with a resounding YES to being able to see and execute all of the various jsp and servlets, so maybe I will counter what I earlier indicated in my last post that there is something basicly wrong with my Tomcat installation, like it being installed into the wrong folder.
    No, like I said up above, i think that if I only make sure I type into the web browser's location bar the "webapps" folder first, then the "jsp" folder, then finally the name of the particular jsp file which I choose to work with, then I will be quite okay on being able to consistently see my jsp whenever I want to. Please respond back to me if you agree/concur with my analysis or maybe you don't and wanna give me an alternative method of doing this. I will gladly even listen to a different approach to doing this because I am getting pretty desperate with my efforts to "get it right" with being able to execute either a jsp or a servlet.

  • Need help on struts configuration with ColdFusion 10 using IIS

    We need help on struts configuration with ColdFusion 10 using IIS.
    Earlier we were using ColdFusion 8 with IIS 6 for one of our application.  This application internally calls struts. After upgrading to ColdFusion 10 struts calls are not loading. We get 404 error.
    In ColdFusion 8 struts were configured using  actions extension .do in IIS from this file-
    C:\ColdFusion8\runtime\lib\wsconfig\jrun_iis6.dll.
    But in ColdFusion 10 this file is not present as ColdFusion 10 uses Tomcat in place of Jrun.
    Also there is no information in ColdFusion log file.

    Duane wrote:
    doctormirabilis, Welcome to the discussion area!
    1) how can i configure the time capsule in order to operate as a remote base station synchronizing with the relay using the ethernet port?
    Configure the Time Capsule to act as a bridge (not distributing IP addresses). Also configure the Time Capsule to create an 802.11n wireless network with a unique network name (SSID). That's it.
    2) how can i avoid that my powerbook while accessing my wireless network does connect through the relay station instead of using the time capsule?
    Configure the Time Capsule to use a different network name than the WDS link between the 2 AirPort Express (AX). Configure the PowerBook to use the Time Capsule network.
    There are 2 pieces of information that you should be aware of...
    (1) None of the PowerBooks are capable of 802.11n.
    (2) The WDS link cuts your available bandwidth in half. So the wireless link to your neighbor's has a maximum potential of 27 Mbps.
    Let's for a minute assume that you have a Mac compatible with 802.11n. In your configuration the time you could take advantage of the 802.11n speed is when the Mac is sending/recieving data directly from/to the Time Capsule.
    There would be NO speed increase in Internet access. The speed of Internet access is going to be controlled by the slowest link in the path to the Internet. That is probably the connection to the ISP. The next slowest path is the WDS link to your neighbor's.
    Duane,
    I am in a similar situation, sharing internet with my neighbor. Do you think it would be plausible to hook up a vonage phone adapter to time capsule's ethernet port if time capsule is bridging from my neighbor's router in the configuration you have described? A check of my upload speed shows 1.67Mbps (powerbookG4 w/ airport extreme). Vonage reccommends 90kbps minimum upload speed. Am I going to lose some speed putting the Vonag adapter behind time capsule?
    Thank you

  • Please, please  -  i need help urgent.

    hi,
    i have a problem over 3 days and i cant find what is wrong.
    i'm using jbuilder and with him evruthing is ok, but when i want to work with tomcat something going not good and i dont know what.
    all the time i'm getting this exception:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
         org.apache.jsp.main_jsp._jspService(org.apache.jsp.main_jsp:300)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
         sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
         sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
         java.sql.DriverManager.getConnection(Unknown Source)
         java.sql.DriverManager.getConnection(Unknown Source)
         cellcom_1.DBConnection.DBConnection.<init>(DBConnection.java:29)
         org.apache.jsp.main_jsp._jspService(org.apache.jsp.main_jsp:63)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
    i checked my database configuration and its seems that it ok(and its run with jbuilder ok).
    i need help, please!!!

    Pray tell me where in teh server.xml/context.xml will you need to >configure a datasource for a simple bridge-driver program as is >obvious from teh stack trace? gcrashed,
    When a datasource is used, the connections are retrieved from the datasource. The datasource maintains a pool of connections which can be configured. Programs can retrieve the connections from the datasource and after usage, they are returned to the datasource. Since it is the server that maintains the datasource, properties like connection info, max number of connections etc have to be configured in the server.xml or context.xml
    And here is the relevant documentation in tomcat on how to set up a datasource - http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
    Setting up a datasource in tomcat requires configuring them in server.xml (for global resources) or in context.xml (for a datasource resource local to your web application).
    Here is a thread which describes in detail the process of setting it up - http://forum.java.sun.com/thread.jspa?threadID=643344
    Now there are several issues setting up a tomcat datasource, especially for first time users. See the forum thread above for one such discussion.
    What configuration is required in tomcat when the stack trace so >clearly shows that he is using the sun.jdbc.odbc.JdbcOdbcDriver and >so obviously using a dsn name for his connection??????As I said earlier, you are missing the point. The OP is not trying to create a connection directly from his program. Or by datasource, he does not mean the microsoft user-dsn datasource that I think you are reffering to. Once again, please read the tomcat link above on what a jndi-jdbc datasource means
    Please give me the all 10 different issues that would produce the same stack trace.I was infact hoping somebody would ask. Just type the error stack trace in google, this forum or javaranch or theserverside.com and you would find tons of posts on setting up a jndi datasource and the issues people faced therein.
    that's the first and easiest suggestion to give. you don't need to give that suggestion here. Its an open forum. Nobody can tell anybody else on what he/she ought to post. If you dont like it, ignore it. But wait, that's an easy answer. And Iam not going to take that stand. I stick to my opinion that asking the OP to read the docs is still the best suggestion in the post. The OP's problems combined with his comments that the db is working fine suggest a serious lack of understanding of the way datasource and connection pooling works with tomcat.
    yes, if the problem is absolutely trivial like: how do i set up a connection using DriverManager - yes u can say - go read the docs. i can swear one can find the answers for half (or many more than that) problems posted in any forum in the documentation. but the fact is that many people do a fair amnount of hunting thru the docs and turn to a forum as a last resort. but they always miss something coz it's very natural. If you would search this forum and analyse duffy's or anybody else( who is a regular in this forum) previous posts, you would find that they have a pretty impeccable record of helping people with genuine problems when they know that the poster has taken some pains or effort to get it going by him/her self. They even hand hold people if the concept is a difficult one or if its one they find stiumlating/challenging.
    But this 'unable to set up a datsource' thinggy has been asked and answered a thousand times in this forum and many more in several other forums and all the OP had to do was just search. To be fair, the OP may not have been aware of this fact as he is coming up against this the first time, which's why I maintain, read the docs or search the forum is a suggestion that ought to be taken seriously (rather than being thought of as rude or condescending).
    If my comments seemed harsh, i apologize.Make that two. Its not my intention either to brow-beat or be harsh. I am just explaining why I took duffy's side, case in point. No offence intended.
    cheers,
    ram.

  • Need Help Using JTA / Tyrex

    I am unable to find any sample code for using Tyrex's Transaction Manager and the JTA API. Can anyone help me here? There are a few things I need help with, but if you can help me on any of them that would be huge!
    1. Setting up / Configuring Tyrex
    2. Adding MS SQL as DataSource (and Transaction Domain? It's not clear what that means exactly) (I have the beta JDBC driver from MS)
    3. Writing Code to execute a DB statement inside a transaction
    4. Writing Code to make an object I create participate in a transaction, i.e. you can rollback setting something on my object. e.g. if you an object MyObject had a default "age" of 10 and you called MyObject.setAge( 25 ); and then called trans.rollback(); and then MyObject.getAge() it would return 10.
    I looked on Java.sun.com for some info on using transactions but it appears that they do NOT want to promote Java developers learning the transaction API in that depth. Rather, they'd prefer that you only use the JTA as a client, e.g. through EJB Containers. Does anyone know of some tutorials or something on this stuff any where? I want to write my own transactionable objects/system but there's almost no info anywhere. And Tyrex's website has next to nothing in help too!
    - Robert

    There's been several discussions on the tomcat-user mailing list mentioning Tyrex recently. I have no idea if they're relevant to you, but I remember seeing them go by and wondering what the $#$%)(%^ Tyrex was... <grin>
    You can search the list archives at http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

  • Need help to develop Pythagoras theorem-

    Hi i need help to develop proofs 2,3,4
    of pythagoras theorems in java as demonstrations
    These are applets can anyone help me with it or give me an idea of how to go about developing it -
    the site is the following
    http://www.uni-koeln.de/ew-fak/Mathe/Projekte/VisuPro/pythagoras/pythagoras.html
    then double click on the screen to make it start

    Pardon my ASCII art, but I've always liked the following, simple, geometric proof:
         a                   b
    ---------------------------------------+
    |       |                                |
    a|   I   |              II                |
    |       |                                |
    ---------------------------------------+
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    b|  IV   |              III               |
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    ---------------------------------------+It almost goes without saying that I+II+III+IV == (a+b)^2, and II == IV == a*b,
    I == a*a and III == b*b, showing that (a+b)^2 == a^2+a*b+a*b+b^2.
    I hope the following sketch makes sense, stand back, ASCII art alert again:     a                   b
    ---------------------------------------+
    |               .             VI         |
    |     .                 .                |a
    | V                               .      |
    |                                        +
    |                                        |
    |   .                                    |
    b|                                     .  |
    |                                        |
    |                  IX                    |
    | .                                      |
    |                                    .   |b
    |                                        |
    +                                        |
    |      .                                 |
    a|               .                  . VII |
    |  VIII                   .              |
    ---------------------------------------+
                     a                    bThe total area equals (a+b)^2 again and equals the sum of the smaller areas:
    (a+b)^2 == V+VI+VII+VIII+IX. Let area IX be c^2 for whatever c may be.
    V+VII == VI+VIII == a*b, so a^2+b^2+2*ab= c^2+2*a*b; IOW a^2+b^2 == c^2
    Given this fundamental result, the others can easily be derived from this one,
    or did I answer a question you didn't ask?
    kind regards,
    Jos

  • I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    What file format did you export it to?

  • Need help to open audios attached in a PDF file

    Hello
    I just need help. I have ordered a reviewer online that has audios and texts in a pdf file. I was told to download the latest adobe reader on my computer. I have done the same thing on my ipad mini. I am not so technical with regards to these things. Therefore I need help. I can access the audios on my computer but not on my ipad.
    I want to listen to audios with scripts or texts on them so i can listen to them when i am on the go. I was also informed that these files should work in any device. How come the audios doesnt work on my ipad.
    Please help me on what to do.
    Thanks

    Audio and video are not currently support on Adobe Reader. :-<
    You need to buy a PDF reader that supports them. My suggestion is PDF Expert from Readdle ($US 9.99)

  • Need help to open and look for file by name

    Hi,
            Im needing help to open a folder and look for a file (.txt) on this directory by his name ... The user ll type the partial name of file , and i need look for this file on the folder , and delete it ....
    How can i look for the file by his name ?
    Thx =)

    Hi ,
        Sry ,, let me explain again ... I ll set the name of the files in the follow order ... Name_Serial_date_chanel.sxc ..
    The user ll type the serial that he wants delete ...
    I already figured out what i need guys .. thx for the help ^^
    I used List Directory on advanced IO , to list all .. the Name is the same for all ... then i used Name_ concateneted with Serial(typed)* .. this command serial* ll list all serials equal the typed , in my case , ll exist only one , cuz its a count this serial .Then i pass the path to the delete , and its done !
    Thx ^^

Maybe you are looking for

  • Print a report on doc format truncate data

    hi I have a report launching with a form in an oracle applications, when I print a report on pdf format looks ok but when I print the same report on doc format truncate data on left and right side. Can you help me thanks

  • Star Office 9 on Windows Server 2008 64Bit with Citrix Xen App 5.0

    Good day, I have Star Office 9 already installed on my private PC and now want to install it also on Terminal Sever with OS Windows 2008 64 Bit and Citrix Xen App 5.0 . Is there anybody who has experience with such an installation, can inform me if i

  • How do I restore the add-ons that I downloaded and installed?

    I thought I wanted to be a Firefox 4 beta tester. I downloaded the program and proceeded to install. During the installation, a message popped up and said these add-ons were not supported. I think it disabled either some or all of the add-ons. It con

  • Toggle on/off button

    Hi all! First of all, I'm new with Muse and I'm loving it. I'm prototyping a mobile app and I need to make some customized switches. Buttons that toggle on/off when you press them. I have two images for the button states but I was wondering how can I

  • FCPX not working. Should I try FCP 7?

    I've read through the support communites and have tried the trial version of FCPX with the same choppy, poor performance as everyone else is describing. I'm really bummed because looking at the user interface of FCPX, it seems like its exactly what I