java.lang.NullPointerException in tomcat 5.5.4
Hi I installed tomcat 5.5.4 ,jdk1.5 and beanfactory 1.0.1. When run the application it gave the error which is shown below , Pls can anyone help it solve this.. HTTP STATUS ERROR 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NullPointerException gnu.beanfactory.PropertiesDefinitionLoader.mergeResource(PropertiesDefinitionLoader.java:201) gnu.beanfactory.ServletContextDefinitionLoader.mergeServletResource(ServletContextDefinitionLoader.java:37) gnu.beanfactory.ServletContextDefinitionLoader.init(ServletContextDefinitionLoader.java:95) gnu.beanfactory.BeanContext.initializeServletContextDefinitionLoader(BeanContext.java:122) gnu.beanfactory.BeanContext.getDefinitionLoader(BeanContext.java:99) gnu.beanfactory.BeanFactory.getDefinitionLoader(BeanFactory.java:47) gnu.beanfactory.BeanFactory.getObjectInstance(BeanFactory.java:55) gnu.beanfactory.BeanContext.lookup(BeanContext.java:138) gnu.beanfactory.BeanContext.lookup(BeanContext.java:151) gnu.beanfactory.BeanContext.lookupHandle(BeanContext.java:403) gnu.beanfactory.BeanContext.resolve(BeanContext.java:420) gnu.beanfactory.servlet.DigestSecurity.init(DigestSecurity.java:47) gnu.beanfactory.servlet.DigestSecurity.init(DigestSecurity.java:57) gnu.beanfactory.servlet.Dispatcher.process(Dispatcher.java:100) gnu.beanfactory.servlet.Dispatcher.dispatch(Dispatcher.java:58) org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:101) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) 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.4 logs. - Thanks SSK - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.
Re: java.lang.NullPointerException in tomcat 5.5.4
This email [EMAIL PROTECTED] is no longer available due to heavy spamming. Please visit our website http://www.alestron.com for contact info. Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: java.lang.NullPointerException in tomcat 5.5.4
This email [EMAIL PROTECTED] is no longer available due to heavy spamming. Please visit our website http://www.alestron.com for contact info. Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /manager for the webs
hi thanx for the _really_ Quick answers :) On Thu, 30 Dec 2004 14:33:30 -0500 Ben Souther [EMAIL PROTECTED] wrote: Each webapps would need to be under it's own virtual Host. Sorry, each context would need to be under it's own virtual host. but what do you mean? is enough to define a virt. Host in the Server.xml like this ? Host name=www.customer1.it debug=0 appBase=/opt/jakarta-tomcat-4.1.12-LE-jdk14/webapps/struts-blank unpackWARs=true autoDeploy=true Context path= docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=cust1_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host thanx a lot luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitoring Performance Tomcat 5.0.28
you could use jmeter's tomcat5 monitor. there's a coupl of commercial tools out there that can monitor your production servers. peter On Thu, 30 Dec 2004 23:27:05 -0800, Hari Mailvaganam [EMAIL PROTECTED] wrote: Hi: What would be the best way to monitor the performance of Tomcat - while in production? Apache HTTP server has an option that can view threads etc of a production web server. Does Tomcat have anything equivalent? On a separate note are there any kind of benchmarks on performance of Tomcat available online - i.e throughput, response times? It can be a challenge finding benchmarks that fits ones criterias - as there are a huge number of variables to consider. I was hoping to find one which had a study the base parameters. Have a Happy and Peaceful 2005. regards, Hari Mailvaganam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /manager for the webs
You will also need a context entry for the manager app. I just did it by putting a copy of manager.xml in the TOMCAT_HOME/conf/Catalina/NEW_HOST_NAME. I could get see the manager app from both hosts but they both had the app listing from localhost. So, you need to fiddle with it a bit. I'm not a guru with this stuff. I've never needed a second host. If you search the archives, I'm sure you'll find plenty of examples. I've seen this issue discussed on several occasions. Another option, of course, is to give each client a separate instance of Tomcat. Then each client will be running in their own JVM which makes it a lot easier to protect one client from the stupidity of another ;) You can instanciate them all from the same code base by setting up different CATALINA_HOME and CATALINA_BASE environment variables. On Fri, 2004-12-31 at 05:45, Lukas Pataki wrote: hi thanx for the _really_ Quick answers :) On Thu, 30 Dec 2004 14:33:30 -0500 Ben Souther [EMAIL PROTECTED] wrote: Each webapps would need to be under it's own virtual Host. Sorry, each context would need to be under it's own virtual host. but what do you mean? is enough to define a virt. Host in the Server.xml like this ? Host name=www.customer1.it debug=0 appBase=/opt/jakarta-tomcat-4.1.12-LE-jdk14/webapps/struts-blank unpackWARs=true autoDeploy=true Context path= docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=cust1_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host thanx a lot luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitoring Performance Tomcat 5.0.28
Hari Mailvaganam wrote: Hi: What would be the best way to monitor the performance of Tomcat - while in production? I have used /manager application and JMeter. Not in production but during performace tests and development servers. I am not sure is this best way but for my purpose it is pretty ok. I do not have checked but it would nice to get this kind of information via JMX and MBeans. Is this possible? - Jukka - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /manager for the webs
hi thanx a lot Ben, happy new Year from here, .luke On Fri, 31 Dec 2004 07:36:57 -0500 Ben Souther [EMAIL PROTECTED] wrote: You will also need a context entry for the manager app. I just did it by putting a copy of manager.xml in the TOMCAT_HOME/conf/Catalina/NEW_HOST_NAME. I could get see the manager app from both hosts but they both had the app listing from localhost. So, you need to fiddle with it a bit. I'm not a guru with this stuff. I've never needed a second host. If you search the archives, I'm sure you'll find plenty of examples. I've seen this issue discussed on several occasions. Another option, of course, is to give each client a separate instance of Tomcat. Then each client will be running in their own JVM which makes it a lot easier to protect one client from the stupidity of another ;) You can instanciate them all from the same code base by setting up different CATALINA_HOME and CATALINA_BASE environment variables. On Fri, 2004-12-31 at 05:45, Lukas Pataki wrote: hi thanx for the _really_ Quick answers :) On Thu, 30 Dec 2004 14:33:30 -0500 Ben Souther [EMAIL PROTECTED] wrote: Each webapps would need to be under it's own virtual Host. Sorry, each context would need to be under it's own virtual host. but what do you mean? is enough to define a virt. Host in the Server.xml like this ? Host name=www.customer1.it debug=0 appBase=/opt/jakarta-tomcat-4.1.12-LE-jdk14/webapps/struts-blank unpackWARs=true autoDeploy=true Context path= docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=cust1_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host thanx a lot luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitoring Performance Tomcat 5.0.28
The jakarta JMeter monitor sends requests to Tomcat's status servlet and uses the stats there to generate a performance graph. You can monitor multiple servers with jmeter. If you use a third party tool, it will have lots of other features, but it most likely will not be able to utilize the stats the status servlet displays. the tomcat monitor I wrote specifically takes advantage of the status servlet to show performance. just go to jmeter's page and you'll see. peter On Fri, 31 Dec 2004 15:32:36 +0200, Jukka Uusisalo [EMAIL PROTECTED] wrote: Hari Mailvaganam wrote: Hi: What would be the best way to monitor the performance of Tomcat - while in production? I have used /manager application and JMeter. Not in production but during performace tests and development servers. I am not sure is this best way but for my purpose it is pretty ok. I do not have checked but it would nice to get this kind of information via JMX and MBeans. Is this possible? - Jukka - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configure Tomcat5x to listen to Apache 2x
hi please anyone to help me on how to configure tomcat to Listen ,on port 8009, to Apache . I already have Mod_jk 1.2.8 and Apache is working but jsp pages are served as source files. is it that Tomcat hasn't been configured well. - Do you Yahoo!? Meet the all-new My Yahoo! Try it today!
T5.x/JDK 1.4 comat: Confusion about versions of JMX in there
1) The T5.0 changelog claims: Replace MX4J 1.1.1 with the Sun JMX 1.2 RI (remm) 2) The JDK 1.4.2 compat zip contains a jmx.jar; that apparently contains mx4j - what version? 3) So is it mx4j or SUN JMX 1.2 RI or both? Why this mess? /sk __ Do you Yahoo!? All your favorites on one personal page Try My Yahoo! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
Quite simply, you have an error in your JSP that is preventing the translated servlet from compiling. If you don't know where to look for the compiler output, then just go and manually compile the servlet. -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Usertomcat-user@jakarta.apache.org Date: Thu Dec 30 06:53:31 PST 2004 Subject: JSP compilation problem [...] HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP [...] root cause Compile failed; see the compiler error output for details. [...] ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException in tomcat 5.5.4
In your login.jsp you're calling the dispatch method of gnu.beanfactory.servlet.Dispatcher and most likely passing it null as an argument. I don't know anything about this beanfactory, so I can't say much more at the moment. -Original Message- From: ssk 2001[EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Date: Fri Dec 31 00:08:20 PST 2004 Subject: java.lang.NullPointerException in tomcat 5.5.4 I installed tomcat 5.5.4 ,jdk1.5 and beanfactory 1.0.1. When run the application it gave the error which is shown below , Pls can anyone help it solve this.. HTTP STATUS ERROR 500 [...] root cause java.lang.NullPointerException [...] gnu.beanfactory.servlet.Dispatcher.dispatch(Dispatcher.java:58) org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:101) [...] ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to tell if Jikes is being run??
I gleaned info from this mailing list archive and other websites and configured my Tomcat to use the Jikes compiler instead of the one from the Sun JDK. Nothing seems faster, so I must've done something wrong. Question is - is this the only way to tell if I'm actually using Jikes - to see if I'm running/compiling faster?? Thanks. --Peter--
Re: how to tell if Jikes is being run??
Peter Smith wrote: I gleaned info from this mailing list archive and other websites and configured my Tomcat to use the Jikes compiler instead of the one from the Sun JDK. Nothing seems faster, so I must've done something wrong. Question is - is this the only way to tell if I'm actually using Jikes - to see if I'm running/compiling faster?? Yes... 1. remove the work directory 2. Start to compile a page 3. pgrep -f jikes If it shows up then its working. If that doesn't work you'll have to do a killall -3 java and look at the stack trace to make sure the right compiler is being used. In my experience jikes doesn't speed up page compilation much. The problem is that jasper is amazingly slow. Precompile your JSPs anyway. You'll be amazed at how LONG it takes and then thank yourself for not putting your customers through this torture. Kevin -- Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an invite! Also see irc.freenode.net #rojo if you want to chat. Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html If you're interested in RSS, Weblogs, Social Networking, etc... then you should work for Rojo! If you recommend someone and we hire them you'll get a free iPod! Kevin A. Burton, Location - San Francisco, CA AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
Interesting response... The exact same JSP is compiling on two other machines. Your right though, manually compiling it is a good next step (one that I'm ashamed to say I didn't think of myself), so I'm off to do that now. Maybe I have a corrupt file in some minor, hard-to-detect way that is causing a problem on this one Tomcat instance. Thanks for the suggestion, it's a logical course of action. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Ryan Stewart wrote: Quite simply, you have an error in your JSP that is preventing the translated servlet from compiling. If you don't know where to look for the compiler output, then just go and manually compile the servlet. -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Usertomcat-user@jakarta.apache.org Date: Thu Dec 30 06:53:31 PST 2004 Subject: JSP compilation problem [...] HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP [...] root cause Compile failed; see the compiler error output for details. [...] ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to tell if Jikes is being run??
When you use Jikes or any other out-of-process compiler, you're spawning a full heavy-weight system process for each compilation. That overhead seems to offset at least some of the performance advantage of using jikes. You should be able to see the jikes instance running in whatever you use to see running processes, depending on how long its running. I don't know the specifics, but I believe Tomcat 5.5.x uses a faster, in-process compiler (by eclipse, I think). [EMAIL PROTECTED] 12/31 8:07 pm Peter Smith wrote: I gleaned info from this mailing list archive and other websites and configured my Tomcat to use the Jikes compiler instead of the one from the Sun JDK. Nothing seems faster, so I must've done something wrong. Question is - is this the only way to tell if I'm actually using Jikes - to see if I'm running/compiling faster?? Yes... 1. remove the work directory 2. Start to compile a page 3. pgrep -f jikes If it shows up then its working. If that doesn't work you'll have to do a killall -3 java and look at the stack trace to make sure the right compiler is being used. In my experience jikes doesn't speed up page compilation much. The problem is that jasper is amazingly slow. Precompile your JSPs anyway. You'll be amazed at how LONG it takes and then thank yourself for not putting your customers through this torture. Kevin -- Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an invite! Also see irc.freenode.net #rojo if you want to chat. Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html If you're interested in RSS, Weblogs, Social Networking, etc... then you should work for Rojo! If you recommend someone and we hire them you'll get a free iPod! Kevin A. Burton, Location - San Francisco, CA AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]