RE : Oracle 9i client connection to 8i database
If you get this log 27-DEC-2004 16:58:11 * (CONNECT_DATA=(SID=test)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.4)(PORT=33244)) * establish * Perhaps you have to try jdbc:oracle:thin:@10.0.0.4:33244:test with thin driver and jdbc:oracle:oci:@service_name with oci driver. -Message d'origine- De : Phillip Qin [mailto:[EMAIL PROTECTED] Envoyé : mardi 4 janvier 2005 22:39 À : 'Tomcat Users List' Objet : RE: Oracle 9i client connection to 8i database There is nothing to do with Oracle client. All you need is the jdbc driver. -Original Message- From: Brad Rhoads [mailto:[EMAIL PROTECTED] Sent: December 27, 2004 5:11 PM To: 'Tomcat Users List' Subject: RE: Oracle 9i client connection to 8i database I always assumed the Oracle client was required. . . I uninstalled the client and get the same results. With the sid syntax I at least get an entry in the listener.log: 27-DEC-2004 16:58:11 * (CONNECT_DATA=(SID=test)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.4)(PORT=33244)) * establish * But the app doesn't get a connection. And with the service_name syntax I only get a connection error: DatabaseMessageresources: Loading all the messages for the messageMap NVFactory: _readNVPair expected ) DatabaseMessageresources: SQL EXCEPTION FETCHING MESSAGE java.sql.SQLException: Io exception: NL Exception was generated at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187) I've run into a similar problem where the db server was behind the firewall and the firewall didn't allow high-ports, but in this case both machines are behind the firewall. Any other ideas why I might not be able to get a connection? -Original Message- From: Michael Echerer [mailto:[EMAIL PROTECTED] Sent: Saturday, December 25, 2004 4:08 AM To: Tomcat Users List Subject: Re: Oracle 9i client connection to 8i database How come that you need an Oracle client installation at all when you just want to use the Oracle thin JDBC driver? IHMO the client installation is only required for OCI thick drivers... Brad Rhoads wrote: We have an (struts) app that talks to an Oracle 8i database. Our latest installation wants to run the app on Fedora Core 2. I couldn't get the Oracle 8i client install, so I installed the 9i client. With the 9i client, you have to use a service_name instead of a sid in the connection. Normally my connection string (in my web.xml) looks like: param-valuejdbc:oracle:thin:@10.0.0.7:1521:test/param-value But it seems to get a service_name instead of a sid I have to use something like: param-valuejdbc:oracle:thin:@jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS =(PROT OCOL=TCP)(HOST=10.0.0.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=test)) )/par am-value My problem is I'm getting this error: NVFactory: _readNVPair expected It doesn't seem to make any difference if I use the 8i or the 9i drivers. I've also tried param-valuejdbc:oracle:thin:@//10.0.0.7:1521/test/param-value But that just gave me a format error. I can connect fine using sqlplus. What am I doing wrong? Thanks for the help. Merry Christmas! - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41d08896130622933416230! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: index.jsp not found
thanks to all 4 ur input. i will try the suggestions and get back to you, if needed. rgds atishay On Wed, 5 Jan 2005 15:17:40 +0800, Jerome Jar [EMAIL PROTECTED] wrote: Or you may edit the file $CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml, and remove the servlet mapping of org.apache.jsp.index_jsp. In my opinion this SHOULD work. The org.apache.jsp.index_jsp class is in ROOT/WEB-INF/lib/catalina-root.jar, deleting index.jsp does not make any effect on this .jar. Oops, I forgot that my Tomcat is version 5.5.4... :S On Wed, 5 Jan 2005 08:30:17 +0200, Quinton Delpeche [EMAIL PROTECTED] wrote: On Wednesday 05 January 2005 08:21, Atishay Kumar wrote: hi, I am using tomcat 4.1.27 on linux. I deleted my index.jsp page but even then index.jsp was showing even after i refreshed the page. after refreshing 2-3 times it said that index.jsp not found (which it should have done first time itself). After that i put a new index.jsp . but still it is showing that index.jsp not found. even after refreshing numerous times. what could be the possible problem? and what is the solution so that it does not re-occur. On linux touch the file with the touch command... ...or alternatively... ...restart Tomcat. thanks Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ I know it all. I just can't remember it all at once. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- :) Atishay Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]web development fee
Sorry if this is a little off topic. I have been developing Java web application for my employer for a while, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I plan to use a commercial hosting company to host the site. Any help will be very much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]web development fee
What country are you based in? Original Message Follows From: epyonne [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: [OT]web development fee Date: Wed, 5 Jan 2005 06:51:50 -0600 Sorry if this is a little off topic. I have been developing Java web application for my employer for a while, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I plan to use a commercial hosting company to host the site. Any help will be very much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Oracle 9i client connection to 8i database
-Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 3:14 AM To: 'Tomcat Users List' Subject: RE : Oracle 9i client connection to 8i database If you get this log 27-DEC-2004 16:58:11 * (CONNECT_DATA=(SID=test)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=or acle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.4)(PORT=33244)) * establish * Perhaps you have to try jdbc:oracle:thin:@10.0.0.4:33244:test with thin driver and HOST is the db server, not the client. And PORT is a the high-port that Oracle responds on (I think). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OCI Driver Usage [RE: Oracle 9i client connection to 8i database]
-Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 3:14 AM * Perhaps you have to try jdbc:oracle:oci:@service_name with oci driver. -Original Message- From: Michael Echerer [mailto:[EMAIL PROTECTED] Sent: Saturday, December 25, 2004 4:08 AM To: Tomcat Users List Subject: Re: Oracle 9i client connection to 8i database How come that you need an Oracle client installation at all when you just want to use the Oracle thin JDBC driver? IHMO the client installation is only required for OCI thick drivers... What do I need to do to try out the OCI drivers? Will my existing code work? Anyone have an example? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]web development fee
I am in the United States. Thanks. -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 6:54 AM To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: [OT]web development fee What country are you based in? Original Message Follows From: epyonne [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: [OT]web development fee Date: Wed, 5 Jan 2005 06:51:50 -0600 Sorry if this is a little off topic. I have been developing Java web application for my employer for a while, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I plan to use a commercial hosting company to host the site. Any help will be very much appreciated. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
Epyonne, Thank you for marking this thread [OT]. By replying to an existing thread instead of starting a new message, you've hijacked someone else's thread. A lot of people will not read your message because of this. Ask again with a new message. -Ben On Wed, 2005-01-05 at 07:51, epyonne wrote: Sorry if this is a little off topic. I have been developing Java web application for my employer for a while, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I plan to use a commercial hosting company to host the site. Any help will be very much appreciated. - 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]
webapp context confusion
I have been using Tomcat for quite some time now, and am still a bit shakey on some of the configuration details. I am currently using Tomcat5 and I want to my servlet to process all .jar and .jnlp files. I have my servlet mapping set up in the web.xml: servlet-mapping servlet-nameMyServlet/servlet-name url-pattern*.jar/url-pattern /servlet-mapping servlet-mapping servlet-nameMyServlet/servlet-name url-pattern*.jnlp/url-pattern /servlet-mapping My problem is that I want this to process all files, not just those in MySerlvet/ I cannot make a context element in the CATALINA_HOME/conf/[..]/[..]/MyServlet.xml that sets the path to be /, since the default servlet already has this context. How can I bundle this up as a webapp and still have it process .jnlp and .jar files in all directories? Thanks, Mark Confidentiality Notice: OCIESERVICE - The contents of this e-mail message and any attachments are intended solely for the addressee(s) named in this message. This communication is intended to be and to remain confidential. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and its attachments. Do not deliver, distribute, copy, disclose the contents or take any action in reliance upon the information contained in the communication or any attachments. - Mark Claassen Donnell Systems, Inc. 300 S. St. Louis Blvd. Ste. 203 South Bend, IN 46617 E-mail: mailto:[EMAIL PROTECTED] Voice: (574)232-3784 Fax: (574)232-4014 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Speed issues with SQL Server 2000 and JTDS
Thanks. I had already done this but maybe not communicated them as concisely. Thanks Charles -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 6:23 PM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Trying a few test should help you narrow things down a bit. 1. Run without DB connection. (Done runs fast) 2. Run with a DB connect but no query. (Done runs slow) 3. Run with a simple query and do nothing with it. 4. Run with a simple query and post results in page. Only move forward through result set. 5. Run with a simple query and post results in page. Move around in the result set (Only if you do this in your page). At some point in these test you should see a dramatic jump in the response time. If it is a steady climb, then you may have multiple issues. Report back what you find and we'll make suggestions from there. Doug - Original Message - From: Charles P. Killmer [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 04, 2005 11:23 AM Subject: RE: Speed issues with SQL Server 2000 and JTDS Could this speed issue be caused by a poor setup? When I remove the database connection from my code, the pages run fast. Though I obviously need the database portion of the code in there. Thanks Charles -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 9:05 AM To: tomcat-user@jakarta.apache.org; Charles P. Killmer Subject: RE: Speed issues with SQL Server 2000 and JTDS You could try using something like jProfiler to see where the bottleneck is. I don't see anything unusual in your code example, although it looks like the only thing it does is create the connection. I use jTDS and it works fine without doing anything exceptional. [EMAIL PROTECTED] 01/03 8:55 am This is some representative code that is being very slow. import java.sql.*; public class SomeClass { public Connection conn; public int ID; public String Name; public String Address; public String City; public String OtherStuff; public SomeClass() throws Exception { try { Class.forName(net.sourceforge.jtds.jdbc.Driver); } catch (ClassNotFoundException ex) { } try { conn = DriverManager.getConnection(jdbc:jtds:sqlserver://111.222.333.444:1433/ someDB;user=someuser;password=somepassword); } catch (Exception e) { throw e; } } public int Audit() throws Exception { return 5; } public ResultSet GetData() throws Exception { ResultSet rs = null; return rs; } public int DeleteSomething() throws Exception { return 2; } } I don't have anything special in any XML files. I will try to make my code work like yours is. But if someone has an idea why the way I have it written is slow, I would love to hear it. Thank You Charles -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 8:20 AM To: Tomcat Users List Subject: RE: Speed issues with SQL Server 2000 and JTDS I have been using JTDS with SQL Server 2000 in conjunction with Tomcat without any problems. Perhaps if you post some your database connection code, someone could provide you with assistance. You might also try posting to the JTDS Mailing list. Are you using Database Connection Pooling (DBCP)?? I am including an example the code I use to access a stored procedure on SQL Server 2000 using DBCP. /* Here are the things I import */ import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLException; import javax.naming.*; import javax.sql.*; Public class SomeClass{ * A public class that returns an Applicant object * @return the applicant as applicant */ public Applicant SomeApplicantMethod(){ Applicant app = new Applicant(); Connection conn = null; Statement stmt = null; ResultSet rst = null; try{ Context ctx = new InitialContext(); /* Declare initial context */ if(ctx == null ){ logger.error(Error creating new context for some reason); throw new Exception(No context); } /* Throw an exception if it is null */ DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/summitexec); conn = ds.getConnection(); if(conn != null) { stmt = conn.createStatement(); rst = stmt.executeQuery(sp_SelectApplicant + canidateid); while(rst.next()){ // Add result set to applicant object, NOT SHOWN HERE!!! } //Make sure you close everything, else you end up with object leaks if(stmt != null){ stmt.close(); }
Re: Context for User development accounts??
Thanx QM, This if funny ironically enough the documentation says: --deployOnStartup-- This flag value indicates if web applications from this host should be automatically deployed by the host configurator. The flag's value defaults to true. Yep, that correct it defults to ture. But as you suggested I will explicitlly set it anyway. This posses one more question. I was wonder if I could have more than one *|appBase|* per host. of what if I wanted my host to have more then one *|appBase.|* Thank you for your past reply's they have been very helpfull. Again thank you for your time.*||* QM wrote: On Tue, Jan 04, 2005 at 07:05:40AM -0800, Dwayne Ghant wrote: : But now you tell me of an attribute that I could even find in the : Server Configuration Reference ... The Context Container : documentation. I guess that I would have to create a Context : loadOnStartup=true ... / : for every developer on the machine? I was close, and so were you: me: early-morning typo, it's called deployOnStartup you: write site, wrong doc. Check under Host Container for details. -QM -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[mod_jk] Unable to get directory listings from Apache httpd 2 for versions 1.2.5 and above
Hi all *Our setup:* - Solaris 8 - Apache httpd 2.0.50 - Jakarta Tomcat Connectors mod_jk 1.2.4/1.2.5/1.2.6/1.2.8 - Tomcat 4.1.31 *How we want it to work:* 1. For all configured webapps (via JkMount directives) mod_jk should forward the requests to Tomcat 2. For all jsp-pages (via a JkMount directive) mod_jk should forward the requests to Tomcat 3. Accesses to a (non-webapp) directory (i.e. /examples/) should go to (in order) - an index.jsp (via Tomcat) - an index.shtml (via Apache httpd) - an index.html (via Apache httpd) - show a directory listing (mod_autoindex in Apache httpd) *Problems:* With mod_jk 1.2.4 this works as expected. With versions 1.2.5, 1.2.6 and 1.2.8, number 3 above doesn't work. A request for /examples/ returns a 404 from Tomcat. Looking in the mod_jk log shows that it is trying to serve the file index.jsp, but that file doesn't exist. It should have returned a directory listing because no valid index-file (index.jsp, index.shtml or index.html) was found. The reason for upgrading is that we want to use the new JkUnmount directive. We'll be using it to be able to see jsp-files via viewcvs, like this: JkUnMount /cgi-bin/*.jsp connector80 *Configuration snippets* httpd.conf Options Indexes Includes DirectoryIndex index.jsp index.shtml index.html ... JkMount /*.jsp connector80 JkMount /webapp1/* connector80 JkMount /webapp2/* connector80 ... We've also tried some of the new mod_jk directives forwards and backwards including these: JkOptions -ForwardDirectories JkOptions +ForwardDirectories Is there something wrong with our setup, our is there a bug in mod_jk? The source-code change that set this off, I believe, can be found here: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c?r1=1.77r2=1.78diff_format=h -- Dennis Lundberg, Utvecklingsledare, IT-avdelningen e-post: [EMAIL PROTECTED] http://www.mdh.se/personal/VisaPerson?fornamn=Dennisefternamn=Lundberg tel: +46-(0)21-101516, fax: +46-(0)21-101636 Mälardalens högskola, Box 883, SE-72123 Västerås, SWEDEN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : OCI Driver Usage [RE: Oracle 9i client connection to 8i data base]
To use thin driver, you just have to put jdbc library on your classpath (ojdbc14.jar for oracle9), depending on your configuration, deploy this jar in common/lib, or war file. You can try this code. I did not compile it but I think that it must run. import java.sql.*; import java.util.*; public class Test { static String _url = jdbc:oracle:thin:@host:port:sid; static String url; String login ; String password ; Connection con; PreparedStatement stmt; /** * MAIN() * @param args */ public static void main(String args[]) { if (args.length 3 ) { System.out.println(usage: java Test -Durl=url login password); System.exit(1); } url = System.getProperty( url , _url ); Test ts = new Test(); ts.login = args[0]; ts.password = args[1]; ts.doTest(); } /** * Constructeur par défaut. * */ public Test() { try { Class.forName(oracle.jdbc.driver.OracleDriver).newInstance(); } catch(Exception e) { System.out.println(Exception: ); System.out.println(e.getMessage()); } } /** * * */ public void doTest() { System.out.println(--- parameters -); System.out.println(URL : + url ); System.out.println(login : + login ); System.out.println(password : + password ); System.out.println(---); try { con = DriverManager.getConnection( url, login, password ); // Create Oracle DatabaseMetaData object DatabaseMetaData meta = con.getMetaData (); // get driver info: System.out.println(JDBC driver version is + meta.getDriverVersion()); } catch(SQLException ex) { System.out.println(SQLException: + ex.getMessage()); } finally { try { if ( stmt != null ) stmt.close(); if ( con != null ) con.close(); } catch (SQLException e) { e.printStackTrace(); } } } } -Message d'origine- De : Brad Rhoads [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 janvier 2005 14:05 À : 'Tomcat Users List' Objet : OCI Driver Usage [RE: Oracle 9i client connection to 8i database] -Original Message- From: LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 3:14 AM * Perhaps you have to try jdbc:oracle:oci:@service_name with oci driver. -Original Message- From: Michael Echerer [mailto:[EMAIL PROTECTED] Sent: Saturday, December 25, 2004 4:08 AM To: Tomcat Users List Subject: Re: Oracle 9i client connection to 8i database How come that you need an Oracle client installation at all when you just want to use the Oracle thin JDBC driver? IHMO the client installation is only required for OCI thick drivers... What do I need to do to try out the OCI drivers? Will my existing code work? Anyone have an example? - 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]
More then one appBase per virtual Host...
I was wonder if I could have more than one *|appBase|* per host. or what if I wanted my host to have more then one *|appBase. How would I configure this or can it be configure at all??? May I could make two host with the same virtual host Name??? EX: Host name=localhost debug=0 appBase=/var/www/html/ unpackWARs=true autoDeploy=true deployOnStartup=true xmlValidation=false xmlNamespaceAware=false /Host Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true deployOnStartup=true xmlValidation=false xmlNamespaceAware=false /Host I know that my imagination is really out ther now!!! Any comment is appreciated. Thank you for your time. -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]web development fee
Since I am using Outlook Express, I did not realize that I was attaching to someone else thread and I apologize for that. I am starting a new thread here and hopefully someone can help me. I have been developing Java web application for my employer for a few years, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I am in the United States and I plan to use a commercial hosting company to host the site. It will cost around $30-40 a month. Any help will be very much appreciated.
Re: [mod_jk] Unable to get directory listings from Apache httpd 2 for versions 1.2.5 and above
Dennis Lundberg wrote: *Problems:* With mod_jk 1.2.4 this works as expected. With versions 1.2.5, 1.2.6 and 1.2.8, number 3 above doesn't work. A request for /examples/ returns a 404 from Tomcat. Looking in the mod_jk log shows that it is trying to serve the file index.jsp, but that file doesn't exist. It should have returned a directory listing because no valid index-file (index.jsp, index.shtml or index.html) was found. Do not use DirectoryIndex index.jsp. It's up to Tomcat to decide what will be the default context for any web application. *Configuration snippets* httpd.conf Options Indexes Includes DirectoryIndex index.jsp index.shtml index.html You can serve only application that are listed in the server.xml, so what would be the purpose of DirectoryIndex index.jsp anyhow? ... JkMount /*.jsp connector80 JkMount /webapp1/* connector80 JkMount /webapp2/* connector80 ... We've also tried some of the new mod_jk directives forwards and backwards including these: JkOptions -ForwardDirectories JkOptions +ForwardDirectories Is there something wrong with our setup, our is there a bug in mod_jk? Yes like said apache forwards the requests to tomcat over the wire. It's up to Tomcat to decide what content it will serve. Using DirectoryIndex the Apache is trying /examples/index.jsp - 404 from Tomcat if index.jsp does not exist. This is common perception problem. Tomcat is not PHP where you can feed the physical file to its engine, so entire DirectoryIndexing concept is useless from Tomcat point of view. Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
watch out for free support - most people make this mistake and it ends up sucking up all their time. Charge a time and materials fee when shit hits the fan such as out of disk space etc, a shopping cart isn't working. Make it their responsibility to QA the site, and when they are done, have them sign off the deal. Filip - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 8:26 AM Subject: [OT]web development fee Since I am using Outlook Express, I did not realize that I was attaching to someone else thread and I apologize for that. I am starting a new thread here and hopefully someone can help me. I have been developing Java web application for my employer for a few years, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I am in the United States and I plan to use a commercial hosting company to host the site. It will cost around $30-40 a month. Any help will be very much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
Epyonne, First off, I don't think that you hijacked anyone's thread, but this list seems to be very sensitive to that (and perhaps more affected by it than other lists I have seen). From my experience there are a couple of options you can pursue: 1) You could build the application from the ground up and charge an hourly rate. The rate will have to be agreed upon by you and the person contracting you. 2) You could develop the eCommerce application at your own cost and sell a license to it. In this case you would have more direct control over the features you build into it. Also, while this costs you more up front there is more possibility to recover the cost in selling multiple licenses. 3) You could purchase a license to an existing application and adapt it to meet your clients' needs. In this case you would likely charge a flat fee to recover your hard costs for the purchase and an hourly after that for any adaptations. In this case I personally would ask for the hard costs up front so as to not go to the expense and then have the client change his/her mind. Now about the way you asked your question, I'm not sure if the web application you have developed for your employer is an eCommerce application. In the event that it is eCommerce related you will likely use that as a base for whatever you build for your new client. In this case you should discuss with your employer how he feels about you building off of a code base that he has funded. It may be that you could work out an arrangement with your employer to accomplish option 3 above, and that your employer will give you a license at a significant savings to you. As far as contracts go, you should probably consult with a lawyer for that. Daniel - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 7:26 AM Subject: [OT]web development fee Since I am using Outlook Express, I did not realize that I was attaching to someone else thread and I apologize for that. I am starting a new thread here and hopefully someone can help me. I have been developing Java web application for my employer for a few years, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I am in the United States and I plan to use a commercial hosting company to host the site. It will cost around $30-40 a month. Any help will be very much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Thread hi-jacking - How to avoid
All, There have been a number of unintentional thread hi-jackings recently and I wanted to clarify why it seems to be increasing, how it can happen and how to avoid it. Why the increase? = I don't think there has been an increase. What has increased is the use of good thread aware mail clients (eg Thunderbird) that base thread detection on the Message-ID and References headers rather than just matching subject lines. How it can happen = Rather than create a new message, you reply to an old one and change the subject. How to avoid it === Simple really. To create a new message do exactly that, create a new message. Don't reply to an old one and change the subject. ;) In summary, only use the reply button when you want to reply. As always, if anyone expereinces problems with the list do let the owners know. Mark [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
Is there anything else I need to watch out for? If you're not a web-designer, avoid taking charge of the look and feel of the site. I've always done best when I've told the client to use a design house for the look and feel and then give the static files the me so I can build the app around them. If you do it the other way around (the design house works with your JSP), make sure the customer signs off on your working but undressed pages before they go to the design house so you can charge them to fix anything the designers break. -Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Gurus! JCE and classloader question
Arg... My bad The test has been done, but a jar was remaining in the WEB-INF Antony Paul wrote: May be there are two jar files or unzipped class files of the same class. Check for it also. rgds Antony Paul On Thu, 23 Dec 2004 16:22:33 +0100, Lionel Pasquier [EMAIL PROTECTED] wrote: Well, I tried to put the library in common/lib (and I think also for a different try, in shared/lib). Usually it is in WEB-INF/lib. But the problem occured also. I believe that the factory used by the jvm searches for the first instance of the JCE. Then it tries to cast it into another instance of the lib which is different from the first, but I am not too sure about that since I am no expert in Tomcat. Have you an explanation or any solution? Antony Paul wrote: Where you put the provider jar file ?. WEB-INF/lib ?. Try putting it in shared/lib or common/lib if the same jar file is used by multiple applications. rgds Antony Paul On Thu, 23 Dec 2004 15:01:04 +0530, Antony Paul [EMAIL PROTECTED] wrote: Which JCE provider you are using ? rgds Antony Paul On Tue, 21 Dec 2004 20:06:40 +0100, Lionel Pasquier [EMAIL PROTECTED] wrote: Hello again! Any guru around to solve my problem please? :-) Lionel Pasquier wrote: Hello, I have a trouble with using a JCE and multiple contexts. From what I could have read around here this is probably linked to a classloader problem. Could you guys help? Basicaly, I generate a RSA Keypair, then create a certificate and want to self sign it. Finally i need to store the private key to create a p12. Here is the code: I am using the IAIK JCE. KeyPair keyPair; IAIK IAIKprovider = new IAIK(); Security.insertProviderAt(IAIKprovider, 2); KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(RSA, IAIKprovider.getName()); keyPairGenerator.initialize(keySize); keyPair = keyPairGenerator.generateKeyPair(); X509Certificate cert; [...] cert.sign( AlgorithmID.sha1WithRSAEncryption ,keyPair.getPrivate(), IAIKprovider.getName()); if(!RSAPrivateKey.class.isAssignableFrom(keyPair.getPrivate().getClass())){ error(Generated RSA private key is not of type RSA!); } KeyBag keybag = new KeyBag((RSAPrivateKey) keyPair.getPrivate(), certLabel, certLabel.getBytes()); The problem is that if I have more than one tomcat context using the same pice of code, the 2nd context to use it triggers the if (that is, without it I get a ClassCastException). Meaning that the generated private key is not compatible with RSAPrivateKey, while I asked for a RSA key. I also have the same problem with the other way around: CertificateFactory certFactory = CertificateFactory.getInstance(X.509, IAIK); Collection certCollection = certFactory.generateCertificates(new ByteArrayInputStream( certChainBlob.getDatabinary() )); cert = (X509Certificate)certChain.get(0); //where X509Certificate being iaik.x509.X509Certificate) gets a ClassCastException if being the second context to call this code. Oh, one more important thing: I add the security provider dynamicaly with a: Security.insertProviderAt(new IAIK(), 2); Could someone help me on this? Thank you, Lionel - 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] - 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] - 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]
Ugh. IIS + Tomcat + multiple virtual hosts
I have a number of applications running under Tomcat root contexts, on various different servers/ports. Under Apache, I can use the JkMount /* workername directive under a virtual directory to allow me to do virtual hosting, under Apache, which allows me to specify that a particular hostname be handled by a particular worker, on a particular host and port. Quite clean, I like it. However, I find myself with the need to use IIS to front end the sites now, and the redirector DLL doesn't seem to account for this type of configuration. What this comes down to is having multiple instances of the redirector that refer to different workers2.properties files. Way back when, someone mentioned an enhancement that was planned whereby the redirector DLL would check for a file called dllname.properties somewhere, and if present, use it, otherwise, check the registry for the location of the config file. I blindly tried that, and it doesn't seem to work. Did this enhancement ever happen? Is there some secret incantation I have to do to make it work? Is there a way to do what I'm trying to accomplish? I've already suggested that we go with Apache instead and proxy any sites that require IIS, but I'm guessing that won't be an option. --- beati pacifici quoniam filii Dei vocabuntur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ugh. IIS + Tomcat + multiple virtual hosts
Are you using JK or JK2 as the redirector in IIS? You might want to indicate what version of IIS as some people have reported trouble using JK in IIS 6 unless they run in IIS 5 isolation mode. I use JK2 with multiple virtual hosts, and each host is handled by a different worker. I'm sure JK can do this also. Here's a JK2 example with two different workers handling two different virtual hosts: [channel.socket:web1:8010] port=8010 host=web1.bvu.edu [ajp13:web1:8010] channel=channel.socket:web1:8010 [uri:web1.bvu.edu/servlet/*] worker=ajp13:web1:8010 [channel.socket:web2:8009] port=8009 host=web2.bvu.edu [ajp13:web2:8009] channel=channel.socket:web2:8009 [uri:web1.bvu.edu/servlet/*] worker=ajp13:web2:8009 [EMAIL PROTECTED] 01/05 10:45 am I have a number of applications running under Tomcat root contexts, on various different servers/ports. Under Apache, I can use the JkMount /* workername directive under a virtual directory to allow me to do virtual hosting, under Apache, which allows me to specify that a particular hostname be handled by a particular worker, on a particular host and port. Quite clean, I like it. However, I find myself with the need to use IIS to front end the sites now, and the redirector DLL doesn't seem to account for this type of configuration. What this comes down to is having multiple instances of the redirector that refer to different workers2.properties files. Way back when, someone mentioned an enhancement that was planned whereby the redirector DLL would check for a file called dllname.properties somewhere, and if present, use it, otherwise, check the registry for the location of the config file. I blindly tried that, and it doesn't seem to work. Did this enhancement ever happen? Is there some secret incantation I have to do to make it work? Is there a way to do what I'm trying to accomplish? I've already suggested that we go with Apache instead and proxy any sites that require IIS, but I'm guessing that won't be an option. --- beati pacifici quoniam filii Dei vocabuntur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ugh. IIS + Tomcat + multiple virtual hosts
Resend correcting a typo: [channel.socket:web1:8010] port=8010 host=web1.bvu.edu [ajp13:web1:8010] channel=channel.socket:web1:8010 [uri:web1.bvu.edu/servlet/*] worker=ajp13:web1:8010 [channel.socket:web2:8009] port=8009 host=web2.bvu.edu [ajp13:web2:8009] channel=channel.socket:web2:8009 [uri:web2.bvu.edu/servlet/*] worker=ajp13:web2:8009 [EMAIL PROTECTED] 01/05 10:45 am I have a number of applications running under Tomcat root contexts, on various different servers/ports. Under Apache, I can use the JkMount /* workername directive under a virtual directory to allow me to do virtual hosting, under Apache, which allows me to specify that a particular hostname be handled by a particular worker, on a particular host and port. Quite clean, I like it. However, I find myself with the need to use IIS to front end the sites now, and the redirector DLL doesn't seem to account for this type of configuration. What this comes down to is having multiple instances of the redirector that refer to different workers2.properties files. Way back when, someone mentioned an enhancement that was planned whereby the redirector DLL would check for a file called dllname.properties somewhere, and if present, use it, otherwise, check the registry for the location of the config file. I blindly tried that, and it doesn't seem to work. Did this enhancement ever happen? Is there some secret incantation I have to do to make it work? Is there a way to do what I'm trying to accomplish? I've already suggested that we go with Apache instead and proxy any sites that require IIS, but I'm guessing that won't be an option. --- beati pacifici quoniam filii Dei vocabuntur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error
Mladen, No luck, alas. Same error. But thank you for the pointer, all the same. [EMAIL PROTECTED] make Making all in common make[1]: Entering directory `/tmp/jk/jakarta-tomcat-connectors-1.2.8-src/jk/native/common' /bin/sh /usr/bin/libtool --silent --mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread -DHAVE_APR -I/usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /usr/local/java/include -I /usr/local/java/include/ -c jk_ajp12_worker.c gcc: /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include: linker input file unused because linking not done cc1: /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include: No such file or directory make[1]: *** [jk_ajp12_worker.lo] Error 1 make[1]: Leaving directory `/tmp/jk/jakarta-tomcat-connectors-1.2.8-src/jk/native/common' make: *** [all-recursive] Error 1 On Jan 4, 2005, at 11:30 PM, Mladen Turk wrote: Perhaps the error is caused by space between -I and /usr/local/java Have no idea why this happening. I've tested the build on RH9 not on RHE3. Edit the common/Makefile.in and remove the spaces: From: JAVA_INCL=-I @JAVA_HOME@/include -I @JAVA_HOME@/include/@OS@ To: [EMAIL PROTECTED]@/include [EMAIL PROTECTED]@/include/@OS@ Tell me if that helps. Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
Daniel, Thanks for the response. No, what I develop for my employer is not eCommerce related. They are mostly for internal processing. Some of my web application are used by our call centers. Among the 3 options that you have stated, I think I will go with either #1 or #3. If I go with #3, do you know where I can find such application? Also, can you tell me what is the going rate for a contract job like this? $50/hr, $100/hr, or more? I don't have any idea at all. Thank you very much for your help and all the other posters' help! - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 10:00 AM Subject: Re: [OT]web development fee Epyonne, First off, I don't think that you hijacked anyone's thread, but this list seems to be very sensitive to that (and perhaps more affected by it than other lists I have seen). From my experience there are a couple of options you can pursue: 1) You could build the application from the ground up and charge an hourly rate. The rate will have to be agreed upon by you and the person contracting you. 2) You could develop the eCommerce application at your own cost and sell a license to it. In this case you would have more direct control over the features you build into it. Also, while this costs you more up front there is more possibility to recover the cost in selling multiple licenses. 3) You could purchase a license to an existing application and adapt it to meet your clients' needs. In this case you would likely charge a flat fee to recover your hard costs for the purchase and an hourly after that for any adaptations. In this case I personally would ask for the hard costs up front so as to not go to the expense and then have the client change his/her mind. Now about the way you asked your question, I'm not sure if the web application you have developed for your employer is an eCommerce application. In the event that it is eCommerce related you will likely use that as a base for whatever you build for your new client. In this case you should discuss with your employer how he feels about you building off of a code base that he has funded. It may be that you could work out an arrangement with your employer to accomplish option 3 above, and that your employer will give you a license at a significant savings to you. As far as contracts go, you should probably consult with a lawyer for that. Daniel - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 7:26 AM Subject: [OT]web development fee Since I am using Outlook Express, I did not realize that I was attaching to someone else thread and I apologize for that. I am starting a new thread here and hopefully someone can help me. I have been developing Java web application for my employer for a few years, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I am in the United States and I plan to use a commercial hosting company to host the site. It will cost around $30-40 a month. Any help will be very much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error
From: Thomas Tinnes [mailto:[EMAIL PROTECTED] Subject: Re: Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error -I/usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include -g -O2 I think the problem is directly above: there's no -I before the 2nd include file, so the compiler is interpreting it as the target of the compilation. - Chuck P.S. I believe there should be a space before each -I, but it may be optional. THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error
Thomas Tinnes wrote: Mladen, No luck, alas. Same error. But thank you for the pointer, all the same. Seems that the space is not a problem, but you have a strange entry: -I/usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include ... Seems like -I is missing from the last line. Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache2 tomcat5 jk2 questions
Hello everybody, I have configured jk2 successfully finally to work with apache and tomcat. #!Question 1 I have included the following in my server.xml file: Context path=/ccasas docBase=/home/ccasas/wwwdocs debug=0 reloadable=true crossContext=true /Context This allows me to see my jsp file as : http://myserver:8080/ccasas/myfile.jsp http://myserver/ccasas/myfile.jsp which is what I want to be able to access my jsp files from my homedir. BUT MY QUESTION IS: How do I tell apache to forward this request to tomcat. In other words, when I access http://myserver/ccasas/mnyfiles.jsp is only reading the file as text. Previously I had added a Jkmount option inside my httpd.conf, but it does not like it right now. #Question 2 Is there a way to specify my context path so that it will handle all my homedirs. In apache I use a wildcard (/home/*/wwwdocs) to handle all of my home directories. Is there anything like this in tomcat that I can use??
Re: Speed issues with SQL Server 2000 and JTDS
Charles P. Killmer wrote: Thanks. I had already done this but maybe not communicated them as concisely. Thanks Charles -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 6:23 PM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Trying a few test should help you narrow things down a bit. 1. Run without DB connection. (Done runs fast) 2. Run with a DB connect but no query. (Done runs slow) 3. Run with a simple query and do nothing with it. 4. Run with a simple query and post results in page. Only move forward through result set. 5. Run with a simple query and post results in page. Move around in the result set (Only if you do this in your page). At some point in these test you should see a dramatic jump in the response time. If it is a steady climb, then you may have multiple issues. Report back what you find and we'll make suggestions from there. Doug - Original Message - From: Charles P. Killmer [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 04, 2005 11:23 AM Subject: RE: Speed issues with SQL Server 2000 and JTDS Could this speed issue be caused by a poor setup? When I remove the database connection from my code, the pages run fast. Though I obviously need the database portion of the code in there. Thanks Charles -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 9:05 AM To: tomcat-user@jakarta.apache.org; Charles P. Killmer Subject: RE: Speed issues with SQL Server 2000 and JTDS You could try using something like jProfiler to see where the bottleneck is. I don't see anything unusual in your code example, although it looks like the only thing it does is create the connection. I use jTDS and it works fine without doing anything exceptional. [EMAIL PROTECTED] 01/03 8:55 am This is some representative code that is being very slow. import java.sql.*; public class SomeClass { public Connection conn; public int ID; public String Name; public String Address; public String City; public String OtherStuff; public SomeClass() throws Exception { try { Class.forName(net.sourceforge.jtds.jdbc.Driver); } catch (ClassNotFoundException ex) { } try { conn = DriverManager.getConnection(jdbc:jtds:sqlserver://111.222.333.444:1433/ someDB;user=someuser;password=somepassword); } catch (Exception e) { throw e; } } public int Audit() throws Exception { return 5; } public ResultSet GetData() throws Exception { ResultSet rs = null; return rs; } public int DeleteSomething() throws Exception { return 2; } } I don't have anything special in any XML files. I will try to make my code work like yours is. But if someone has an idea why the way I have it written is slow, I would love to hear it. Thank You Charles -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 8:20 AM To: Tomcat Users List Subject: RE: Speed issues with SQL Server 2000 and JTDS I have been using JTDS with SQL Server 2000 in conjunction with Tomcat without any problems. Perhaps if you post some your database connection code, someone could provide you with assistance. You might also try posting to the JTDS Mailing list. Are you using Database Connection Pooling (DBCP)?? I am including an example the code I use to access a stored procedure on SQL Server 2000 using DBCP. /* Here are the things I import */ import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLException; import javax.naming.*; import javax.sql.*; Public class SomeClass{ * A public class that returns an Applicant object * @return the applicant as applicant */ public Applicant SomeApplicantMethod(){ Applicant app = new Applicant(); Connection conn = null; Statement stmt = null; ResultSet rst = null; try{ Context ctx = new InitialContext(); /* Declare initial context */ if(ctx == null ){ logger.error(Error creating new context for some reason); throw new Exception(No context); } /* Throw an exception if it is null */ DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/summitexec); conn = ds.getConnection(); if(conn != null) { stmt = conn.createStatement(); rst = stmt.executeQuery(sp_SelectApplicant + canidateid); while(rst.next()){ // Add result set to applicant object, NOT SHOWN HERE!!! } //Make sure you close everything, else you end up with object leaks if(stmt != null){ stmt.close(); } if(rst != null){ rst.close(); } if(conn != null){ conn.close();
RE: Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Subject: RE: Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error P.S. I believe there should be a space before each -I, but it may be optional. Make that AFTER each -I. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No response from Tomcat 5 when browser sends signed cookie
I have configured Tomcat 5.0.27 on the localhost to accept https connections (I have configured an unsigned cert under the alias tomcat to allow this). I can then get to the root Tomcat page at https://localhost:8443/. If my browser happens to have a signed cookie in it (this cookie is a signed S/MIME message that contains the signing certificate and so is 3765 bytes long - it is used by some homegrown Apache httpd apps that are unrelated to Tomcat), then Tomcat no longer responds on 8443. I can still get to the Tomcat root page with http://localhost:8080/, but when I try https://localhost:8443/ then Netscape 7 says document contains no data and Safari says bad server response (NSURLErrorDomain:-1011). Nothing is logged by Tomcat about this. There are no error messages at any time from Tomcat. My browser and server are on Mac OS X. I tried puting the signing cert that is used to sign the S/MIME message into the keystore for Tomcat. That didn't help. I don't know how to put the signing key into the keystore... maybe that's inadvisable anyway? Is this simply a matter of the size of the cookie, or will Tomcat try to do something with the cookie even though it is not intended to be used by any apps in Tomcat? What should I investigate and try to resolve this? Thanks for your help! ==Leonard E. Sitongia Web Engineering Group National Center for Atmospheric Research P.O. Box 3000 Boulder CO 80307 USA [EMAIL PROTECTED]voice: (303)497-2454 fax: (303)497-1804 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache2 tomcat5 jk2 questions
Please Read your Documentation at this page http://myserver:8080/tomcat-docs/config/host.html and that should answer your question. Read the section that says: User Web Applications Casas, Claudia wrote: Hello everybody, I have configured jk2 successfully finally to work with apache and tomcat. #!Question 1 I have included the following in my server.xml file: Context path=/ccasas docBase=/home/ccasas/wwwdocs debug=0 reloadable=true crossContext=true /Context This allows me to see my jsp file as : http://myserver:8080/ccasas/myfile.jsp http://myserver/ccasas/myfile.jsp which is what I want to be able to access my jsp files from my homedir. BUT MY QUESTION IS: How do I tell apache to forward this request to tomcat. In other words, when I access http://myserver/ccasas/mnyfiles.jsp is only reading the file as text. Previously I had added a Jkmount option inside my httpd.conf, but it does not like it right now. #Question 2 Is there a way to specify my context path so that it will handle all my homedirs. In apache I use a wildcard (/home/*/wwwdocs) to handle all of my home directories. Is there anything like this in tomcat that I can use?? -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error
On Wed, 5 Jan 2005, Thomas Tinnes wrote: Mladen, No luck, alas. Same error. But thank you for the pointer, all the same. [EMAIL PROTECTED] make Making all in common make[1]: Entering directory file or directory make[1]: *** [jk_ajp12_worker.lo] Error 1 make[1]: Leaving directory `/tmp/jk/jakarta-tomcat-connectors-1.2.8-src/jk/native/common' make: *** [all-recursive] Error 1 Perhaps the error is caused by space between -I and /usr/local/java Have no idea why this happening. I've tested the build on RH9 not on RHE3. Edit the common/Makefile.in and remove the spaces: From: JAVA_INCL=-I @JAVA_HOME@/include -I @JAVA_HOME@/include/@OS@ To: [EMAIL PROTECTED]@/include [EMAIL PROTECTED]@/include/@OS@ Tell me if that helps. Mladen. Try running the buildconf.sh script to build the configure file. Then run your configure operation. I generally don't have success with the bundled configure file. Mon aéroglisseur est plein d'anguilles John P. Dodge Boeing Shared Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
issue config'ing a webapp
I'm having a problem getting a webapp running in my instance of tomcat. I have attached all the relevant info below. What I'm trying to do is use a sym link in a dir that points to a generic version of my app. That way I can have numerous versions of that app on my machine and instead of having to edit the server.xml every time I want to switch from one version of the app to another I can just change my sym link. When I do this I get a Resources start failed error in my log files. Any ideas? Do I need to provide more info? Will Tomcat not allow a sym link in the docBase of a Context element? Thanks... Erik from catalina.out StandardContext[/mondev_ng]: Resources start failed: java.lang.IllegalArgumentException: Document base C:\cygwin\home\efw\cvs\MonDev_NG does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193) from server.xml Context path=/mondev_ng reloadable=true docBase=C:\cygwin\home\efw\cvs\MonDev_NG Logger className=org.apache.catalina.logger.SystemOutLogger/ /Context [EMAIL PROTECTED] ~/cvs$ ls -l total 1 lrwxrwxrwx 1 efw mkgroup-l-d 18 Jan 5 12:02 MonDev_NG - MonDev_NG_20050105/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:57 MonDev_NG_20050103/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:32 MonDev_NG_20050105/ = Erik Weibust http://erik.weibust.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: issue config'ing a webapp
Hope this helps. -- Server Configuration Reference The Context Container --allowLinking-- If the value of this flag is true, symlinks will be allowed inside the web application, pointing to resources outside the web application base path. If not specified, the default value of the flag is false. Erik Weibust wrote: I'm having a problem getting a webapp running in my instance of tomcat. I have attached all the relevant info below. What I'm trying to do is use a sym link in a dir that points to a generic version of my app. That way I can have numerous versions of that app on my machine and instead of having to edit the server.xml every time I want to switch from one version of the app to another I can just change my sym link. When I do this I get a Resources start failed error in my log files. Any ideas? Do I need to provide more info? Will Tomcat not allow a sym link in the docBase of a Context element? Thanks... Erik from catalina.out StandardContext[/mondev_ng]: Resources start failed: java.lang.IllegalArgumentException: Document base C:\cygwin\home\efw\cvs\MonDev_NG does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193) from server.xml Context path=/mondev_ng reloadable=true docBase=C:\cygwin\home\efw\cvs\MonDev_NG Logger className=org.apache.catalina.logger.SystemOutLogger/ /Context [EMAIL PROTECTED] ~/cvs$ ls -l total 1 lrwxrwxrwx 1 efw mkgroup-l-d 18 Jan 5 12:02 MonDev_NG - MonDev_NG_20050105/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:57 MonDev_NG_20050103/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:32 MonDev_NG_20050105/ = Erik Weibust http://erik.weibust.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache2 tomcat5 jk2 questions
Thanks! Tomcat now works for every user directory! : ) But I still do not know how to make apache forward my jsp request to tomcat. I used to include Jkmount option in my httpd.conf, but now I have not idea. I have read about a JkSet but not sure how to use it. I have also read that you can have this configuration in the jk2.properties, but do not know how either. If you could point me to the right direction I would really appreciate it. I basically need to be able to view my jsp's through apache as: e.g. http://myserver/~userdir/myfile.jsp -Original Message- From: Dwayne Ghant [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:03 AM To: Tomcat Users List Subject: Re: apache2 tomcat5 jk2 questions Please Read your Documentation at this page http://myserver:8080/tomcat-docs/config/host.html and that should answer your question. Read the section that says: User Web Applications Casas, Claudia wrote: Hello everybody, I have configured jk2 successfully finally to work with apache and tomcat. #!Question 1 I have included the following in my server.xml file: Context path=/ccasas docBase=/home/ccasas/wwwdocs debug=0 reloadable=true crossContext=true /Context This allows me to see my jsp file as : http://myserver:8080/ccasas/myfile.jsp http://myserver/ccasas/myfile.jsp which is what I want to be able to access my jsp files from my homedir. BUT MY QUESTION IS: How do I tell apache to forward this request to tomcat. In other words, when I access http://myserver/ccasas/mnyfiles.jsp is only reading the file as text. Previously I had added a Jkmount option inside my httpd.conf, but it does not like it right now. #Question 2 Is there a way to specify my context path so that it will handle all my homedirs. In apache I use a wildcard (/home/*/wwwdocs) to handle all of my home directories. Is there anything like this in tomcat that I can use?? -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: issue config'ing a webapp
Hi, Erik, Instead of adding your context entries directly to server.xml, I recommend adding tiny little context.xml file snippets under TOMCAT_HOME/conf/Catalina/localhost. tomcat/conf |-- Catalina | `-- localhost | |-- ROOT.xml | |-- manager.xml | `-- julius-app.xml |-- catalina.policy |-- catalina.properties |-- jk2.properties |-- server-minimal.xml |-- server-original.xml |-- server.xml |-- tomcat-users.xml `-- web.xml In this case, notice julius-app.xml. Here is its contents: == Context path=/julius docBase=/home/julius/mywebapp == Notice how this julius-app.xml is essentially just a symlink. yours, Julius Davies On Wed, 2005-05-01 at 10:12 -0800, Erik Weibust wrote: I'm having a problem getting a webapp running in my instance of tomcat. I have attached all the relevant info below. What I'm trying to do is use a sym link in a dir that points to a generic version of my app. That way I can have numerous versions of that app on my machine and instead of having to edit the server.xml every time I want to switch from one version of the app to another I can just change my sym link. When I do this I get a Resources start failed error in my log files. Any ideas? Do I need to provide more info? Will Tomcat not allow a sym link in the docBase of a Context element? Thanks... Erik from catalina.out StandardContext[/mondev_ng]: Resources start failed: java.lang.IllegalArgumentException: Document base C:\cygwin\home\efw\cvs\MonDev_NG does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193) from server.xml Context path=/mondev_ng reloadable=true docBase=C:\cygwin\home\efw\cvs\MonDev_NG Logger className=org.apache.catalina.logger.SystemOutLogger/ /Context [EMAIL PROTECTED] ~/cvs$ ls -l total 1 lrwxrwxrwx 1 efw mkgroup-l-d 18 Jan 5 12:02 MonDev_NG - MonDev_NG_20050105/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:57 MonDev_NG_20050103/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:32 MonDev_NG_20050105/ = Erik Weibust http://erik.weibust.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Speed issues with SQL Server 2000 and JTDS
I tried setting that parameter to false and still the same slow issue. The fields in the database are all char or varchar. No unicode. Charles -Original Message- From: Victor Cardona [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:44 AM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Charles P. Killmer wrote: Thanks. I had already done this but maybe not communicated them as concisely. Thanks Charles -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 6:23 PM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Trying a few test should help you narrow things down a bit. 1. Run without DB connection. (Done runs fast) 2. Run with a DB connect but no query. (Done runs slow) 3. Run with a simple query and do nothing with it. 4. Run with a simple query and post results in page. Only move forward through result set. 5. Run with a simple query and post results in page. Move around in the result set (Only if you do this in your page). At some point in these test you should see a dramatic jump in the response time. If it is a steady climb, then you may have multiple issues. Report back what you find and we'll make suggestions from there. Doug - Original Message - From: Charles P. Killmer [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 04, 2005 11:23 AM Subject: RE: Speed issues with SQL Server 2000 and JTDS Could this speed issue be caused by a poor setup? When I remove the database connection from my code, the pages run fast. Though I obviously need the database portion of the code in there. Thanks Charles -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 9:05 AM To: tomcat-user@jakarta.apache.org; Charles P. Killmer Subject: RE: Speed issues with SQL Server 2000 and JTDS You could try using something like jProfiler to see where the bottleneck is. I don't see anything unusual in your code example, although it looks like the only thing it does is create the connection. I use jTDS and it works fine without doing anything exceptional. [EMAIL PROTECTED] 01/03 8:55 am This is some representative code that is being very slow. import java.sql.*; public class SomeClass { public Connection conn; public int ID; public String Name; public String Address; public String City; public String OtherStuff; public SomeClass() throws Exception { try { Class.forName(net.sourceforge.jtds.jdbc.Driver); } catch (ClassNotFoundException ex) { } try { conn = DriverManager.getConnection(jdbc:jtds:sqlserver://111.222.333.444:1433/ someDB;user=someuser;password=somepassword); } catch (Exception e) { throw e; } } public int Audit() throws Exception { return 5; } public ResultSet GetData() throws Exception { ResultSet rs = null; return rs; } public int DeleteSomething() throws Exception { return 2; } } I don't have anything special in any XML files. I will try to make my code work like yours is. But if someone has an idea why the way I have it written is slow, I would love to hear it. Thank You Charles -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 8:20 AM To: Tomcat Users List Subject: RE: Speed issues with SQL Server 2000 and JTDS I have been using JTDS with SQL Server 2000 in conjunction with Tomcat without any problems. Perhaps if you post some your database connection code, someone could provide you with assistance. You might also try posting to the JTDS Mailing list. Are you using Database Connection Pooling (DBCP)?? I am including an example the code I use to access a stored procedure on SQL Server 2000 using DBCP. /* Here are the things I import */ import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLException; import javax.naming.*; import javax.sql.*; Public class SomeClass{ * A public class that returns an Applicant object * @return the applicant as applicant */ public Applicant SomeApplicantMethod(){ Applicant app = new Applicant(); Connection conn = null; Statement stmt = null; ResultSet rst = null; try{ Context ctx = new InitialContext(); /* Declare initial context */ if(ctx == null ){ logger.error(Error creating new context for some reason); throw new Exception(No context); } /* Throw an exception if it is null */ DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/summitexec); conn = ds.getConnection(); if(conn != null) { stmt
Re: apache2 tomcat5 jk2 questions
This should help atleat I hope: Your httpd.conf should look something like this at the bottom. Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location Have a beautiful day. Casas, Claudia wrote: Thanks! Tomcat now works for every user directory! : ) But I still do not know how to make apache forward my jsp request to tomcat. I used to include Jkmount option in my httpd.conf, but now I have not idea. I have read about a JkSet but not sure how to use it. I have also read that you can have this configuration in the jk2.properties, but do not know how either. If you could point me to the right direction I would really appreciate it. I basically need to be able to view my jsp's through apache as: e.g. http://myserver/~userdir/myfile.jsp -Original Message- From: Dwayne Ghant [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:03 AM To: Tomcat Users List Subject: Re: apache2 tomcat5 jk2 questions Please Read your Documentation at this page http://myserver:8080/tomcat-docs/config/host.html and that should answer your question. Read the section that says: User Web Applications Casas, Claudia wrote: Hello everybody, I have configured jk2 successfully finally to work with apache and tomcat. #!Question 1 I have included the following in my server.xml file: Context path=/ccasas docBase=/home/ccasas/wwwdocs debug=0 reloadable=true crossContext=true /Context This allows me to see my jsp file as : http://myserver:8080/ccasas/myfile.jsp http://myserver/ccasas/myfile.jsp which is what I want to be able to access my jsp files from my homedir. BUT MY QUESTION IS: How do I tell apache to forward this request to tomcat. In other words, when I access http://myserver/ccasas/mnyfiles.jsp is only reading the file as text. Previously I had added a Jkmount option inside my httpd.conf, but it does not like it right now. #Question 2 Is there a way to specify my context path so that it will handle all my homedirs. In apache I use a wildcard (/home/*/wwwdocs) to handle all of my home directories. Is there anything like this in tomcat that I can use?? -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More then one appBase per virtual Host...
Anybody want to take a shoot at this Dwayne Ghant wrote: I was wonder if I could have more than one *|appBase|* per host. or what if I wanted my host to have more then one *|appBase. How would I configure this or can it be configure at all??? May I could make two host with the same virtual host Name??? EX: Host name=localhost debug=0 appBase=/var/www/html/ unpackWARs=true autoDeploy=true deployOnStartup=true xmlValidation=false xmlNamespaceAware=false /Host Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true deployOnStartup=true xmlValidation=false xmlNamespaceAware=false /Host I know that my imagination is really out ther now!!! Any comment is appreciated. Thank you for your time. -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
Also Try : www.salary.com I think you would like it. epyonne wrote: Daniel, Thanks for the response. No, what I develop for my employer is not eCommerce related. They are mostly for internal processing. Some of my web application are used by our call centers. Among the 3 options that you have stated, I think I will go with either #1 or #3. If I go with #3, do you know where I can find such application? Also, can you tell me what is the going rate for a contract job like this? $50/hr, $100/hr, or more? I don't have any idea at all. Thank you very much for your help and all the other posters' help! - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 10:00 AM Subject: Re: [OT]web development fee Epyonne, First off, I don't think that you hijacked anyone's thread, but this list seems to be very sensitive to that (and perhaps more affected by it than other lists I have seen). From my experience there are a couple of options you can pursue: 1) You could build the application from the ground up and charge an hourly rate. The rate will have to be agreed upon by you and the person contracting you. 2) You could develop the eCommerce application at your own cost and sell a license to it. In this case you would have more direct control over the features you build into it. Also, while this costs you more up front there is more possibility to recover the cost in selling multiple licenses. 3) You could purchase a license to an existing application and adapt it to meet your clients' needs. In this case you would likely charge a flat fee to recover your hard costs for the purchase and an hourly after that for any adaptations. In this case I personally would ask for the hard costs up front so as to not go to the expense and then have the client change his/her mind. Now about the way you asked your question, I'm not sure if the web application you have developed for your employer is an eCommerce application. In the event that it is eCommerce related you will likely use that as a base for whatever you build for your new client. In this case you should discuss with your employer how he feels about you building off of a code base that he has funded. It may be that you could work out an arrangement with your employer to accomplish option 3 above, and that your employer will give you a license at a significant savings to you. As far as contracts go, you should probably consult with a lawyer for that. Daniel - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 7:26 AM Subject: [OT]web development fee Since I am using Outlook Express, I did not realize that I was attaching to someone else thread and I apologize for that. I am starting a new thread here and hopefully someone can help me. I have been developing Java web application for my employer for a few years, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I am in the United States and I plan to use a commercial hosting company to host the site. It will cost around $30-40 a month. Any help will be very much appreciated. - 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] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: issue config'ing a webapp
Dwayne, Where do I set the allowLinking attribute? Erik --- Dwayne Ghant [EMAIL PROTECTED] wrote: Hope this helps. -- Server Configuration Reference The Context Container --allowLinking-- If the value of this flag is true, symlinks will be allowed inside the web application, pointing to resources outside the web application base path. If not specified, the default value of the flag is false. Erik Weibust wrote: I'm having a problem getting a webapp running in my instance of tomcat. I have attached all the relevant info below. What I'm trying to do is use a sym link in a dir that points to a generic version of my app. That way I can have numerous versions of that app on my machine and instead of having to edit the server.xml every time I want to switch from one version of the app to another I can just change my sym link. When I do this I get a Resources start failed error in my log files. Any ideas? Do I need to provide more info? Will Tomcat not allow a sym link in the docBase of a Context element? Thanks... Erik from catalina.out StandardContext[/mondev_ng]: Resources start failed: java.lang.IllegalArgumentException: Document base C:\cygwin\home\efw\cvs\MonDev_NG does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193) from server.xml Context path=/mondev_ng reloadable=true docBase=C:\cygwin\home\efw\cvs\MonDev_NG Logger className=org.apache.catalina.logger.SystemOutLogger/ /Context [EMAIL PROTECTED] ~/cvs$ ls -l total 1 lrwxrwxrwx 1 efw mkgroup-l-d 18 Jan 5 12:02 MonDev_NG - MonDev_NG_20050105/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:57 MonDev_NG_20050103/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:32 MonDev_NG_20050105/ = Erik Weibust http://erik.weibust.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Erik Weibust http://erik.weibust.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ugh. IIS + Tomcat + multiple virtual hosts
On Wed, 05 Jan 2005 11:24:21 -0600, David Boyer wrote Resend correcting a typo: [channel.socket:web1:8010] port=8010 host=web1.bvu.edu [ajp13:web1:8010] channel=channel.socket:web1:8010 [uri:web1.bvu.edu/servlet/*] worker=ajp13:web1:8010 [channel.socket:web2:8009] port=8009 host=web2.bvu.edu [ajp13:web2:8009] channel=channel.socket:web2:8009 [uri:web2.bvu.edu/servlet/*] worker=ajp13:web2:8009 Hey, cool, that worked great. Is there actually any documentation for the workers2.properties file? I looked around and couldn't find anything really useful... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Speed issues with SQL Server 2000 and JTDS
Try pinging the server with Microsoft SQL Server from the server running tomcat. You might use a traceroute to see where the network bottleneck may exist. What are your ping times. Are you experiencing network latency? Are you going through a Firewall? I am using JTDS and I have not experienced any problems with it. Randall -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:57 AM To: Tomcat Users List Subject: RE: Speed issues with SQL Server 2000 and JTDS I tried setting that parameter to false and still the same slow issue. The fields in the database are all char or varchar. No unicode. Charles -Original Message- From: Victor Cardona [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:44 AM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Charles P. Killmer wrote: Thanks. I had already done this but maybe not communicated them as concisely. Thanks Charles -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 6:23 PM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Trying a few test should help you narrow things down a bit. 1. Run without DB connection. (Done runs fast) 2. Run with a DB connect but no query. (Done runs slow) 3. Run with a simple query and do nothing with it. 4. Run with a simple query and post results in page. Only move forward through result set. 5. Run with a simple query and post results in page. Move around in the result set (Only if you do this in your page). At some point in these test you should see a dramatic jump in the response time. If it is a steady climb, then you may have multiple issues. Report back what you find and we'll make suggestions from there. Doug - Original Message - From: Charles P. Killmer [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 04, 2005 11:23 AM Subject: RE: Speed issues with SQL Server 2000 and JTDS Could this speed issue be caused by a poor setup? When I remove the database connection from my code, the pages run fast. Though I obviously need the database portion of the code in there. Thanks Charles -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 9:05 AM To: tomcat-user@jakarta.apache.org; Charles P. Killmer Subject: RE: Speed issues with SQL Server 2000 and JTDS You could try using something like jProfiler to see where the bottleneck is. I don't see anything unusual in your code example, although it looks like the only thing it does is create the connection. I use jTDS and it works fine without doing anything exceptional. [EMAIL PROTECTED] 01/03 8:55 am This is some representative code that is being very slow. import java.sql.*; public class SomeClass { public Connection conn; public int ID; public String Name; public String Address; public String City; public String OtherStuff; public SomeClass() throws Exception { try { Class.forName(net.sourceforge.jtds.jdbc.Driver); } catch (ClassNotFoundException ex) { } try { conn = DriverManager.getConnection(jdbc:jtds:sqlserver://111.222.333.444:1433/ someDB;user=someuser;password=somepassword); } catch (Exception e) { throw e; } } public int Audit() throws Exception { return 5; } public ResultSet GetData() throws Exception { ResultSet rs = null; return rs; } public int DeleteSomething() throws Exception { return 2; } } I don't have anything special in any XML files. I will try to make my code work like yours is. But if someone has an idea why the way I have it written is slow, I would love to hear it. Thank You Charles -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 8:20 AM To: Tomcat Users List Subject: RE: Speed issues with SQL Server 2000 and JTDS I have been using JTDS with SQL Server 2000 in conjunction with Tomcat without any problems. Perhaps if you post some your database connection code, someone could provide you with assistance. You might also try posting to the JTDS Mailing list. Are you using Database Connection Pooling (DBCP)?? I am including an example the code I use to access a stored procedure on SQL Server 2000 using DBCP. /* Here are the things I import */ import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLException; import javax.naming.*; import javax.sql.*; Public class SomeClass{ * A public class that returns an Applicant object * @return the applicant as applicant */ public Applicant SomeApplicantMethod(){ Applicant app = new Applicant(); Connection conn = null; Statement stmt
Re: issue config'ing a webapp
In your Context tag. Erik Weibust wrote: Dwayne, Where do I set the allowLinking attribute? Erik --- Dwayne Ghant [EMAIL PROTECTED] wrote: Hope this helps. -- Server Configuration Reference The Context Container --allowLinking-- If the value of this flag is true, symlinks will be allowed inside the web application, pointing to resources outside the web application base path. If not specified, the default value of the flag is false. Erik Weibust wrote: I'm having a problem getting a webapp running in my instance of tomcat. I have attached all the relevant info below. What I'm trying to do is use a sym link in a dir that points to a generic version of my app. That way I can have numerous versions of that app on my machine and instead of having to edit the server.xml every time I want to switch from one version of the app to another I can just change my sym link. When I do this I get a Resources start failed error in my log files. Any ideas? Do I need to provide more info? Will Tomcat not allow a sym link in the docBase of a Context element? Thanks... Erik from catalina.out StandardContext[/mondev_ng]: Resources start failed: java.lang.IllegalArgumentException: Document base C:\cygwin\home\efw\cvs\MonDev_NG does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193) from server.xml Context path=/mondev_ng reloadable=true docBase=C:\cygwin\home\efw\cvs\MonDev_NG Logger className=org.apache.catalina.logger.SystemOutLogger/ /Context [EMAIL PROTECTED] ~/cvs$ ls -l total 1 lrwxrwxrwx 1 efw mkgroup-l-d 18 Jan 5 12:02 MonDev_NG - MonDev_NG_20050105/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:57 MonDev_NG_20050103/ drwxr-xr-x+ 14 efw mkgroup-l-d 0 Jan 5 11:32 MonDev_NG_20050105/ = Erik Weibust http://erik.weibust.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Erik Weibust http://erik.weibust.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Administration Tool
I am using Tomcat 5.5.4 with jdk1.5.0_01. I am currently reading a book about Tomcat 5. Title: Professional Apache Tomcat 5 ISBN: 0-7645-5902-8 According to page 53 Chapter 5, Basic Tomcat Configuration it shows the node Service (Catalina) expanded to view view and edit Connectors, Hosts, Logger for Service, and Realm for Service. But I am unable to expand the node beyond Service (Catalinia) to show the Connectors, Host, etc. Is this a bug in the Tomcat Administration Tool. Here is a pic of what I see: http://www4.ncsu.edu/~tdsimpso/tmp/admintool.gif Although, I see an icon to allow me to expand the Service (Catalina) node, I am unable to. Thanks, Troy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Speed issues with SQL Server 2000 and JTDS
Charles P. Killmer wrote: Thanks. I had already done this but maybe not communicated them as concisely. Thanks Charles -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 6:23 PM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Trying a few test should help you narrow things down a bit. 1. Run without DB connection. (Done runs fast) 2. Run with a DB connect but no query. (Done runs slow) 3. Run with a simple query and do nothing with it. 4. Run with a simple query and post results in page. Only move forward through result set. 5. Run with a simple query and post results in page. Move around in the result set (Only if you do this in your page). At some point in these test you should see a dramatic jump in the response time. If it is a steady climb, then you may have multiple issues. Report back what you find and we'll make suggestions from there. Doug - Original Message - From: Charles P. Killmer [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 04, 2005 11:23 AM Subject: RE: Speed issues with SQL Server 2000 and JTDS Could this speed issue be caused by a poor setup? When I remove the database connection from my code, the pages run fast. Though I obviously need the database portion of the code in there. Thanks Charles -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 9:05 AM To: tomcat-user@jakarta.apache.org; Charles P. Killmer Subject: RE: Speed issues with SQL Server 2000 and JTDS You could try using something like jProfiler to see where the bottleneck is. I don't see anything unusual in your code example, although it looks like the only thing it does is create the connection. I use jTDS and it works fine without doing anything exceptional. [EMAIL PROTECTED] 01/03 8:55 am This is some representative code that is being very slow. import java.sql.*; public class SomeClass { public Connection conn; public int ID; public String Name; public String Address; public String City; public String OtherStuff; public SomeClass() throws Exception { try { Class.forName(net.sourceforge.jtds.jdbc.Driver); } catch (ClassNotFoundException ex) { } try { conn = DriverManager.getConnection(jdbc:jtds:sqlserver://111.222.333.444:1433/ someDB;user=someuser;password=somepassword); } catch (Exception e) { throw e; } } public int Audit() throws Exception { return 5; } public ResultSet GetData() throws Exception { ResultSet rs = null; return rs; } public int DeleteSomething() throws Exception { return 2; } } I don't have anything special in any XML files. I will try to make my code work like yours is. But if someone has an idea why the way I have it written is slow, I would love to hear it. Thank You Charles -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 8:20 AM To: Tomcat Users List Subject: RE: Speed issues with SQL Server 2000 and JTDS I have been using JTDS with SQL Server 2000 in conjunction with Tomcat without any problems. Perhaps if you post some your database connection code, someone could provide you with assistance. You might also try posting to the JTDS Mailing list. Are you using Database Connection Pooling (DBCP)?? I am including an example the code I use to access a stored procedure on SQL Server 2000 using DBCP. /* Here are the things I import */ import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLException; import javax.naming.*; import javax.sql.*; Public class SomeClass{ * A public class that returns an Applicant object * @return the applicant as applicant */ public Applicant SomeApplicantMethod(){ Applicant app = new Applicant(); Connection conn = null; Statement stmt = null; ResultSet rst = null; try{ Context ctx = new InitialContext(); /* Declare initial context */ if(ctx == null ){ logger.error(Error creating new context for some reason); throw new Exception(No context); } /* Throw an exception if it is null */ DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/summitexec); conn = ds.getConnection(); if(conn != null) { stmt = conn.createStatement(); rst = stmt.executeQuery(sp_SelectApplicant + canidateid); while(rst.next()){ // Add result set to applicant object, NOT SHOWN HERE!!! } //Make sure you close everything, else you end up with object leaks if(stmt != null){ stmt.close(); } if(rst != null){ rst.close(); } if(conn != null){
Re: Tomcat Administration Tool
The admin app appears to be broken in 5.5.4. I have tried 5.5.6 but it also seems to be having issues commiting changes. If you are just starting out try using 5.0.30 which is likely to be voted stable next week. PJ Troy Simpson wrote: I am using Tomcat 5.5.4 with jdk1.5.0_01. I am currently reading a book about Tomcat 5. Title: Professional Apache Tomcat 5 ISBN: 0-7645-5902-8 According to page 53 Chapter 5, Basic Tomcat Configuration it shows the node Service (Catalina) expanded to view view and edit Connectors, Hosts, Logger for Service, and Realm for Service. But I am unable to expand the node beyond Service (Catalinia) to show the Connectors, Host, etc. Is this a bug in the Tomcat Administration Tool. Here is a pic of what I see: http://www4.ncsu.edu/~tdsimpso/tmp/admintool.gif Although, I see an icon to allow me to expand the Service (Catalina) node, I am unable to. Thanks, Troy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ugh. IIS + Tomcat + multiple virtual hosts
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/index.html Also, there's a sample or two included with the source code. I should point out that JK2 is officially unsupported. Unless you specifically need JK2, I'd suggest JK 1.2.8. [EMAIL PROTECTED] 01/05 2:21 pm On Wed, 05 Jan 2005 11:24:21 -0600, David Boyer wrote Resend correcting a typo: [channel.socket:web1:8010] port=8010 host=web1.bvu.edu [ajp13:web1:8010] channel=channel.socket:web1:8010 [uri:web1.bvu.edu/servlet/*] worker=ajp13:web1:8010 [channel.socket:web2:8009] port=8009 host=web2.bvu.edu [ajp13:web2:8009] channel=channel.socket:web2:8009 [uri:web2.bvu.edu/servlet/*] worker=ajp13:web2:8009 Hey, cool, that worked great. Is there actually any documentation for the workers2.properties file? I looked around and couldn't find anything really useful... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What do these error message mean?
I have just configured the jk2 connector according to Chapter 12, Tomcat and Apache Server (Professional Apache Tomcat 5) and I am getting these message in the Apache2 Error log. It appears that I am able to get to jsp-examples via Apache2/jk2/Tomcat. What do they mean? How do I resolve this? [Wed Jan 05 15:48:45 2005] [notice] Digest: generating secret for digest authentication ... [Wed Jan 05 15:48:45 2005] [notice] Digest: done [Wed Jan 05 15:48:45 2005] [error] jk2_init() Can't find child 7498 in scoreboard [Wed Jan 05 15:48:45 2005] [notice] workerEnv.init() ok /u01/app/apache2/2.0.52/conf/workers2.properties [Wed Jan 05 15:48:45 2005] [error] mod_jk child init 1 -2 [Wed Jan 05 15:48:45 2005] [error] jk2_init() Can't find child 7499 in scoreboard [Wed Jan 05 15:48:45 2005] [notice] workerEnv.init() ok /u01/app/apache2/2.0.52/conf/workers2.properties [Wed Jan 05 15:48:45 2005] [error] mod_jk child init 1 -2 [Wed Jan 05 15:48:45 2005] [error] jk2_init() Can't find child 7500 in scoreboard [Wed Jan 05 15:48:45 2005] [notice] workerEnv.init() ok /u01/app/apache2/2.0.52/conf/workers2.properties [Wed Jan 05 15:48:45 2005] [error] mod_jk child init 1 -2 [Wed Jan 05 15:48:45 2005] [error] jk2_init() Can't find child 7501 in scoreboard [Wed Jan 05 15:48:45 2005] [notice] workerEnv.init() ok /u01/app/apache2/2.0.52/conf/workers2.properties [Wed Jan 05 15:48:45 2005] [error] mod_jk child init 1 -2 [Wed Jan 05 15:48:45 2005] [error] jk2_init() Can't find child 7502 in scoreboard [Wed Jan 05 15:48:45 2005] [notice] workerEnv.init() ok /u01/app/apache2/2.0.52/conf/workers2.properties [Wed Jan 05 15:48:45 2005] [error] mod_jk child init 1 -2 [Wed Jan 05 15:48:45 2005] [notice] Apache/2.0.52 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Wed Jan 05 15:49:43 2005] [error] jk2_init() Can't find child 7504 in scoreboard [Wed Jan 05 15:49:43 2005] [notice] workerEnv.init() ok /u01/app/apache2/2.0.52/conf/workers2.properties [Wed Jan 05 15:49:43 2005] [error] mod_jk child init 1 -2 [Wed Jan 05 15:49:44 2005] [error] jk2_init() Can't find child 7505 in scoreboard [Wed Jan 05 15:49:44 2005] [notice] workerEnv.init() ok /u01/app/apache2/2.0.52/conf/workers2.properties [Wed Jan 05 15:49:44 2005] [error] mod_jk child init 1 -2 [Wed Jan 05 15:49:44 2005] [error] jk2_init() Can't find child 7506 in scoreboard [Wed Jan 05 15:49:44 2005] [notice] workerEnv.init() ok /u01/app/apache2/2.0.52/conf/workers2.properties [Wed Jan 05 15:49:44 2005] [error] mod_jk child init 1 -2 Thanks, Troy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Administration Tool
Does anyone know which track is more prevalent, 5.0.x or 5.5.x? Am I correct in saying that 5.5.x is under development and 5.0.x is in maintence mode? Thanks, Troy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.x and JRun4 with Apache2
Can Tomcat 5.5.x and Macromedia JRun4 run under the same Apache2 instances? I am trying to configure the following on Sun Solaris 8 Apache2 2.0.50 Macromedia JRun4 Tomcat 5.5.x (or 5.0.x). Thanks, Troy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [mod_jk] Unable to get directory listings from Apache httpd 2 for versions 1.2.5 and above
Thank you Mladen for your quick response. I think I understand things more clearly now. One must keep the httpd stuff separate from the Tomcat stuff. It's working better now, but there is one thing that I can't get to work like I would like it to. But first I think I need to explain a bit more about our setup. This is what our directory structure looks like: /www/ /htdocs/ /examples1/ /examples2/index.html /examples3/index.jsp /WEB-INF/web.xml /webapps/ /webapp1/index.jsp /webapp2/index.jsp Now httpd is set up like this: DocumentRoot /www/htdocs Tomcat has a context configured like this: Context path= docBase=/www/htdocs debug=0 reloadable=true/ As you can see the ROOT context in Tomcat is the same directory as the DocumentRoot in httpd. The reason for this setup is this: - We want to use a couple of jsp:s in the DocumentRoot like the file /examples3/index.jsp above. These files are managed by the same people that write our html-pages. We don't want to let these web-writers into the webapps-subdirectory. I have made the change you suggested: Removed index.jsp from the DirectoryIndex directive. I also added the following to /www/htdocs/WEB-INF/web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list The thing that didn't work before now works :-) , but one thing that used to work before is now broken :-( Trying the URL:s in the directory structure above gives these results: - Accesses to /examples1/ (Apache httpd shows a directory listing) - Accesses to /examples2/ (Apache httpd serves the file index.html) - Accesses to /examples3/index.jsp (Tomcat serves the file index.jsp) - Accesses to /examples3/ (Apache httpd shows a directory listing) The first three work as can be expected. It's the last one that puzzles me. I would like Tomcat to serve me the file index.jsp there. Is that possible? -- Dennis Lundberg Mladen Turk wrote: Dennis Lundberg wrote: *Problems:* With mod_jk 1.2.4 this works as expected. With versions 1.2.5, 1.2.6 and 1.2.8, number 3 above doesn't work. A request for /examples/ returns a 404 from Tomcat. Looking in the mod_jk log shows that it is trying to serve the file index.jsp, but that file doesn't exist. It should have returned a directory listing because no valid index-file (index.jsp, index.shtml or index.html) was found. Do not use DirectoryIndex index.jsp. It's up to Tomcat to decide what will be the default context for any web application. *Configuration snippets* httpd.conf Options Indexes Includes DirectoryIndex index.jsp index.shtml index.html You can serve only application that are listed in the server.xml, so what would be the purpose of DirectoryIndex index.jsp anyhow? ... JkMount /*.jsp connector80 JkMount /webapp1/* connector80 JkMount /webapp2/* connector80 ... We've also tried some of the new mod_jk directives forwards and backwards including these: JkOptions -ForwardDirectories JkOptions +ForwardDirectories Is there something wrong with our setup, our is there a bug in mod_jk? Yes like said apache forwards the requests to tomcat over the wire. It's up to Tomcat to decide what content it will serve. Using DirectoryIndex the Apache is trying /examples/index.jsp - 404 from Tomcat if index.jsp does not exist. This is common perception problem. Tomcat is not PHP where you can feed the physical file to its engine, so entire DirectoryIndexing concept is useless from Tomcat point of view. Mladen. - 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]
Tomcat 4.0 admin url?
Hello, A while back, I was learning Tomct 4.1.31. Anyway, back then I used a web-based admin tool to load war files, etc. I did not save my notes, and I forgot what the url was to launch this admin helper. Could someone help me out with this? Thanks, Scott
[FIXED] Mod_JK 1.2.8, gcc 3.4.3 on Linux RH ES3 - compile error
Hello, Just a follow up to let you know how this got resolved. First, thanks to all my respondents. It all helped. I tried using ./buildconf.sh, but got the same result. The Rosetta Stone came from Mladden when it was pointed out that the second value of -DHAVE_APR hadn't a -I before the second value string. I traced this back to the config which got these values by querying the apxs: APRINCLUDEDIR=-I`$APXS -q APR_INCLUDEDIR` the value of which is: [EMAIL PROTECTED] /usr/sbin/apxs -q APR_INCLUDEDIR /usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include This gave value to APR_INCLUDEDIR, which begat APRINCLUDEDIR, which begat -DHAVE_APR ${APRINCLUDEDIR} which begat the problem: -DHAVE_APR -I/usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include The solution was to go to each Makefile (./common, ./apache-1.3, ./apache-2.0) and just vi and add the missing -I. It seems to have compiled and installed fine. Thanks, again, to all. _tom On Jan 4, 2005, at 9:16 PM, Thomas Tinnes wrote: Hello, Getting a compile error I'm having trouble understanding. Here's my setup: Installing jakarta-tomcat-connectors-1.2.8-src.tar.gz from the Jakarta site. On a Linux Red Hat Enterprise 3 (Taroon) on an i386 arch i686 cpu. I'm using gcc version 3.4.3 20041212 (Red Hat 3.4.3-10). There's Apache 2.0.46-44 running with source objects in /usr/src/redhat/BUILD/httpd-2.0.46. I unzip and untar and cd to jakarta-tomcat-connectors-1.2.8-src/jk/native and do ./configure --with-apxs=/usr/sbin/apxs. The config runs without errors but when I run make, I get an Error 1: make[1]: Entering directory `/tmp/jk/jakarta-tomcat-connectors-1.2.8-src/jk/native/common' /bin/sh /usr/bin/libtool --silent --mode=compile gcc -I/usr/include/httpd -g -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread -DHAVE_APR -I/usr/src/redhat/BUILD/httpd-2.0.46/prefork/srclib/apr/include /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include -g -O2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I /usr/local/java/include -I /usr/local/java/include/ -c jk_ajp12_worker.c gcc: /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include: linker input file unused because linking not done cc1: /usr/src/redhat/BUILD/httpd-2.0.46/srclib/apr/include: No such file or directory make[1]: *** [jk_ajp12_worker.lo] Error 1 make[1]: Leaving directory `/tmp/jk/jakarta-tomcat-connectors-1.2.8-src/jk/native/common' make: *** [all-recursive] Error 1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.0 admin url?
For a default install, using a browser on the same box as tomcat: http://localhost:8080/manager/html You will need to edit conf/tomcat-users.xml to add a user that has the manager role. Mark Scott Purcell wrote: Hello, A while back, I was learning Tomct 4.1.31. Anyway, back then I used a web-based admin tool to load war files, etc. I did not save my notes, and I forgot what the url was to launch this admin helper. Could someone help me out with this? Thanks, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection Pooling with Tomcat 4.1 and SQL Server 2000
I am trying to establish a connection pool in Tomcat 4.1 to SQL Server 2000. Looking at the SQL Server trace utility, it appears Tomcat connects with the correct username/password and then the following exception is thrown: java.lang.UnsupportedOperationException at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSourc e.java:161). I have taken the following steps: 1)Moved the driver jar files to /common/lib/ 2)Modified the Server.xml file 3)Modified the web.xml file of the application Here is my Server.xml entry: DefaultContext Resource name=jdbc/test auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/test parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://localhost:1433/value /parameter parameter nameusername/name valuejay/value /parameter parameter namepassword/name valuejay/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value100/value /parameter /ResourceParams /DefaultContext Here is my entry in the web.xml file: resource-ref descriptionDB Connection/description res-ref-namejdbc/test/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Are any additional entries needed? Any help would be greatly appreciated! Thanks, Jay Johnson
jndi error configuring data source
I am trying to configure database pooling in Tomcat 4.1.31. I found some excellent documentation here http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html I followed this exactly for mysql (top article). I created the DBTest web-app precisely, and all folders exist and web.xml file is good. My webapp is under root/DBTest/WEB-INF/classes /lib/mm.mysql-bin.jar web.xml The server starts properly, so I know my configuration is good. The problem is I get an error stating that it cannot find the jar file for the mysql driver when I hit the test page. (ERROR_BELOW) Anyway, I followed the article precisely, and noticed that they hit localhost:8080. My tomcat is running on 80 and at my IP address as you can see below. Would this be why it cannot find the jar file? I am looking at the ajp13 listening on /0.0.0.0:8009 and wondering if there is something else that needs configuring? Would like to get this running if possible. Thank you Scott INFO: Starting Coyote HTTP/1.1 on http-192.168.66.90-80 Jan 5, 2005 3:52:27 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Jan 5, 2005 3:52:27 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=15/532 config=C:\jakarta-tomcat-4.1.31\conf\jk2.prop erties org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.g jt.mm.mysql.Driver', cause: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:945) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:810) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:730) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at foo.DBTest.init(DBTest.java:23) at org.apache.jsp.test_jsp._jspService(test_jsp.java:49) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 40) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:200)
Re: Speed issues with SQL Server 2000 and JTDS
It appears that you are dealing with a connection issue to the database server. Since you are not running any queries, the data is not an issue. There may still be other issues that are slowing things down. Once the connection is established, is the connection response normal. That is why I ask about item 3 and 4. If the time gets even worse then you have other issues that will need addressing. If two and three are about the same response time then concentrate on one of two thing. Find out what is making the establishment of the connection so slow or set up a connection pool (the one with Tomcat works fine) thus eliminating the connection time. If it increases, look at the network for issues. As suggested try some pings and traceroutes to see the times and possible causes. Doug - Original Message - From: Charles P. Killmer [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 8:58 AM Subject: RE: Speed issues with SQL Server 2000 and JTDS Thanks. I had already done this but maybe not communicated them as concisely. Thanks Charles -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 6:23 PM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Trying a few test should help you narrow things down a bit. 1. Run without DB connection. (Done runs fast) 2. Run with a DB connect but no query. (Done runs slow) 3. Run with a simple query and do nothing with it. 4. Run with a simple query and post results in page. Only move forward through result set. 5. Run with a simple query and post results in page. Move around in the result set (Only if you do this in your page). At some point in these test you should see a dramatic jump in the response time. If it is a steady climb, then you may have multiple issues. Report back what you find and we'll make suggestions from there. Doug - Original Message - From: Charles P. Killmer [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, January 04, 2005 11:23 AM Subject: RE: Speed issues with SQL Server 2000 and JTDS Could this speed issue be caused by a poor setup? When I remove the database connection from my code, the pages run fast. Though I obviously need the database portion of the code in there. Thanks Charles -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 9:05 AM To: tomcat-user@jakarta.apache.org; Charles P. Killmer Subject: RE: Speed issues with SQL Server 2000 and JTDS You could try using something like jProfiler to see where the bottleneck is. I don't see anything unusual in your code example, although it looks like the only thing it does is create the connection. I use jTDS and it works fine without doing anything exceptional. [EMAIL PROTECTED] 01/03 8:55 am This is some representative code that is being very slow. import java.sql.*; public class SomeClass { public Connection conn; public int ID; public String Name; public String Address; public String City; public String OtherStuff; public SomeClass() throws Exception { try { Class.forName(net.sourceforge.jtds.jdbc.Driver); } catch (ClassNotFoundException ex) { } try { conn = DriverManager.getConnection(jdbc:jtds:sqlserver://111.222.333.444:1433/ someDB;user=someuser;password=somepassword); } catch (Exception e) { throw e; } } public int Audit() throws Exception { return 5; } public ResultSet GetData() throws Exception { ResultSet rs = null; return rs; } public int DeleteSomething() throws Exception { return 2; } } I don't have anything special in any XML files. I will try to make my code work like yours is. But if someone has an idea why the way I have it written is slow, I would love to hear it. Thank You Charles -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 8:20 AM To: Tomcat Users List Subject: RE: Speed issues with SQL Server 2000 and JTDS I have been using JTDS with SQL Server 2000 in conjunction with Tomcat without any problems. Perhaps if you post some your database connection code, someone could provide you with assistance. You might also try posting to the JTDS Mailing list. Are you using Database Connection Pooling (DBCP)?? I am including an example the code I use to access a stored procedure on SQL Server 2000 using DBCP. /* Here are the things I import */ import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLException; import javax.naming.*; import javax.sql.*; Public class SomeClass{ * A public class that returns an Applicant object * @return the applicant as applicant */ public Applicant SomeApplicantMethod(){ Applicant app = new Applicant(); Connection conn = null; Statement stmt = null; ResultSet rst = null;
Re: Speed issues with SQL Server 2000 and JTDS
Hey Charles, I have implement a database driver that I found online do you think it will help you out??? Charles P. Killmer wrote: I bought the Core Servlets and Java Server Pages and read it over the weekend. Happy New Year to me. I did get out to a few parties though. ;) I am having trouble getting JTDS to return results quickly. Has anyone got any example code for how to properly query a SQL Server 2000 database? The code I write needs to work with both SQL Server 2000 and SQL Server 7. In creating the connection, I am specifying TYPE_SCROLL_INSENSITIVE and TYPE_CONCUR_READ_ONLY. I tried not specifying anything and got errors about not being able to scroll the results. Is the only solution to this, use FORWARD_ONLY and buffer the contents myself? I hoping there is a better way. Thank you Charles Killmer -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OracleDataSourceFactory
Has anyone been able to get the OracleDataSourceFactory working with Tomcat 5? It seems that no matter how I set up the Resource element in my context the factory returns a null data source. Any help would be appreciated. Bernard Durfee -Original Message- From: Dwayne Ghant [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 5:33 PM To: Tomcat Users List Subject: Re: Speed issues with SQL Server 2000 and JTDS Hey Charles, I have implement a database driver that I found online do you think it will help you out??? Charles P. Killmer wrote: I bought the Core Servlets and Java Server Pages and read it over the weekend. Happy New Year to me. I did get out to a few parties though. ;) I am having trouble getting JTDS to return results quickly. Has anyone got any example code for how to properly query a SQL Server 2000 database? The code I write needs to work with both SQL Server 2000 and SQL Server 7. In creating the connection, I am specifying TYPE_SCROLL_INSENSITIVE and TYPE_CONCUR_READ_ONLY. I tried not specifying anything and got errors about not being able to scroll the results. Is the only solution to this, use FORWARD_ONLY and buffer the contents myself? I hoping there is a better way. Thank you Charles Killmer -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - 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]
localhost:8080 only
Hi all, I am new comer. I have installed Tomcat 5.0 successfully, it shows me the welcome page when I set the URL at http://localhost:8080 . Also, it only show up on the local machine, not on the internet. However, I would like to put my computer name instead of localhost:8080 on it, so that I can see it one the web. Can you please tell me where to set that. Thanks - Do you Yahoo!? Yahoo! Mail - You care about security. So do we.
Re: localhost:8080 only
I think you might have to set the DNS server. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: localhost:8080 only
Try editing your etc/hosts file. -Original Message- From: D Lee [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 3:21 PM To: tomcat-user@jakarta.apache.org Subject: localhost:8080 only Hi all, I am new comer. I have installed Tomcat 5.0 successfully, it shows me the welcome page when I set the URL at http://localhost:8080 . Also, it only show up on the local machine, not on the internet. However, I would like to put my computer name instead of localhost:8080 on it, so that I can see it one the web. Can you please tell me where to set that. Thanks - Do you Yahoo!? Yahoo! Mail - You care about security. So do we. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: localhost:8080 only
Hi, I am running window 2003 server.. I have try that suggestion from John and put in my ip address then localhost. But it's still not working. John Najarian [EMAIL PROTECTED] wrote: If you are running tomcat on Windows edit the c:\windows\system32\etc\hosts file -Original Message- From: D Lee [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 3:21 PM To: tomcat-user@jakarta.apache.org Subject: localhost:8080 only Hi all, I am new comer. I have installed Tomcat 5.0 successfully, it shows me the welcome page when I set the URL at http://localhost:8080 . Also, it only show up on the local machine, not on the internet. However, I would like to put my computer name instead of localhost:8080 on it, so that I can see it one the web. Can you please tell me where to set that. Thanks - Do you Yahoo!? Yahoo! Mail - You care about security. So do we. - Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more.
Re: localhost:8080 only
Change the configuration file and tell it to run on port 80 (standard http port). Search for the string 8080 to help you find the right location. Any hostname that resolves to your machine will work from the public internet. Localhost will only ever work for you. If your machine can't be reached from the public internet then make sure port 80 to your machine is not being blocked by a firewall. -Bill On Wed, Jan 05, 2005 at 03:20:37PM -0800, D Lee wrote: Hi all, I am new comer. I have installed Tomcat 5.0 successfully, it shows me the welcome page when I set the URL at http://localhost:8080 . Also, it only show up on the local machine, not on the internet. However, I would like to put my computer name instead of localhost:8080 on it, so that I can see it one the web. Can you please tell me where to set that. Thanks - Do you Yahoo!? Yahoo! Mail - You care about security. So do we. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: localhost:8080 only
Can you tell me the name of the configuration files and where are they located? do they end with .cfg? Thanks bandito [EMAIL PROTECTED] wrote: Change the configuration file and tell it to run on port 80 (standard http port). Search for the string 8080 to help you find the right location. Any hostname that resolves to your machine will work from the public internet. Localhost will only ever work for you. If your machine can't be reached from the public internet then make sure port 80 to your machine is not being blocked by a firewall. -Bill On Wed, Jan 05, 2005 at 03:20:37PM -0800, D Lee wrote: Hi all, I am new comer. I have installed Tomcat 5.0 successfully, it shows me the welcome page when I set the URL at http://localhost:8080 . Also, it only show up on the local machine, not on the internet. However, I would like to put my computer name instead of localhost:8080 on it, so that I can see it one the web. Can you please tell me where to set that. Thanks - Do you Yahoo!? Yahoo! Mail - You care about security. So do we. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less.
Re: webapp context confusion
On Wed, Jan 05, 2005 at 08:35:34AM -0500, Mark Claassen wrote: : I am currently using Tomcat5 and I : want to my servlet to process all .jar and .jnlp files. : [snip] : My problem is that I want this to process all files, not just those in : MySerlvet/ : [snip] : How can I bundle this up as a webapp and still have it process .jnlp and : .jar files in all directories? Your web.xml excerpt looks fine at first glance. Why not post the entire thing? By in all directories, do you mean for *all* webapps? You could make a servlet entry in the global web.xml (this is how Tomcat magically knows to process your *.jsp files), but that's not portable... -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need Consultant $$ [RE: Oracle 9i client connection to 8i database]
Our web app needs to talk to oracle. All is well if the app runs on the db server. But at a client site and on our now on own network, if the app is on a different box, it can't get an oracle connection. It works fine on 2 boxes at other client sites. A related item seems to be that since the change in our network (we just added a fire wall, the app itself has not changed), we have to change the Net8 configuration to use a service name instead of a sid. The web app makes a connection using a sid. (I've been looking for way to change our connection to use a service name with no luck so far.) We've had a similar problem when the app was outside the firewall, the db was behind it, and the firewall didn't allow high-ports through. But in the case of our client and our own case, both machines are behind the firewall. I currently have the webapp running on the db server, but the client is very unhappy with this and my boss wants me to seek what ever help is necessary to resolve this problem. If you think you can help, please reply privately with your rate, availability. I think everything can be done remotely, but it might mean a trip to the client on Monday if we can't work it out by then. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
On Wed, Jan 05, 2005 at 08:26:48AM -0600, epyonne wrote: : Since I am using Outlook Express, I did not realize that I was attaching to : someone else thread and I apologize for that. I am starting a new thread here : and hopefully someone can help me. It's got naught to do with your mailer, Outlook or otherwise -- it's in how you send a message to the list. Don't simply respond to another message and change the subject; create a new message and put the Tomcat list addy in the To: field. Now, on to your question: : I have been developing Java web application for my employer for a few years, : but these are all running on our company's intranet only. Now someone is : asking me to develop an eCommerce site. I don't know how to charge him. Can : someone please give me some ideas of the going rate and what kind of : contractual agreement I need? Is there anything else I need to watch out for? : : I am in the United States and I plan to use a commercial hosting company to : host the site. It will cost around $30-40 a month. You've already received a lot of great advice, so I won't repeat any of that. Just do yourself a favor or two: 1/ think twice about fixed-bid contracts. It can take forever to reach a firm, legally-supportable definition of done and you certainly don't want your attorney fees to eat your profits. (That's not a stab at attorneys, either; mine are fantastic, and their work helps me sleep at night. ;) The hourly scope also means you're less penalized for underestimating how long the project will take (translation: scope creep). 2/ Hammer out scope docs with the client and use that to set the hourly rate. You could also factor in the expected due date (charge more for a rush job), convenience (cut them a break if it's all telocommute, since you can work in your bunny slippers), etc. 2.5/ You'd do yourself a favor to negotiate an hourly rate + some minimum number of hours paid up-front. That makes it a little tougher for someone to run out on you without paying. (Yes, it happens, and some people do it because they know it's not worth your time + legal fees to hunt them down.) 3/ You could spare yourself some hassle and let the client deal with the hosting company. You can help them get setup with one; but clearly defining yourself as the app architect/developer gives you fewer long-term, day-to-day support/maintenance ties to this app. 4/ You asked what sort of contract you'd need: see an attorney for this. Their job is to take the plain-English of your agreement with the client and turn it into legalese, then plug any loopholes. 5/ Your other question: Is there anything else I need to watch out for? Yes: everything. =) Welcome to freelancing. The rest of the advice I've seen in this thread has been great. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.x and JRun4 with Apache2
On Wed, Jan 05, 2005 at 04:23:13PM -0500, Troy Simpson wrote: : Can Tomcat 5.5.x and Macromedia JRun4 run under the same Apache2 instances? That depends: Tomcat doesn't really run under Apache; there are Apache modules (jk, jk2, etc) that let Apache transparently pass requests to a Tomcat engine (that runs in another process, perhaps on another machine). So as long as JRun4 uses the same connector concept, and the JRun4 and Tomcat connectors don't conflict, you should be in luck. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Consultant $$ [RE: Oracle 9i client connection to 8i database]
It sounds like your using a type2 driver. Switch to the type 4 driver and you don't need and Oracle binaries (except the jar file) and things might work a little better. -Tim Brad Rhoads wrote: Our web app needs to talk to oracle. All is well if the app runs on the db server. But at a client site and on our now on own network, if the app is on a different box, it can't get an oracle connection. It works fine on 2 boxes at other client sites. A related item seems to be that since the change in our network (we just added a fire wall, the app itself has not changed), we have to change the Net8 configuration to use a service name instead of a sid. The web app makes a connection using a sid. (I've been looking for way to change our connection to use a service name with no luck so far.) We've had a similar problem when the app was outside the firewall, the db was behind it, and the firewall didn't allow high-ports through. But in the case of our client and our own case, both machines are behind the firewall. I currently have the webapp running on the db server, but the client is very unhappy with this and my boss wants me to seek what ever help is necessary to resolve this problem. If you think you can help, please reply privately with your rate, availability. I think everything can be done remotely, but it might mean a trip to the client on Monday if we can't work it out by then. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need Consultant $$ [RE: Oracle 9i client connection to 8i database]
I think this depends largely on the type of connection you are making. If you are using the OCI driver (type 2), I believe you need the oracle client installed on the web application machine. If you are using the thin driver (type 4), I don't think you need the client software to be installed. Here are some samples from the oracle site. http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/9i_jdbc/index.html BTW, I think that if you use the oracle OCI connection pool classes you have to use the type 2 driver (OCI driver). Derrick ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 821-3260/Phone Cell(603) 305-1753/Cell Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Brad Rhoads [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 7:09 PM To: 'Tomcat Users List' Subject: Need Consultant $$ [RE: Oracle 9i client connection to 8i database] Importance: High Our web app needs to talk to oracle. All is well if the app runs on the db server. But at a client site and on our now on own network, if the app is on a different box, it can't get an oracle connection. It works fine on 2 boxes at other client sites. A related item seems to be that since the change in our network (we just added a fire wall, the app itself has not changed), we have to change the Net8 configuration to use a service name instead of a sid. The web app makes a connection using a sid. (I've been looking for way to change our connection to use a service name with no luck so far.) We've had a similar problem when the app was outside the firewall, the db was behind it, and the firewall didn't allow high-ports through. But in the case of our client and our own case, both machines are behind the firewall. I currently have the webapp running on the db server, but the client is very unhappy with this and my boss wants me to seek what ever help is necessary to resolve this problem. If you think you can help, please reply privately with your rate, availability. I think everything can be done remotely, but it might mean a trip to the client on Monday if we can't work it out by then. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need Consultant $$ [RE: Oracle 9i client connection to 8i database]
Try the type 4 driver and make sure that you're not NAT'ing the addresses anywhere. Oracle doesn't like NATs, you'll need a sqlnet proxy in order for something like that to work. I've used Cisco PIX firewalls which have a sqlnet proxy built in. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Brad Rhoads [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 4:09 PM To: 'Tomcat Users List' Subject: Need Consultant $$ [RE: Oracle 9i client connection to 8i database] Importance: High Our web app needs to talk to oracle. All is well if the app runs on the db server. But at a client site and on our now on own network, if the app is on a different box, it can't get an oracle connection. It works fine on 2 boxes at other client sites. A related item seems to be that since the change in our network (we just added a fire wall, the app itself has not changed), we have to change the Net8 configuration to use a service name instead of a sid. The web app makes a connection using a sid. (I've been looking for way to change our connection to use a service name with no luck so far.) We've had a similar problem when the app was outside the firewall, the db was behind it, and the firewall didn't allow high-ports through. But in the case of our client and our own case, both machines are behind the firewall. I currently have the webapp running on the db server, but the client is very unhappy with this and my boss wants me to seek what ever help is necessary to resolve this problem. If you think you can help, please reply privately with your rate, availability. I think everything can be done remotely, but it might mean a trip to the client on Monday if we can't work it out by then. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: localhost:8080 only
Thanks. It's working now. bandito [EMAIL PROTECTED] wrote:Change the configuration file and tell it to run on port 80 (standard http port). Search for the string 8080 to help you find the right location. Any hostname that resolves to your machine will work from the public internet. Localhost will only ever work for you. If your machine can't be reached from the public internet then make sure port 80 to your machine is not being blocked by a firewall. -Bill On Wed, Jan 05, 2005 at 03:20:37PM -0800, D Lee wrote: Hi all, I am new comer. I have installed Tomcat 5.0 successfully, it shows me the welcome page when I set the URL at http://localhost:8080 . Also, it only show up on the local machine, not on the internet. However, I would like to put my computer name instead of localhost:8080 on it, so that I can see it one the web. Can you please tell me where to set that. Thanks - Do you Yahoo!? Yahoo! Mail - You care about security. So do we. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. Learn more.
Re: More then one appBase per virtual Host...
On Wed, Jan 05, 2005 at 11:35:33AM -0800, Dwayne Ghant wrote: : Anybody want to take a shoot at this Sure, I'll take a stab. A little patience, please -- some (many?) of us have day gigs in which it's none too proper to answer list questions on company time. : I was wonder if I could have more than one *|appBase|* per host. I'm not quite sure I understand, so why not try to rephrase the question? What's your end-goal? It may have nothing to do with the appBase attr. : Host name=localhost debug=0 appBase=/home/*/public_html I think I see, now... Instead of trying to stick everything in the user's homedir, why not just create a separate area and have each user put their webapps there? For example: appBase=/some/dir/tomcat_users and under that dir, you'd have user1/WEB-INF/ user2/ etc. btw, do you really want to put all users' webapps under the same container? That may be asking for a headache, in all but the most basic usage scenarios. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache2 tomcat5 jk2 questions
I believe that I have read that mod_jk2 was to stop being supported as of 11/15/04. It might be something to think about if you start seeing more bugs. I have reverted all of my boxes to mod_jk which serves just as fast for me. -j On Wed, 05 Jan 2005 11:32:01 -0800, Dwayne Ghant [EMAIL PROTECTED] wrote: This should help atleat I hope: Your httpd.conf should look something like this at the bottom. Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location Have a beautiful day. Casas, Claudia wrote: Thanks! Tomcat now works for every user directory! : ) But I still do not know how to make apache forward my jsp request to tomcat. I used to include Jkmount option in my httpd.conf, but now I have not idea. I have read about a JkSet but not sure how to use it. I have also read that you can have this configuration in the jk2.properties, but do not know how either. If you could point me to the right direction I would really appreciate it. I basically need to be able to view my jsp's through apache as: e.g. http://myserver/~userdir/myfile.jsp -Original Message- From: Dwayne Ghant [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:03 AM To: Tomcat Users List Subject: Re: apache2 tomcat5 jk2 questions Please Read your Documentation at this page http://myserver:8080/tomcat-docs/config/host.html and that should answer your question. Read the section that says: User Web Applications Casas, Claudia wrote: Hello everybody, I have configured jk2 successfully finally to work with apache and tomcat. #!Question 1 I have included the following in my server.xml file: Context path=/ccasas docBase=/home/ccasas/wwwdocs debug=0 reloadable=true crossContext=true /Context This allows me to see my jsp file as : http://myserver:8080/ccasas/myfile.jsp http://myserver/ccasas/myfile.jsp which is what I want to be able to access my jsp files from my homedir. BUT MY QUESTION IS: How do I tell apache to forward this request to tomcat. In other words, when I access http://myserver/ccasas/mnyfiles.jsp is only reading the file as text. Previously I had added a Jkmount option inside my httpd.conf, but it does not like it right now. #Question 2 Is there a way to specify my context path so that it will handle all my homedirs. In apache I use a wildcard (/home/*/wwwdocs) to handle all of my home directories. Is there anything like this in tomcat that I can use?? -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.x and JRun4 with Apache2
Just today, in fact, I have gotten this to work but with apache 1.3, sort of. I'm using the mini-jrun4 that is packaged with coldfusion. The other caveat that makes me say sort of is because I only got it to work for that one very narrow use of jrun4 (although perhaps the most popular one). I am fairly sure that I wouldn't be able to make it work if I had any jsp's that I wanted to be processed by jrun4 at all. I had to sacrifice that ability (never used it) so that my j2ee app on tomcat would work. I don't expect this to be relevant to your situation, because it's basically for coldfusion + tomcat, but since I have no idea what you want with jrun4, there may be some nugget of usefulness in this document I found: http://www.performancehosting.net/cfmx-tomcat.htm In case anyone was wondering why I have 2 j2ee thingies, trying to make cfmx work with tomcat was a bust. The PATH_INFO thing was a deal breaker, and I was seeing some other problems on the horizon with CGI vars changing around. I reckon it all would have been acceptable for a new project environment, but not for a migration of existing code. Good luck! -Jack Eidsness On 1/5/2005 7:14 PM, QM wrote: On Wed, Jan 05, 2005 at 04:23:13PM -0500, Troy Simpson wrote: : Can Tomcat 5.5.x and Macromedia JRun4 run under the same Apache2 instances? That depends: Tomcat doesn't really run under Apache; there are Apache modules (jk, jk2, etc) that let Apache transparently pass requests to a Tomcat engine (that runs in another process, perhaps on another machine). So as long as JRun4 uses the same connector concept, and the JRun4 and Tomcat connectors don't conflict, you should be in luck. -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to combine normal servlets and struts inside Tomcat application
I have 2 sets of programms running on Tomcat 5.0 1)one set is using normal servlet program architecture.2)another is using struts technology. This together makes whole application. Eventually the whole application will be in struts, but currently i have half in servlet and half in struts. Currently developed separately, but now i want to combine this under one roof. i mainly worried about web.xml - how i can do it? regardsManisha - Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more.
After JDBCRealm Authentication some jsp/servlet to be executed
Software JDK1.5 jakarta-tomcat-5.5.2 Requirement After the user Logins in the Server through JDBCRealm Authentication I want to store the user Details in the session I know there is something called request.getUserPrincipal().getName() But i need to store the whole companydetails in the Session I mean the other details so for this I have to write the code in all the jsp files Is there any better way out Thanks in advance CSJakharia Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com - Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less.
Hiding the context URL in Apache with mod_jk
I'd appreciate a hand if possible as finding a way to do this is driving me nuts. I want to hide the context URL in an Apache2/mod_jk1.2.8/Tomcat4.1 configuration. eg: my virtual definition for the server purple.example.com contains the line: JkMount /examples/*.jsp ajp13 This means that the URL in a client is http://purple.example.com/examples/index.jsp I'd actually like to map that into the URL: http://purple.example.com/index.jsp which using mod_rewrite seems possible. However my jsp page sets a cookie which immediatly triggers an error as the perceived path in the client browser is wrong. I think I need something like the old Jserv mapping where i can say: (in fictional hopeful syntax) JKMount /*.jsp ajp13:examples/ Is there anything like this? Or is there a better way to do this? Thanks, Dave -- David Nillesen Systems Administrator University of New England Phone: +61 2 6773 2112 Fax: +61 2 6773 3424 signature.asc Description: This is a digitally signed message part
Re: [OT]web development fee
I have heard of http://www.merchantspace.com/product/index.jsp. I haven't used it though. A search on Google will likely give you a handful to choose from. Also you might consider taking ideas from the Java Pet Store. The hourly rate depends on a lot of things. I can't make a good generalization about hourly rate... Daniel - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 10:30 AM Subject: Re: [OT]web development fee Daniel, Thanks for the response. No, what I develop for my employer is not eCommerce related. They are mostly for internal processing. Some of my web application are used by our call centers. Among the 3 options that you have stated, I think I will go with either #1 or #3. If I go with #3, do you know where I can find such application? Also, can you tell me what is the going rate for a contract job like this? $50/hr, $100/hr, or more? I don't have any idea at all. Thank you very much for your help and all the other posters' help! - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 10:00 AM Subject: Re: [OT]web development fee Epyonne, First off, I don't think that you hijacked anyone's thread, but this list seems to be very sensitive to that (and perhaps more affected by it than other lists I have seen). From my experience there are a couple of options you can pursue: 1) You could build the application from the ground up and charge an hourly rate. The rate will have to be agreed upon by you and the person contracting you. 2) You could develop the eCommerce application at your own cost and sell a license to it. In this case you would have more direct control over the features you build into it. Also, while this costs you more up front there is more possibility to recover the cost in selling multiple licenses. 3) You could purchase a license to an existing application and adapt it to meet your clients' needs. In this case you would likely charge a flat fee to recover your hard costs for the purchase and an hourly after that for any adaptations. In this case I personally would ask for the hard costs up front so as to not go to the expense and then have the client change his/her mind. Now about the way you asked your question, I'm not sure if the web application you have developed for your employer is an eCommerce application. In the event that it is eCommerce related you will likely use that as a base for whatever you build for your new client. In this case you should discuss with your employer how he feels about you building off of a code base that he has funded. It may be that you could work out an arrangement with your employer to accomplish option 3 above, and that your employer will give you a license at a significant savings to you. As far as contracts go, you should probably consult with a lawyer for that. Daniel - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 7:26 AM Subject: [OT]web development fee Since I am using Outlook Express, I did not realize that I was attaching to someone else thread and I apologize for that. I am starting a new thread here and hopefully someone can help me. I have been developing Java web application for my employer for a few years, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I am in the United States and I plan to use a commercial hosting company to host the site. It will cost around $30-40 a month. Any help will be very much appreciated. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
Epyonne, Please email me directly, I have sent you a reply, but the email returned unsent. Drew. On Wed, 2005-01-05 at 22:02, Daniel Watrous wrote: I have heard of http://www.merchantspace.com/product/index.jsp. I haven't used it though. A search on Google will likely give you a handful to choose from. Also you might consider taking ideas from the Java Pet Store. The hourly rate depends on a lot of things. I can't make a good generalization about hourly rate... Daniel - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 10:30 AM Subject: Re: [OT]web development fee Daniel, Thanks for the response. No, what I develop for my employer is not eCommerce related. They are mostly for internal processing. Some of my web application are used by our call centers. Among the 3 options that you have stated, I think I will go with either #1 or #3. If I go with #3, do you know where I can find such application? Also, can you tell me what is the going rate for a contract job like this? $50/hr, $100/hr, or more? I don't have any idea at all. Thank you very much for your help and all the other posters' help! - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 10:00 AM Subject: Re: [OT]web development fee Epyonne, First off, I don't think that you hijacked anyone's thread, but this list seems to be very sensitive to that (and perhaps more affected by it than other lists I have seen). From my experience there are a couple of options you can pursue: 1) You could build the application from the ground up and charge an hourly rate. The rate will have to be agreed upon by you and the person contracting you. 2) You could develop the eCommerce application at your own cost and sell a license to it. In this case you would have more direct control over the features you build into it. Also, while this costs you more up front there is more possibility to recover the cost in selling multiple licenses. 3) You could purchase a license to an existing application and adapt it to meet your clients' needs. In this case you would likely charge a flat fee to recover your hard costs for the purchase and an hourly after that for any adaptations. In this case I personally would ask for the hard costs up front so as to not go to the expense and then have the client change his/her mind. Now about the way you asked your question, I'm not sure if the web application you have developed for your employer is an eCommerce application. In the event that it is eCommerce related you will likely use that as a base for whatever you build for your new client. In this case you should discuss with your employer how he feels about you building off of a code base that he has funded. It may be that you could work out an arrangement with your employer to accomplish option 3 above, and that your employer will give you a license at a significant savings to you. As far as contracts go, you should probably consult with a lawyer for that. Daniel - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 7:26 AM Subject: [OT]web development fee Since I am using Outlook Express, I did not realize that I was attaching to someone else thread and I apologize for that. I am starting a new thread here and hopefully someone can help me. I have been developing Java web application for my employer for a few years, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I am in the United States and I plan to use a commercial hosting company to host the site. It will cost around $30-40 a month. Any help will be very much appreciated. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [mod_jk] Unable to get directory listings from Apache httpd 2 for versions 1.2.5 and above
Dennis Lundberg wrote: /www/ /htdocs/ /examples1/ /examples2/index.html /examples3/index.jsp /WEB-INF/web.xml /webapps/ /webapp1/index.jsp /webapp2/index.jsp Now httpd is set up like this: DocumentRoot /www/htdocs Tomcat has a context configured like this: Context path= docBase=/www/htdocs debug=0 reloadable=true/ The thing that didn't work before now works :-) , but one thing that used to work before is now broken :-( Trying the URL:s in the directory structure above gives these results: - Accesses to /examples1/ (Apache httpd shows a directory listing) - Accesses to /examples2/ (Apache httpd serves the file index.html) - Accesses to /examples3/index.jsp (Tomcat serves the file index.jsp) - Accesses to /examples3/ (Apache httpd shows a directory listing) The first three work as can be expected. It's the last one that puzzles me. I would like Tomcat to serve me the file index.jsp there. Is that possible? Yes. JkMount /examples3/* yourworker Then: JkUnMount /examples3/*.jpg yourworker ... JkUnMount /examples3/*.xxx yourworker But that's not the very wise solution. You obviously wish to Apache serve your static content (e.g. images), while Tomcat serving the dynamic content. So, organize your applications like that, moving static content to a virtual space accesible only by Apache. For example: Make /images Alias for apache in some directory outside Tomcat ROOT. Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hiding the context URL in Apache with mod_jk
David Nillesen wrote: JkMount /examples/*.jsp ajp13 This means that the URL in a client is http://purple.example.com/examples/index.jsp I'd actually like to map that into the URL: http://purple.example.com/index.jsp Search the archive from last month (Dec. 29, Thread 'Forwarding *all* webapps with mod_jk'). I've explained why this is not possible. Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]