Re: I don't see the output under Linux
Ok, but in this case I don't see any output on the console (where I run Tomcat)! My problem is not to redirect the stdout on a file, my proble is to see the output. Thanks. - Original Message - From: Martin van den Bemt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 3:12 PM Subject: RE: I don't see the output under Linux Just replying to the original question here : if you want the system.out.println logging to appear in a file instead of the console : $TOMCAT_HOME/bin/tomcat.sh start 2logfile 1errorfile All error and normal output to the console will be redirected this way to files. If you want logging to system.out, then the logging appears only when the console in which you started tomcat, not any other console which you open. Mvgr, Martin I have introduced a System.out.println lines in my application (for the testing phase), but I don't see theirs output. I have tried to do this (every time that tomcat is started): ./tomcat start tomcat.out without success.
Re: I don't see the output under Linux
I don't know about your starting methods and why they are different, but the last time I saw the exception you listed was when I was trying to get Tomcat running and didn't realize the java environment I was running was Kaffe. Some docs and email messages I found make it very clear Tomcat does not work under Kaffe. I'd suggest using 'java -version' on the command line to determine what java environment you are working with. In my case, I have to thank Mandrake for sneaking that one into my system on first install :-(. On Thursday 09 August 2001 09:25 am, you wrote: Hi, I have always the same problem but I have noticed the following thing: so far I ran tomcat with deamon tomcat start in this case my XSP application works but there is no output on the shell (where I ran tomcat). Now I decide to run tomcat with /usr/bin/tomcat run and the shell output is visible BUT in this case there is another problem, if I try to access at my XSP applycation tomcat return me the following error: org.apache.xerces.validators.datatype.InvalidDatatypeFacetException: [exception was kaffe.util.SupportDisabled: GNU gmp was not found by Kaffe configure script] at java.lang.Throwable.fillInStackTrace(Throwable.java:native) at java.lang.Throwable.init(Throwable.java:38) at java.lang.Exception.init(Exception.java:24) at org.apache.xerces.validators.datatype.XMLException.init(XMLException.java : 71) at org.apache.xerces.validators.datatype.InvalidDatatypeFacetException.init( I nvalidDatatypeFacetException.java:90) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.createDa t atypeValidator(DatatypeValidatorFactoryImpl.java:339) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.createDa t atypeValidator(DatatypeValidatorFactoryImpl.java:292) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.initiali z eRegistry(DatatypeValidatorFactoryImpl.java:143) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.init(D a tatypeValidatorFactoryImpl.java:81) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.clinit ( DatatypeValidatorFactoryImpl.java:76) at org.apache.xerces.framework.XMLParser.init(XMLParser.java:203) at org.apache.xerces.parsers.DOMParser.init(DOMParser.java:214) at org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:75) at org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83) at org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:170) at org.apache.cocoon.framework.Manager.create(Manager.java:101) at org.apache.cocoon.framework.Router.init(Router.java:80) at org.apache.cocoon.framework.Manager.create(Manager.java:101) at org.apache.cocoon.Engine.init(Engine.java:171) at org.apache.cocoon.Engine.getInstance(Engine.java:218) at org.apache.cocoon.Cocoon.init(Cocoon.java:141) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:line unknown, pc 0x8936cd2) at org.apache.tomcat.core.Handler.init(Handler.java:line unknown, pc 0x896dd12) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:line unknown, pc 0x8abb1d6) at org.apache.tomcat.core.Handler.service(Handler.java:line unknown, pc 0x8b5c0c5) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:line unknown, pc 0x8b4b5dd) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:l i ne unknown, pc 0x8bfda35) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:line unknown, pc 0x8bfb849) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Http C onnectionHandler.java:line unknown, pc 0x8bf0c2f) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:line unknown, pc 0x898ae31) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:line unknown, pc 0x8a0a439) at java.lang.Thread.run(Thread.java:325) XSL Error: pattern = 'node()' Could not find function: node Remaining tokens: ( '(' ')'), style tree node: org.apache.xalan.xslt.ElemApplyTemplates@92b3e30 XSL Error: Could not parse jar:file:/var/tomcat/lib/cocoon.jar!/org/apache/cocoon/processor/xsp/librar y /java/response.xsl document! XSL Error: SAX Exception Why? What is the difference between the deamon starting method and the /usr/bin/tomcat starting method? Thanks.
Re: I don't see the output under Linux
I tried to correct the file, but ... nothing... But, I noticed another thing. If I start Tomcat with tomcat run (in /usr/bin) the output is visible on the screen but Tomcat doesn't work properly (tomcat start correctly but if I try to access at 8080 ... it doesn't works) instead, if I try with: ./tomcat start (where tomcat in this case, is the script in /etc/rc.d/init.d/ that run the tomcat daemon --- it run a command like: daemon tomcat start ...) the engine works but not the output. Thanks, thanks for your interest!!! - Original Message - From: Loïc Lefèvre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 4:32 PM Subject: RE: I don't see the output under Linux Okay, this file stands in the conf directory of Tomcat on your LINUX server? If the answer is true, replace workers.tomcat_home=c:\jakarta-tomcat workers.java_home=c:\jdk1.2.2 ps=\ with the good parameters: especially: ps=/ (Path separator for Linux is equals to / not \) Try and tell me... -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 août 2001 16:04 À : [EMAIL PROTECTED] Objet : Re: I don't see the output under Linux Can you send your workers.properties file? Yes. This is my workers.properties: ** workers.tomcat_home=c:\jakarta-tomcat workers.java_home=c:\jdk1.2.2 ps=\ worker.list=ajp12, ajp13 worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar worker.inprocess.cmd_line=-config worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml worker.inprocess.cmd_line=-home worker.inprocess.cmd_line=$(workers.tomcat_home) worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(p s)jvm.dll # # Setting the place for the stdout and stderr of tomcat # worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home) Thanks (I wait your help). - Original Message - From: Loïc Lefèvre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 3:07 PM Subject: RE: I don't see the output under Linux -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 août 2001 14:47 À : [EMAIL PROTECTED] Objet : Re: I don't see the output under Linux Yes, if I add this attribute the tomcat.log (when I start tomcat) become: 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /examples ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /admin ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /cocoon ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /test ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /Cocoon ) but no message other this are printed on this file. (All System.out.println are not printed!!) Thanks. - Original Message - From: Loïc Lefèvre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 12:23 PM Subject: RE: I don't see the output under Linux in your server.xml file, add the attibut path to: Logger name=tc_log path=/tmp/tomcat.log here verbosityLevel = INFORMATION / ;) -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 août 2001 09:39 À : [EMAIL PROTECTED] Objet : I don't see the output under Linux I am a new linux user and I have just installed Tomcat under linux. I have developed an application and now I am testing it. Tomcat is installed on a linux server and I try to access it (at my application) with a windows 98 PC. I have introduced a System.out.println lines in my application (for the testing phase), but I don't see theirs output. I have tried to do this (every time that tomcat is started): ./tomcat start tomcat.out without success
RE: I don't see the output under Linux
Just replying to the original question here : if you want the system.out.println logging to appear in a file instead of the console : $TOMCAT_HOME/bin/tomcat.sh start 2logfile 1errorfile All error and normal output to the console will be redirected this way to files. If you want logging to system.out, then the logging appears only when the console in which you started tomcat, not any other console which you open. Mvgr, Martin I have introduced a System.out.println lines in my application (for the testing phase), but I don't see theirs output. I have tried to do this (every time that tomcat is started): ./tomcat start tomcat.out without success.
RE: I don't see the output under Linux
in your server.xml file, add the attibut path to: Logger name=tc_log path=/tmp/tomcat.log here verbosityLevel = INFORMATION / ;) -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 août 2001 09:39 À : [EMAIL PROTECTED] Objet : I don't see the output under Linux I am a new linux user and I have just installed Tomcat under linux. I have developed an application and now I am testing it. Tomcat is installed on a linux server and I try to access it (at my application) with a windows 98 PC. I have introduced a System.out.println lines in my application (for the testing phase), but I don't see theirs output. I have tried to do this (every time that tomcat is started): ./tomcat start tomcat.out without success. How can I do a right redirect? Thanks in advance. Stefano
RE: I don't see the output under Linux
in your server.xml file, add the attibut path to: Logger name=tc_log path=/tmp/tomcat.log here verbosityLevel = INFORMATION / ;) That's not going to help. Adding path attribute just makes Tomcat write info to log file, but nothing more. Every damn System.out.println() call writes to console from which Tomcat has been started. This problem is probably more related to JVM rather than Tomcat. -- Jacek Prucia 7bulls.com S.A.
Re: I don't see the output under Linux
Can you send your workers.properties file? Yes. This is my workers.properties: ** workers.tomcat_home=c:\jakarta-tomcat workers.java_home=c:\jdk1.2.2 ps=\ worker.list=ajp12, ajp13 worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar worker.inprocess.cmd_line=-config worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml worker.inprocess.cmd_line=-home worker.inprocess.cmd_line=$(workers.tomcat_home) worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(p s)jvm.dll # # Setting the place for the stdout and stderr of tomcat # worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home) Thanks (I wait your help). - Original Message - From: Loïc Lefèvre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 3:07 PM Subject: RE: I don't see the output under Linux -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 août 2001 14:47 À : [EMAIL PROTECTED] Objet : Re: I don't see the output under Linux Yes, if I add this attribute the tomcat.log (when I start tomcat) become: 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /examples ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /admin ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /cocoon ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /test ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /Cocoon ) but no message other this are printed on this file. (All System.out.println are not printed!!) Thanks. - Original Message - From: Loïc Lefèvre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 12:23 PM Subject: RE: I don't see the output under Linux in your server.xml file, add the attibut path to: Logger name=tc_log path=/tmp/tomcat.log here verbosityLevel = INFORMATION / ;) -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 août 2001 09:39 À : [EMAIL PROTECTED] Objet : I don't see the output under Linux I am a new linux user and I have just installed Tomcat under linux. I have developed an application and now I am testing it. Tomcat is installed on a linux server and I try to access it (at my application) with a windows 98 PC. I have introduced a System.out.println lines in my application (for the testing phase), but I don't see theirs output. I have tried to do this (every time that tomcat is started): ./tomcat start tomcat.out without success. How can I do a right redirect? Thanks in advance. Stefano
RE: I don't see the output under Linux
Okay, this file stands in the conf directory of Tomcat on your LINUX server? If the answer is true, replace workers.tomcat_home=c:\jakarta-tomcat workers.java_home=c:\jdk1.2.2 ps=\ with the good parameters: especially: ps=/ (Path separator for Linux is equals to / not \) Try and tell me... -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 août 2001 16:04 À : [EMAIL PROTECTED] Objet : Re: I don't see the output under Linux Can you send your workers.properties file? Yes. This is my workers.properties: ** workers.tomcat_home=c:\jakarta-tomcat workers.java_home=c:\jdk1.2.2 ps=\ worker.list=ajp12, ajp13 worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar worker.inprocess.cmd_line=-config worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml worker.inprocess.cmd_line=-home worker.inprocess.cmd_line=$(workers.tomcat_home) worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(p s)jvm.dll # # Setting the place for the stdout and stderr of tomcat # worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home) Thanks (I wait your help). - Original Message - From: Loïc Lefèvre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 3:07 PM Subject: RE: I don't see the output under Linux -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 août 2001 14:47 À : [EMAIL PROTECTED] Objet : Re: I don't see the output under Linux Yes, if I add this attribute the tomcat.log (when I start tomcat) become: 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /examples ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /admin ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /cocoon ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /test ) 2001-08-07 01:40:57 - ContextManager: Adding context Ctx( /Cocoon ) but no message other this are printed on this file. (All System.out.println are not printed!!) Thanks. - Original Message - From: Loïc Lefèvre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 12:23 PM Subject: RE: I don't see the output under Linux in your server.xml file, add the attibut path to: Logger name=tc_log path=/tmp/tomcat.log here verbosityLevel = INFORMATION / ;) -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 août 2001 09:39 À : [EMAIL PROTECTED] Objet : I don't see the output under Linux I am a new linux user and I have just installed Tomcat under linux. I have developed an application and now I am testing it. Tomcat is installed on a linux server and I try to access it (at my application) with a windows 98 PC. I have introduced a System.out.println lines in my application (for the testing phase), but I don't see theirs output. I have tried to do this (every time that tomcat is started): ./tomcat start tomcat.out without success. How can I do a right redirect? Thanks in advance. Stefano