Re: Can't load server.xml message
Thanks for all the help. I tried the server-minimal.xml file a second time and it worked. I'm not sure what was happening. I also installed JavaWebServicesDeveloperPack and some other stuff that might have been causing an issue. It was very bizarre because at one point, I had the minimal server.xml in conf but got the same message. I agree that the NPE was because it couldn't open the file for some ereason. I don't think it was permissions because I'm using XP. Anyways, it seems to be working for now. Thanks for the suggestions! sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't load server.xml message
I am an experienced Tomcat user who is all of a sudden having trouble running Tomcat on my home machine. I am running Tomcat 5.0.28 and I get a Null Pointer when trying to start Tomcat. I have JAVA_HOME and CATALINA_HOME configured. The very first line in the output says Can't load server.xml (actually the second line says the same thing as well.) I tried chaning to the minimal server.xml as well but no luck. The stack trace seems to indicate a NullPointer exception at Catalina.await line 619. I have tried looking this up on the mailing lists, but incredibly, nobody seems to have experienced this problem! Anyways, any insight that could be provided would be greatly appreciated. I've never had this problem before ... TIA, sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't load server.xml message
Hi, You seem to have added quite a few lines into your catalina.sh. The stock script ends at line 287 for me. Can you tell us what modifications you have made? Funny that I can not find how the server.xml is loaded by the DigesterFactory.java nor by Bootstrap.java when I browsed their source code. aka_sergio --- Sean Schofield [EMAIL PROTECTED] wrote: I am an experienced Tomcat user who is all of a sudden having trouble running Tomcat on my home machine. I am running Tomcat 5.0.28 and I get a Null Pointer when trying to start Tomcat. I have JAVA_HOME and CATALINA_HOME configured. The very first line in the output says Can't load server.xml (actually the second line says the same thing as well.) I tried chaning to the minimal server.xml as well but no luck. The stack trace seems to indicate a NullPointer exception at Catalina.await line 619. I have tried looking this up on the mailing lists, but incredibly, nobody seems to have experienced this problem! Anyways, any insight that could be provided would be greatly appreciated. I've never had this problem before ... TIA, sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't load server.xml message
Sean Schofield wrote: I am an experienced Tomcat user who is all of a sudden having trouble running Tomcat on my home machine. I am running Tomcat 5.0.28 and I get a Null Pointer when trying to start Tomcat. I have JAVA_HOME and CATALINA_HOME configured. The very first line in the output says Can't load server.xml (actually the second line says the same thing as well.) I tried chaning to the minimal server.xml as well but no luck. The stack trace seems to indicate a NullPointer exception at Catalina.await line 619. I have tried looking this up on the mailing lists, but incredibly, nobody seems to have experienced this problem! Anyways, any insight that could be provided would be greatly appreciated. I've never had this problem before ... I had this problem once when I inadvertently moved server.xml from /conf. I think the error message means what it says -- it cant't read the file. Are you sure it is in the right place and the user running tc has permission to read the file? Phil TIA, sean - 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: Can't load server.xml message
I looked in the wrong source codes. I should have looked at Catalina.java. Here is the link: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/Catalina.java?rev=1.35view=log Anyhow, the await() call is at line 578 but thats after the server has started. It is after these lines 562 long t2 = System.currentTimeMillis(); 563 log.info(Server startup in + (t2 - t1) + ms); some test if useShutdownHook... 578 if (await) {.. Check your log file if it has made it this far. aka_sergio --- sven morales [EMAIL PROTECTED] wrote: Hi, You seem to have added quite a few lines into your catalina.sh. The stock script ends at line 287 for me. Can you tell us what modifications you have made? Funny that I can not find how the server.xml is loaded by the DigesterFactory.java nor by Bootstrap.java when I browsed their source code. aka_sergio --- Sean Schofield [EMAIL PROTECTED] wrote: I am an experienced Tomcat user who is all of a sudden having trouble running Tomcat on my home machine. I am running Tomcat 5.0.28 and I get a Null Pointer when trying to start Tomcat. I have JAVA_HOME and CATALINA_HOME configured. The very first line in the output says Can't load server.xml (actually the second line says the same thing as well.) I tried chaning to the minimal server.xml as well but no luck. The stack trace seems to indicate a NullPointer exception at Catalina.await line 619. I have tried looking this up on the mailing lists, but incredibly, nobody seems to have experienced this problem! Anyways, any insight that could be provided would be greatly appreciated. I've never had this problem before ... TIA, sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't load server.xml message
If you look at the 5.0.28 src distro, you can see that line 519 of Catalina.java includes a reference to the server object. Most likely the npe is happening because the server initialization is failing. The first error (Can't load server.xml) looks like it is generated by the load method when it can't open the file. Phil sven morales wrote: I looked in the wrong source codes. I should have looked at Catalina.java. Here is the link: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/Catalina.java?rev=1.35view=log Anyhow, the await() call is at line 578 but thats after the server has started. It is after these lines 562 long t2 = System.currentTimeMillis(); 563 log.info(Server startup in + (t2 - t1) + ms); some test if useShutdownHook... 578 if (await) {.. Check your log file if it has made it this far. aka_sergio --- sven morales [EMAIL PROTECTED] wrote: Hi, You seem to have added quite a few lines into your catalina.sh. The stock script ends at line 287 for me. Can you tell us what modifications you have made? Funny that I can not find how the server.xml is loaded by the DigesterFactory.java nor by Bootstrap.java when I browsed their source code. aka_sergio --- Sean Schofield [EMAIL PROTECTED] wrote: I am an experienced Tomcat user who is all of a sudden having trouble running Tomcat on my home machine. I am running Tomcat 5.0.28 and I get a Null Pointer when trying to start Tomcat. I have JAVA_HOME and CATALINA_HOME configured. The very first line in the output says Can't load server.xml (actually the second line says the same thing as well.) I tried chaning to the minimal server.xml as well but no luck. The stack trace seems to indicate a NullPointer exception at Catalina.await line 619. I have tried looking this up on the mailing lists, but incredibly, nobody seems to have experienced this problem! Anyways, any insight that could be provided would be greatly appreciated. I've never had this problem before ... TIA, sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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]