Any Native SNMP Features in Tomcat
Does Tomcat 5.0x come with any support to perform SNMP requests or will I need to find a 3rd party utility for this? Thx, rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any Native SNMP Features in Tomcat
--- Peter Lin [EMAIL PROTECTED] wrote: I don't think so, but it's got JMX support. what kind of operations are you thinking of? if you're talking about deploying a webapp, the management stuff handles that. If you're talking about monitoring, you can use JMeter 2.0 to monitor tomcat 5.x peter On Tue, 28 Sep 2004 12:40:58 -0700 (PDT), Chuck Carson [EMAIL PROTECTED] wrote: Does Tomcat 5.0x come with any support to perform SNMP requests or will I need to find a 3rd party utility for this? Actually I want to use Tomcat to monitor my network using both SNMP as well as custom TCP/UDP pollers. I'm relatively knew to Java and normally I would write something like this in C but I wanted to make it a 'drop in' tomcat application. Thx, rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
API docs for Mysql JDBC Driver?
Does anyone know where I can find a complete set of API docs for the JConnect Driver 3.x? The docs on the site are lacking and only have simple examples on how to do SELECT's. I am looking for a complete method list or something more detailed. Thanks for any info, rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OFF-TOPIC] RE: API docs for Mysql JDBC Driver?
This has everything to do with tomcat. I am using the driver to connect to Mysql from Tomcat. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Please mark your questions as [OFF-TOPIC] in the subject line if they have nothing to do with Tomcat. Thanks, Yoav Shapira Millennium Research Informatics -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 10:49 AM To: LIST: Tomcat User Subject: API docs for Mysql JDBC Driver? Does anyone know where I can find a complete set of API docs for the JConnect Driver 3.x? The docs on the site are lacking and only have simple examples on how to do SELECT's. I am looking for a complete method list or something more detailed. Thanks for any info, rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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] = Chuck Carson - Sr. Systems Engineer Syrrx, Inc. - www.syrrx.com 10410 Science Center Drive San Diego, CA 92121 Work: 858.731.3540 Fax: 858.550.0526 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mysql JDBC Drivers: Use 2.x or 3.x? (Kinda Long, sry)
When I move my datasource definition to the web.xml file for my webapp, I get nothing. When I use the Tomcat manager app and drill down into Service-Host-Context (testapp1)-Resource-DataSources I see my jdbc/MysqlTest1 datasource defined but all the parameters associated with it are blank. Here is my webapps/testapp1/WEB-INF/web.xml file: ?xml version=1.0 encoding=ISO-8859-1? web-app descriptionTest App 1/description resource-ref descriptionDB Connection/description res-ref-namejdbc/MysqlTest1/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Resource name=jdbc/MysqlTest1 scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/MysqlTest1 parameter nameurl/name valuejdbc:mysql://localhost:3306/tomcat-test1?autoReconnect=true,maxReconnects=3/value /parameter parameter nameusername/name valuexx/value /parameter parameter namepassword/name valuexx/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxWait/name value15000/value /parameter parameter namevalidationQuery/name valueSELECT version()/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter namemaxIdle/name value100/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /web-app I'm sure this is something simple I am missing but the docs are not leading me in the right direction. Thanks for any help, CC --- Robert Bateman [EMAIL PROTECTED] wrote: Chuck, I think you need to move your connection pooling over to your context.xml at the web application level. Here is my pool definition from one of my apps: snip it may not be perfect, but it works on our end. Hope that helps! Bob - 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]
List Config: How To See My Own Posts
I never see my own posts to the list unless someone replies. Is this due to the list configuration or is it Yahoo's spam filter somehow detecting a duplicate message (ie: One that is also in my sent folder)? (I am using Yahoo for my mailing lists) Thx, chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connection closes after 100 responses
--- Shanti Priya [EMAIL PROTECTED] wrote: Hi !! In your server.xml file it's set as 100.Check it up. -Original Message- From: Bas Alberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 7:54 PM To: 'Tomcat Users List' Subject: Tomcat connection closes after 100 responses Hi tomcat users! Can anybody answer this question: Every connection with tomcat is closed after exactly 100 request/response-pairs. Why? HTTP/1.1 requests are sent through either a Java socket or a telnet session. It doesn't matter if the requests and responses are small or large. It doesn't matter if I set the config. CoyoteConnector attribute acceptCount to any value. It doesn't matter if I use @page session=true or sesion=false. Any ideas? Bas Alberts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Are you explicitly closing you connections in your code, or relying on tomcat for cleanup? -rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can Tomcat User Locak Socket instead of TCP for Mysql Connections?
I noticed that the URL contrains the port number for mysql, 3306. Is it possible for tomcat to use the local socket directly? (/var/lib/mysql/mysql.sock by default from most Linuxes) Thx, rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mysql JDBC Drivers: Use 2.x or 3.x?
I am starting to build an application using Tomcat 5.0x and am having problems getting the connection pool setup. Should I be using the 3.x or 2.x Mysql drivers? The 2 files I have downloaded are: mysql-connector-java-2.0.14.tar.gz mysql-connector-java-3.0.15-ga.tar.gz I am currently trying to get it working with the 3.x driver and have copied it into $CATALINA_HOME/common/lib. However, when I try my sample webapp out I get this following error in the logs/catalina.out file: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at chuck.DBTest1.init(DBTest1.java:20) at org.apache.jsp.test_jsp._jspService(test_jsp.java:50) snip Thanks for any help, rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs BEA Weblogic?
--- Bjørn T Johansen [EMAIL PROTECTED] wrote: So the conclusion would be that BEA isn't worth the cost... And since I am used to using opensource, including Tomcat, then Tomcat seems to be the right way to go... (and maybe JBoss if we get that far...) Thanks for your replies... :) BTJ Shapira, Yoav wrote: Hi, I would add a couple of minor points, as others have already covered the main ones. You say you're only using Weblogic's JSP container. Tomcat's JSP container (known as Jasper) is used not only by Tomcat, but by JBoss, JonAS, IBM's Websphere, and a number of other commercial products. So by switching, you not only get a free solution (BEA is $ as others have noted), but one that's used by a huge customer base and with many support options. As QM noted, there's no official professional services provider for Tomcat, or Apache in general. The ASF cannot sanction such an official provider because of its legal formulation. However, there are a number of support companies which will do Apache, Tomcat, and Jasper. Some of them, such as Covalent, have an excellent track record, numerous Fortune 1000 customers, and 24x7 support. That should be sufficient to CYA for management, which as someone mentioned is always a consideration. Yoav Shapira Millennium Research Informatics -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Sunday, September 19, 2004 7:32 PM To: Tomcat Users List Subject: Tomcat vs BEA Weblogic? I am taking over a project that's running on Weblogic 8.1 SP3 today.. They are only using the jsp-container and it is time to renew the support agreement with BEA. So I was just wondering, is it worth it? Or is Tomcat as good as WL or maybe better? Does WL have features that is missing in Tomcat? When the time comes to use EJB, is JBoss as good as/better than WL? So basically, I would like some advice on why I should/shouldn't continue with Weblogic? :) Regards, BTJ -- --- Bjørn T Johansen [EMAIL PROTECTED] --- Someone wrote: I understand that if you play a Windows CD backwards you hear strange Satanic messages To which someone replied: It's even worse than that; play it forwards and it installs Windows --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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] We are also looking to migrate all our apps from weblogic to tomcat. When you look at the real world TCO, tomcat is defintely the way to go. If you need better performance just scale out behind an IP load balancer or use Tomcat clustering. Our main reason was BEA's Nazi licensing practices, development license costs, support costs, etc We are now down to only 1 app that use EJB's and it is getting ready to be decommisioned. I am also damn impressed in how far the Tomcat project has come in the recent years. Support for tomcat is as good if not better than BEA's support for weblogic, it best of all it's free. As far as JBoss goes, I heard a nasty rumor that JBoss might not be around much longer. -rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mysql JDBC Drivers: Use 2.x or 3.x? (Kinda Long, sry)
--- Robert Bateman [EMAIL PROTECTED] wrote: we are using a combination of 3.0.8-stable and 3.0.14-production on our servers. The jar files are placed into the same folder you have placed yours. What connect string are you using? Bob I am basically just trying to setup a connection pool as in the documentaion. I am relatively new to java but have several years of C/C++. I am also a System Engineer during the day, but I am writing a network mangement app for my company and decided to go with tomcat/java. So I am a bit rusty on the nitty-gritty of the app server setup. First, here is my server.xml (sorry long) ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ Resource name=jdbc/MysqlTest1 auth=Container type=javax.sql.DataSource/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=jdbc/MysqlTest1 parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namevalidationQuery/name valueSELECT * FROM TEST_USER/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuec4milez/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/tomcat-test1?autoReconnect=true/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valuetomcat5/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service /Server And here is my webapps/testapp1/WEB-INF/web.xml file: ?xml version=1.0 encoding=ISO-8859-1? web-app descriptionTest App 1/description resource-ref descriptionDB Connection/description res-ref-namejdbc/MysqlTest1/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app I created the DataSource using the Admin app within Tomcat but then I noticed it did not add a factory line as in the docs, so I added this by hand and restarted tomcat: parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter Here is a simple class I am using to test with: package chuck; import javax.naming.*; import javax.sql.*; import java.sql.*; public class DBTest1 { String foo = Not Connected; int bar = -1; public void init() { try { Context ctx = new InitialContext(); if (ctx == null) throw new Exception(Error: No context.); DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/MysqlTest1); if (ds != null) { Connection conn = ds.getConnection(); if (conn != null) { foo = Database connection established: + conn.toString(); Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(select * from TEST_USER); if (rs.next()) { foo = rs.getString(2); bar = rs.getInt(1);
Tomcat 4.x or 5.0x???
I am somewhat new to java development (although I have been writing C/C++ for 10+ yrs) and am writing a network mangement app and decided to use java/tomcat. Just a question: Would I be better off using 4.x or should I use 5.0x? The app I am writing will not likely be ready for at least a year so I kinda want to use the latest possible stable version so I'm still pretty up to date 1 year from now. I want to use j2se 1.4.2 and support Mysql, PostgreSQL, and Oracle. (This app is currently for proprietary use in my company but I may spin it off into a open-source project at a later date, thus I want to support those 3 RDBMS's) My OS is currently Solaris 9 but might eventually be either SuSE or Fedora using the 2.6 kernel. My current plans don't call for anything fancy, but not sure what roadblocks I will encounter along the way and what work-arounds I will need. So I would like to select the best possible app server version now and roll with it. Thx, rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat vs BEA Weblogic?
It was the Director of PR for JBoss as of about 5 months ago. We were trying to buy the documentation and he was the only one we could even get ahold of. I think his name was Gary but I will have to dig thru my contact to be sure. Also, I don't think he was a JBoss employee but a consultant for them. Just what I heard. I know the product is good, I just got the impression they were having political problems... Our developers really like it. -rhugga --- Mike Curwen [EMAIL PROTECTED] wrote: Mwah-h! I would **love** to know your source on that. Hani S. doesn't count As far as JBoss goes, I heard a nasty rumor that JBoss might not be around much longer. -rhugga - 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] = Chuck Carson - Sr. Systems Engineer Syrrx, Inc. - www.syrrx.com 10410 Science Center Drive San Diego, CA 92121 Work: 858.731.3540 Fax: 858.550.0526 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mysql JDBC Drivers: Use 2.x or 3.x? (Kinda Long, sry)
--- Robert Bateman [EMAIL PROTECTED] wrote: Chuck, I think you need to move your connection pooling over to your context.xml at the web application level. Here is my pool definition from one of my apps: Resource name=jdbc/MySQL_Sequoia_Admin scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/MySQL_Sequoia_Admin !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/Sequoia_Admin?autoReconnect=true,maxReconnects=3/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuex/value /parameter parameter namepassword/name value/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 15 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value15000/value /parameter !-- Validation Query to insure our connection is still valid. -- parameter namevalidationQuery/name valueSELECT version()/value /parameter !-- Make sure we test each and every connection before we borrow it to see if it is still valid. -- parameter nametestOnBorrow/name valuetrue/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value100/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter !--Use the removeAbandonedTimeout parameter / seconds.-- parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams it may not be perfect, but it works on our end. Hope that helps! Bob Thanks, I give that a shot... -rhugga = Chuck Carson - Sr. Systems Engineer Syrrx, Inc. - www.syrrx.com 10410 Science Center Drive San Diego, CA 92121 Work: 858.731.3540 Fax: 858.550.0526 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs BEA Weblogic?
--- Dennis Dai [EMAIL PROTECTED] wrote: On 9/20/2004 3:00 PM, Chuck Carson wrote: As far as JBoss goes, I heard a nasty rumor that JBoss might not be around much longer. Well, you do know that there're tomcat developers that work for JBoss on this list, right? ;-) -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Im just relaying what this guy told me. Obviously jboss would not disappear, just whatever 'entity' this was in Georgia I believe is where they were located. We tried contacting them when we were first looking into moving from weblogic. This was also several months ago so alot could have happened in that time. I think the guy said some of the head guys were butting heads and that sort of stuff. I have the contact info somewhere. I wanna say it was a guy named Gary but not 100%. -rhugga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help Defining new webapp
I have the following app: /usr/local/tomcat/webapps/changemgmt/ Tomcat detects it upon startup and it works fine. However, I want to enabled automatic reloading of classes. Is this what I need to add to server.xml: Context path=/changemgmt docBase=changemgmt debug=0 reloadable=true / Thanks, Chuck -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help Defining new webapp
Thanks, CC -Original Message- From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 7:43 AM To: Tomcat Users List Subject: Re: Help Defining new webapp That is correct. -- padhu Chuck Carson wrote: I have the following app: /usr/local/tomcat/webapps/changemgmt/ Tomcat detects it upon startup and it works fine. However, I want to enabled automatic reloading of classes. Is this what I need to add to server.xml: Context path=/changemgmt docBase=changemgmt debug=0 reloadable=true / Thanks, Chuck -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Odd Exception at Startup
I am getting the following exception at startup, however, the server starts and appears to function correctly: [INFO] Registry - -Loading registry information [INFO] Registry - -Creating new Registry instance [INFO] Registry - -Creating MBeanServer [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 80 [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 443 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter* ,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e jb-ref*,ejb-local-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error HandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav a:173) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav a:362) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav a:296) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValida tor.java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.ja va:878) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(X MLDocumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XML DocumentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo cumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 24) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 80) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java :1169) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi g.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) [ERROR] Digester - -Parse Error at line 22 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter* ,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e jb-ref*,ejb-local-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter* ,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e jb-ref*,ejb-local-ref*). [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 80 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 443 [INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009 [INFO] JkMain - -Jk running ID=0 time=1/27 config=/usr/local/jakarta-tomcat-4.1.12/conf/jk2.properties Anyone have any ideas? Thanks, CC -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender
RE: Odd Exception at Startup
Ahhh. Cool thanks. -Chuck -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 9:14 AM To: Tomcat Users List Subject: Re: Odd Exception at Startup On Wed, 9 Oct 2002, Chuck Carson wrote: Date: Wed, 9 Oct 2002 08:54:52 -0700 From: Chuck Carson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Odd Exception at Startup I am getting the following exception at startup, however, the server starts and appears to function correctly: [INFO] Registry - -Loading registry information [INFO] Registry - -Creating new Registry instance [INFO] Registry - -Creating MBeanServer [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 80 [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 443 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-para m*,filter* ,filter-mapping*,listener*,servlet*,servlet-mapping*,session-c onfig?,mim e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env -ref*,reso urce-ref*,security-constraint*,login-config?,security-role*,en v-entry*,e jb-ref*,ejb-local-ref*). The order of elements in a web.xml file must be in the order specified above. Your's is not. Craig -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
LOGGER: Disable timestamping but no effect
I configured my Logger entires in server.xml so that the logs appear as logfile name.log with no timestamping. Here is one such example: Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost suffix=.log timestamp=false/ However, the log is being created as follows: logs/localhost2002-10-09.log I am running the binary dist of 4.1.2 on Linux and Solaris 8. Anyone have any ideas? Thc, CC -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Reload Servlets/Classes
Sorry if this has been asked before, but when working in a development environment, how can I reload newly compiled classes w/o restarting the tomcat server? Thanks, CC -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Reload Servlets/Classes
I am wanting to do this for classes under ROOT/WEB-INF/classes I noticed that Context path= docBase=ROOT debug=0/ is commented out, do I uncomment this entry and add the reloadable to this section? Thanks, CC -Original Message- From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 9:40 AM To: Tomcat Users List Subject: Re: Reload Servlets/Classes I asked the same question few minutes back. One of two ways: 1. set reloadable=true for your web app context element in server.xml. Restart tomcat. 2. Copy the ant build.xml in tomcat-docs/appdev/sample into your web app, edit the build.xml for ur app and call ant reload everytime. -- padhu Chuck Carson wrote: Sorry if this has been asked before, but when working in a development environment, how can I reload newly compiled classes w/o restarting the tomcat server? Thanks, CC -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Reload Servlets/Classes
Coo, thanks. -Chuck -Original Message- From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 10:53 AM To: Tomcat Users List Subject: Re: Reload Servlets/Classes Uncomment that line and add reloadable=true. i tested this and it works fine. -- padhu Chuck Carson wrote: I am wanting to do this for classes under ROOT/WEB-INF/classes I noticed that Context path= docBase=ROOT debug=0/ is commented out, do I uncomment this entry and add the reloadable to this section? Thanks, CC -Original Message- From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 9:40 AM To: Tomcat Users List Subject: Re: Reload Servlets/Classes I asked the same question few minutes back. One of two ways: 1. set reloadable=true for your web app context element in server.xml. Restart tomcat. 2. Copy the ant build.xml in tomcat-docs/appdev/sample into your web app, edit the build.xml for ur app and call ant reload everytime. -- padhu Chuck Carson wrote: Sorry if this has been asked before, but when working in a development environment, how can I reload newly compiled classes w/o restarting the tomcat server? Thanks, CC -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat won't work with jdk 1.4.0
I am running the binary distribution of tomcat 4.0.5 on Solaris 8. It works with jdk1.3.1_05, but I am trying to get it running with jdk1.4.0_02 and I get the following exception in catalina.out: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at org.opennms.web.authenticate.Authentication.clinit(Authentication.java :39) at org.opennms.web.authenticate.OpenNMSTomcatRealm.init(OpenNMSTomcatReal m.java:125) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:617) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java: 329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal idator.java:1284) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc anner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc h(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan ner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:362) at javax.xml.parsers.SAXParser.parse(SAXParser.java:301) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) Anyone have any ideas? Thanks CC -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Where is javax.sql
Where is the package at under tomcat 4.1.2? I moved my tomcat apps from Linux to Solaris but none of my oracle connections will work. Thanks, Chuck -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Please Help: Getting this exception
I moved my tomcat server from Linux to Solaris, now using the binary dist of tomcat 4.1.2 and jdk 1.3.1_04. All my apps are giving me this exception: org.apache.jasper.JasperException: java/sql/Savepoint at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) Anyone have any ideas? Thanks, Chuck -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where is javax.sql
Thanks for the help, I was under the impression it was in servlet.jar, *bonk* Thanks, CC -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 7:20 AM To: Tomcat Users List Subject: Re: Where is javax.sql That's in Oracle's JDBC classes file (named classes12.jar for my installation), not in Tomcat. Make sure you install this file for your Oracle connections to work (put it in your $TOMCAT_HOME/lib directory). It can be downloaded from Oracle. Kenny - Original Message - From: Chuck Carson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, October 04, 2002 9:12 AM Subject: Where is javax.sql Where is the package at under tomcat 4.1.2? I moved my tomcat apps from Linux to Solaris but none of my oracle connections will work. Thanks, Chuck -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please Help: Getting this exception
Yes, the box is at both the recommended OS and recommended J2SE patches as of 27 sept. I am connecting to Oracle 8.1.7, but I get this exception for even the simplest of servlets. Here is a jsp page that gives me this exception: HTML BODY A href=/test/servlet/HelloWorldExampleTest1/A %@ page import=javax.sql.*,java.sql.*,javax.naming.*,java.util.Hashtable,java.i o.*,OracleBroker % BR % String startDate= null; String endDate = null; ResultSet rs1 = null; % BR /BODY /HTML I have removed the meat from this jsp, leaving only simple declarations. I am using the oracle thin drivers but pretty sure that is not the problem since this jsp generates the same error. Any ideas? Thanks, Chuck -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 7:43 AM To: Tomcat Users List Subject: RE: Please Help: Getting this exception Hi, Very interesting. I've never seen that specific exception before, but the first sentence of your message brings up two questions: 1. Does your solaris box have the proper OS patches for JDK 1.3.1_04? 2. Are you connecting to a DB, and if so, what type JDBC drivers are you using? Yoav Shapira Millennium ChemInformatics -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 10:36 AM To: Tomcat Users List Subject: Please Help: Getting this exception I moved my tomcat server from Linux to Solaris, now using the binary dist of tomcat 4.1.2 and jdk 1.3.1_04. All my apps are giving me this exception: org.apache.jasper.JasperException: java/sql/Savepoint at org.apache.jasper.servlet.JspServletWrapper.service(JspServle tWrapper.j a va:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle t.java:289 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) Anyone have any ideas? Thanks, Chuck -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Please Help: Jasper Problems
I am running the binary distibution of Tomcat 4.1.2 on Solaris 8. Each time a JSP page is requested, it generates the following exception: 2002-10-04 08:28:45 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: java/sql/Savepoint at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) snip I have tried using j2sdk1.3.1_04 and j2sdk1.3.1_05, both behave the same. The OS is patched will all relevant patches as of 27 sept. I am at a loss. Thanks for any help, Chuck -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please Help: Getting this exception
Odd. I downgraded to tomcat 4.0.5 and everything works fine. Thanks for the help, Chuck -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 10:16 AM To: Tomcat Users List Subject: Re: Please Help: Getting this exception On Fri, 4 Oct 2002, Chuck Carson wrote: Date: Fri, 04 Oct 2002 07:35:50 -0700 From: Chuck Carson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Please Help: Getting this exception I moved my tomcat server from Linux to Solaris, now using the binary dist of tomcat 4.1.2 and jdk 1.3.1_04. All my apps are giving me this exception: The version of JDBC in JDK 1.3 does not have a java.sql.Savepoint class -- that was added in JDK 1.4. This won't matter if your applications don't try to use Savepoint, but it looks like you're trying to call something that does use it in one of your JSP pages. Craig org.apache.jasper.JasperException: java/sql/Savepoint at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper. ja va:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) Anyone have any ideas? Thanks, Chuck -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Another Problem that annoys the hell out of me
I am using the latest xalan.jar, but I am using the latest 1.x release of xerces. AShould I use the 2.x versions of xerces? I was going with the recommended version the docs say to, which is 1.4.4 I beleive. ?? -Chuck Glenn Nielsen wrote: Check the version of xalan and xerces being used by Ant. I had similar problems with some older versions of these. I have no problem with the latest releases of both of the above. Chuck Carson wrote: Does anyone run into this problem when building on Solaris. About 75% into the build process is starts crapping out on *.xml files. For example: Docs: snip [style] Failed to process /root/TOMCAT/jakarta-tomcat-connectors-4.1.12-src/jk/xdocs/jk/neshowto.x ml BUILD FAILED file:/root/TOMCAT/jakarta-tomcat-connectors-4.1.12-src/jk/build.xml:433: Fatal error during transformation If I execute another 'ant dist' it gets past this point but fails on another xml file. I have to do this about 15 times to get a successful build. This behavior was the same under 4.0.4 thru 4.1.2. This appears consistent with some file but random with others. For example, I have seen it die on the following files more than once: faq.xml, iishowto.xml, neshowto.xml, and a few others. Anyone else see this problem? -Chuck -- 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] -- Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] W: +1 858.731.3540 M: +1 858.442.0827 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help with Startup Script
I am unable to get tomcat to start automatically under Solaris 8. I try starting it after several other socket based applications (such as oracle and postgres) I get nothing in the logs, the service merely refuses to start. Here is the startup script: #!/sbin/sh case $1 in start) echo Starting tomcat server... /sbin/su - root -c . /root/.bashrc /usr/local/tomcat4/bin/catalina.sh start ;; stop) echo Stopping tomcat server... /usr/local/tomcat4/bin/catalina.sh stop ;; *) echo Usage: $0 {start|stop} exit 1 ;; esac exit 0 I added the 'su - root -c . /root/.bashrc' bit as a troubleshooting step, the explicit sourcing of root's .bashrc is not needed on other services that I start at boot time. I have this script here: /etc/rc3.d/S70tomcat4 When the system is booting, I see the message Starting tomcat server... so I know the script is getting executed. The default runlevel is set to 3. Anyone have any ideas? Thanks, CC -- Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] W: +1 858.731.3540 M: +1 858.442.0827 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help with Startup Script
Well, your suggestion got me going in the right direction, I needed to reference startup.sh plus add the env variables to the startup script explicitly. Thanks for your help, CC Here is the final working startup script for Solaris 8 (prolly work on Linux as well) #!/sbin/sh # JAVA_HOME=/usr/j2sdk1.3.1_04 ;export JAVA_HOME PATH=/bin:/usr/bin:/sbin:/usr/local/bin:$JAVA_HOME/bin ;export PATH CATALINA_BASE=/usr/local/jakarta-tomcat-4.1.12 ;export CATALINA_BASE CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.12 ;export CATALINA_HOME case $1 in start) echo Starting Tomcat Server 4.1.12 echo . using JAVA_HOME=$JAVA_HOME echo . using PATH=$PATH echo . using CATALINA_BASE=$CATALINA_BASE echo . using CATALINA_HOME=$CATALINA_HOME echo . using CATALINA_TMPDIR=$CATALINA_HOME/temp /usr/local/jakarta-tomcat-4.1.12/bin/startup.sh echo End of Tomcat initialization. ;; stop) echo Stopping tomcat server... /usr/local/jakarta-tomcat-4.1.12/bin/shutdown.sh ;; *) echo Usage: $0 {start|stop} exit 1 ;; esac exit 0 Turner, John wrote: What if you call startup.sh and shutdown.sh instead of catalina.sh directly? John -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 11:20 AM To: Tomcat Users List Subject: Help with Startup Script I am unable to get tomcat to start automatically under Solaris 8. I try starting it after several other socket based applications (such as oracle and postgres) I get nothing in the logs, the service merely refuses to start. Here is the startup script: #!/sbin/sh case $1 in start) echo Starting tomcat server... /sbin/su - root -c . /root/.bashrc /usr/local/tomcat4/bin/catalina.sh start ;; stop) echo Stopping tomcat server... /usr/local/tomcat4/bin/catalina.sh stop ;; *) echo Usage: $0 {start|stop} exit 1 ;; esac exit 0 I added the 'su - root -c . /root/.bashrc' bit as a troubleshooting step, the explicit sourcing of root's .bashrc is not needed on other services that I start at boot time. I have this script here: /etc/rc3.d/S70tomcat4 When the system is booting, I see the message Starting tomcat server... so I know the script is getting executed. The default runlevel is set to 3. Anyone have any ideas? Thanks, CC -- Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] W: +1 858.731.3540 M: +1 858.442.0827 -- 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] -- Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] W: +1 858.731.3540 M: +1 858.442.0827 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ARG! Startup problems under Solaris
I do not know what I have done wrong this time, but I have installed tomcat at least 50 different times on Solaris 8, but this time I have this problem. Here is what the log says when I first start the server, as root, on port 80: [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 80 [INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009 [INFO] JkMain - -Jk running ID=0 time=8/36 config=/usr/local/tomcat4/conf/jk2.properties After the first web access I get the Document contains no data page and this in the log file: [ERROR] Http11Protocol - -Error reading request, ignored java.lang.NoClassDefFoundError java.lang.NoClassDefFoundError at java.net.PlainSocketImpl.getInputStream(PlainSocketImpl.java:477) at java.net.Socket$1.run(Socket.java:330) at java.security.AccessController.doPrivileged(Native Method) at java.net.Socket.getInputStream(Socket.java:327) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:367) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:479) [ERROR] Http11Protocol - -Error reading request, ignored java.lang.NoClassDefFoundError Anyone have any ideas? Thanks, CC -- Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] W: +1 858.731.3540 M: +1 858.442.0827 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ARG! Startup problems under Solaris
I was trying jdk 1.4.1, I now rebuilding with 1.3.1_04. I am pretty sure I got the full version of tomcat: Jakarta-tomcat-4.1.12-src I used 'ant dist' to build everything. Any ideas? Thanks, CC -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 2:19 PM To: Tomcat Users List Subject: Re: ARG! Startup problems under Solaris Hi Chuck, What version of Tomcat and the JDK? If you are not running JDK 1.4, are you sure you didn't get the lightweight version of Tomcat? It only works with JDK 1.4. Rick - Original Message - From: Chuck Carson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 01, 2002 5:02 PM Subject: ARG! Startup problems under Solaris I do not know what I have done wrong this time, but I have installed tomcat at least 50 different times on Solaris 8, but this time I have this problem. Here is what the log says when I first start the server, as root, on port 80: [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 80 [INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009 [INFO] JkMain - -Jk running ID=0 time=8/36 config=/usr/local/tomcat4/conf/jk2.properties After the first web access I get the Document contains no data page and this in the log file: [ERROR] Http11Protocol - -Error reading request, ignored java.lang.NoClassDefFoundError java.lang.NoClassDefFoundError at java.net.PlainSocketImpl.getInputStream(PlainSocketImpl.java:477) at java.net.Socket$1.run(Socket.java:330) at java.security.AccessController.doPrivileged(Native Method) at java.net.Socket.getInputStream(Socket.java:327) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processConne ction(Http11Protocol.java:367) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:479) [ERROR] Http11Protocol - -Error reading request, ignored java.lang.NoClassDefFoundError Anyone have any ideas? Thanks, CC -- Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] W: +1 858.731.3540 M: +1 858.442.0827 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
Another Problem that annoys the hell out of me
Does anyone run into this problem when building on Solaris. About 75% into the build process is starts crapping out on *.xml files. For example: Docs: snip [style] Failed to process /root/TOMCAT/jakarta-tomcat-connectors-4.1.12-src/jk/xdocs/jk/neshowto.x ml BUILD FAILED file:/root/TOMCAT/jakarta-tomcat-connectors-4.1.12-src/jk/build.xml:433: Fatal error during transformation If I execute another 'ant dist' it gets past this point but fails on another xml file. I have to do this about 15 times to get a successful build. This behavior was the same under 4.0.4 thru 4.1.2. This appears consistent with some file but random with others. For example, I have seen it die on the following files more than once: faq.xml, iishowto.xml, neshowto.xml, and a few others. Anyone else see this problem? -Chuck -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ARG! Startup problems under Solaris
I am just trying to connect to a cherry install of tomcat 4.1.2. I just tried it with jdk1.3.1 and same problem. I guess I can play with the binary distribution, but a binary distribution is what I am building. Oh well. I was wanting to use 4.1.2 in hopes that memory management was improved over 4.0.4. Thanks, CC -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 2:39 PM To: Tomcat Users List Subject: Re: ARG! Startup problems under Solaris Hi Chuck, I haven't tried a build of 4.1.12. Can you use the binary? I'm using the binary with no problems on Solaris 8. Also, do you have any servlets running? Are you aware of the change that disables the servlet invoker by default for security reasons? Rick - Original Message - I was trying jdk 1.4.1, I now rebuilding with 1.3.1_04. I am pretty sure I got the full version of tomcat: Jakarta-tomcat-4.1.12-src I used 'ant dist' to build everything. Any ideas? Thanks, CC -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 2:19 PM To: Tomcat Users List Subject: Re: ARG! Startup problems under Solaris Hi Chuck, What version of Tomcat and the JDK? If you are not running JDK 1.4, are you sure you didn't get the lightweight version of Tomcat? It only works with JDK 1.4. Rick - Original Message - From: Chuck Carson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 01, 2002 5:02 PM Subject: ARG! Startup problems under Solaris I do not know what I have done wrong this time, but I have installed tomcat at least 50 different times on Solaris 8, but this time I have this problem. Here is what the log says when I first start the server, as root, on port 80: [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 80 [INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009 [INFO] JkMain - -Jk running ID=0 time=8/36 config=/usr/local/tomcat4/conf/jk2.properties After the first web access I get the Document contains no data page and this in the log file: [ERROR] Http11Protocol - -Error reading request, ignored java.lang.NoClassDefFoundError java.lang.NoClassDefFoundError at java.net.PlainSocketImpl.getInputStream(PlainSocketImpl.java:477) at java.net.Socket$1.run(Socket.java:330) at java.security.AccessController.doPrivileged(Native Method) at java.net.Socket.getInputStream(Socket.java:327) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processConne ction(Http11Protocol.java:367) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:479) [ERROR] Http11Protocol - -Error reading request, ignored java.lang.NoClassDefFoundError Anyone have any ideas? Thanks, CC -- Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] W: +1 858.731.3540 M: +1 858.442.0827 -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
Help Deploying Servlet
I have the following servlet: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/AddNewsItem.class I addded this to WEB-INF/web.xml web-app servlet servlet-nameAddNewsItem/servlet-name servlet-classAddNewsItem/servlet-class /servlet /web-app I restarted tomcat but I keep getting 404's when referring to AddNewsItem from a jsp page like so: FORM action=AddNewsItem method=POST What am I missing? Thanks, Chuck Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
RE: Help Deploying Servlet
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:45 AM To: Tomcat Users List Subject: RE: Help Deploying Servlet Have you specify the servlet-mapping. for exemple : servlet-mapping servlet-nameAddNewsItem/servlet-name url-pattern/AddNewsItem/url-pattern /servlet-mapping No, I only had this: web-app servlet servlet-nameAddNewsItem/servlet-name url-pattern/AddNewsItem/url-pattern /servlet /web-app So is this what I need? web-app servlet servlet-mapping servlet-nameAddNewsItem/servlet-name url-pattern/AddNewsItem/url-pattern /servlet-mapping /servlet /web-app Thanks, Chuck -Message d'origine- De : Chuck Carson [mailto:[EMAIL PROTECTED]] Envoye : jeudi 12 septembre 2002 18:27 A : Tomcat Users List Objet : Help Deploying Servlet I have the following servlet: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/AddNewsItem.class I addded this to WEB-INF/web.xml web-app servlet servlet-nameAddNewsItem/servlet-name servlet-classAddNewsItem/servlet-class /servlet /web-app I restarted tomcat but I keep getting 404's when referring to AddNewsItem from a jsp page like so: FORM action=AddNewsItem method=POST What am I missing? Thanks, Chuck Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[2]: Help Deploying Servlet
Cool, thanks a bunch. -Chuck -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Re[2]: Help Deploying Servlet Hello Chuck, You need to specify a servlet-class, not a url-pattern in your servlet declaration. For instance: servlet servlet-namehi/servlet-name servlet-classmypackage.Hello/servlet-class /servlet servlet-mapping servlet-namehi/servlet-name url-pattern/hello.html/url-pattern /servlet-mapping servlet-mapping servlet-namehi/servlet-name url-pattern*.hello/url-pattern /servlet-mapping servlet-mapping servlet-namehi/servlet-name url-pattern/hello/*/url-pattern /servlet-mapping Notice all the different mappings we can make for the same servlet. in addition to all those mappings you can access your servlet via Tomcat's default invoker servlet via: http://localhost:8080/servlet/hi or http://localhost:8080/servlet/mypackage.Hello That's more than you asked for, but I just figured I'd add it :-) Jake Thursday, September 12, 2002, 3:31:44 PM, you wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:45 AM To: Tomcat Users List Subject: RE: Help Deploying Servlet Have you specify the servlet-mapping. for exemple : servlet-mapping servlet-nameAddNewsItem/servlet-name url-pattern/AddNewsItem/url-pattern /servlet-mapping CC No, I only had this: CC web-app CC servlet CC servlet-nameAddNewsItem/servlet-name CC url-pattern/AddNewsItem/url-pattern CC /servlet CC /web-app CC So is this what I need? CC web-app CC servlet CC servlet-mapping CC servlet-nameAddNewsItem/servlet-name CC url-pattern/AddNewsItem/url-pattern CC /servlet-mapping CC /servlet CC /web-app CC Thanks, CC Chuck -Message d'origine- De : Chuck Carson [mailto:[EMAIL PROTECTED]] Envoye : jeudi 12 septembre 2002 18:27 A : Tomcat Users List Objet : Help Deploying Servlet I have the following servlet: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/AddNewsItem.class I addded this to WEB-INF/web.xml web-app servlet servlet-nameAddNewsItem/servlet-name servlet-classAddNewsItem/servlet-class /servlet /web-app I restarted tomcat but I keep getting 404's when referring to AddNewsItem from a jsp page like so: FORM action=AddNewsItem method=POST What am I missing? Thanks, Chuck Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] CC -- CC This message contains confidential information and is intended only CC for the individual named. If you are not the named addressee you CC should not disseminate, distribute or copy this e-mail. Please CC notify the sender immediately by e-mail if you have received this CC e-mail by mistake and delete this e-mail from your system. E-mail CC transmission cannot be guaranteed to be secure or error-free as CC information could be intercepted, corrupted, lost, destroyed, arrive CC late or incomplete, or contain viruses. The sender therefore does CC not accept liability for any errors or omissions in the contents of CC this message, which arise as a result of e-mail transmission. If CC verification is required please request a hard-copy version. CC -- CC To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] CC For additional commands, e-mail: CC mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message
Does Tomcat require restart when chaning classes?
I had the following class: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyClass.class If I modify this class (ie recompile) how can I make it active w/o restarting tomcat? As it stands now (with my current server config, which is pretty much default) I can only get news changes visible after a server restart. Thanks, CC Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
ARG! Please Help
I have a class that needs to read in database connection info from a file called database.dat. The class is located here: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/OracleBroker.class I refer to this file as follows: String datfile = database.dat; I then use the class from a jsp file: $TOMCAT_HOME/webapps/ROOT/index.jsp It cannot find database.dat, I have tried placing this file in nearly every directory under the tomcat tree. Where does this file need to do? Thanks, CC Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
RE: ARG! Please Help
I think some of your message was chopped, exactly how would I use this? Thanmks, CC -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 6:26 PM To: Tomcat Users List Subject: RE: ARG! Please Help application.getRealPath() return web application directory try use this -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:12 AM To: Tomcat Users List Subject: ARG! Please Help I have a class that needs to read in database connection info from a file called database.dat. The class is located here: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/OracleBroker.class I refer to this file as follows: String datfile = database.dat; I then use the class from a jsp file: $TOMCAT_HOME/webapps/ROOT/index.jsp It cannot find database.dat, I have tried placing this file in nearly every directory under the tomcat tree. Where does this file need to do? Thanks, CC Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ARG! Please Help
Oh okay. That is a good way of doing it, thanks a bunch. -CC -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 6:34 PM To: Tomcat Users List Subject: RE: ARG! Please Help % String webappdir=application.getRealPath(); out.println(webappdir); String data=webappdir+/database.dat % -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:25 AM To: Tomcat Users List Subject: RE: ARG! Please Help I think some of your message was chopped, exactly how would I use this? Thanmks, CC -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 6:26 PM To: Tomcat Users List Subject: RE: ARG! Please Help application.getRealPath() return web application directory try use this -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:12 AM To: Tomcat Users List Subject: ARG! Please Help I have a class that needs to read in database connection info from a file called database.dat. The class is located here: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/OracleBroker.class I refer to this file as follows: String datfile = database.dat; I then use the class from a jsp file: $TOMCAT_HOME/webapps/ROOT/index.jsp It cannot find database.dat, I have tried placing this file in nearly every directory under the tomcat tree. Where does this file need to do? Thanks, CC Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Relative Servlet Path
I am confused. I merely want to reference a file from within a servlet(s). I want to keep my apps transportable so I have a var like this: String myVar = db/config.dat; Where is it looking for this file. If the servlet is here: $TCAT_HOME/ROOT/WEB-INF/classes/MyServlet, where will it look for the db directory? Thanks, CC -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 11:40 PM To: Tomcat Users List Subject: Re: Relative Servlet Path Well, if you are talking about context.getRealPath(/), that points to the root of your webapp. If you were to append your db/file.dat to that, you would be looking for it in: MyContext/ db/file.dat WEB-INF/web.xml I assume you want your db file hidden from view so I'd do: getRealPath(/WEB-INF/db) Note that this is no relative to the current servlet. It is relative to the current context. Also note that getRealPath(/) will return null if your app is deployed directly from a .war file and not and expanded directory, so be careful about this usage. Jake At 02:44 PM 9/4/2002 -0700, you wrote: If I have a servlet, say ROOT/WEB-INF/classes/MyServlet, what would be the relative path for this servlet. ie: If I have a variable as such: String myconfig = db/file.dat; What is this path relatvie to, would it be the same directory as the servlet, thus I would create ROOT/WEB-INF/classes/db ? Sorry if this is newbie, I have only been using tomcat for 2 weeks. Thanks, Chuck Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Relative Servlet Path
If I have a servlet, say ROOT/WEB-INF/classes/MyServlet, what would be the relative path for this servlet. ie: If I have a variable as such: String myconfig = db/file.dat; What is this path relatvie to, would it be the same directory as the servlet, thus I would create ROOT/WEB-INF/classes/db ? Sorry if this is newbie, I have only been using tomcat for 2 weeks. Thanks, Chuck Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.