WAP Gateway
hello, I am trying to send some data using POST from a BlackBerry handheld device to a servlet deployed in tomcat. everything works fine when i use the BlackBerry simulator. But when i use the device and connect with a WAP Gateway, tomcat hangs when large packets are transmitted. Is there any special configurations to be made in tomcat to enable it work propertly with WAP gateways? I am in need for an immediate solution. thanks in advance best regards Vijay Mathew Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session persistance
Hi All, I need to 1. Store the session object in a database (I can trigger this operation from a jsp say logoff.jsp ) 2. Retrieve the session object from the database (I can trigger this operation from a jsp say login.jsp ) Thoughts?? Thanks, Anu Mathew
Re: Session persistance
Thanks for the response. I already read the manager component of the tomcat doc. There it is mentioned that de-serialization or retrieval of the session object happens automatically when the application restarts or the application server restart. But in my case both storing and restoring the session has to be controlled by my program. Thoughts?? Thanks, Anu Mathew - Original Message - From: Benjamin Armintor [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 15, 2004 6:46 PM Subject: RE: Session persistance The Manager section of the configuration docs covers persistent sessions and JDBC session stores. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Anu Mathew [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 8:04 AM To: Tomcat Users List Subject: Session persistance Hi All, I need to 1. Store the session object in a database (I can trigger this operation from a jsp say logoff.jsp ) 2. Retrieve the session object from the database (I can trigger this operation from a jsp say login.jsp ) Thoughts?? Thanks, Anu Mathew - 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: Session persistance
I already RTFM. From the manual I understood that you are also part of developing TFM. But in TFM, restoring of the session is mentioned as automatic when the applicatio/server restarts. But I want to control both storing and restoring of the session using my code. Is this possible? Thanks, Anu Mathew - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 15, 2004 6:45 PM Subject: RE: Session persistance Hi, I need to 1. Store the session object in a database (I can trigger this operation from a jsp say logoff.jsp ) 2. Retrieve the session object from the database (I can trigger this operation from a jsp say login.jsp ) Thoughts?? Here's one thought: RTFM. JDBC store for sessions: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
problem in jsp:useBean
Hi, I'm getting an error java.lang.NoClassDefFoundError: net/advinfo/pcs/pcscontroller/pspsetup/standards/LanguageObjectTypeAndChklstCatBean at org.apache.jsp.PSPStandards.Ed_002dPSPStandards_jsp._jspService(Ed_002dPSPStandards_jsp.java:143) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:742) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:506) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:443) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359) at net.advinfo.pcs.pcsdispatcher.Dispatcher.service(Dispatcher.java:103) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) for the folowing line in a jsp jsp:useBean id=objLangObjChkBean class=net.advinfo.pcs.pcscontroller.pspsetup.standards.LanguageObjectTypeAndChklstCatBean scope=session / net.advinfo.pcs.pcscontroller.pspsetup.standards.LanguageObjectTypeAndChklstCatBean is in WEB-INF\classes\net\advinfo\pcs\pcscontroller\pspsetup\standards\ Here is my server info Server Information Tomcat Version JVM Version JVM Vendor OS Name OS Version OS Architecture Apache Tomcat/5.0.18 1.4.2_03-b02 Sun Microsystems Inc. Windows XP 5.1 x86 The intersting thing is when I access the same JSP again I'm not getting this error. This error happens randomly when the page is accessed for the first time after the application is deployed. The same page works fine in tomcat 4.x. Please let me know the solution if any. Thanks, Anu Mathew
Re: omcat 5 on WinNT
- Original Message - From: Anand Ravi [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, April 05, 2004 1:17 PM Subject: omcat 5 on WinNT Hi List, I am trying to install Tomcat 5.0.19 on Win NT4 (SP4) with no success. Any pointers will be highly appreciated. Thanks and Regards, Anand Ravi - 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: customized error page
I am still trying to fix error page problem. This is my server.xml Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/myapp docBase=myapp debug=0 crossContext=true reloadable=true Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ... ... /Context /Host I have a directory $TOMCAT_HOME/webbapps/myapp in my system. I created error/404.html in $TOMCAT_HOME/webbapps/myapp. But I am not able to see 404.html if get 404 error, but I get page not found. It should he under your root directory of the application or the directory in which your web-inf is present. Say c:\app\root\error Software Engineer Adamshand Inc www.interviewexchange.com -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 10:31 AM To: Tomcat Users List Subject: customized error page I have following code in my web.xml to redirect when ever I get 404 error. But I don't know where I have to create error folder (relative path) and put 404.html. Is it under /WEB-INF of application ? error-page error-code404/error-code location/error/404.html/location /error-page - 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: customized error page
I can see that page, if type the url on browser Hi, I have a directory $TOMCAT_HOME/webbapps/myapp in my system. I created error/404.html in $TOMCAT_HOME/webbapps/myapp. But I am not able to see 404.html if get 404 error, but I get page not found. Can you point your browser http://yourhost:yourport/myapp/error/404.html and see the page? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: customized error page
I can see that page, if type the url on browser Hi, I have a directory $TOMCAT_HOME/webbapps/myapp in my system. I created error/404.html in $TOMCAT_HOME/webbapps/myapp. But I am not able to see 404.html if get 404 error, but I get page not found. Can you point your browser http://yourhost:yourport/myapp/error/404.html and see the page? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Classloader problems
U got it. My TOMCAT start up with our errors. I checked in logs directory and made sure it. If I take out this from web.xml and restart webserver/tomcat I get typical 404 TOMCAT message if type a wrong url. error-page error-code404/error-code location/error/404.html/location /error-page Hi, I have two jar files I'd like to make available to all my web applications so I placed them in $TOMCAT_HOME/shared/lib however they are not being found. I also tried common/lib but it didn't work either. The error I'm getting is java.lang.IllegalStateException: java.lang.ClassNotFoundException: What two jars are these? Is the class in the CNFE above in one of those two jars? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Apache as Service on Linux - Help
As service in Linux ?? In NT U can do that Hi All, Is there any way to install Apache2 and Tomcat4 as service on Linux? If so, please advise me. Your help is greatly appreciated. Regards, Rama - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
customized error page
I have following code in my web.xml to redirect when ever I get 404 error. But I don't know where I have to create error folder (relative path) and put 404.html. Is it under /WEB-INF of application ? error-page error-code404/error-code location/error/404.html/location /error-page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help - Data Source problem
I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated . org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help - Data Source problem
Thak you for your response.. I appreciate your time .. This is my server.xml --- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=sunil docBase=sunil debug=0 crossContext=true reloadable=true Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value /parameter parameter nameusername/name valuewebuser/value /parameter parameter namepassword/name valueoralin/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context My Web.xml is -- web-app servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app Supply more information. What does your server.xml and web.xml look like? (don't post the whole file, just relevant parts). Where is your driver jar located? (it should be common/lib) That class of error (class '' for URL 'null') is fairly common, and normally it's mis-configuration. -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 9:42 AM To: [EMAIL PROTECTED] Subject: Need help - Data Source problem I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated . org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null - 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: problem in configuring a Datasource in Tomcat 5.0
I am also having the same problem. I just posted my sever.xml and web.xml to the group. Any help is really appreciated Hi, i am still trying to configure a datasource with tomcat.. I have a mysql instance running on my machine, (I can use without any problem mysql console and mysql gui client), but in tomcat I am still getting Following exception.. org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFact ory, cause: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is ther e a MySQL server running on the machine/port you are trying to connect to? (java .net.ConnectException) at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source) at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Unknown Source) at org.gjt.mm.mysql.Driver.connect(Unknown Source) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv erConnectionFactory.java:82) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable ConnectionFactory.java:300) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas icDataSource.java:838) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:821) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at org.apache.jsp.testdb_jsp._jspService(testdb_jsp.java:64) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:311) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 01) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) I attach again my server.xml... Thanx in advance and regards Marco -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: 03 March 2004 15:58 To: 'Shapira, Yoav' Subject: RE: problem in configuring a Datasource in Tomcat 5.0 Hi Yoav, Thanx, but it worked for half :-( Now I am getting this exception : org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFact ory, cause: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is ther e a MySQL server running on the machine/port you are trying to connect to? (java .lang.NumberFormatException) at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source) this would mean that there is no mysql server running at localhost.. however, I have just started one instance, and here is mysql output.. InnoDB: The first specified data file .\ibdata1 did not exist: InnoDB: a new database to be created! 040303 13:43:50 InnoDB: Setting file .\ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 040303 13:43:50 InnoDB: Log file .\ib_logfile0 did not exist: new to be created InnoDB: Setting log file .\ib_logfile0 size to 5 MB InnoDB: Database physically writes the file full: wait... 040303 13:43:51 InnoDB: Log file .\ib_logfile1 did not exist: new to be created InnoDB: Setting log file .\ib_logfile1 size to 5 MB InnoDB: Database physically writes the file full: wait... InnoDB: Doublewrite buffer not found: creating new InnoDB: Doublewrite buffer created InnoDB: Creating foreign key constraint system tables InnoDB: Foreign key constraint system tables created 040303 13:43:54 InnoDB: Started; log sequence number 0 0 mysqld: ready for connections. Version: '4.1.1a-alpha-max-debug' socket: '' port: 3306 Any suggestions? Thanx in advance and regards marco -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 03 March 2004 14:12 To: Tomcat Users List Subject: RE: problem in configuring a Datasource in Tomcat 5.0 Hi, Try moving your TestDB datasource to your context declaration and out of GlobalNamingResources. Yoav Shapira Millennium ChemInformatics -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 9:10 AM To: [EMAIL PROTECTED] Subject: problem in configuring a Datasource in Tomcat 5.0 Hi all, I am trying to configure a Datasource with tomcat 5.0, and I keep on getting Following exception : org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' ' for connect URL 'null', cause: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at org.apache.jsp.testdb_jsp._jspService(testdb_jsp.java:64) at
RE: Need help - Data Source problem
I am still trying to fix this problem. I looked at TOMCAT_HOME/commons/lib dircory and found out that I have commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too. I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated . my set up is like this :- This is my server.xml --- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=sunil docBase=sunil debug=0 crossContext=true reloadable=true Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value /parameter parameter nameusername/name valuewebuser/value /parameter parameter namepassword/name valueoralin/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context My Web.xml is -- web-app servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help - Data Source problem
I have a classes111.jar file common/lib . Any other suggestion where is the oracle connection driver jar file ? It needs to be in common/lib as well -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: RE: Need help - Data Source problem I am still trying to fix this problem. I looked at TOMCAT_HOME/commons/lib dircory and found out that I have commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too. I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my server.xml and web.xml to use data source. When ever I excecute a servlet from browser I get the folloeing message. For me it looks like my program is not able to read tags in server.xml to get driver class info. Any help is really appreciated . my set up is like this :- This is my server.xml --- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=sunil docBase=sunil debug=0 crossContext=true reloadable=true Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value /parameter parameter nameusername/name valuewebuser/value /parameter parameter namepassword/name valueoralin/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context My Web.xml is -- web-app servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/servlet/MyServlet/url-pattern /servlet-mapping resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app - 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]
URGENT: javax.net.ssl.SSLException: error while writing to socket
Hello, I am using tomcat 4.19 +win2000 .We have an ssl site in tomcat which is NOT self signed. It works fine for some time, but after sometime the follwoing error occurs. Please help us because it is urgent. Regards Sujith Mathew Nov 19, 2002 1:41:35 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 443 Nov 19, 2002 1:41:35 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 443 Nov 19, 2002 1:41:43 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 443 Nov 19, 2002 1:41:43 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 443 Nov 19, 2002 2:29:24 AM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Handshake failed javax.net.ssl.SSLException: error while writing to socket at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at java.io.OutputStream.write(OutputStream.java:58) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFactory.jav a:270) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:493) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) Nov 19, 2002 2:29:24 AM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Caught exception executing org.apache.tomcat.util.net.TcpWorkerThread@7aece8, terminating thread java.lang.NullPointerException at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:512) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) Nov 19, 2002 2:29:25 AM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Handshake failed java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:116) at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6275) at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at java.io.OutputStream.write(OutputStream.java:58) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFactory.jav a:270) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:493) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) Nov 19, 2002 2:29:25 AM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Caught exception executing org.apache.tomcat.util.net.TcpWorkerThread@7aece8, terminating thread java.lang.NullPointerException at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:512) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) Nov 19, 2002 6:43:25 AM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Handshake failed javax.net.ssl.SSLException: error while writing to socket at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at java.io.OutputStream.write(OutputStream.java:58) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFactory.jav a:270) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:493) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) Nov 19, 2002 6:43:25 AM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Caught exception executing org.apache.tomcat.util.net.TcpWorkerThread@7aece8, terminating thread java.lang.NullPointerException at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:512) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:536) Nov 19, 2002 10:49:24 AM org.apache.tomcat.util.log.CommonLogHandler log INFO: All threads are busy, waiting. Please increase maxThreads or check the servlet status20 20 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [HOW TO] - GLOBAL VARIABLES - PLEASE HELP
Hi Donie, The second half of this is you need to know how to access it: try { Context initCtx = new InitialContext(); String foo = (String)(context.lookup (java:comp/env/foo)); } catch (NamingException exc) { // oops } Regards, Mathew -- Mathew Pole Web Architect, Gerard Industries email: [EMAIL PROTECTED] mailto:mathew.pole;clipsal.com.au www: http://www.clipsal.com http://www.clipsal.com http://www.custompress.com.au http://www.custompress.com.au phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617 Hi Donie, You can define a variable in the global web.xml (in conf directory). This variable should be available to all your applications. This should come at the end of the $TOMCAT_HOME/conf/web.xml file. Though I have not used and tested this (I use for a single application in application specific web.xml) I feel it should work. env-entry descriptionsome description/description env-entry-namefoo/env-entry-name env-entry-valuebar/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry Raj -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
configuring virtual hosts
Hi all, i have a domain www.abc.com I want my web server to be Tomcat 4.0.3( I dont want tomcat to run as an add on to apache) How i will configure my server.xml to have the virtual host www.abc pointing toward a context path in my tomcat server. Any reply is highly appreciated. Is it possible to have multiple domains also in the same tomcat server. Raiju __ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Internal Server Error when changing class file
Hi , Recently I stopped the MyHttpServlet class implementing the javax.servlet.SingleThreadModel, and servlets appear to reload okay now when changing the class file. Hopefully this helps someone. Regards, Mathew -- Mathew Pole Web Architect, Gerard Industries email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www: http://www.clipsal.com, http://www.clipsalmoeller.com.au, http://www.aes-pl.com, www.tungali.com phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617 -Original Message- From: Mathew Pole Sent: Wednesday, 4 September 2002 5:01 PM To: [EMAIL PROTECTED] Subject: Internal Server Error when changing class file Hi , During development I have defined the following context to enable reloading of servlets when I change code: !-- Clipsal Context -- Context path=/clipsal docBase=clipsal debug=0 reloadable=true crossContext=true /Context Unfortunately every change to code generates a HTTP Status 500 - Internal Server Error, with the following stack trace: java.lang.NullPointerException at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:678) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) I'm running Apache Tomcat/4.1.10-LE-jdk14 on Windows 2000. On startup the error ServerLifecycleLIstener: createMBeans: MBeanException is reported, but I'm under the impression that this is not important. Does anyone have suggestions on how to fix this (if it is possible)? Thanks, Mathew -- Mathew Pole Web Architect, Gerard Industries email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] www: http://www.clipsal.com/ http://www.clipsal.com http://www.custompress.com.au/ http://www.custompress.com.au phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Servlet multithreading design question
If I create classes similar to the following, then I suspect that I will run into multithreading issues, because OneServlet and TwoServlet will run in the same JVM? Is this correct? public abstract class BaseServlet extends HttpServlet implements SingleThreadModel { int value; } public class OneServlet extends BaseServlet { public void init (ServletConfig config) { value = 1; } } public class TwoServlet extends BaseServlet { public void init (ServletConfig config) { value = 2; } } -- Mathew Pole Web Architect, Gerard Industries email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] www: http://www.clipsal.com/ http://www.clipsal.com http://www.custompress.com.au/ http://www.custompress.com.au phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617
Internal Server Error when changing class file
Hi , During development I have defined the following context to enable reloading of servlets when I change code: !-- Clipsal Context -- Context path=/clipsal docBase=clipsal debug=0 reloadable=true crossContext=true /Context Unfortunately every change to code generates a HTTP Status 500 - Internal Server Error, with the following stack trace: java.lang.NullPointerException at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:678) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) I'm running Apache Tomcat/4.1.10-LE-jdk14 on Windows 2000. On startup the error ServerLifecycleLIstener: createMBeans: MBeanException is reported, but I'm under the impression that this is not important. Does anyone have suggestions on how to fix this (if it is possible)? Thanks, Mathew -- Mathew Pole Web Architect, Gerard Industries email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] www: http://www.clipsal.com/ http://www.clipsal.com http://www.custompress.com.au/ http://www.custompress.com.au phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617
RE: Adding HTTPS to Tomcat/Apache/mod_jk install on NT
For those people who want binaries of Apache with SSL for win32, the urls: - http://www.gknw.de/development/apache/ - http://www.pcp-computer.de/gkn/apache/httpd-2.0/win32/ (mirror?) provide pre-compiled binaries. Make sure you get version 2.0.40, because 2.0.39 has a nasty bug with serving pdfs. -- Mathew Pole Web Architect, Gerard Industries email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617 -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Thursday, 22 August 2002 11:19 PM To: [EMAIL PROTECTED] Subject: Adding HTTPS to Tomcat/Apache/mod_jk install on NT Hello again all listers. I was wondering if anyone could point me in the right direction on setting up HTTPS on my Apache 2.0.40 / Tomcat 4.0.4 / mod_jk installation on WinNT 4? Any help would be greatly appreciated. Thanks, Kenny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux
Hi , At first glance the following combination sounded like a great idea (especially as I had success with this on windows 2000): tomcat 4.0.4 tomcat connectors 4.0.4 apache 2.0.39 linux (gentoo 1.2 distribution) In reality it has proved very challenging. I've tried the following: Following instructions provided by John Turner in http://www.johnturner.com/howto/apache-tomcat-howto.html, I came across a couple of issues which I resolved by failed trying to build the mod_jk.so, but after setting apache13.home to a bogus location and running ant native it appears to have worked copied jk/build/lib/mod_jk.so apache2/modules copied jk/build/lib/*.jar to tomcat/common updated apache.conf file as suggested updated server.xml as suggested, with addition of modJk="/usr/local/apache2/modules/mod_jk.so" in the listener definition Currently, in the tomcat/logs/catalina.out file the following text is appearing (note the string after In : : [ changes, but 4/843 remains constant): BAD packet 256 In: : [B@3e58d4 4/843 followed by what appears to be some hex output of mainly 00s. My suspicion is that this error is caused by one of: mod_jk.so being compiled incorrectly connector jar files being compiled incorrectly or being in the wrong place incorrect configuration I've also attached logs configuration files to this email. Hopefully this is enough information for someone to help me. In addition to this I looked at the instructions in http://wass.homelinux.net/howtos/Jakarta_How-To.shtml, but the mod-jk-303-ap20.so doesn't work with apache 2.0.39. Regards, Mathew --Mathew Pole Web Architect, Gerard Industriesemail: [EMAIL PROTECTED]phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617 workers.properties Description: Binary data 2002-08-20 16:47:39 HttpConnector Opening server socket on all host IP addresses 2002-08-20 16:47:46 HttpConnector[8080] Starting background thread 2002-08-20 16:47:46 HttpProcessor[8080][0] Starting background thread 2002-08-20 16:47:46 HttpProcessor[8080][1] Starting background thread 2002-08-20 16:47:46 HttpProcessor[8080][2] Starting background thread 2002-08-20 16:47:46 HttpProcessor[8080][3] Starting background thread 2002-08-20 16:47:46 HttpProcessor[8080][4] Starting background thread 2002-08-20 16:47:46 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-08-20 16:47:46 Ajp13Connector[8009] Starting background thread 2002-08-20 16:47:47 Ajp13Processor[8009][0] Starting background thread 2002-08-20 16:47:47 Ajp13Processor[8009][1] Starting background thread 2002-08-20 16:47:47 Ajp13Processor[8009][2] Starting background thread 2002-08-20 16:47:47 Ajp13Processor[8009][3] Starting background thread 2002-08-20 16:47:47 Ajp13Processor[8009][4] Starting background thread 2002-08-20 16:48:54 Ajp13Processor[8009][4] [Ajp13] incomplete read, waited #-1 got only 0 2002-08-20 16:47:43 WebappLoader[/examples]: Deploying class repositories to work directory /opt/jakarta/tomcat/work/Standalone/mpole2/examples 2002-08-20 16:47:43 WebappLoader[/examples]: Reloading checks are enabled for this Context 2002-08-20 16:47:43 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2002-08-20 16:47:43 StandardManager[/examples]: Seeding of random number generator has been completed 2002-08-20 16:47:44 ContextConfig[/examples]: Added certificates - request attribute Valve 2002-08-20 16:47:44 ContextConfig[/examples]: Configured an authenticator for method FORM 2002-08-20 16:47:44 ContextListener: contextInitialized() 2002-08-20 16:47:44 SessionListener: contextInitialized() 2002-08-20 16:47:44 ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@ca470') 2002-08-20 16:47:44 StandardWrapper[/examples:default]: Loading container servlet default 2002-08-20 16:47:44 default: init 2002-08-20 16:47:44 StandardWrapper[/examples:invoker]: Loading container servlet invoker 2002-08-20 16:47:44 invoker: init 2002-08-20 16:47:44 jsp: init 2002-08-20 16:47:40 WebappLoader[/manager]: Deploying class repositories to work directory /opt/jakarta/tomcat/work/Standalone/mpole2/manager 2002-08-20 16:47:40 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom 2002-08-20 16:47:40 StandardManager[/manager]: Seeding of random number generator has been completed 2002-08-20 16:47:41 ContextConfig[/manager]: Added certificates - request attribute Valve 2002-08-20 16:47:42 ContextConfig[/manager]: Configured an authenticator for method BASIC 2002-08-20 16:47:42 StandardWrapper[/manager:default]: Loading container servlet default 2002-08-20 16:47:42 default: init 2002-08-20 16:47:42 StandardWrapper[/manager:invoker]: Loading container servlet invoker 2002-08-20 16:47:42 invoker: init 2002-08-20 16:47:42 jsp: init 2002-08-20 16:47:44 StandardHost[mpole2]: Installing web a
RE: Can't get tomcat4 + mod_jk + apache to work
The /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf is automatically generated by tomcat (see http://www.johnturner.com/howto/mod_jk_conf.html for an example) -- Mathew Pole Web Architect, Gerard Industries email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617 -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 20 August 2002 3:59 PM To: Tomcat Users List Subject: Re: Can't get tomcat4 + mod_jk + apache to work On Tue, 20 Aug 2002, Scott Adamson wrote: I have been trying for the last week to get Apache + mod_jk + Tomcat 4 to work. I have confirmed that Tomcat works on 8080, confirmed that Apache is running. [ ... ] Added the following to httpd.conf (see attached) Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf [ ... ] What's in this file? Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux
Hi , I tried this and found that ... When I ran ./buildconf.sh, it reported the following error: configure.in:24: AC_PROG_CPP was called before AC_PROG_CC I ignored this and ran ./configure which appeared to work okay. Unfortunately, the make command failed with (suspect this is caused by ./buildconf.sh failing): Makefile:20: /usr/local/apache2/build/config_vars.mk: No such file or directory make[1]: *** No rule to make target '/usr/local/apache2/build/config_vars.mk'. Stop. Make[1]: Leaving directory '/home/mpole/download/jakarta-tomcat-connectors-4.0.4-src/jk/native/apache-2 .0' make: *** [all-recursive] Error 1 Anyone have a suggestion (or at this point I will settle for a nice prebuilt mod_jk.so for apache 2.0.39)? Thanks, Mathew -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 20 August 2002 11:02 PM To: 'Tomcat Users List' Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux Sorry, my mistake. I misread your email. Now that i think about it some more, i didn't use ant to build the connector. These are the steps i followed cd /home/mark/jakarta-tomcat-connectors-4.1.9-src/jk/native ./buildconf.sh ./configure --with-apxs=/usr/local/apache2/bin/apxs make make install The --with-apxs command ensures that the module is built for the correct version of apache, using that version's own apxs script. Assuming no errors occur, the jk module should have been put into your apache/modules directory. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux
Hi Niket, I found the following page provided enough info for me: http://www.acg-gmbh.de/mod_jk/ Regards, Mathew -- Mathew Pole Web Architect, Gerard Industries email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617 -Original Message- From: Niket Anand [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 20 August 2002 5:35 PM To: Tomcat Users List Subject: Re: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux Hi Mathew, Can I get same type of instructions for Apache2.0.4,JBoss-2.4.6_Tomcat-4.0.3,jakarta-tomcat-connectors-4.0.4-src, JDK1.3.1 on Win2000? Thanks, Niket - Original Message - From: Mathew Pole To: '[EMAIL PROTECTED]' Sent: Tuesday, August 20, 2002 12:57 PM Subject: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux Hi , At first glance the following combination sounded like a great idea (especially as I had success with this on windows 2000): a.. tomcat 4.0.4 b.. tomcat connectors 4.0.4 c.. apache 2.0.39 d.. linux (gentoo 1.2 distribution) In reality it has proved very challenging. I've tried the following: Following instructions provided by John Turner in http://www.johnturner.com/howto/apache-tomcat-howto.html, I came across a couple of issues which I resolved by a.. failed trying to build the mod_jk.so, but after setting apache13.home to a bogus location and running ant native it appears to have worked b.. copied jk/build/lib/mod_jk.so apache2/modules c.. copied jk/build/lib/*.jar to tomcat/common d.. updated apache.conf file as suggested e.. updated server.xml as suggested, with addition of modJk=/usr/local/apache2/modules/mod_jk.so in the listener definition Currently, in the tomcat/logs/catalina.out file the following text is appearing (note the string after In : : [ changes, but 4/843 remains constant): BAD packet 256 In: : [B@3e58d4 4/843 followed by what appears to be some hex output of mainly 00s. My suspicion is that this error is caused by one of: a.. mod_jk.so being compiled incorrectly b.. connector jar files being compiled incorrectly or being in the wrong place c.. incorrect configuration I've also attached logs configuration files to this email. Hopefully this is enough information for someone to help me. In addition to this I looked at the instructions in http://wass.homelinux.net/howtos/Jakarta_How-To.shtml, but the mod-jk-303-ap20.so doesn't work with apache 2.0.39. Regards, Mathew -- Mathew Pole Web Architect, Gerard Industries email: [EMAIL PROTECTED] phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617 -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Please help me... URGENT
Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
thanks to Durham David , Shawn French, Michael Sebetich and RichFincher
Thanks to Durham David , Shawn French, Michael Sebetich and Rich Fincher for prompt response. Looking at your feedback, i feel TOMCAT+SSL would be enough for me. If i need APACHE+TOMCAT+SSL , i can do it more easily in th next version of TOMCAT (which is in beta) which has a web interface for creating connection to APACHE (Otherwise which would be a tricky one like you pointed out) Thanks again Sujith -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
CGI script to execute in TOMCAT. PLEASE HELP
Hello, I am using win2000 Advanced Server + tomcat4.04 (without IIS and apache http), serving static and dynamic pages. I want a CGI script to execute. When i try to execute CGI scripts in tomcat an error page is displayed. It is reproduced below. Please help me . Thanks in advance Sujith Mathew $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java,v 1.6 2001/08/20 02:42:11 amyroh Exp $ CGI script not found or not specified. Check the *HttpServletRequest pathInfo http://www.sbtr.com/cgi-bin/branchl.cgi#pathInfo* property to see if it is what you meant it to be. You must specify an existant and executable file as part of the path-info. For a good discussion of how CGI scripts work and what their environment variables mean, please visit the CGI Specification page http://cgi-spec.golux.com/. ServletRequest Properties * *characterEncoding* = null * *contentLength* = 39 * *contentType* = application/x-www-form-urlencoded * *locale* = hi * *parameter* B1 = Search * *parameter* bname = kowdiar * *parameter* dist = * *parameter* state = ANY * *protocol* = HTTP/1.0 * *remoteAddr* = 202.88.239.52 * *remoteHost* = 202.88.239.52 * *scheme* = http * *secure* = false * *serverName* = www.sbtr.com * *serverPort* = 80 HttpServletRequest Properties * *authType* = null * *contextPath* = * *header* accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */* * *header* referer = http://www.sbtr.com/branch.htm * *header* accept-language = hi * *header* content-type = application/x-www-form-urlencoded * *header* accept-encoding = gzip, deflate * *header* user-agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) * *header* content-length = 39 * *header* via = 1.1 onlinesbt.com:3128 (Squid/2.4.STABLE1) * *header* x-forwarded-for = 172.16.1.36 * *header* host = www.sbtr.com * *header* cache-control = no-cache, max-age=259200 * *header* connection = keep-alive * *method* = POST * *pathInfo* = /branchl.cgi * *pathTranslated* = e:\ftp\sbtr.com\branchl.cgi * *queryString* = null * *remoteUser* = null * *requestedSessionId* = null * *requestedSessionIdFromCookie* = false * *requestedSessionIdFromURL* = false * *requestedSessionIdValid* = false * *requestURI* = /cgi-bin/branchl.cgi * *servletPath* = /cgi-bin * *userPrincipal* = null ServletRequest Attributes ServletConfig Properties * *servletName* = cgi ServletConfig Initialization Parameters * *cgiPathPrefix* = WEB-INF/cgi * *debug* = 6 * *clientInputTimeout* = 100 ServletContext Properties * *majorVersion* = 2 * *minorVersion* = 3 * *realPath('/')* = e:\ftp\sbtr.com\ * *serverInfo* = Apache Tomcat/4.0.4 ServletContext Initialization Parameters ServletContext Attributes * *org.apache.catalina.WELCOME_FILES* = [Ljava.lang.String;@1fbfd6 * *javax.servlet.context.tempdir* = C:\tomcat4\work\Standalone\www.sbtr.com\_ * *org.apache.catalina.resources* = org.apache.naming.resources.ProxyDirContext@6b9c84 * *org.apache.catalina.jsp_classpath* = C:/tomcat4/classes/;C:/tomcat4/lib/jasper-compiler.jar;C:/tomcat4/lib/jasper-runtime.jar;C:/tomcat4/lib/mm.mysql-2.0.4-bin.jar;C:/tomcat4/lib/naming-factory.jar;C:/tomcat4/common/classes/;C:/tomcat4/common/lib/activation.jar;C:/tomcat4/common/lib/jdbc2_0-stdext.jar;C:/tomcat4/common/lib/jndi.jar;C:/tomcat4/common/lib/jta-spec1_0_1.jar;C:/tomcat4/common/lib/mail.jar;C:/tomcat4/common/lib/naming-common.jar;C:/tomcat4/common/lib/naming-resources.jar;C:/tomcat4/common/lib/servlet.jar;C:/tomcat4/common/lib/tools.jar;C:/tomcat4/common/lib/tyrex-0.9.7.0.jar;C:/tomcat4/common/lib/xerces.jar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
TOMCAT + SSL or APACHE+TOMCAT+SSL??
Hello, I need to have SSL certificate . Web server is Tomcat4.04 serving static and dynamic pages. Should i upgrade it to APACHE+TOMCAT+SSL or TOMCAT+SSL will do? . Is there any reason i should upgrade to APACHE+TOMCAT+SSL?? Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Server attributes question
Andrew Conrad wrote: Not sure of your version. I'm referring to 4.x Yep, 4.0.1. The documentation says that the port is used for shutting down the server only, and that the request MUST come from the local machine. Meaning, to me, that it probably binds to the 127.0.0.1 Address, and that specific port. If you trying to instantiate different websites,( www.domain1.com, www.domain2.com,) try using the Host element. You can specify the Address, port, Server Name, etc... But what about for separate execution environments ($CATALINA_BASE)? We have several tomcat instances we want to test with different code levels, with separate 'clean' installations. If we ran out of a single CATALINA_HOME, Hosts would be the right way to do it, but we want to use separate BASEs (with separate JVMs, xerces.jars, for example).. Thanks! - Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Server attributes question
Hi, I see that Server takes a port, className and shutdown as attributes, but I don't see any entry for inet= or address= .. As it takes a port, and binds to localhost, this makes it kind of a port-hog and inconvenient for running multiple CATALINA_BASEs on a single multi-IP server.. Right now I simply increment the port= by 1 with each BASE instance, but is this the Right Thing to do? Thanks, - Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session Timeout
Hi All, How can I see the current session timeout and set a new value. The documentation gives the following url http://localhost:8080/manager/sessions?path=/examples But I am not able to see /manager eventhough I have setup user with manager role as: user name=admin password=admin roles=standard,manager / Can somebody help me on this? Thanks, Sunil Mathew. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ## Out of Environment space ##
Hey Sam, there is a Spelling mistake in your environment setting you have misspelled CLASSPATH as CLASSOATH This is probably what is causing the problem Regards, Vinay -Original Message- From: Sam [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 1:30 PM To: [EMAIL PROTECTED] Subject: ## Out of Environment space ## Hi all, I want to run tomcat 3.2.3 on win98. the set environment as follows: ==C:\tomcat\binset TMP=C:\WINDOWS\TEMP TEMP=C:\WINDOWS\TEMP PROMPT=$p$g winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM PATH=.;C:\JDK\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND CLASSOATH=.;c:\tomcat\lib\servlet.jar;c:\jdk\lib\tools.jar windir=C:\WINDOWS JAVA_HOME=c:\jdk TOMCAT_HOME=c:\tomcat == execute C:\tomcat\bin\startup.bat and report, == C:\tomcat\binstartup Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Unable to set CLASSPATH dynamically. Note: To set the CLASSPATH dynamical only DOS 8.3 names may be used Setting your CLASSPATH statically. Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Using CLASSPATH: c:\tomcat\classes Out of environment space Starting Tomcat in new window C:\tomcat\bin == I do not run any other program. what is the reason? thanks all. On Fri, 5 Oct 2001, Firestar wrote: Hi Dmitri, thanks for your quick reply. I have tried adding the classpath to my servlets to catalina.bat, but it throw a javax.http.servlet class not found exception. It will works OK if i do not add in the classpath. Regards, Firestar Is this possible in TC? I know in JRun it is possible to do so by specifying the classpath to my servlets in the configuration file. Anything's possible the simplest way is to change the catalina.sh to include your classpath, but this is plain _wrong_, what you would be better off doing is changing your build/deploy process so that you have a properly structured webapp. for more info check out http://java.sun.com/products/servlets cheers dim __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
JDBC Connections
Hi, We have implemented a simple JDBC connection pool for our servlet - do you think it is better to grab a connection once when a request is received and use that connection throughout the processing or should the connection be used only when necessary and released as soon as possible?? Regards, Matthew.
RE: tomcat process dies out...
You may need to try nohup ./startup.sh -f server_1.xml This starts the process in the background and ignores hangups - output is to a non-tty. Regards, Matthew -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: 28 May 2001 16:22 To: [EMAIL PROTECTED] Subject: RE: tomcat process dies out... On Mon, 28 May 2001, Pernica, Jan wrote: this is a known bug of JDK 1.3 on NT But from the command he shows as how he's starting tomcat, it looks like he's on a UNIX machine. I'd say that probably all he needs to do is start it in the background, a la: ./startup.sh -f server_1.xml Might want to redirect to capture stdout and stderr to files as well. On Monday, May 28, 2001 4:52 PM, Krishna Kishore Thotakura [SMTP:[EMAIL PROTECTED]] wrote: hello, I am trying to setup multiple JVMs using mod_jk. the JVM running at port 8080 is okay. I'm having problem with the JVM running at port 8090. whenever, i log out of my server machine(the machine where i am starting my apache and tomcat), the tomcat process stops listening to the port 8090. Actually, the Tomcat(java) threads are getting killed when i log out. Please let me know where i am going wrong? i am starting tomcat1 as ./startup.sh -f server_1.xml thanks, kishore. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: URL
Hi, Use serlvet-mapping in your deployment descriptor file. For Example: servlet-mapping servlet-nametest/servlet-name url-pattern/whatever/test/servlet-name /servlet-mapping You are stuck with the context-path though. so your final url will look like http://www.somedomain.com/context-path/whatever/test remember to modify what ever config file you are using to inform tomcat that it should be processing the above path.. for mod_jk this means adding the following line JkMount /context/whatever/test ajp12 or similar (dep. on ajp12 ajp13 etc). Regards, Matthew Clark. -Original Message- From: Brian Kejser [mailto:[EMAIL PROTECTED]] Sent: 28 May 2001 17:51 To: '[EMAIL PROTECTED]' Subject: URL Hi Is it possible to change the \servlet\ portion of the URL to something else? For example, www.domain.com/somepath/servlet/test to www.domain.com/somepath/whatever/test Thanks
servlet mapping
Hi guys, I'm trying to get the following servlet http://127.0.0.1/foo/servlet/bar to execute when the following URL is entered: http://127.0.0.1/foo/myapp I've entered the following into the deployment descriptor (web.xml) but am having no luck. I know tomcat is reading the descriptor because it is picking up the load-on-startup instruction and the init params are available to the servlet. servlet servlet-namebar/servlet-name ... /servlet servlet-mapping servlet-namebar/servlet-name url-pattern/myapp/*/utl-pattern /servlet-mapping What am I doing wrong??? I've tried a few variations for the url-pattern... Any help would be appreciated Regards, Matthew Clark.
RE: servlet mapping
Hmm well - I got it working - Tomcat isn't placing the appropriate instructions into the auto-generated configuration file (mod_jk.conf-auto). Matthew Clark. -Original Message- From: Mathew Clark [mailto:[EMAIL PROTECTED]] Sent: 27 May 2001 19:01 To: [EMAIL PROTECTED] Subject: servlet mapping Hi guys, I'm trying to get the following servlet http://127.0.0.1/foo/servlet/bar to execute when the following URL is entered: http://127.0.0.1/foo/myapp I've entered the following into the deployment descriptor (web.xml) but am having no luck. I know tomcat is reading the descriptor because it is picking up the load-on-startup instruction and the init params are available to the servlet. servlet servlet-namebar/servlet-name ... /servlet servlet-mapping servlet-namebar/servlet-name url-pattern/myapp/*/utl-pattern /servlet-mapping What am I doing wrong??? I've tried a few variations for the url-pattern... Any help would be appreciated Regards, Matthew Clark.
directory browsing....
can somebody tell me how do i prevent directory browsing when i am running tomcat as standalone web server eg. http://localhost:8080/examples/ max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
new user please correct me................
Hi I read thru the tomcat documentation and this is what i understood. Please correct me if there is any problem. we are running OS -R H LINUX 6.2 WebServer - Apache 1.3.14 Tomcat -3.2.1 and I 1. Copied the tomcat directory to /usr/ 2. Since libexec directory was not there for apache created libexec directory 3. Copied mod_jk.so to the libexec directory. 4. Inserted "include /usr/tomcat/conf.mod_jk.conf" into httpd.conf of apache. 5. Modified TOMCAT-HOME, JAVA-HOME, and ps in workers.properties. 6. Added the following block to server.xml Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler " value = "org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="8009"/ /Connector That's all with my installation. Now I have 2 domains www.host1.com, www.host2.com and it is configured in httpd.conf and is running well with perl. To enable them with servlets 1. Created servlets directory and copied WEB-INF and META-INF to the directories. 2. Copied servlet classes to the classes directory in the WEB-INF directory. 3. Modified the server.xml with following Host name="www.host1.com" Context path="/servlet" docBase="host1/servlets" / /Host Host name="www.host2.com" Context path="/servlet" docBase=" host2/servlets" / /Host It is working fine .Will this be enough, please advise me Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
ServerSocketFactory
When I run build.sh for tomcat, I get the error message that when trying to compile SSLSocketFactory, Class javax.net.ServerSocketFactory is not found in import. ServerSocketFactory does exist but it appears to be in a misplaced package/directory. Any ideas?? Mathew
Re: mod_jk.so
Alan, I was able to build mod_jk.so on linux by changing to /jakarta-tomcat-src/src/native/apache13 and running make -f Makefile.linux all . This will build mod_jk.so. I'm not sure what to do with mod_jk.so after building it, though. I've build apache1.3.14 with mod_so so I can include so modules - I figure mod_jk must be included somehow. Mathew Alan Wright wrote: Any help or information gratefully recieved... Looking at the binary downloads on the jakarta site the Linux section for 3.2 is notable by its absence. I have thus been trying (without success) to build my own mod_jk.so Does anyone know if there are plans to put mod_jk.so for linux up on the site? Has anyone succeeded in building their own mod_jk.so on Linux? Has anyone successfully used the mod_jk.so files from the betas with the final version of 3.2? I tried to download with both IE5 and Netscape and both times whent I tried to restart apache I received an error message suggesting that the mod_jk.so file was garbled or not a DSO file. Thanks Alan Wright
apxs problem revisited for mod_jserv.so build
I am installing Tomcat 3.1 on my freshly installed SuSE 7.0 system with apache 1.3.14 and when I try to build mod_jserv.so I get the following error: /usr/local/apache/bin/apxs -c *.c -o mod_jserv.so gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c autochange.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_ajpv11.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_ajpv12.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_balance.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_image.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_mmap.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_protocols.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_status.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_utils.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_watchdog.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_wrapper.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_wrapper_unix.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c jserv_wrapper_win.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -c mod_jserv.c -o autochange.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o autochange.o -o mod_jserv.so apxs:Break: Command failed with rc=255 I looked this up in the Tomcat archives and found that many others had encountered this problem and were able to resolve it by changing the order of args to apxs. Instead of using: /usr/local/apache/bin/apxs -c *.c -o mod_jserv.so I instead tried: /usr/local/apache/bin/apxs -o mod_jserv.so -c *.c Unfortunately, I get the same error both ways. Has anyone successfully built this with the configuration I mentioned above?? Any help will be appreciated! By the way, I did build Apache 1.3.14 from scratch with mod_so installed. Thanks, Mathew Thomas [EMAIL PROTECTED]