Page Buffer Size??
Hi all How can change onload page buffer size in tomcat-3.2.1? Is there any possibility? Thanx in adv Lax
RE: Crystal Reports
Title: RE: Crystal Reports Hi May, Where do you call the Crystal reports(.rpt's) from? JSP files???! Lax -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 6:44 PM To: [EMAIL PROTECTED]; Bill May Subject: Re: Crystal Reports Hi, I'm not sure what crystal report files are, but from your email I gather they are a script that apache handles nicely. Tomcat is a dedicated servlet engine - if it aint a servlet, dont make tomcat serve it... I assume you'll be having apache sit in front of tomcat anyway, so just continue as you have been. cheesr dim On Wed, 18 Jul 2001, Bill May wrote: G'Day, A question Is it possible to configure Tomcat to serve Crystal Report (.rpt files) With Apache this is achieved by calling an executable in the cgi-bin directory I suppose the question is Does Tomcat support cgi scripts ? Cheers Bill May Power Solutions DTD Pty Ltd Did you know PSD offer Data Cleansing services which help to identify duplicate patient records Phone: 0413 560 677 email: [EMAIL PROTECTED] Web Site: www.power-solutions.com.au
Mod_jk error
Title: Mod_jk error Hi This is what is available in mod_kk error log when i start Apache with tomcat every time [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 What does this mean? Pls Help Thanx Lax
Reg Mod_Jk (NT)
Title: Reg Mod_Jk (NT) Hi If i want to run two instances of tomcat with one webserver(apache) catering to two different environments such as development and testing, how'll i differenciate the requests arriving from two different ports as one for tomcat1 and the next for tomcat2 by setting up virtual hosts in apache httpd.conf? Help Pls. Thanx in adv Lax
RE: tomcat-apache?? why Jserv Module?
Title: tomcat-apache?? why Jserv Module? Dearravi, I'm setting upa server for development as well as testing environments. I need both to run parallelly. Problem comes when i need to have two different databases..that means two dsn's for connecting to them. I place this dsn in an ini file in the server root i.e by default the bin folder of tomcat. Note this, i need to have one set of jsp files, set of class files(these are not common to these envs), and ofcourse ini file where i place the dsn. At startup i load some servlet classes. Whatshould do be done: Have one Apache webserver which caters to both the env's using tomcat. What i did: Have one Apache webserver, two tomcats running in the same machine (O/S: Win'NT) if i have two tomcats, i'll have two bin folders to place my ini files have two independent dsn's there Is that right? Should i include two mod_jk.conf-auto in httpd.conf Awaiting ur reply Lax -Original Message-From: Ravishankar.S [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 19, 2001 11:57 AMTo: [EMAIL PROTECTED]Subject: Re: tomcat-apache?? why Jserv Module? dear lax, u can't use mod_jk and ModJServ at the same time!!delete the ApacheModJServ.dll file from ur modules dir( it says so in the docs).now,if u r using mod_jk forget abt the tomcat-apache.conf file.the file to look at is "mod_jk.conf-auto".this file is overwritten every time u start tomcat.try editing this file.of course the path to this file must be included in "httpd.conf".why exactly do u want to use two diff workers for.is ur server serving a heavy load site or r u jus experimenting.pl let me know ravi - Original Message ----- From: Lakshminarayanan Ramakrishnan To: [EMAIL PROTECTED] Sent: Thursday, July 12, 2001 11:27 AM Subject: RE: tomcat-apache?? why Jserv Module? Dear Ravi, Then how to make mod_jk understand that i have two different workers at these locations...thats where i'm stuckup. I include two different Mod_jk.conf-auto files for specifying different workers apart from tomcat-apache.conf, in httpd.conf file. Is that right? Lax -Original Message-From: Ravishankar.S [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 19, 2001 11:42 AMTo: [EMAIL PROTECTED]Subject: Re: tomcat-apache?? why Jserv Module? dear lax, actually u don't need two diff "tomcat-apache.conf "files for multiple workers.what u can do is edit a file called "workers.properties" (in the "conf "dir of tomcat) and read the comments and configure it .tomcat automatically balances ur load,further i recommend uto use the ajpv13 protocol since it is faster and better than the ajpv12 protocol.this can be done in "server.xml".please read "tomcat-workers howto.html" for more info,it's a very useful file.read it carefully and configure it accordingly ravi
RE: tomcat-apache?? why Jserv Module?
Title: tomcat-apache?? why Jserv Module? Dear Ravi, Wonderful ravi.I got ur point. But, i forgot to tell you one important point in my prev mail that, we have our own connectionpool(written in java) running, which requires the dsn name to be in the ini file other than that it requires some info for logging errors etc. Take a look... So i need to have two server roots isn't it?? INI file content...in the server root for development: DBUSER=devDBDRIVER=sun.jdbc.odbc.JdbcOdbcDriverDBPASSWORD=devDBURL=jdbc:odbc:devDBCONNECTIONS=30SYSERRORLOGFILE=SYSERROR.LOGAPPERRORLOGFILE=APPERROR.LOGAPPERRORDESCFILE=ERRORS.INF for Test: DBUSER=testDBDRIVER=sun.jdbc.odbc.JdbcOdbcDriverDBPASSWORD=testDBURL=jdbc:odbc:testDBCONNECTIONS=30SYSERRORLOGFILE=SYSERROR.LOGAPPERRORLOGFILE=APPERROR.LOGAPPERRORDESCFILE=ERRORS.INF Lax -Original Message-From: Ravishankar.S [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 19, 2001 1:34 PMTo: [EMAIL PROTECTED]Subject: Re: tomcat-apache?? why Jserv Module? dear lax, pl bear with me.this is going to be a long one.as i understand it u r having two databases( say oracle sql-server) serving two diff applications(i.e each has it's own jsp's and servlets).now one way to do it is create two different contexts of tomcat and create WEB-INF and examples/jsp folders for each context.then u can simply put the respective applications in each context and happily run them and no need for the ini file to have the dsn's .u can create the dsn's in ODBC datasources wizard in administrative tools(win nt) and use url="jdbc:odbc:dsn name" .but this way ur performance is poor(as there is only one jvm is being used by tomcat).what u can do is read the file "tomcat user guide:a minimalistic approach" in docs dir.u can have two context's using diff jvm's to serve ur contexts.it takes up sys resources but ur speed improves.the baseline is instead of one server.xml file u need to have two server.xml files.in one xml file u load one context and in the other u load the other context.u can then start two tomcat's by startup -f path to server.xml.ur apache then sends the necessary servlet/jsp to the respective context depending upon ur ACTION attribute. both context's should have diff ports(say 8007 8009) http://localhost:8080/context1 directs to one context http://localhost:8080/context2 directs to the other context u need to read the docs carefully.it is difficult to acheive but not impoosible and should be attempted only if there is real need for it!!! ravi
RE: Tomcat Apache
Title: RE: Tomcat Apache Hi David, You need to comment out the connector having class org.apache.tomcat.service.PoolTcpConnector with port 8080 in server.xml file If u have this then it'f functioning 'd seem very awkward..try Reg Lax -Original Message- From: Herzig, David [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 2:24 PM To: '[EMAIL PROTECTED]' Subject: Tomcat Apache Dear Tomcat users Question: I have sucessfully installed tomcat with apache. I have an application running which I can access via Tomcat: http://192.168.1.11:8080/eshop or via apache: http://192.168.1.11/eshop But, after a restart of tomcat and apache, the access via apache is not working. If I access the application via tomcat it is working and after this access also apache is working. So, access via apache is only working, if I made already an access via tomcat! Can anybody give me some hints? Many thanks in advance DAVE
Hi Ravi
Title: Hi Ravi Dear Ravi, Wonderful ravi. I got ur point. But, i forgot to tell you one important point in my prev mail that, we have our own connectionpool(written in java) running, which requires the dsn name to be in the ini file other than that it requires some info for logging errors etc. Take a look... So i need to have two server roots isn't it?? INI file content...in the server root for development: DBUSER=dev DBDRIVER=sun.jdbc.odbc.JdbcOdbcDriver DBPASSWORD=dev DBURL=jdbc:odbc:dev DBCONNECTIONS=30 SYSERRORLOGFILE=SYSERROR.LOG APPERRORLOGFILE=APPERROR.LOG APPERRORDESCFILE=ERRORS.INF for Test: DBUSER=test DBDRIVER=sun.jdbc.odbc.JdbcOdbcDriver DBPASSWORD=test DBURL=jdbc:odbc:test DBCONNECTIONS=30 SYSERRORLOGFILE=SYSERROR.LOG APPERRORLOGFILE=APPERROR.LOG APPERRORDESCFILE=ERRORS.INF Lax
tomcat-apache?? why Jserv Module?
Title: tomcat-apache?? why Jserv Module? Hi Is that ApJservModule.dll (on NT) needed for linking tomcat and Apache? Thanx Lax
RE: tomcat-apache?? why Jserv Module?
Title: tomcat-apache?? why Jserv Module? Thanx ravi for replying promptly, Actually i'm running two tomcat workers and one apache web server, in that case, in tomcat-apache.conf file i need to specify this IfModule mod_jserv.c ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultPort 8007 .. /IfModule Apache does not accept this when this occurs two timessince i include two different tomcat-apche.conf files for two different tomcat servers What to do? thanx Lax -Original Message-From: Ravishankar.S [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 19, 2001 10:56 AMTo: [EMAIL PROTECTED]Subject: Re: tomcat-apache?? why Jserv Module? dear lax , u need a dll file called ApacheModJServ.dll.just copy this dll to " modules " dir of apache and include the path of "tomcat-apache.conf" in the httpd.conf file of apache and then presto u have tomcat+apache setup.i can send u the config files if u want it later regds, ravi - Original Message ----- From: Lakshminarayanan Ramakrishnan To: [EMAIL PROTECTED] Sent: Thursday, July 12, 2001 10:26 AM Subject: tomcat-apache?? why Jserv Module? Hi Is that ApJservModule.dll (on NT) needed for linking tomcat and Apache? Thanx Lax
RE: tomcat-apache?? why Jserv Module?
Title: tomcat-apache?? why Jserv Module? Dear Ravi, Then how to make mod_jk understand that i have two different workers at these locations...thats where i'm stuckup. I include two different Mod_jk.conf-auto files for specifying different workers apart from tomcat-apache.conf, in httpd.conf file. Is that right? Lax -Original Message-From: Ravishankar.S [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 19, 2001 11:42 AMTo: [EMAIL PROTECTED]Subject: Re: tomcat-apache?? why Jserv Module? dear lax, actually u don't need two diff "tomcat-apache.conf "files for multiple workers.what u can do is edit a file called "workers.properties" (in the "conf "dir of tomcat) and read the comments and configure it .tomcat automatically balances ur load,further i recommend uto use the ajpv13 protocol since it is faster and better than the ajpv12 protocol.this can be done in "server.xml".please read "tomcat-workers howto.html" for more info,it's a very useful file.read it carefully and configure it accordingly ravi
Tomcat-servlet at startup
Title: Tomcat-servlet at startup Hi Tomcat loads the servlet class at startup, as far as my knowledge goes it functions properly, but when i look into tomcat.log, it is something like this, pls look at the the highlighted text, it says null, what does it mean?, and moreover, two contexts are present one empty and the other /root 2001-07-10 08:50:16 - Ctx( /examples ): Add context 2001-07-10 08:50:16 - ContextManager: Adding context Ctx( /examples ) 2001-07-10 08:50:17 - Ctx( /admin ): Add context 2001-07-10 08:50:17 - ContextManager: Adding context Ctx( /admin ) 2001-07-10 08:50:17 - Ctx( /root ): Add context 2001-07-10 08:50:17 - ContextManager: Adding context Ctx( /root ) 2001-07-10 08:50:17 - ContextManager: Engine init 2001-07-10 08:50:17 - Ctx( ): Add context 2001-07-10 08:50:17 - ContextManager: Adding context Ctx( ) 2001-07-10 08:50:17 - Ctx( /test ): Add context 2001-07-10 08:50:17 - ContextManager: Adding context Ctx( /test ) 2001-07-10 08:50:17 - Ctx( /examples ): Context Init 2001-07-10 08:50:17 - Ctx( /examples ): Pre servlet init jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:17 - Ctx( /examples ): Post servlet init jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:17 - Ctx( /admin ): Context Init 2001-07-10 08:50:17 - Ctx( /admin ): Pre servlet init jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:17 - Ctx( /admin ): Post servlet init jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:17 - Ctx( /root ): Context Init 2001-07-10 08:50:17 - Ctx( /root ): Removing duplicate servlet jsp jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:17 - Ctx( /root ): Removing duplicate *.jsp - jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:17 - Ctx( /root ): Pre servlet init HangFung(JWLStartUp.JWLLoadDefaults/null) 2001-07-10 08:50:17 - Ctx( /root ): Post servlet init HangFung(JWLStartUp.JWLLoadDefaults/null) 2001-07-10 08:50:17 - Ctx( ): Context Init 2001-07-10 08:50:17 - Ctx( ): Removing duplicate servlet jsp jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:17 - Ctx( ): Removing duplicate *.jsp - jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:17 - Ctx( ): Pre servlet init HangFung(JWLStartUp.JWLLoadDefaults/null) 2001-07-10 08:50:17 - Ctx( ): Post servlet init HangFung(JWLStartUp.JWLLoadDefaults/null) 2001-07-10 08:50:17 - Ctx( /test ): Context Init 2001-07-10 08:50:17 - Ctx( /test ): Pre servlet init jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:17 - Ctx( /test ): Post servlet init jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 08:50:19 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-07-10 08:50:19 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 2001-07-10 09:05:13 - ContextManager: Removing context Ctx( /examples ) 2001-07-10 09:05:13 - Ctx( /examples ): Remove context 2001-07-10 09:05:13 - Ctx( /examples ): Pre servlet destroy jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 09:05:13 - Ctx( /examples ): Post servlet destroy jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 09:05:13 - Ctx( /examples ): Context Shutdown 2001-07-10 09:05:13 - ContextManager: Removing context Ctx( /admin ) 2001-07-10 09:05:13 - Ctx( /admin ): Remove context 2001-07-10 09:05:13 - Ctx( /admin ): Pre servlet destroy jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 09:05:13 - Ctx( /admin ): Post servlet destroy jsp(org.apache.jasper.servlet.JspServlet/null) 2001-07-10 09:05:13 - Ctx( /admin ): Context Shutdown thanx in adv Lax
tomcat exception
Title: tomcat exception Hi When given a jsp request, tomcat throws an exception saying... What could be the probable reasons?(FYI.class files placed in webpps/root/WEB-INF/classes folder) Pls. Help.. Thanx in adv Lax EXCEPTION TROWN: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at BOM._0002fBOM_0002fjwm_0005fFeature_0002ejspjwm_0005fFeature_jsp_0._jspService(_0002fBOM_0002fjwm_0005fFeature_0002ejspjwm_0005fFeature_jsp_0.java:425) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NullPointerException at BOM._0002fBOM_0002fjwm_0005fFeature_0002ejspjwm_0005fFeature_jsp_0._jspService(_0002fBOM_0002fjwm_0005fFeature_0002ejspjwm_0005fFeature_jsp_0.java:112) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484)
tomcat-documentroot
Title: tomcat-documentroot Hi This is a peculier situation where in, i need to place my files(jsp) outside tomcat's default root (in a different machine). Everything works fine when the files(jsp) are in tomcat default root, that is, the servlet classes get loaded automatically as i specify, and the required output is obtained. But, when files(jsp's) are placed outside the default root, the methods of default load classes are not accesible. What can be done for this? Thanx Lax
RE: imp - Tomcat with SSL
ITHINK TOMCAT 3.2 SUPPORTS SSL, YOU CAN GO THRU THE DOCUMENTATION PROVIDED. LAX -Original Message-From: Parag S [mailto:[EMAIL PROTECTED]]Sent: Friday, July 06, 2001 11:33 AMTo: [EMAIL PROTECTED]Subject: imp - Tomcat with SSL Does Tomcat supports SSL If yes then which version supports it. Please let me know immediatly Thanking you in advance. parag